LogEntry constructor

LogEntry({
  1. Any? protoPayload,
  2. String? textPayload,
  3. String? insertId,
  4. Struct? jsonPayload,
  5. HttpRequest? httpRequest,
  6. MonitoredResource? resource,
  7. Timestamp? timestamp,
  8. LogSeverity? severity,
  9. Iterable<MapEntry<String, String>>? labels,
  10. String? logName,
  11. LogEntryOperation? operation,
  12. String? trace,
  13. LogEntrySourceLocation? sourceLocation,
  14. Timestamp? receiveTimestamp,
  15. String? spanId,
  16. bool? traceSampled,
  17. 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;
}