[Java] Update auto-generated Java bindings to LDK 0.0.121
[ldk-java] / src / main / java / org / ldk / structs / Description.java
index 093a471e6407d127bed4bff9c5a2d95e0c27f3a9..1ce3581d2397c18798b8cab1d0798c4fda96e1fb 100644 (file)
@@ -85,12 +85,24 @@ public class Description extends CommonBase {
        }
 
        /**
-        * Returns the underlying description [`String`]
+        * Returns the underlying description [`UntrustedString`]
         */
-       public String into_inner() {
-               String ret = bindings.Description_into_inner(this.ptr);
+       public UntrustedString into_inner() {
+               long ret = bindings.Description_into_inner(this.ptr);
                Reference.reachabilityFence(this);
+               if (ret >= 0 && ret <= 4096) { return null; }
+               org.ldk.structs.UntrustedString ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.UntrustedString(null, ret); }
+               if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.add(this); };
                if (this != null) { this.ptrs_to.add(this); };
+               return ret_hu_conv;
+       }
+
+       /**
+        * Get the string representation of a Description object
+        */
+       public String to_str() {
+               String ret = bindings.Description_to_str(this.ptr);
+               Reference.reachabilityFence(this);
                return ret;
        }