# GoogleWorkspaceDiagnosticEntry

Structured diagnostic entry that callers can forward to their own logging pipeline.

Class 

`OfficeIMO.GoogleWorkspace`

**Namespace**

`OfficeIMO.GoogleWorkspace`

**Assembly**

`OfficeIMO.GoogleWorkspace`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

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

**Modifiers**

sealed

Structured diagnostic entry that callers can forward to their own logging pipeline.

## Inheritance

- object
- GoogleWorkspaceDiagnosticEntry

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

- Method [GoogleWorkspaceDiagnosticsExtensions.ToDiagnosticEntries](/api/google-workspace/officeimo-googleworkspace-googleworkspacediagnosticsextensions/#method-todiagnosticentries-officeimo-googleworkspace-translationreport)
- Extension method [GoogleWorkspaceExportException.ToDiagnosticEntries](/api/google-workspace/officeimo-googleworkspace-googleworkspaceexportexception/#extension-todiagnosticentries-officeimo-googleworkspace-googleworkspaceexportexception)
- Property [GoogleWorkspaceSessionOptions.DiagnosticSink](/api/google-workspace/officeimo-googleworkspace-googleworkspacesessionoptions/#property-diagnosticsink)
- Extension method [TranslationReport.ToDiagnosticEntries](/api/google-workspace/officeimo-googleworkspace-translationreport/#extension-todiagnosticentries-officeimo-googleworkspace-translationreport)

### Accepted by parameters 1

- Method [GoogleWorkspaceDiagnosticsDispatcher.Emit](/api/google-workspace/officeimo-googleworkspace-googleworkspacediagnosticsdispatcher/#method-emit-officeimo-googleworkspace-googleworkspacesessionoptions-officeimo-googleworkspace-googleworkspacediagnosticentry) parameter `entry`

Filter members 

Show inherited

## Constructors

`public GoogleWorkspaceDiagnosticEntry(TranslationSeverity severity, string feature, string message, string path = "", GoogleWorkspaceFailureKind? failureKind = null, string? code = null, TranslationAction action = None, int count = 1, string? targetId = null)` [#](#member-0f5d44766bcacbcea6b91a5a)

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

Creates a normalized structured diagnostic entry.

Parameters

**severity OfficeIMO.GoogleWorkspace.TranslationSeverity required**

Impact of the diagnostic.

**feature string required**

Feature that emitted the diagnostic.

**message string required**

Human-readable explanation.

**path string = "" optional**

Optional source-object path.

**failureKind OfficeIMO.GoogleWorkspace.GoogleWorkspaceFailureKind? = null optional**

Related export-failure category, when applicable.

**code string? = null optional**

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

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

Target action selected for the feature.

**count int = 1 optional**

Number of equivalent occurrences represented by the entry.

**targetId string? = null optional**

Optional remote target identifier.

## 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 Code { get; }` [#](#property-code)

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

Gets the stable machine-readable diagnostic code.

`public TranslationSeverity Severity { get; }` [#](#property-severity)

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

Gets the impact of the diagnostic.

`public string Feature { get; }` [#](#property-feature)

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

Gets the feature that emitted the diagnostic.

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

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

Gets the human-readable explanation.

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

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

Gets the source-object path, or an empty string when not applicable.

`public GoogleWorkspaceFailureKind? FailureKind { get; }` [#](#property-failurekind)

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

Gets the related export-failure category, when applicable.

`public TranslationAction Action { get; }` [#](#property-action)

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

Gets the target action selected for the feature.

`public int Count { get; }` [#](#property-count)

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

Gets the number of equivalent occurrences represented by the entry.

`public string? TargetId { get; }` [#](#property-targetid)

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

Gets the related remote target identifier, when available.

<!-- PowerForge markdown artifact sha256:5AF9693A6460B9A143CCD92B8C465B43753A3AE269F390B121AAAEBBD25F8CE9 -->
