LogEntry constructor
LogEntry({
- Any? protoPayload,
- String? textPayload,
- String? insertId,
- Struct? jsonPayload,
- HttpRequest? httpRequest,
- MonitoredResource? resource,
- Timestamp? timestamp,
- LogSeverity? severity,
- Iterable<
MapEntry< ? labels,String, String> > - String? logName,
- LogEntryOperation? operation,
- String? trace,
- LogEntrySourceLocation? sourceLocation,
- Timestamp? receiveTimestamp,
- String? spanId,
- bool? traceSampled,
- LogSplit? split,
Implementation
factory LogEntry({
$0.Any? protoPayload,
$core.String? textPayload,
$core.String? insertId,
$1.Struct? jsonPayload,
$2.HttpRequest? httpRequest,
$3.MonitoredResource? resource,
$4.Timestamp? timestamp,
$5.LogSeverity? severity,
$core.Iterable<$core.MapEntry<$core.String, $core.String>>? labels,
$core.String? logName,
LogEntryOperation? operation,
$core.String? trace,
LogEntrySourceLocation? sourceLocation,
$4.Timestamp? receiveTimestamp,
$core.String? spanId,
$core.bool? traceSampled,
LogSplit? split,
}) {
final result = create();
if (protoPayload != null) result.protoPayload = protoPayload;
if (textPayload != null) result.textPayload = textPayload;
if (insertId != null) result.insertId = insertId;
if (jsonPayload != null) result.jsonPayload = jsonPayload;
if (httpRequest != null) result.httpRequest = httpRequest;
if (resource != null) result.resource = resource;
if (timestamp != null) result.timestamp = timestamp;
if (severity != null) result.severity = severity;
if (labels != null) result.labels.addEntries(labels);
if (logName != null) result.logName = logName;
if (operation != null) result.operation = operation;
if (trace != null) result.trace = trace;
if (sourceLocation != null) result.sourceLocation = sourceLocation;
if (receiveTimestamp != null) result.receiveTimestamp = receiveTimestamp;
if (spanId != null) result.spanId = spanId;
if (traceSampled != null) result.traceSampled = traceSampled;
if (split != null) result.split = split;
return result;
}