Update auto-generated bindings
[ldk-java] / src / main / java / org / ldk / structs / Record.java
diff --git a/src/main/java/org/ldk/structs/Record.java b/src/main/java/org/ldk/structs/Record.java
new file mode 100644 (file)
index 0000000..deefa46
--- /dev/null
@@ -0,0 +1,114 @@
+package org.ldk.structs;
+
+import org.ldk.impl.bindings;
+import org.ldk.enums.*;
+import org.ldk.util.*;
+import java.util.Arrays;
+import javax.annotation.Nullable;
+
+
+/**
+ * A Record, unit of logging output with Metadata to enable filtering
+ * Module_path, file, line to inform on log's source
+ */
+@SuppressWarnings("unchecked") // We correctly assign various generic arrays
+public class Record extends CommonBase {
+       Record(Object _dummy, long ptr) { super(ptr); }
+       @Override @SuppressWarnings("deprecation")
+       protected void finalize() throws Throwable {
+               super.finalize();
+               if (ptr != 0) { bindings.Record_free(ptr); }
+       }
+
+       /**
+        * The verbosity level of the message.
+        */
+       public Level get_level() {
+               Level ret = bindings.Record_get_level(this.ptr);
+               return ret;
+       }
+
+       /**
+        * The verbosity level of the message.
+        */
+       public void set_level(org.ldk.enums.Level val) {
+               bindings.Record_set_level(this.ptr, val);
+       }
+
+       /**
+        * The message body.
+        */
+       public String get_args() {
+               String ret = bindings.Record_get_args(this.ptr);
+               return ret;
+       }
+
+       /**
+        * The message body.
+        */
+       public void set_args(java.lang.String val) {
+               bindings.Record_set_args(this.ptr, val);
+       }
+
+       /**
+        * The module path of the message.
+        */
+       public String get_module_path() {
+               String ret = bindings.Record_get_module_path(this.ptr);
+               return ret;
+       }
+
+       /**
+        * The module path of the message.
+        */
+       public void set_module_path(java.lang.String val) {
+               bindings.Record_set_module_path(this.ptr, val);
+       }
+
+       /**
+        * The source file containing the message.
+        */
+       public String get_file() {
+               String ret = bindings.Record_get_file(this.ptr);
+               return ret;
+       }
+
+       /**
+        * The source file containing the message.
+        */
+       public void set_file(java.lang.String val) {
+               bindings.Record_set_file(this.ptr, val);
+       }
+
+       /**
+        * The line containing the message.
+        */
+       public int get_line() {
+               int ret = bindings.Record_get_line(this.ptr);
+               return ret;
+       }
+
+       /**
+        * The line containing the message.
+        */
+       public void set_line(int val) {
+               bindings.Record_set_line(this.ptr, val);
+       }
+
+       long clone_ptr() {
+               long ret = bindings.Record_clone_ptr(this.ptr);
+               return ret;
+       }
+
+       /**
+        * Creates a copy of the Record
+        */
+       public Record clone() {
+               long ret = bindings.Record_clone(this.ptr);
+               if (ret >= 0 && ret <= 4096) { return null; }
+               Record ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new Record(null, ret); }
+               ret_hu_conv.ptrs_to.add(this);
+               return ret_hu_conv;
+       }
+
+}