LogEntry constructor
LogEntry({
- Any? protoPayload,
- String? textPayload,
- String? insertId,
- Struct? structPayload,
- String? name,
- Timestamp? timestamp,
- LogSeverity? severity,
- Iterable<
MapEntry< ? labels,String, String> > - HttpRequest? httpRequest,
- String? trace,
- LogEntryOperation? operation,
- LogEntrySourceLocation? sourceLocation,
Implementation
factory LogEntry({
$0.Any? protoPayload,
$core.String? textPayload,
$core.String? insertId,
$1.Struct? structPayload,
$core.String? name,
$2.Timestamp? timestamp,
$4.LogSeverity? severity,
$core.Iterable<$core.MapEntry<$core.String, $core.String>>? labels,
$3.HttpRequest? httpRequest,
$core.String? trace,
LogEntryOperation? operation,
LogEntrySourceLocation? sourceLocation,
}) {
final result = create();
if (protoPayload != null) result.protoPayload = protoPayload;
if (textPayload != null) result.textPayload = textPayload;
if (insertId != null) result.insertId = insertId;
if (structPayload != null) result.structPayload = structPayload;
if (name != null) result.name = name;
if (timestamp != null) result.timestamp = timestamp;
if (severity != null) result.severity = severity;
if (labels != null) result.labels.addEntries(labels);
if (httpRequest != null) result.httpRequest = httpRequest;
if (trace != null) result.trace = trace;
if (operation != null) result.operation = operation;
if (sourceLocation != null) result.sourceLocation = sourceLocation;
return result;
}