LogEntry constructor
LogEntry({
- Any? protoPayload,
- String? textPayload,
- String? insertId,
- Struct? jsonPayload,
- HttpRequest? httpRequest,
- MonitoredResource? resource,
- Timestamp? timestamp,
- LogSeverity? severity,
- Map<
String, String> ? labels, - String? logName,
- LogEntryOperation? operation,
- String? trace,
- LogEntrySourceLocation? sourceLocation,
- Timestamp? receiveTimestamp,
- String? spanId,
- bool? traceSampled,
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.Map<$core.String, $core.String>? labels,
$core.String? logName,
LogEntryOperation? operation,
$core.String? trace,
LogEntrySourceLocation? sourceLocation,
$4.Timestamp? receiveTimestamp,
$core.String? spanId,
$core.bool? traceSampled,
}) {
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.addAll(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;
}
return _result;
}