Update auto-generated bindings
[ldk-java] / src / main / java / org / ldk / structs / Record.java
1 package org.ldk.structs;
2
3 import org.ldk.impl.bindings;
4 import org.ldk.enums.*;
5 import org.ldk.util.*;
6 import java.util.Arrays;
7 import javax.annotation.Nullable;
8
9
10 /**
11  * A Record, unit of logging output with Metadata to enable filtering
12  * Module_path, file, line to inform on log's source
13  */
14 @SuppressWarnings("unchecked") // We correctly assign various generic arrays
15 public class Record extends CommonBase {
16         Record(Object _dummy, long ptr) { super(ptr); }
17         @Override @SuppressWarnings("deprecation")
18         protected void finalize() throws Throwable {
19                 super.finalize();
20                 if (ptr != 0) { bindings.Record_free(ptr); }
21         }
22
23         /**
24          * The verbosity level of the message.
25          */
26         public Level get_level() {
27                 Level ret = bindings.Record_get_level(this.ptr);
28                 return ret;
29         }
30
31         /**
32          * The verbosity level of the message.
33          */
34         public void set_level(org.ldk.enums.Level val) {
35                 bindings.Record_set_level(this.ptr, val);
36         }
37
38         /**
39          * The message body.
40          */
41         public String get_args() {
42                 String ret = bindings.Record_get_args(this.ptr);
43                 return ret;
44         }
45
46         /**
47          * The message body.
48          */
49         public void set_args(java.lang.String val) {
50                 bindings.Record_set_args(this.ptr, val);
51         }
52
53         /**
54          * The module path of the message.
55          */
56         public String get_module_path() {
57                 String ret = bindings.Record_get_module_path(this.ptr);
58                 return ret;
59         }
60
61         /**
62          * The module path of the message.
63          */
64         public void set_module_path(java.lang.String val) {
65                 bindings.Record_set_module_path(this.ptr, val);
66         }
67
68         /**
69          * The source file containing the message.
70          */
71         public String get_file() {
72                 String ret = bindings.Record_get_file(this.ptr);
73                 return ret;
74         }
75
76         /**
77          * The source file containing the message.
78          */
79         public void set_file(java.lang.String val) {
80                 bindings.Record_set_file(this.ptr, val);
81         }
82
83         /**
84          * The line containing the message.
85          */
86         public int get_line() {
87                 int ret = bindings.Record_get_line(this.ptr);
88                 return ret;
89         }
90
91         /**
92          * The line containing the message.
93          */
94         public void set_line(int val) {
95                 bindings.Record_set_line(this.ptr, val);
96         }
97
98         long clone_ptr() {
99                 long ret = bindings.Record_clone_ptr(this.ptr);
100                 return ret;
101         }
102
103         /**
104          * Creates a copy of the Record
105          */
106         public Record clone() {
107                 long ret = bindings.Record_clone(this.ptr);
108                 if (ret >= 0 && ret <= 4096) { return null; }
109                 Record ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new Record(null, ret); }
110                 ret_hu_conv.ptrs_to.add(this);
111                 return ret_hu_conv;
112         }
113
114 }