API Reference
TranslationReport
Standard fidelity report shared across exporter packages.
Inheritance
- Object
- 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, Int32 count = 1, String? targetId = null) #VoidAdds a structured translation notice.
Parameters
- severity OfficeIMO.GoogleWorkspace.TranslationSeverity
- Impact of the notice.
- feature System.String
- Source feature to which the notice applies.
- message System.String
- Human-readable explanation.
- path System.String = ""
- Optional source-object path.
- code System.String? = null
- Stable diagnostic code, or null to derive one from feature.
- action OfficeIMO.GoogleWorkspace.TranslationAction = None
- Action selected for the feature.
- count System.Int32 = 1
- Number of equivalent occurrences represented by the notice; values below one become one.
- targetId System.String? = null
- Optional remote target identifier.
public Void AddUnique(TranslationSeverity severity, String feature, String message, String path = "", String? code = null, TranslationAction action = None, Int32 count = 1, String? targetId = null) #VoidAdds 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 System.String
- Source feature to which the notice applies.
- message System.String
- Human-readable explanation.
- path System.String = ""
- Optional source-object path.
- code System.String? = null
- Stable diagnostic code, or null to derive one from feature.
- action OfficeIMO.GoogleWorkspace.TranslationAction = None
- Action selected for the feature.
- count System.Int32 = 1
- Number of equivalent occurrences represented by the notice.
- targetId System.String? = null
- Optional remote target identifier.
public TranslationReport CreateReadOnlySnapshot() #TranslationReportCreates an independent read-only snapshot of the current notices.
public Void RequireNoLoss() #VoidThrows when the translation omitted, approximated, or failed to preserve content.
Inherited Methods
public virtual Boolean Equals(Object? obj) #BooleanParameters
- obj Object?
Properties
public IReadOnlyList<TranslationNotice> Notices { get; } #Gets the notices in the order in which translators recorded them.
public Boolean HasWarnings { get; } #Gets whether the report contains at least one warning or error.
public Boolean HasErrors { get; } #Gets whether the report contains at least one error.
public IReadOnlyList<OfficeConversionFidelityDiagnostic> FidelityDiagnostics { get; } #Gets immutable, category-preserving diagnostics for this translation stage.
public Boolean HasLoss { get; } #Gets whether the translation omitted, approximated, or failed to preserve content.
Extension Methods
public static IReadOnlyList<GoogleWorkspaceDiagnosticEntry> ToDiagnosticEntries(TranslationReport report) #IReadOnlyList<GoogleWorkspaceDiagnosticEntry>Converts every notice in a translation report to a structured diagnostic entry.
Parameters
- report OfficeIMO.GoogleWorkspace.TranslationReport
- Report to convert.
Returns
A snapshot preserving notice order and metadata.