- // Skipped UnsignedNodeAnnouncement_set_rgb
- public byte[] get_alias(UnsignedNodeAnnouncement this_ptr) {
- byte[] ret = bindings.UnsignedNodeAnnouncement_get_alias(this_ptr.ptr & ~1);
- this.ptrs_to.add(this_ptr);
+ /**
+ * An alias, for UI purposes. This should be sanitized before use. There is no guarantee
+ * of uniqueness.
+ */
+ public void set_alias(byte[] val) {
+ bindings.UnsignedNodeAnnouncement_set_alias(this.ptr, val);
+ }
+
+ /**
+ * List of addresses on which this node is reachable
+ */
+ public void set_addresses(NetAddress[] val) {
+ bindings.UnsignedNodeAnnouncement_set_addresses(this.ptr, val != null ? Arrays.stream(val).mapToLong(val_conv_12 -> val_conv_12.ptr).toArray() : null);
+ }
+
+ /**
+ * Creates a copy of the UnsignedNodeAnnouncement
+ */
+ public UnsignedNodeAnnouncement clone() {
+ long ret = bindings.UnsignedNodeAnnouncement_clone(this.ptr);
+ if (ret >= 0 && ret <= 4096) { return null; }
+ UnsignedNodeAnnouncement ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new UnsignedNodeAnnouncement(null, ret); }
+ ret_hu_conv.ptrs_to.add(this);
+ return ret_hu_conv;
+ }
+
+ /**
+ * Serialize the UnsignedNodeAnnouncement object into a byte array which can be read by UnsignedNodeAnnouncement_read
+ */
+ public byte[] write() {
+ byte[] ret = bindings.UnsignedNodeAnnouncement_write(this.ptr);