mdk_tracing.protocol.LogEvent Maven / Gradle / Ivy
/* Quark 1.0.452 run at 2016-11-11 16:09:46.008093 */
package mdk_tracing.protocol;
public class LogEvent extends mdk_protocol.Serializable implements mdk_protocol.AckablePayload, io.datawire.quark.runtime.QObject {
public static String _json_type = "log";
public static quark.reflect.Class mdk_tracing_protocol_LogEvent_ref = datawire_mdk_md.Root.mdk_tracing_protocol_LogEvent_md;
/**
* Shared context
*/
public mdk_protocol.SharedContext context;
/**
* The timestamp When did this happen? This is stored as
* milliseconds since the Unix epoch, and is filled in
* by the client.
*
*/
public Long timestamp;
/**
* A string identifying the node from which this message originates.
*/
public String node;
/**
* Log level
*/
public String level;
/**
* Log category
*/
public String category;
/**
* Describes the type of content contained in the text field. This is a mime type.
*/
public String contentType;
/**
* The content of the log message.
*/
public String text;
public LogEvent() {
super();
}
public Long getTimestamp() {
return (this).timestamp;
}
public String toString() {
return (((((((((((((("");
}
public String _getClass() {
return "mdk_tracing.protocol.LogEvent";
}
public Object _getField(String name) {
if ((name)==("_json_type") || ((Object)(name) != null && ((Object) (name)).equals("_json_type"))) {
return LogEvent._json_type;
}
if ((name)==("context") || ((Object)(name) != null && ((Object) (name)).equals("context"))) {
return (this).context;
}
if ((name)==("timestamp") || ((Object)(name) != null && ((Object) (name)).equals("timestamp"))) {
return (this).timestamp;
}
if ((name)==("node") || ((Object)(name) != null && ((Object) (name)).equals("node"))) {
return (this).node;
}
if ((name)==("level") || ((Object)(name) != null && ((Object) (name)).equals("level"))) {
return (this).level;
}
if ((name)==("category") || ((Object)(name) != null && ((Object) (name)).equals("category"))) {
return (this).category;
}
if ((name)==("contentType") || ((Object)(name) != null && ((Object) (name)).equals("contentType"))) {
return (this).contentType;
}
if ((name)==("text") || ((Object)(name) != null && ((Object) (name)).equals("text"))) {
return (this).text;
}
return null;
}
public void _setField(String name, Object value) {
if ((name)==("_json_type") || ((Object)(name) != null && ((Object) (name)).equals("_json_type"))) {
LogEvent._json_type = (String) (value);
}
if ((name)==("context") || ((Object)(name) != null && ((Object) (name)).equals("context"))) {
(this).context = (mdk_protocol.SharedContext) (value);
}
if ((name)==("timestamp") || ((Object)(name) != null && ((Object) (name)).equals("timestamp"))) {
(this).timestamp = (Long) (value);
}
if ((name)==("node") || ((Object)(name) != null && ((Object) (name)).equals("node"))) {
(this).node = (String) (value);
}
if ((name)==("level") || ((Object)(name) != null && ((Object) (name)).equals("level"))) {
(this).level = (String) (value);
}
if ((name)==("category") || ((Object)(name) != null && ((Object) (name)).equals("category"))) {
(this).category = (String) (value);
}
if ((name)==("contentType") || ((Object)(name) != null && ((Object) (name)).equals("contentType"))) {
(this).contentType = (String) (value);
}
if ((name)==("text") || ((Object)(name) != null && ((Object) (name)).equals("text"))) {
(this).text = (String) (value);
}
}
}