- public byte[] get_chain_hash(QueryShortChannelIds this_ptr) {
- byte[] ret = bindings.QueryShortChannelIds_get_chain_hash(this_ptr == null ? 0 : this_ptr.ptr & ~1);
- this.ptrs_to.add(this_ptr);
- return ret;
+ /**
+ * The genesis hash of the blockchain being queried
+ */
+ public void set_chain_hash(byte[] val) {
+ bindings.QueryShortChannelIds_set_chain_hash(this.ptr, val);
+ }
+
+ /**
+ * The short_channel_ids that are being queried
+ */
+ public void set_short_channel_ids(long[] val) {
+ bindings.QueryShortChannelIds_set_short_channel_ids(this.ptr, val);
+ }
+
+ /**
+ * Constructs a new QueryShortChannelIds given each field
+ */
+ public static QueryShortChannelIds of(byte[] chain_hash_arg, long[] short_channel_ids_arg) {
+ long ret = bindings.QueryShortChannelIds_new(chain_hash_arg, short_channel_ids_arg);
+ if (ret >= 0 && ret <= 4096) { return null; }
+ QueryShortChannelIds ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new QueryShortChannelIds(null, ret); }
+ ret_hu_conv.ptrs_to.add(ret_hu_conv);
+ return ret_hu_conv;