public sealed class SourceLocation : IMessage<SourceLocation>, IEquatable<SourceLocation>, IDeepCloneable<SourceLocation>, IBufferMessage, IMessage
Indicates a location in the source code of the service for which errors are
reported. functionName must be provided by the application when reporting
an error, unless the error report contains a message with a supported
exception stack trace. All fields are optional for the later case.
Human-readable name of a function or method.
The value can include optional context like the class or package name.
For example, my.package.MyClass.method in case of Java.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-21 UTC."],[[["The `SourceLocation` class indicates a specific location in the service's source code where errors are reported, and it is part of the `Google.Cloud.ErrorReporting.V1Beta1` namespace."],["This class inherits from `Object` and implements multiple interfaces including `IMessage`, `IEquatable`, `IDeepCloneable`, and `IBufferMessage`."],["The `SourceLocation` class has three key properties: `FilePath` which represents the source code filename, `FunctionName` which provides the human-readable name of a function, and `LineNumber` which indicates the specific line number within the file, starting at 1."],["Constructors are provided for creating a new instance of `SourceLocation`, either as an empty instance, or by using another instance of `SourceLocation` as a parameter."],["The `functionName` is a mandatory field when reporting an error unless there's a message containing a supported exception stack trace."]]],[]]