# TranslationReport

Standard fidelity report shared across exporter packages.

Class 

`OfficeIMO.GoogleWorkspace`

**Namespace**

`OfficeIMO.GoogleWorkspace`

**Assembly**

`OfficeIMO.GoogleWorkspace`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[TranslationReport.cs:31](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.GoogleWorkspace/TranslationReport.cs#L31)

**Base**

`OfficeConversionReport`

**Modifiers**

sealed

Standard fidelity report shared across exporter packages.

## Inheritance

- OfficeConversionReport
- TranslationReport

## Guides & Samples

Authored walkthroughs and practical samples linked to this API.

- [Export Office Documents to Google Workspace](/docs/google-workspace/) Guide
  
  Export Word, Excel, and PowerPoint documents to Google Docs, Sheets, and Slides, import them back, and work with Drive through one shared session.

## Usage

Explore 24 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 5

- Property [GoogleWorkspaceConflictException.Report](/api/google-workspace/officeimo-googleworkspace-googleworkspaceconflictexception/#property-report)
- Property [GoogleWorkspaceExportCanceledException.Report](/api/google-workspace/officeimo-googleworkspace-googleworkspaceexportcanceledexception/#property-report)
- Property [GoogleWorkspaceExportException.Report](/api/google-workspace/officeimo-googleworkspace-googleworkspaceexportexception/#property-report)
- Property [GoogleWorkspacePreflightException.Report](/api/google-workspace/officeimo-googleworkspace-googleworkspacepreflightexception/#property-report)
- Method [TranslationReport.CreateReadOnlySnapshot](/api/google-workspace/officeimo-googleworkspace-translationreport/#method-createreadonlysnapshot)

### Accepted by parameters 19

- Constructor [GoogleWorkspaceConflictException.GoogleWorkspaceConflictException](/api/google-workspace/officeimo-googleworkspace-googleworkspaceconflictexception/#constructor-ctor-string-string-string-string-officeimo-googleworkspace-translationreport) parameter `report`
- Method [GoogleWorkspaceDiagnosticsDispatcher.Add](/api/google-workspace/officeimo-googleworkspace-googleworkspacediagnosticsdispatcher/#method-add-officeimo-googleworkspace-translationreport-officeimo-googleworkspace-googleworkspacesessionoptions-officeimo-googleworkspace-translationseverity-string-string-string-nullable-officeimo-googleworkspace-googleworkspacefailurekind-string-officeimo-googleworkspace-translationaction-int32-string) parameter `report`
- Method [GoogleWorkspaceDiagnosticsDispatcher.AddUnique](/api/google-workspace/officeimo-googleworkspace-googleworkspacediagnosticsdispatcher/#method-addunique-officeimo-googleworkspace-translationreport-officeimo-googleworkspace-googleworkspacesessionoptions-officeimo-googleworkspace-translationseverity-string-string-string-nullable-officeimo-googleworkspace-googleworkspacefailurekind-string-officeimo-googleworkspace-translationaction-int32-string) parameter `report`
- Method [GoogleWorkspaceDiagnosticsExtensions.ToDiagnosticEntries](/api/google-workspace/officeimo-googleworkspace-googleworkspacediagnosticsextensions/#method-todiagnosticentries-officeimo-googleworkspace-translationreport) parameter `report`
- Constructor [GoogleWorkspaceExportCanceledException.GoogleWorkspaceExportCanceledException](/api/google-workspace/officeimo-googleworkspace-googleworkspaceexportcanceledexception/#constructor-ctor-string-officeimo-googleworkspace-translationreport-operationcanceledexception) parameter `report`
- Constructor [GoogleWorkspaceExportException.GoogleWorkspaceExportException](/api/google-workspace/officeimo-googleworkspace-googleworkspaceexportexception/#constructor-ctor-string-officeimo-googleworkspace-googleworkspacefailurekind-officeimo-googleworkspace-translationreport-exception) parameter `report`
- Method [GoogleWorkspaceFailureDiagnostics.CreateAmbiguousMutationFailure](/api/google-workspace/officeimo-googleworkspace-googleworkspacefailurediagnostics/#method-createambiguousmutationfailure-string-officeimo-googleworkspace-googleworkspacesessionoptions-officeimo-googleworkspace-translationreport-officeimo-googleworkspace-googleworkspaceambiguousmutationexception) parameter `report`
- Method [GoogleWorkspaceFailureDiagnostics.CreateApiFailure](/api/google-workspace/officeimo-googleworkspace-googleworkspacefailurediagnostics/#method-createapifailure-string-officeimo-googleworkspace-googleworkspacesessionoptions-officeimo-googleworkspace-translationreport-exception) parameter `report`
- Method [GoogleWorkspaceFailureDiagnostics.CreateCanceledFailure](/api/google-workspace/officeimo-googleworkspace-googleworkspacefailurediagnostics/#method-createcanceledfailure-string-officeimo-googleworkspace-googleworkspacesessionoptions-officeimo-googleworkspace-translationreport-operationcanceledexception) parameter `report`
- Method [GoogleWorkspaceFailureDiagnostics.CreateRequestTimeoutFailure](/api/google-workspace/officeimo-googleworkspace-googleworkspacefailurediagnostics/#method-createrequesttimeoutfailure-string-officeimo-googleworkspace-googleworkspacesessionoptions-officeimo-googleworkspace-translationreport-threading-tasks-taskcanceledexception) parameter `report`
- Method [GoogleWorkspaceFailureDiagnostics.CreateTokenAcquisitionFailure](/api/google-workspace/officeimo-googleworkspace-googleworkspacefailurediagnostics/#method-createtokenacquisitionfailure-string-collections-generic-ireadonlylist-system-string-officeimo-googleworkspace-googleworkspacesession-officeimo-googleworkspace-translationreport-exception) parameter `report`
- Method [GoogleWorkspaceHttpTransport.SendAsync``1](/api/google-workspace/officeimo-googleworkspace-googleworkspacehttptransport/#method-sendasync-string-net-http-httpmethod-string-func-system-net-http-httpcontent-officeimo-googleworkspace-googleworkspacerequestsafety-string-officeimo-googleworkspace-translationreport-threading-cancellationtoken-nullable-system-int64-officeimo-googleworkspace-googleworkspacemutationkind-officeimo-googleworkspace-googleworkspacerevisionprecondition-collections-generic-ireadonlycollection-system-string-boolean) parameter `report`
- Method [GoogleWorkspaceHttpTransport.SendBytesAsync](/api/google-workspace/officeimo-googleworkspace-googleworkspacehttptransport/#method-sendbytesasync-string-net-http-httpmethod-string-officeimo-googleworkspace-googleworkspacerequestsafety-string-officeimo-googleworkspace-translationreport-threading-cancellationtoken-boolean-boolean-nullable-system-int64-action-system-net-http-httprequestmessage-officeimo-googleworkspace-googleworkspacemutationkind-officeimo-googleworkspace-googleworkspacerevisionprecondition-action-system-net-http-httpresponsemessage-collections-generic-ireadonlycollection-system-string-boolean) parameter `report`
- Method [GoogleWorkspaceHttpTransport.SendJsonAsync``1](/api/google-workspace/officeimo-googleworkspace-googleworkspacehttptransport/#method-sendjsonasync-string-net-http-httpmethod-string-object-officeimo-googleworkspace-googleworkspacerequestsafety-string-officeimo-googleworkspace-translationreport-threading-cancellationtoken-nullable-system-int64-officeimo-googleworkspace-googleworkspacemutationkind-officeimo-googleworkspace-googleworkspacerevisionprecondition-collections-generic-ireadonlycollection-system-string-boolean) parameter `report`
- Method [GoogleWorkspaceHttpTransport.SendJsonAsync``2](/api/google-workspace/officeimo-googleworkspace-googleworkspacehttptransport/#method-sendjsonasync-string-net-http-httpmethod-string-officeimo-googleworkspace-googleworkspacerequestsafety-string-officeimo-googleworkspace-translationreport-text-json-serialization-metadata-jsontypeinfo-text-json-serialization-metadata-jsontypeinfo-threading-cancellationtoken-nullable-system-int64-officeimo-googleworkspace-googleworkspacemutationkind-officeimo-googleworkspace-googleworkspacerevisionprecondition-collections-generic-ireadonlycollection-system-string-boolean) parameter `report`
- Method [GoogleWorkspaceHttpTransport.SendRawAsync](/api/google-workspace/officeimo-googleworkspace-googleworkspacehttptransport/#method-sendrawasync-string-net-http-httpmethod-string-func-system-net-http-httpcontent-officeimo-googleworkspace-googleworkspacerequestsafety-string-officeimo-googleworkspace-translationreport-threading-cancellationtoken-action-system-net-http-httprequestmessage-collections-generic-ireadonlycollection-system-net-httpstatuscode-boolean-string-officeimo-googleworkspace-googleworkspacemutationkind-officeimo-googleworkspace-googleworkspacerevisionprecondition-collections-generic-ireadonlycollection-system-string-boolean) parameter `report`
- Method [GoogleWorkspacePreflight.Validate](/api/google-workspace/officeimo-googleworkspace-googleworkspacepreflight/#method-validate-officeimo-googleworkspace-translationreport-officeimo-googleworkspace-googleworkspacefidelitypolicy) parameter `report`
- Constructor [GoogleWorkspacePreflightException.GoogleWorkspacePreflightException](/api/google-workspace/officeimo-googleworkspace-googleworkspacepreflightexception/#constructor-ctor-string-officeimo-googleworkspace-translationreport-collections-generic-ireadonlylist-officeimo-googleworkspace-translationnotice) parameter `report`
- Extension method [TranslationReport.ToDiagnosticEntries](/api/google-workspace/officeimo-googleworkspace-translationreport/#extension-todiagnosticentries-officeimo-googleworkspace-translationreport) parameter `report`

Filter members 

Show inherited

## Constructors

`public TranslationReport()` [#](#constructor-ctor)

[TranslationReport.cs:31](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.GoogleWorkspace/TranslationReport.cs#L31)

Creates an empty, mutable translation report.

## Methods

`public void Add(TranslationSeverity severity, string feature, string message, string path = "", string? code = null, TranslationAction action = None, int count = 1, string? targetId = null)` [#](#method-add-officeimo-googleworkspace-translationseverity-string-string-string-string-officeimo-googleworkspace-translationaction-int32-string)

[TranslationReport.cs:80](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.GoogleWorkspace/TranslationReport.cs#L80)

Adds a structured translation notice.

Parameters

**severity OfficeIMO.GoogleWorkspace.TranslationSeverity required**

Impact of the notice.

**feature string required**

Source feature to which the notice applies.

**message string required**

Human-readable explanation.

**path string = "" optional**

Optional source-object path.

**code string? = null optional**

Stable diagnostic code, or null to derive one from feature.

**action OfficeIMO.GoogleWorkspace.TranslationAction = None optional**

Action selected for the feature.

**count int = 1 optional**

Number of equivalent occurrences represented by the notice; values below one become one.

**targetId string? = null optional**

Optional remote target identifier.

`public void AddUnique(TranslationSeverity severity, string feature, string message, string path = "", string? code = null, TranslationAction action = None, int count = 1, string? targetId = null)` [#](#method-addunique-officeimo-googleworkspace-translationseverity-string-string-string-string-officeimo-googleworkspace-translationaction-int32-string)

[TranslationReport.cs:110](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.GoogleWorkspace/TranslationReport.cs#L110)

Adds a notice unless the report already contains the same severity, code, feature, message, and path.

Parameters

**severity OfficeIMO.GoogleWorkspace.TranslationSeverity required**

Impact of the notice.

**feature string required**

Source feature to which the notice applies.

**message string required**

Human-readable explanation.

**path string = "" optional**

Optional source-object path.

**code string? = null optional**

Stable diagnostic code, or null to derive one from feature.

**action OfficeIMO.GoogleWorkspace.TranslationAction = None optional**

Action selected for the feature.

**count int = 1 optional**

Number of equivalent occurrences represented by the notice.

**targetId string? = null optional**

Optional remote target identifier.

`public TranslationReport CreateReadOnlySnapshot()` [#](#method-createreadonlysnapshot)

[TranslationReport.cs:125](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.GoogleWorkspace/TranslationReport.cs#L125)

Creates an independent read-only snapshot of the current notices.

Returns

`TranslationReport`

## 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 void ThrowIfLoss()` [#](#method-throwifloss)

Inherited from OfficeConversionReport

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

Inherited from object

Returns

`string?`

## Properties

`public IReadOnlyList<TranslationNotice> Notices { get; }` [#](#property-notices)

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

Gets the notices in the order in which translators recorded them.

`public bool HasWarnings { get; }` [#](#property-haswarnings)

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

Gets whether the report contains at least one warning or error.

`public bool HasErrors { get; }` [#](#property-haserrors)

[TranslationReport.cs:44](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.GoogleWorkspace/TranslationReport.cs#L44)

Gets whether the report contains at least one error.

`public override bool HasLoss { get; }` [#](#property-hasloss)

[TranslationReport.cs:58](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.GoogleWorkspace/TranslationReport.cs#L58)

Gets whether the translation omitted, approximated, or failed to preserve content.

## Inherited Properties

`public string Source { get; }` [#](#property-source)

Inherited from OfficeConversionReport

`public string Target { get; }` [#](#property-target)

Inherited from OfficeConversionReport

`public string? OutputPath { get; }` [#](#property-outputpath)

Inherited from OfficeConversionReport

`public long ItemsWritten { get; }` [#](#property-itemswritten)

Inherited from OfficeConversionReport

`public TimeSpan Elapsed { get; }` [#](#property-elapsed)

Inherited from OfficeConversionReport

`public IReadOnlyList<OfficeDiagnostic> Diagnostics { get; }` [#](#property-diagnostics)

Inherited from OfficeConversionReport

## Extension Methods

`public static IReadOnlyList<GoogleWorkspaceDiagnosticEntry> ToDiagnosticEntries(TranslationReport report)` [#](#extension-todiagnosticentries-officeimo-googleworkspace-translationreport)

[GoogleWorkspaceDiagnostics.cs:65](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.GoogleWorkspace/GoogleWorkspaceDiagnostics.cs#L65)

Converts every notice in a translation report to a structured diagnostic entry.

Parameters

**report OfficeIMO.GoogleWorkspace.TranslationReport required**

Report to convert.

Returns

`IReadOnlyList<GoogleWorkspaceDiagnosticEntry>` A snapshot preserving notice order and metadata.

<!-- PowerForge markdown artifact sha256:1984E05B1B84FF1031F6FC7E9A37086292009928D2F085629656A9E267822599 -->
