- public void set_chain_hash(ReplyShortChannelIdsEnd this_ptr, byte[] val) {
- bindings.ReplyShortChannelIdsEnd_set_chain_hash(this_ptr == null ? 0 : this_ptr.ptr & ~1, val);
- this.ptrs_to.add(this_ptr);
+ /**
+ * Indicates if the query recipient maintains up-to-date channel
+ * information for the `chain_hash`
+ */
+ public void set_full_information(boolean val) {
+ bindings.ReplyShortChannelIdsEnd_set_full_information(this.ptr, val);
+ Reference.reachabilityFence(this);
+ Reference.reachabilityFence(val);
+ }
+
+ /**
+ * Constructs a new ReplyShortChannelIdsEnd given each field
+ */
+ public static ReplyShortChannelIdsEnd of(byte[] chain_hash_arg, boolean full_information_arg) {
+ long ret = bindings.ReplyShortChannelIdsEnd_new(InternalUtils.check_arr_len(chain_hash_arg, 32), full_information_arg);
+ Reference.reachabilityFence(chain_hash_arg);
+ Reference.reachabilityFence(full_information_arg);
+ if (ret >= 0 && ret <= 4096) { return null; }
+ org.ldk.structs.ReplyShortChannelIdsEnd ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.ReplyShortChannelIdsEnd(null, ret); }
+ if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.add(ret_hu_conv); };
+ return ret_hu_conv;