Update auto-generated bindings
[ldk-java] / src / main / java / org / ldk / structs / MonitorUpdateError.java
index b6589a9feaf8b32ebe938024c88ad18143a82326..aa425da91d960891cd793e1f537803c535ee7b28 100644 (file)
@@ -4,7 +4,16 @@ import org.ldk.impl.bindings;
 import org.ldk.enums.*;
 import org.ldk.util.*;
 import java.util.Arrays;
+import javax.annotation.Nullable;
 
+
+/**
+ * General Err type for ChannelMonitor actions. Generally, this implies that the data provided is
+ * inconsistent with the ChannelMonitor being called. eg for ChannelMonitor::update_monitor this
+ * means you tried to update a monitor for a different channel or the ChannelMonitorUpdate was
+ * corrupted.
+ * Contains a developer-readable error message.
+ */
 @SuppressWarnings("unchecked") // We correctly assign various generic arrays
 public class MonitorUpdateError extends CommonBase {
        MonitorUpdateError(Object _dummy, long ptr) { super(ptr); }
@@ -14,4 +23,40 @@ public class MonitorUpdateError extends CommonBase {
                if (ptr != 0) { bindings.MonitorUpdateError_free(ptr); }
        }
 
+       public String get_a() {
+               String ret = bindings.MonitorUpdateError_get_a(this.ptr);
+               return ret;
+       }
+
+       public void set_a(java.lang.String val) {
+               bindings.MonitorUpdateError_set_a(this.ptr, val);
+       }
+
+       /**
+        * Constructs a new MonitorUpdateError given each field
+        */
+       public static MonitorUpdateError of(java.lang.String a_arg) {
+               long ret = bindings.MonitorUpdateError_new(a_arg);
+               if (ret >= 0 && ret <= 4096) { return null; }
+               MonitorUpdateError ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new MonitorUpdateError(null, ret); }
+               ret_hu_conv.ptrs_to.add(ret_hu_conv);
+               return ret_hu_conv;
+       }
+
+       long clone_ptr() {
+               long ret = bindings.MonitorUpdateError_clone_ptr(this.ptr);
+               return ret;
+       }
+
+       /**
+        * Creates a copy of the MonitorUpdateError
+        */
+       public MonitorUpdateError clone() {
+               long ret = bindings.MonitorUpdateError_clone(this.ptr);
+               if (ret >= 0 && ret <= 4096) { return null; }
+               MonitorUpdateError ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new MonitorUpdateError(null, ret); }
+               ret_hu_conv.ptrs_to.add(this);
+               return ret_hu_conv;
+       }
+
 }