[C#] Update auto-generated C# bindings
[ldk-java] / c_sharp / src / org / ldk / structs / NodeFeatures.cs
1 using org.ldk.impl;
2 using org.ldk.enums;
3 using org.ldk.util;
4 using System;
5
6 namespace org { namespace ldk { namespace structs {
7
8
9 /**
10  * Features used within a `node_announcement` message.
11  */
12 public class NodeFeatures : CommonBase {
13         internal NodeFeatures(object _dummy, long ptr) : base(ptr) { }
14         ~NodeFeatures() {
15                 if (ptr != 0) { bindings.NodeFeatures_free(ptr); }
16         }
17
18         /**
19          * Checks if two NodeFeaturess contain equal inner contents.
20          * This ignores pointers and is_owned flags and looks at the values in fields.
21          * Two objects with NULL inner values will be considered "equal" here.
22          */
23         public bool eq(org.ldk.structs.NodeFeatures b) {
24                 bool ret = bindings.NodeFeatures_eq(this.ptr, b == null ? 0 : b.ptr);
25                 GC.KeepAlive(this);
26                 GC.KeepAlive(b);
27                 if (this != null) { this.ptrs_to.AddLast(b); };
28                 return ret;
29         }
30
31         public override bool Equals(object o) {
32                 if (!(o is NodeFeatures)) return false;
33                 return this.eq((NodeFeatures)o);
34         }
35         internal long clone_ptr() {
36                 long ret = bindings.NodeFeatures_clone_ptr(this.ptr);
37                 GC.KeepAlive(this);
38                 return ret;
39         }
40
41         /**
42          * Creates a copy of the NodeFeatures
43          */
44         public NodeFeatures clone() {
45                 long ret = bindings.NodeFeatures_clone(this.ptr);
46                 GC.KeepAlive(this);
47                 if (ret >= 0 && ret <= 4096) { return null; }
48                 org.ldk.structs.NodeFeatures ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.NodeFeatures(null, ret); }
49                 if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(this); };
50                 return ret_hu_conv;
51         }
52
53         /**
54          * Generates a non-cryptographic 64-bit hash of the NodeFeatures.
55          */
56         public long hash() {
57                 long ret = bindings.NodeFeatures_hash(this.ptr);
58                 GC.KeepAlive(this);
59                 return ret;
60         }
61
62         public override int GetHashCode() {
63                 return (int)this.hash();
64         }
65         /**
66          * Create a blank Features with no features set
67          */
68         public static NodeFeatures empty() {
69                 long ret = bindings.NodeFeatures_empty();
70                 if (ret >= 0 && ret <= 4096) { return null; }
71                 org.ldk.structs.NodeFeatures ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.NodeFeatures(null, ret); }
72                 if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); };
73                 return ret_hu_conv;
74         }
75
76         /**
77          * Returns true if this `Features` object contains required features unknown by `other`.
78          */
79         public bool requires_unknown_bits_from(org.ldk.structs.NodeFeatures other) {
80                 bool ret = bindings.NodeFeatures_requires_unknown_bits_from(this.ptr, other == null ? 0 : other.ptr);
81                 GC.KeepAlive(this);
82                 GC.KeepAlive(other);
83                 if (this != null) { this.ptrs_to.AddLast(other); };
84                 return ret;
85         }
86
87         /**
88          * Returns true if this `Features` object contains unknown feature flags which are set as
89          * \"required\".
90          */
91         public bool requires_unknown_bits() {
92                 bool ret = bindings.NodeFeatures_requires_unknown_bits(this.ptr);
93                 GC.KeepAlive(this);
94                 return ret;
95         }
96
97         /**
98          * Sets a required feature bit. Errors if `bit` is outside the feature range as defined
99          * by [BOLT 9].
100          * 
101          * Note: Required bits are even. If an odd bit is given, then the corresponding even bit will
102          * be set instead (i.e., `bit - 1`).
103          * 
104          * [BOLT 9]: https://github.com/lightning/bolts/blob/master/09-features.md
105          */
106         public Result_NoneNoneZ set_required_feature_bit(long bit) {
107                 long ret = bindings.NodeFeatures_set_required_feature_bit(this.ptr, bit);
108                 GC.KeepAlive(this);
109                 GC.KeepAlive(bit);
110                 if (ret >= 0 && ret <= 4096) { return null; }
111                 Result_NoneNoneZ ret_hu_conv = Result_NoneNoneZ.constr_from_ptr(ret);
112                 return ret_hu_conv;
113         }
114
115         /**
116          * Sets an optional feature bit. Errors if `bit` is outside the feature range as defined
117          * by [BOLT 9].
118          * 
119          * Note: Optional bits are odd. If an even bit is given, then the corresponding odd bit will be
120          * set instead (i.e., `bit + 1`).
121          * 
122          * [BOLT 9]: https://github.com/lightning/bolts/blob/master/09-features.md
123          */
124         public Result_NoneNoneZ set_optional_feature_bit(long bit) {
125                 long ret = bindings.NodeFeatures_set_optional_feature_bit(this.ptr, bit);
126                 GC.KeepAlive(this);
127                 GC.KeepAlive(bit);
128                 if (ret >= 0 && ret <= 4096) { return null; }
129                 Result_NoneNoneZ ret_hu_conv = Result_NoneNoneZ.constr_from_ptr(ret);
130                 return ret_hu_conv;
131         }
132
133         /**
134          * Sets a required custom feature bit. Errors if `bit` is outside the custom range as defined
135          * by [bLIP 2] or if it is a known `T` feature.
136          * 
137          * Note: Required bits are even. If an odd bit is given, then the corresponding even bit will
138          * be set instead (i.e., `bit - 1`).
139          * 
140          * [bLIP 2]: https://github.com/lightning/blips/blob/master/blip-0002.md#feature-bits
141          */
142         public Result_NoneNoneZ set_required_custom_bit(long bit) {
143                 long ret = bindings.NodeFeatures_set_required_custom_bit(this.ptr, bit);
144                 GC.KeepAlive(this);
145                 GC.KeepAlive(bit);
146                 if (ret >= 0 && ret <= 4096) { return null; }
147                 Result_NoneNoneZ ret_hu_conv = Result_NoneNoneZ.constr_from_ptr(ret);
148                 return ret_hu_conv;
149         }
150
151         /**
152          * Sets an optional custom feature bit. Errors if `bit` is outside the custom range as defined
153          * by [bLIP 2] or if it is a known `T` feature.
154          * 
155          * Note: Optional bits are odd. If an even bit is given, then the corresponding odd bit will be
156          * set instead (i.e., `bit + 1`).
157          * 
158          * [bLIP 2]: https://github.com/lightning/blips/blob/master/blip-0002.md#feature-bits
159          */
160         public Result_NoneNoneZ set_optional_custom_bit(long bit) {
161                 long ret = bindings.NodeFeatures_set_optional_custom_bit(this.ptr, bit);
162                 GC.KeepAlive(this);
163                 GC.KeepAlive(bit);
164                 if (ret >= 0 && ret <= 4096) { return null; }
165                 Result_NoneNoneZ ret_hu_conv = Result_NoneNoneZ.constr_from_ptr(ret);
166                 return ret_hu_conv;
167         }
168
169         /**
170          * Serialize the NodeFeatures object into a byte array which can be read by NodeFeatures_read
171          */
172         public byte[] write() {
173                 long ret = bindings.NodeFeatures_write(this.ptr);
174                 GC.KeepAlive(this);
175                 if (ret >= 0 && ret <= 4096) { return null; }
176                 byte[] ret_conv = InternalUtils.decodeUint8Array(ret);
177                 return ret_conv;
178         }
179
180         /**
181          * Read a NodeFeatures from a byte array, created by NodeFeatures_write
182          */
183         public static Result_NodeFeaturesDecodeErrorZ read(byte[] ser) {
184                 long ret = bindings.NodeFeatures_read(InternalUtils.encodeUint8Array(ser));
185                 GC.KeepAlive(ser);
186                 if (ret >= 0 && ret <= 4096) { return null; }
187                 Result_NodeFeaturesDecodeErrorZ ret_hu_conv = Result_NodeFeaturesDecodeErrorZ.constr_from_ptr(ret);
188                 return ret_hu_conv;
189         }
190
191         /**
192          * Set this feature as optional.
193          */
194         public void set_data_loss_protect_optional() {
195                 bindings.NodeFeatures_set_data_loss_protect_optional(this.ptr);
196                 GC.KeepAlive(this);
197         }
198
199         /**
200          * Set this feature as required.
201          */
202         public void set_data_loss_protect_required() {
203                 bindings.NodeFeatures_set_data_loss_protect_required(this.ptr);
204                 GC.KeepAlive(this);
205         }
206
207         /**
208          * Checks if this feature is supported.
209          */
210         public bool supports_data_loss_protect() {
211                 bool ret = bindings.NodeFeatures_supports_data_loss_protect(this.ptr);
212                 GC.KeepAlive(this);
213                 return ret;
214         }
215
216         /**
217          * Checks if this feature is required.
218          */
219         public bool requires_data_loss_protect() {
220                 bool ret = bindings.NodeFeatures_requires_data_loss_protect(this.ptr);
221                 GC.KeepAlive(this);
222                 return ret;
223         }
224
225         /**
226          * Set this feature as optional.
227          */
228         public void set_upfront_shutdown_script_optional() {
229                 bindings.NodeFeatures_set_upfront_shutdown_script_optional(this.ptr);
230                 GC.KeepAlive(this);
231         }
232
233         /**
234          * Set this feature as required.
235          */
236         public void set_upfront_shutdown_script_required() {
237                 bindings.NodeFeatures_set_upfront_shutdown_script_required(this.ptr);
238                 GC.KeepAlive(this);
239         }
240
241         /**
242          * Checks if this feature is supported.
243          */
244         public bool supports_upfront_shutdown_script() {
245                 bool ret = bindings.NodeFeatures_supports_upfront_shutdown_script(this.ptr);
246                 GC.KeepAlive(this);
247                 return ret;
248         }
249
250         /**
251          * Checks if this feature is required.
252          */
253         public bool requires_upfront_shutdown_script() {
254                 bool ret = bindings.NodeFeatures_requires_upfront_shutdown_script(this.ptr);
255                 GC.KeepAlive(this);
256                 return ret;
257         }
258
259         /**
260          * Set this feature as optional.
261          */
262         public void set_gossip_queries_optional() {
263                 bindings.NodeFeatures_set_gossip_queries_optional(this.ptr);
264                 GC.KeepAlive(this);
265         }
266
267         /**
268          * Set this feature as required.
269          */
270         public void set_gossip_queries_required() {
271                 bindings.NodeFeatures_set_gossip_queries_required(this.ptr);
272                 GC.KeepAlive(this);
273         }
274
275         /**
276          * Checks if this feature is supported.
277          */
278         public bool supports_gossip_queries() {
279                 bool ret = bindings.NodeFeatures_supports_gossip_queries(this.ptr);
280                 GC.KeepAlive(this);
281                 return ret;
282         }
283
284         /**
285          * Checks if this feature is required.
286          */
287         public bool requires_gossip_queries() {
288                 bool ret = bindings.NodeFeatures_requires_gossip_queries(this.ptr);
289                 GC.KeepAlive(this);
290                 return ret;
291         }
292
293         /**
294          * Set this feature as optional.
295          */
296         public void set_variable_length_onion_optional() {
297                 bindings.NodeFeatures_set_variable_length_onion_optional(this.ptr);
298                 GC.KeepAlive(this);
299         }
300
301         /**
302          * Set this feature as required.
303          */
304         public void set_variable_length_onion_required() {
305                 bindings.NodeFeatures_set_variable_length_onion_required(this.ptr);
306                 GC.KeepAlive(this);
307         }
308
309         /**
310          * Checks if this feature is supported.
311          */
312         public bool supports_variable_length_onion() {
313                 bool ret = bindings.NodeFeatures_supports_variable_length_onion(this.ptr);
314                 GC.KeepAlive(this);
315                 return ret;
316         }
317
318         /**
319          * Checks if this feature is required.
320          */
321         public bool requires_variable_length_onion() {
322                 bool ret = bindings.NodeFeatures_requires_variable_length_onion(this.ptr);
323                 GC.KeepAlive(this);
324                 return ret;
325         }
326
327         /**
328          * Set this feature as optional.
329          */
330         public void set_static_remote_key_optional() {
331                 bindings.NodeFeatures_set_static_remote_key_optional(this.ptr);
332                 GC.KeepAlive(this);
333         }
334
335         /**
336          * Set this feature as required.
337          */
338         public void set_static_remote_key_required() {
339                 bindings.NodeFeatures_set_static_remote_key_required(this.ptr);
340                 GC.KeepAlive(this);
341         }
342
343         /**
344          * Checks if this feature is supported.
345          */
346         public bool supports_static_remote_key() {
347                 bool ret = bindings.NodeFeatures_supports_static_remote_key(this.ptr);
348                 GC.KeepAlive(this);
349                 return ret;
350         }
351
352         /**
353          * Checks if this feature is required.
354          */
355         public bool requires_static_remote_key() {
356                 bool ret = bindings.NodeFeatures_requires_static_remote_key(this.ptr);
357                 GC.KeepAlive(this);
358                 return ret;
359         }
360
361         /**
362          * Set this feature as optional.
363          */
364         public void set_payment_secret_optional() {
365                 bindings.NodeFeatures_set_payment_secret_optional(this.ptr);
366                 GC.KeepAlive(this);
367         }
368
369         /**
370          * Set this feature as required.
371          */
372         public void set_payment_secret_required() {
373                 bindings.NodeFeatures_set_payment_secret_required(this.ptr);
374                 GC.KeepAlive(this);
375         }
376
377         /**
378          * Checks if this feature is supported.
379          */
380         public bool supports_payment_secret() {
381                 bool ret = bindings.NodeFeatures_supports_payment_secret(this.ptr);
382                 GC.KeepAlive(this);
383                 return ret;
384         }
385
386         /**
387          * Checks if this feature is required.
388          */
389         public bool requires_payment_secret() {
390                 bool ret = bindings.NodeFeatures_requires_payment_secret(this.ptr);
391                 GC.KeepAlive(this);
392                 return ret;
393         }
394
395         /**
396          * Set this feature as optional.
397          */
398         public void set_basic_mpp_optional() {
399                 bindings.NodeFeatures_set_basic_mpp_optional(this.ptr);
400                 GC.KeepAlive(this);
401         }
402
403         /**
404          * Set this feature as required.
405          */
406         public void set_basic_mpp_required() {
407                 bindings.NodeFeatures_set_basic_mpp_required(this.ptr);
408                 GC.KeepAlive(this);
409         }
410
411         /**
412          * Checks if this feature is supported.
413          */
414         public bool supports_basic_mpp() {
415                 bool ret = bindings.NodeFeatures_supports_basic_mpp(this.ptr);
416                 GC.KeepAlive(this);
417                 return ret;
418         }
419
420         /**
421          * Checks if this feature is required.
422          */
423         public bool requires_basic_mpp() {
424                 bool ret = bindings.NodeFeatures_requires_basic_mpp(this.ptr);
425                 GC.KeepAlive(this);
426                 return ret;
427         }
428
429         /**
430          * Set this feature as optional.
431          */
432         public void set_wumbo_optional() {
433                 bindings.NodeFeatures_set_wumbo_optional(this.ptr);
434                 GC.KeepAlive(this);
435         }
436
437         /**
438          * Set this feature as required.
439          */
440         public void set_wumbo_required() {
441                 bindings.NodeFeatures_set_wumbo_required(this.ptr);
442                 GC.KeepAlive(this);
443         }
444
445         /**
446          * Checks if this feature is supported.
447          */
448         public bool supports_wumbo() {
449                 bool ret = bindings.NodeFeatures_supports_wumbo(this.ptr);
450                 GC.KeepAlive(this);
451                 return ret;
452         }
453
454         /**
455          * Checks if this feature is required.
456          */
457         public bool requires_wumbo() {
458                 bool ret = bindings.NodeFeatures_requires_wumbo(this.ptr);
459                 GC.KeepAlive(this);
460                 return ret;
461         }
462
463         /**
464          * Set this feature as optional.
465          */
466         public void set_anchors_nonzero_fee_htlc_tx_optional() {
467                 bindings.NodeFeatures_set_anchors_nonzero_fee_htlc_tx_optional(this.ptr);
468                 GC.KeepAlive(this);
469         }
470
471         /**
472          * Set this feature as required.
473          */
474         public void set_anchors_nonzero_fee_htlc_tx_required() {
475                 bindings.NodeFeatures_set_anchors_nonzero_fee_htlc_tx_required(this.ptr);
476                 GC.KeepAlive(this);
477         }
478
479         /**
480          * Checks if this feature is supported.
481          */
482         public bool supports_anchors_nonzero_fee_htlc_tx() {
483                 bool ret = bindings.NodeFeatures_supports_anchors_nonzero_fee_htlc_tx(this.ptr);
484                 GC.KeepAlive(this);
485                 return ret;
486         }
487
488         /**
489          * Checks if this feature is required.
490          */
491         public bool requires_anchors_nonzero_fee_htlc_tx() {
492                 bool ret = bindings.NodeFeatures_requires_anchors_nonzero_fee_htlc_tx(this.ptr);
493                 GC.KeepAlive(this);
494                 return ret;
495         }
496
497         /**
498          * Set this feature as optional.
499          */
500         public void set_anchors_zero_fee_htlc_tx_optional() {
501                 bindings.NodeFeatures_set_anchors_zero_fee_htlc_tx_optional(this.ptr);
502                 GC.KeepAlive(this);
503         }
504
505         /**
506          * Set this feature as required.
507          */
508         public void set_anchors_zero_fee_htlc_tx_required() {
509                 bindings.NodeFeatures_set_anchors_zero_fee_htlc_tx_required(this.ptr);
510                 GC.KeepAlive(this);
511         }
512
513         /**
514          * Checks if this feature is supported.
515          */
516         public bool supports_anchors_zero_fee_htlc_tx() {
517                 bool ret = bindings.NodeFeatures_supports_anchors_zero_fee_htlc_tx(this.ptr);
518                 GC.KeepAlive(this);
519                 return ret;
520         }
521
522         /**
523          * Checks if this feature is required.
524          */
525         public bool requires_anchors_zero_fee_htlc_tx() {
526                 bool ret = bindings.NodeFeatures_requires_anchors_zero_fee_htlc_tx(this.ptr);
527                 GC.KeepAlive(this);
528                 return ret;
529         }
530
531         /**
532          * Set this feature as optional.
533          */
534         public void set_route_blinding_optional() {
535                 bindings.NodeFeatures_set_route_blinding_optional(this.ptr);
536                 GC.KeepAlive(this);
537         }
538
539         /**
540          * Set this feature as required.
541          */
542         public void set_route_blinding_required() {
543                 bindings.NodeFeatures_set_route_blinding_required(this.ptr);
544                 GC.KeepAlive(this);
545         }
546
547         /**
548          * Checks if this feature is supported.
549          */
550         public bool supports_route_blinding() {
551                 bool ret = bindings.NodeFeatures_supports_route_blinding(this.ptr);
552                 GC.KeepAlive(this);
553                 return ret;
554         }
555
556         /**
557          * Checks if this feature is required.
558          */
559         public bool requires_route_blinding() {
560                 bool ret = bindings.NodeFeatures_requires_route_blinding(this.ptr);
561                 GC.KeepAlive(this);
562                 return ret;
563         }
564
565         /**
566          * Set this feature as optional.
567          */
568         public void set_shutdown_any_segwit_optional() {
569                 bindings.NodeFeatures_set_shutdown_any_segwit_optional(this.ptr);
570                 GC.KeepAlive(this);
571         }
572
573         /**
574          * Set this feature as required.
575          */
576         public void set_shutdown_any_segwit_required() {
577                 bindings.NodeFeatures_set_shutdown_any_segwit_required(this.ptr);
578                 GC.KeepAlive(this);
579         }
580
581         /**
582          * Checks if this feature is supported.
583          */
584         public bool supports_shutdown_anysegwit() {
585                 bool ret = bindings.NodeFeatures_supports_shutdown_anysegwit(this.ptr);
586                 GC.KeepAlive(this);
587                 return ret;
588         }
589
590         /**
591          * Checks if this feature is required.
592          */
593         public bool requires_shutdown_anysegwit() {
594                 bool ret = bindings.NodeFeatures_requires_shutdown_anysegwit(this.ptr);
595                 GC.KeepAlive(this);
596                 return ret;
597         }
598
599         /**
600          * Set this feature as optional.
601          */
602         public void set_taproot_optional() {
603                 bindings.NodeFeatures_set_taproot_optional(this.ptr);
604                 GC.KeepAlive(this);
605         }
606
607         /**
608          * Set this feature as required.
609          */
610         public void set_taproot_required() {
611                 bindings.NodeFeatures_set_taproot_required(this.ptr);
612                 GC.KeepAlive(this);
613         }
614
615         /**
616          * Checks if this feature is supported.
617          */
618         public bool supports_taproot() {
619                 bool ret = bindings.NodeFeatures_supports_taproot(this.ptr);
620                 GC.KeepAlive(this);
621                 return ret;
622         }
623
624         /**
625          * Checks if this feature is required.
626          */
627         public bool requires_taproot() {
628                 bool ret = bindings.NodeFeatures_requires_taproot(this.ptr);
629                 GC.KeepAlive(this);
630                 return ret;
631         }
632
633         /**
634          * Set this feature as optional.
635          */
636         public void set_onion_messages_optional() {
637                 bindings.NodeFeatures_set_onion_messages_optional(this.ptr);
638                 GC.KeepAlive(this);
639         }
640
641         /**
642          * Set this feature as required.
643          */
644         public void set_onion_messages_required() {
645                 bindings.NodeFeatures_set_onion_messages_required(this.ptr);
646                 GC.KeepAlive(this);
647         }
648
649         /**
650          * Checks if this feature is supported.
651          */
652         public bool supports_onion_messages() {
653                 bool ret = bindings.NodeFeatures_supports_onion_messages(this.ptr);
654                 GC.KeepAlive(this);
655                 return ret;
656         }
657
658         /**
659          * Checks if this feature is required.
660          */
661         public bool requires_onion_messages() {
662                 bool ret = bindings.NodeFeatures_requires_onion_messages(this.ptr);
663                 GC.KeepAlive(this);
664                 return ret;
665         }
666
667         /**
668          * Set this feature as optional.
669          */
670         public void set_channel_type_optional() {
671                 bindings.NodeFeatures_set_channel_type_optional(this.ptr);
672                 GC.KeepAlive(this);
673         }
674
675         /**
676          * Set this feature as required.
677          */
678         public void set_channel_type_required() {
679                 bindings.NodeFeatures_set_channel_type_required(this.ptr);
680                 GC.KeepAlive(this);
681         }
682
683         /**
684          * Checks if this feature is supported.
685          */
686         public bool supports_channel_type() {
687                 bool ret = bindings.NodeFeatures_supports_channel_type(this.ptr);
688                 GC.KeepAlive(this);
689                 return ret;
690         }
691
692         /**
693          * Checks if this feature is required.
694          */
695         public bool requires_channel_type() {
696                 bool ret = bindings.NodeFeatures_requires_channel_type(this.ptr);
697                 GC.KeepAlive(this);
698                 return ret;
699         }
700
701         /**
702          * Set this feature as optional.
703          */
704         public void set_scid_privacy_optional() {
705                 bindings.NodeFeatures_set_scid_privacy_optional(this.ptr);
706                 GC.KeepAlive(this);
707         }
708
709         /**
710          * Set this feature as required.
711          */
712         public void set_scid_privacy_required() {
713                 bindings.NodeFeatures_set_scid_privacy_required(this.ptr);
714                 GC.KeepAlive(this);
715         }
716
717         /**
718          * Checks if this feature is supported.
719          */
720         public bool supports_scid_privacy() {
721                 bool ret = bindings.NodeFeatures_supports_scid_privacy(this.ptr);
722                 GC.KeepAlive(this);
723                 return ret;
724         }
725
726         /**
727          * Checks if this feature is required.
728          */
729         public bool requires_scid_privacy() {
730                 bool ret = bindings.NodeFeatures_requires_scid_privacy(this.ptr);
731                 GC.KeepAlive(this);
732                 return ret;
733         }
734
735         /**
736          * Set this feature as optional.
737          */
738         public void set_zero_conf_optional() {
739                 bindings.NodeFeatures_set_zero_conf_optional(this.ptr);
740                 GC.KeepAlive(this);
741         }
742
743         /**
744          * Set this feature as required.
745          */
746         public void set_zero_conf_required() {
747                 bindings.NodeFeatures_set_zero_conf_required(this.ptr);
748                 GC.KeepAlive(this);
749         }
750
751         /**
752          * Checks if this feature is supported.
753          */
754         public bool supports_zero_conf() {
755                 bool ret = bindings.NodeFeatures_supports_zero_conf(this.ptr);
756                 GC.KeepAlive(this);
757                 return ret;
758         }
759
760         /**
761          * Checks if this feature is required.
762          */
763         public bool requires_zero_conf() {
764                 bool ret = bindings.NodeFeatures_requires_zero_conf(this.ptr);
765                 GC.KeepAlive(this);
766                 return ret;
767         }
768
769         /**
770          * Set this feature as optional.
771          */
772         public void set_keysend_optional() {
773                 bindings.NodeFeatures_set_keysend_optional(this.ptr);
774                 GC.KeepAlive(this);
775         }
776
777         /**
778          * Set this feature as required.
779          */
780         public void set_keysend_required() {
781                 bindings.NodeFeatures_set_keysend_required(this.ptr);
782                 GC.KeepAlive(this);
783         }
784
785         /**
786          * Checks if this feature is supported.
787          */
788         public bool supports_keysend() {
789                 bool ret = bindings.NodeFeatures_supports_keysend(this.ptr);
790                 GC.KeepAlive(this);
791                 return ret;
792         }
793
794         /**
795          * Checks if this feature is required.
796          */
797         public bool requires_keysend() {
798                 bool ret = bindings.NodeFeatures_requires_keysend(this.ptr);
799                 GC.KeepAlive(this);
800                 return ret;
801         }
802
803 }
804 } } }