2.6.0 (latest) 2.5.0 2.4.0 2.3.0 2.2.0 2.1.0 2.0.0 1.4.0 1.3.0 1.2.0 1.1.0 1.0.0

    public sealed class LogEntry : IMessage<LogEntry>, IEquatable<LogEntry>, IDeepCloneable<LogEntry>, IBufferMessage, IMessage

Reference documentation and code samples for the Service Control v1 API class LogEntry.

An individual log entry.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> LogEntry

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[LogEntry](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceControl.V1/latest/Google.Cloud.ServiceControl.V1.LogEntry.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[LogEntry](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceControl.V1/latest/Google.Cloud.ServiceControl.V1.LogEntry.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[LogEntry](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceControl.V1/latest/Google.Cloud.ServiceControl.V1.LogEntry.md.txt), [IBufferMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.md.txt), [IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.md.txt)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.ServiceControl.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceControl.V1/latest/Google.Cloud.ServiceControl.V1.md.txt)

## Assembly

Google.Cloud.ServiceControl.V1.dll

## Constructors

### LogEntry()

    public LogEntry()

### LogEntry(LogEntry)

    public LogEntry(LogEntry other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `LogEntry` |

## Properties

### HasTextPayload

    public bool HasTextPayload { get; }

Gets whether the "text_payload" field is set

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### HttpRequest

    public HttpRequest HttpRequest { get; set; }

Optional. Information about the HTTP request associated with this
log entry, if applicable.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `HttpRequest` |   |

### InsertId

    public string InsertId { get; set; }

A unique ID for the log entry used for deduplication. If omitted,
the implementation will generate one based on operation_id.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### Labels

    public MapField<string, string> Labels { get; }

A set of user-defined (key, value) data that provides additional
information about the log entry.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `MapFieldstringstring` |   |

### Name

    public string Name { get; set; }

Required. The log to which this log entry belongs. Examples: `"syslog"`,
`"book_log"`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### Operation

    public LogEntryOperation Operation { get; set; }

Optional. Information about an operation associated with the log entry, if
applicable.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `LogEntryOperation` |   |

### PayloadCase

    public LogEntry.PayloadOneofCase PayloadCase { get; }

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `LogEntryPayloadOneofCase` |   |

### ProtoPayload

    public Any ProtoPayload { get; set; }

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\].

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `Any` |   |

### Severity

    public LogSeverity Severity { get; set; }

The severity of the log entry. The default value is
`LogSeverity.DEFAULT`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `LogSeverity` |   |

### SourceLocation

    public LogEntrySourceLocation SourceLocation { get; set; }

Optional. Source code location information associated with the log entry,
if any.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `LogEntrySourceLocation` |   |

### StructPayload

    public Struct StructPayload { get; set; }

The log entry payload, represented as a structure that
is expressed as a JSON object.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `Struct` |   |

### TextPayload

    public string TextPayload { get; set; }

The log entry payload, represented as a Unicode string (UTF-8).

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### Timestamp

    public Timestamp Timestamp { get; set; }

The time the event described by the log entry occurred. If
omitted, defaults to operation start time.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `Timestamp` |   |

### Trace

    public string Trace { get; set; }

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`

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |