+ super.finalize();
+ if (ptr != 0) { bindings.ClosingSigned_free(ptr); }
+ }
+
+ /**
+ * The channel ID
+ */
+ public byte[] get_channel_id() {
+ byte[] ret = bindings.ClosingSigned_get_channel_id(this.ptr);
+ Reference.reachabilityFence(this);
+ return ret;
+ }
+
+ /**
+ * The channel ID
+ */
+ public void set_channel_id(byte[] val) {
+ bindings.ClosingSigned_set_channel_id(this.ptr, InternalUtils.check_arr_len(val, 32));
+ Reference.reachabilityFence(this);
+ Reference.reachabilityFence(val);
+ }
+
+ /**
+ * The proposed total fee for the closing transaction
+ */
+ public long get_fee_satoshis() {
+ long ret = bindings.ClosingSigned_get_fee_satoshis(this.ptr);
+ Reference.reachabilityFence(this);
+ return ret;
+ }
+
+ /**
+ * The proposed total fee for the closing transaction
+ */
+ public void set_fee_satoshis(long val) {
+ bindings.ClosingSigned_set_fee_satoshis(this.ptr, val);
+ Reference.reachabilityFence(this);
+ Reference.reachabilityFence(val);
+ }
+
+ /**
+ * A signature on the closing transaction
+ */
+ public byte[] get_signature() {
+ byte[] ret = bindings.ClosingSigned_get_signature(this.ptr);
+ Reference.reachabilityFence(this);
+ return ret;
+ }
+
+ /**
+ * A signature on the closing transaction
+ */
+ public void set_signature(byte[] val) {
+ bindings.ClosingSigned_set_signature(this.ptr, InternalUtils.check_arr_len(val, 64));
+ Reference.reachabilityFence(this);
+ Reference.reachabilityFence(val);
+ }
+
+ /**
+ * The minimum and maximum fees which the sender is willing to accept, provided only by new
+ * nodes.
+ *
+ * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None
+ */
+ @Nullable
+ public ClosingSignedFeeRange get_fee_range() {
+ long ret = bindings.ClosingSigned_get_fee_range(this.ptr);
+ Reference.reachabilityFence(this);
+ if (ret >= 0 && ret <= 4096) { return null; }
+ ClosingSignedFeeRange ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new ClosingSignedFeeRange(null, ret); }
+ ret_hu_conv.ptrs_to.add(this);
+ return ret_hu_conv;
+ }
+
+ /**
+ * The minimum and maximum fees which the sender is willing to accept, provided only by new
+ * nodes.
+ *
+ * Note that val (or a relevant inner pointer) may be NULL or all-0s to represent None
+ */
+ public void set_fee_range(@Nullable ClosingSignedFeeRange val) {
+ bindings.ClosingSigned_set_fee_range(this.ptr, val == null ? 0 : val.ptr & ~1);
+ Reference.reachabilityFence(this);
+ Reference.reachabilityFence(val);