# GoogleWorkspaceSyncItem

One caller-owned operation classified before any mutation is attempted.

Class 

`OfficeIMO.GoogleWorkspace.Sync`

**Namespace**

`OfficeIMO.GoogleWorkspace.Sync`

**Assembly**

`OfficeIMO.GoogleWorkspace.Sync`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[GoogleWorkspaceSyncPlan.cs:20](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.GoogleWorkspace.Sync/GoogleWorkspaceSyncPlan.cs#L20)

**Modifiers**

sealed

One caller-owned operation classified before any mutation is attempted.

## Inheritance

- object
- GoogleWorkspaceSyncItem

## Guides & Samples

Authored walkthroughs and practical samples linked to this API.

- [Track Google Drive Changes](/docs/google-workspace/sync/) Guide
  
  Read Google Drive change feeds for the user and shared drives with checkpoints, and apply sync plans with dry runs, approvals, and conflict reporting.

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

- Property [GoogleWorkspaceSyncItemResult.Item](/api/google-workspace-sync/officeimo-googleworkspace-sync-googleworkspacesyncitemresult/#property-item)
- Property [GoogleWorkspaceSyncPlan.Items](/api/google-workspace-sync/officeimo-googleworkspace-sync-googleworkspacesyncplan/#property-items)

### Accepted by parameters 3

- Method [GoogleWorkspaceSyncOperation.BeginInvoke](/api/google-workspace-sync/officeimo-googleworkspace-sync-googleworkspacesyncoperation/#method-begininvoke-googleworkspacesyncitem-cancellationtoken-asynccallback-object) parameter `item`
- Method [GoogleWorkspaceSyncOperation.Invoke](/api/google-workspace-sync/officeimo-googleworkspace-sync-googleworkspacesyncoperation/#method-invoke-googleworkspacesyncitem-cancellationtoken) parameter `item`
- Method [GoogleWorkspaceSyncPlan.Create](/api/google-workspace-sync/officeimo-googleworkspace-sync-googleworkspacesyncplan/#method-create-collections-generic-ienumerable-officeimo-googleworkspace-sync-googleworkspacesyncitem-officeimo-googleworkspace-googleworkspaceoperationpolicy-officeimo-googleworkspace-translationreport) parameter `items`

Filter members 

Show inherited

## Constructors

`public GoogleWorkspaceSyncItem(string id, GoogleWorkspaceSyncItemKind kind, string path, string message, string targetResource, string expectedRevision, string? sourceId = null, string? googleFileId = null)` [#](#constructor-ctor-string-officeimo-googleworkspace-sync-googleworkspacesyncitemkind-string-string-string-string-string-string)

[GoogleWorkspaceSyncPlan.cs:20](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.GoogleWorkspace.Sync/GoogleWorkspaceSyncPlan.cs#L20)

Creates an item with a stable identifier, target, and expected revision decision.

Parameters

**id string required**

**kind OfficeIMO.GoogleWorkspace.Sync.GoogleWorkspaceSyncItemKind required**

**path string required**

**message string required**

**targetResource string required**

**expectedRevision string required**

**sourceId string? = null optional**

**googleFileId string? = null optional**

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

## Properties

`public string Id { get; }` [#](#property-id)

[GoogleWorkspaceSyncPlan.cs:30](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.GoogleWorkspace.Sync/GoogleWorkspaceSyncPlan.cs#L30)

Gets the caller-assigned identifier used for duplicate detection and lossy-action approval.

`public GoogleWorkspaceSyncItemKind Kind { get; }` [#](#property-kind)

[GoogleWorkspaceSyncPlan.cs:32](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.GoogleWorkspace.Sync/GoogleWorkspaceSyncPlan.cs#L32)

Gets the caller-assigned change classification.

`public string Path { get; }` [#](#property-path)

[GoogleWorkspaceSyncPlan.cs:34](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.GoogleWorkspace.Sync/GoogleWorkspaceSyncPlan.cs#L34)

Gets the caller-assigned location of the change, or an empty string when null was supplied.

`public string Message { get; }` [#](#property-message)

[GoogleWorkspaceSyncPlan.cs:36](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.GoogleWorkspace.Sync/GoogleWorkspaceSyncPlan.cs#L36)

Gets the caller-assigned description, or an empty string when null was supplied.

`public string? SourceId { get; }` [#](#property-sourceid)

[GoogleWorkspaceSyncPlan.cs:38](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.GoogleWorkspace.Sync/GoogleWorkspaceSyncPlan.cs#L38)

Gets an optional identifier for the local source item.

`public string? GoogleFileId { get; }` [#](#property-googlefileid)

[GoogleWorkspaceSyncPlan.cs:40](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.GoogleWorkspace.Sync/GoogleWorkspaceSyncPlan.cs#L40)

Gets an optional Google Drive file identifier.

`public string TargetResource { get; }` [#](#property-targetresource)

[GoogleWorkspaceSyncPlan.cs:42](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.GoogleWorkspace.Sync/GoogleWorkspaceSyncPlan.cs#L42)

Gets the required resource target carried into each decision receipt's policy.

`public string ExpectedRevision { get; }` [#](#property-expectedrevision)

[GoogleWorkspaceSyncPlan.cs:45](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.GoogleWorkspace.Sync/GoogleWorkspaceSyncPlan.cs#L45)

Gets the required expected-revision decision carried into each decision receipt's policy.

`public bool RequiresApproval { get; }` [#](#property-requiresapproval)

[GoogleWorkspaceSyncPlan.cs:47](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.GoogleWorkspace.Sync/GoogleWorkspaceSyncPlan.cs#L47)

Gets whether this item is classified as a lossy action requiring explicit approval.

<!-- PowerForge markdown artifact sha256:9D6E9D19C0097CEE4EEA0F91E7AC14B4723E406C70BD7CECF982D61E91667C6A -->
