TranslationReport
OfficeIMO.GoogleWorkspace
Standard fidelity report shared across exporter packages.
Inheritance
- OfficeConversionReport
- TranslationReport
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
Accepted by parameters 19
- Constructor GoogleWorkspaceConflictException.GoogleWorkspaceConflictException
- Method GoogleWorkspaceDiagnosticsDispatcher.Add
- Method GoogleWorkspaceDiagnosticsDispatcher.AddUnique
- Method GoogleWorkspaceDiagnosticsExtensions.ToDiagnosticEntries
- Constructor GoogleWorkspaceExportCanceledException.GoogleWorkspaceExportCanceledException
- Constructor GoogleWorkspaceExportException.GoogleWorkspaceExportException
- Method GoogleWorkspaceFailureDiagnostics.CreateAmbiguousMutationFailure
- Method GoogleWorkspaceFailureDiagnostics.CreateApiFailure
- Method GoogleWorkspaceFailureDiagnostics.CreateCanceledFailure
- Method GoogleWorkspaceFailureDiagnostics.CreateRequestTimeoutFailure
- Method GoogleWorkspaceFailureDiagnostics.CreateTokenAcquisitionFailure
- Method GoogleWorkspaceHttpTransport.SendAsync``1
- Method GoogleWorkspaceHttpTransport.SendBytesAsync
- Method GoogleWorkspaceHttpTransport.SendJsonAsync``1
- Method GoogleWorkspaceHttpTransport.SendJsonAsync``2
- Method GoogleWorkspaceHttpTransport.SendRawAsync
- Method GoogleWorkspacePreflight.Validate
- Constructor GoogleWorkspacePreflightException.GoogleWorkspacePreflightException
- Extension method TranslationReport.ToDiagnosticEntries
Constructors
Methods
public void Add(TranslationSeverity severity, string feature, string message, string path = "", string? code = null, TranslationAction action = None, int count = 1, string? targetId = null) #Adds a structured translation notice.
Parameters
- severity OfficeIMO.GoogleWorkspace.TranslationSeverity
- Impact of the notice.
- feature string
- Source feature to which the notice applies.
- message string
- Human-readable explanation.
- path string = ""
- Optional source-object path.
- code string? = null
- Stable diagnostic code, or null to derive one from feature.
- action OfficeIMO.GoogleWorkspace.TranslationAction = None
- Action selected for the feature.
- count int = 1
- Number of equivalent occurrences represented by the notice; values below one become one.
- targetId string? = null
- 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) #Adds a notice unless the report already contains the same severity, code, feature, message, and path.
Parameters
- severity OfficeIMO.GoogleWorkspace.TranslationSeverity
- Impact of the notice.
- feature string
- Source feature to which the notice applies.
- message string
- Human-readable explanation.
- path string = ""
- Optional source-object path.
- code string? = null
- Stable diagnostic code, or null to derive one from feature.
- action OfficeIMO.GoogleWorkspace.TranslationAction = None
- Action selected for the feature.
- count int = 1
- Number of equivalent occurrences represented by the notice.
- targetId string? = null
- Optional remote target identifier.
public TranslationReport CreateReadOnlySnapshot() #Creates an independent read-only snapshot of the current notices.
Returns
TranslationReportInherited Methods
public void ThrowIfLoss() #Properties
public IReadOnlyList<TranslationNotice> Notices { get; } #Gets the notices in the order in which translators recorded them.
public bool HasWarnings { get; } #Gets whether the report contains at least one warning or error.
public bool HasErrors { get; } #Gets whether the report contains at least one error.
public override bool HasLoss { get; } #Gets whether the translation omitted, approximated, or failed to preserve content.
Inherited Properties
public string Source { get; } #public string Target { get; } #public string? OutputPath { get; } #public long ItemsWritten { get; } #public TimeSpan Elapsed { get; } #public IReadOnlyList<OfficeDiagnostic> Diagnostics { get; } #Extension Methods
public static IReadOnlyList<GoogleWorkspaceDiagnosticEntry> ToDiagnosticEntries(TranslationReport report) #Converts every notice in a translation report to a structured diagnostic entry.
Parameters
- report OfficeIMO.GoogleWorkspace.TranslationReport
- Report to convert.
Returns
IReadOnlyList<GoogleWorkspaceDiagnosticEntry> A snapshot preserving notice order and metadata.