public sealed class CompilationDiagnostic : IMessage<CompilationDiagnostic>, IEquatable<CompilationDiagnostic>, IDeepCloneable<CompilationDiagnostic>, IBufferMessage, IMessage
Reference documentation and code samples for the Chronicle v1 API class CompilationDiagnostic.
CompilationDiagnostic represents a compilation diagnostic generated
during a rule's compilation, such as a compilation error or a compilation
warning.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[],[],null,["# Chronicle v1 API - Class CompilationDiagnostic (1.0.0-beta02)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.0-beta02 (latest)](/dotnet/docs/reference/Google.Cloud.Chronicle.V1/latest/Google.Cloud.Chronicle.V1.CompilationDiagnostic)\n- [1.0.0-beta01](/dotnet/docs/reference/Google.Cloud.Chronicle.V1/1.0.0-beta01/Google.Cloud.Chronicle.V1.CompilationDiagnostic) \n\n public sealed class CompilationDiagnostic : IMessage\u003cCompilationDiagnostic\u003e, IEquatable\u003cCompilationDiagnostic\u003e, IDeepCloneable\u003cCompilationDiagnostic\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Chronicle v1 API class CompilationDiagnostic.\n\nCompilationDiagnostic represents a compilation diagnostic generated\nduring a rule's compilation, such as a compilation error or a compilation\nwarning. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e CompilationDiagnostic \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[CompilationDiagnostic](/dotnet/docs/reference/Google.Cloud.Chronicle.V1/latest/Google.Cloud.Chronicle.V1.CompilationDiagnostic), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[CompilationDiagnostic](/dotnet/docs/reference/Google.Cloud.Chronicle.V1/latest/Google.Cloud.Chronicle.V1.CompilationDiagnostic), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[CompilationDiagnostic](/dotnet/docs/reference/Google.Cloud.Chronicle.V1/latest/Google.Cloud.Chronicle.V1.CompilationDiagnostic), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.Chronicle.V1](/dotnet/docs/reference/Google.Cloud.Chronicle.V1/latest/Google.Cloud.Chronicle.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.Chronicle.V1.dll\n\nConstructors\n------------\n\n### CompilationDiagnostic()\n\n public CompilationDiagnostic()\n\n### CompilationDiagnostic(CompilationDiagnostic)\n\n public CompilationDiagnostic(CompilationDiagnostic other)\n\nProperties\n----------\n\n### Message\n\n public string Message { get; set; }\n\nOutput only. The diagnostic message.\n\n### Position\n\n public CompilationPosition Position { get; set; }\n\nOutput only. The approximate position in the rule text associated with the\ncompilation diagnostic.\nCompilation Position may be empty.\n\n### Severity\n\n public CompilationDiagnostic.Types.Severity Severity { get; set; }\n\nOutput only. The severity of a rule's compilation diagnostic.\n\n### Uri\n\n public string Uri { get; set; }\n\nOutput only. Link to documentation that describes a diagnostic in more\ndetail."]]