The log entry payload, represented as a protocol buffer that is
expressed as a JSON object. The only accepted type currently is
[AuditLog][google.cloud.audit.AuditLog].
Optional. Resource name of the trace associated with the log entry, if any.
If this field contains a relative resource name, you can assume the name is
relative to //tracing.googleapis.com. Example:
projects/my-projectid/traces/06796866738c859f2f19b7cfb3214824
[[["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-09-04 UTC."],[[["\u003cp\u003eThis document provides reference documentation for the \u003ccode\u003eLogEntry\u003c/code\u003e class within the Google Cloud Service Control v1 API for .NET, with the latest version being 2.4.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eLogEntry\u003c/code\u003e class represents an individual log entry and implements several interfaces including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eIt contains various properties like \u003ccode\u003eName\u003c/code\u003e, \u003ccode\u003eInsertId\u003c/code\u003e, \u003ccode\u003eSeverity\u003c/code\u003e, and different types of payloads such as \u003ccode\u003eTextPayload\u003c/code\u003e, \u003ccode\u003eStructPayload\u003c/code\u003e, and \u003ccode\u003eProtoPayload\u003c/code\u003e that give information about a log entry.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eLogEntry\u003c/code\u003e can also contain optional information about HTTP requests, operations, source code locations, and tracing.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation covers the constructors and properties of the \u003ccode\u003eLogEntry\u003c/code\u003e class, including the ability to retrieve whether the "text_payload" field is set through \u003ccode\u003eHasTextPayload\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Service Control v1 API - Class LogEntry (2.4.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.4.0 (latest)](/dotnet/docs/reference/Google.Cloud.ServiceControl.V1/latest/Google.Cloud.ServiceControl.V1.LogEntry)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.ServiceControl.V1/2.3.0/Google.Cloud.ServiceControl.V1.LogEntry)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.ServiceControl.V1/2.2.0/Google.Cloud.ServiceControl.V1.LogEntry)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.ServiceControl.V1/2.1.0/Google.Cloud.ServiceControl.V1.LogEntry)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.ServiceControl.V1/2.0.0/Google.Cloud.ServiceControl.V1.LogEntry)\n- [1.4.0](/dotnet/docs/reference/Google.Cloud.ServiceControl.V1/1.4.0/Google.Cloud.ServiceControl.V1.LogEntry)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.ServiceControl.V1/1.3.0/Google.Cloud.ServiceControl.V1.LogEntry)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.ServiceControl.V1/1.2.0/Google.Cloud.ServiceControl.V1.LogEntry)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.ServiceControl.V1/1.1.0/Google.Cloud.ServiceControl.V1.LogEntry)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.ServiceControl.V1/1.0.0/Google.Cloud.ServiceControl.V1.LogEntry) \n\n public sealed class LogEntry : IMessage\u003cLogEntry\u003e, IEquatable\u003cLogEntry\u003e, IDeepCloneable\u003cLogEntry\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Service Control v1 API class LogEntry.\n\nAn individual log entry. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e LogEntry \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[LogEntry](/dotnet/docs/reference/Google.Cloud.ServiceControl.V1/latest/Google.Cloud.ServiceControl.V1.LogEntry), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[LogEntry](/dotnet/docs/reference/Google.Cloud.ServiceControl.V1/latest/Google.Cloud.ServiceControl.V1.LogEntry), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[LogEntry](/dotnet/docs/reference/Google.Cloud.ServiceControl.V1/latest/Google.Cloud.ServiceControl.V1.LogEntry), [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.ServiceControl.V1](/dotnet/docs/reference/Google.Cloud.ServiceControl.V1/latest/Google.Cloud.ServiceControl.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.ServiceControl.V1.dll\n\nConstructors\n------------\n\n### LogEntry()\n\n public LogEntry()\n\n### LogEntry(LogEntry)\n\n public LogEntry(LogEntry other)\n\nProperties\n----------\n\n### HasTextPayload\n\n public bool HasTextPayload { get; }\n\nGets whether the \"text_payload\" field is set\n\n### HttpRequest\n\n public HttpRequest HttpRequest { get; set; }\n\nOptional. Information about the HTTP request associated with this\nlog entry, if applicable.\n\n### InsertId\n\n public string InsertId { get; set; }\n\nA unique ID for the log entry used for deduplication. If omitted,\nthe implementation will generate one based on operation_id.\n\n### Labels\n\n public MapField\u003cstring, string\u003e Labels { get; }\n\nA set of user-defined (key, value) data that provides additional\ninformation about the log entry.\n\n### Name\n\n public string Name { get; set; }\n\nRequired. The log to which this log entry belongs. Examples: `\"syslog\"`,\n`\"book_log\"`.\n\n### Operation\n\n public LogEntryOperation Operation { get; set; }\n\nOptional. Information about an operation associated with the log entry, if\napplicable.\n\n### PayloadCase\n\n public LogEntry.PayloadOneofCase PayloadCase { get; }\n\n### ProtoPayload\n\n public Any ProtoPayload { get; set; }\n\nThe log entry payload, represented as a protocol buffer that is\nexpressed as a JSON object. The only accepted type currently is\n\\[AuditLog\\]\\[google.cloud.audit.AuditLog\\].\n\n### Severity\n\n public LogSeverity Severity { get; set; }\n\nThe severity of the log entry. The default value is\n`LogSeverity.DEFAULT`.\n\n### SourceLocation\n\n public LogEntrySourceLocation SourceLocation { get; set; }\n\nOptional. Source code location information associated with the log entry,\nif any.\n\n### StructPayload\n\n public Struct StructPayload { get; set; }\n\nThe log entry payload, represented as a structure that\nis expressed as a JSON object.\n\n### TextPayload\n\n public string TextPayload { get; set; }\n\nThe log entry payload, represented as a Unicode string (UTF-8).\n\n### Timestamp\n\n public Timestamp Timestamp { get; set; }\n\nThe time the event described by the log entry occurred. If\nomitted, defaults to operation start time.\n\n### Trace\n\n public string Trace { get; set; }\n\nOptional. Resource name of the trace associated with the log entry, if any.\nIf this field contains a relative resource name, you can assume the name is\nrelative to `//tracing.googleapis.com`. Example:\n`projects/my-projectid/traces/06796866738c859f2f19b7cfb3214824`"]]