[C#] Update auto-generated C# bindings
[ldk-java] / c_sharp / src / org / ldk / structs / InitFeatures.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 an `init` message.
11  */
12 public class InitFeatures : CommonBase {
13         internal InitFeatures(object _dummy, long ptr) : base(ptr) { }
14         ~InitFeatures() {
15                 if (ptr != 0) { bindings.InitFeatures_free(ptr); }
16         }
17
18         /**
19          * Checks if two InitFeaturess 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.InitFeatures b) {
24                 bool ret = bindings.InitFeatures_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 InitFeatures)) return false;
33                 return this.eq((InitFeatures)o);
34         }
35         internal long clone_ptr() {
36                 long ret = bindings.InitFeatures_clone_ptr(this.ptr);
37                 GC.KeepAlive(this);
38                 return ret;
39         }
40
41         /**
42          * Creates a copy of the InitFeatures
43          */
44         public InitFeatures clone() {
45                 long ret = bindings.InitFeatures_clone(this.ptr);
46                 GC.KeepAlive(this);
47                 if (ret >= 0 && ret <= 4096) { return null; }
48                 org.ldk.structs.InitFeatures ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.InitFeatures(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 InitFeatures.
55          */
56         public long hash() {
57                 long ret = bindings.InitFeatures_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 InitFeatures empty() {
69                 long ret = bindings.InitFeatures_empty();
70                 if (ret >= 0 && ret <= 4096) { return null; }
71                 org.ldk.structs.InitFeatures ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.InitFeatures(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.InitFeatures other) {
80                 bool ret = bindings.InitFeatures_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.InitFeatures_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.InitFeatures_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.InitFeatures_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.InitFeatures_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.InitFeatures_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 InitFeatures object into a byte array which can be read by InitFeatures_read
171          */
172         public byte[] write() {
173                 long ret = bindings.InitFeatures_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 InitFeatures from a byte array, created by InitFeatures_write
182          */
183         public static Result_InitFeaturesDecodeErrorZ read(byte[] ser) {
184                 long ret = bindings.InitFeatures_read(InternalUtils.encodeUint8Array(ser));
185                 GC.KeepAlive(ser);
186                 if (ret >= 0 && ret <= 4096) { return null; }
187                 Result_InitFeaturesDecodeErrorZ ret_hu_conv = Result_InitFeaturesDecodeErrorZ.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.InitFeatures_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.InitFeatures_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.InitFeatures_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.InitFeatures_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_initial_routing_sync_optional() {
229                 bindings.InitFeatures_set_initial_routing_sync_optional(this.ptr);
230                 GC.KeepAlive(this);
231         }
232
233         /**
234          * Set this feature as required.
235          */
236         public void set_initial_routing_sync_required() {
237                 bindings.InitFeatures_set_initial_routing_sync_required(this.ptr);
238                 GC.KeepAlive(this);
239         }
240
241         /**
242          * Checks if this feature is supported.
243          */
244         public bool initial_routing_sync() {
245                 bool ret = bindings.InitFeatures_initial_routing_sync(this.ptr);
246                 GC.KeepAlive(this);
247                 return ret;
248         }
249
250         /**
251          * Set this feature as optional.
252          */
253         public void set_upfront_shutdown_script_optional() {
254                 bindings.InitFeatures_set_upfront_shutdown_script_optional(this.ptr);
255                 GC.KeepAlive(this);
256         }
257
258         /**
259          * Set this feature as required.
260          */
261         public void set_upfront_shutdown_script_required() {
262                 bindings.InitFeatures_set_upfront_shutdown_script_required(this.ptr);
263                 GC.KeepAlive(this);
264         }
265
266         /**
267          * Checks if this feature is supported.
268          */
269         public bool supports_upfront_shutdown_script() {
270                 bool ret = bindings.InitFeatures_supports_upfront_shutdown_script(this.ptr);
271                 GC.KeepAlive(this);
272                 return ret;
273         }
274
275         /**
276          * Checks if this feature is required.
277          */
278         public bool requires_upfront_shutdown_script() {
279                 bool ret = bindings.InitFeatures_requires_upfront_shutdown_script(this.ptr);
280                 GC.KeepAlive(this);
281                 return ret;
282         }
283
284         /**
285          * Set this feature as optional.
286          */
287         public void set_gossip_queries_optional() {
288                 bindings.InitFeatures_set_gossip_queries_optional(this.ptr);
289                 GC.KeepAlive(this);
290         }
291
292         /**
293          * Set this feature as required.
294          */
295         public void set_gossip_queries_required() {
296                 bindings.InitFeatures_set_gossip_queries_required(this.ptr);
297                 GC.KeepAlive(this);
298         }
299
300         /**
301          * Checks if this feature is supported.
302          */
303         public bool supports_gossip_queries() {
304                 bool ret = bindings.InitFeatures_supports_gossip_queries(this.ptr);
305                 GC.KeepAlive(this);
306                 return ret;
307         }
308
309         /**
310          * Checks if this feature is required.
311          */
312         public bool requires_gossip_queries() {
313                 bool ret = bindings.InitFeatures_requires_gossip_queries(this.ptr);
314                 GC.KeepAlive(this);
315                 return ret;
316         }
317
318         /**
319          * Set this feature as optional.
320          */
321         public void set_variable_length_onion_optional() {
322                 bindings.InitFeatures_set_variable_length_onion_optional(this.ptr);
323                 GC.KeepAlive(this);
324         }
325
326         /**
327          * Set this feature as required.
328          */
329         public void set_variable_length_onion_required() {
330                 bindings.InitFeatures_set_variable_length_onion_required(this.ptr);
331                 GC.KeepAlive(this);
332         }
333
334         /**
335          * Checks if this feature is supported.
336          */
337         public bool supports_variable_length_onion() {
338                 bool ret = bindings.InitFeatures_supports_variable_length_onion(this.ptr);
339                 GC.KeepAlive(this);
340                 return ret;
341         }
342
343         /**
344          * Checks if this feature is required.
345          */
346         public bool requires_variable_length_onion() {
347                 bool ret = bindings.InitFeatures_requires_variable_length_onion(this.ptr);
348                 GC.KeepAlive(this);
349                 return ret;
350         }
351
352         /**
353          * Set this feature as optional.
354          */
355         public void set_static_remote_key_optional() {
356                 bindings.InitFeatures_set_static_remote_key_optional(this.ptr);
357                 GC.KeepAlive(this);
358         }
359
360         /**
361          * Set this feature as required.
362          */
363         public void set_static_remote_key_required() {
364                 bindings.InitFeatures_set_static_remote_key_required(this.ptr);
365                 GC.KeepAlive(this);
366         }
367
368         /**
369          * Checks if this feature is supported.
370          */
371         public bool supports_static_remote_key() {
372                 bool ret = bindings.InitFeatures_supports_static_remote_key(this.ptr);
373                 GC.KeepAlive(this);
374                 return ret;
375         }
376
377         /**
378          * Checks if this feature is required.
379          */
380         public bool requires_static_remote_key() {
381                 bool ret = bindings.InitFeatures_requires_static_remote_key(this.ptr);
382                 GC.KeepAlive(this);
383                 return ret;
384         }
385
386         /**
387          * Set this feature as optional.
388          */
389         public void set_payment_secret_optional() {
390                 bindings.InitFeatures_set_payment_secret_optional(this.ptr);
391                 GC.KeepAlive(this);
392         }
393
394         /**
395          * Set this feature as required.
396          */
397         public void set_payment_secret_required() {
398                 bindings.InitFeatures_set_payment_secret_required(this.ptr);
399                 GC.KeepAlive(this);
400         }
401
402         /**
403          * Checks if this feature is supported.
404          */
405         public bool supports_payment_secret() {
406                 bool ret = bindings.InitFeatures_supports_payment_secret(this.ptr);
407                 GC.KeepAlive(this);
408                 return ret;
409         }
410
411         /**
412          * Checks if this feature is required.
413          */
414         public bool requires_payment_secret() {
415                 bool ret = bindings.InitFeatures_requires_payment_secret(this.ptr);
416                 GC.KeepAlive(this);
417                 return ret;
418         }
419
420         /**
421          * Set this feature as optional.
422          */
423         public void set_basic_mpp_optional() {
424                 bindings.InitFeatures_set_basic_mpp_optional(this.ptr);
425                 GC.KeepAlive(this);
426         }
427
428         /**
429          * Set this feature as required.
430          */
431         public void set_basic_mpp_required() {
432                 bindings.InitFeatures_set_basic_mpp_required(this.ptr);
433                 GC.KeepAlive(this);
434         }
435
436         /**
437          * Checks if this feature is supported.
438          */
439         public bool supports_basic_mpp() {
440                 bool ret = bindings.InitFeatures_supports_basic_mpp(this.ptr);
441                 GC.KeepAlive(this);
442                 return ret;
443         }
444
445         /**
446          * Checks if this feature is required.
447          */
448         public bool requires_basic_mpp() {
449                 bool ret = bindings.InitFeatures_requires_basic_mpp(this.ptr);
450                 GC.KeepAlive(this);
451                 return ret;
452         }
453
454         /**
455          * Set this feature as optional.
456          */
457         public void set_wumbo_optional() {
458                 bindings.InitFeatures_set_wumbo_optional(this.ptr);
459                 GC.KeepAlive(this);
460         }
461
462         /**
463          * Set this feature as required.
464          */
465         public void set_wumbo_required() {
466                 bindings.InitFeatures_set_wumbo_required(this.ptr);
467                 GC.KeepAlive(this);
468         }
469
470         /**
471          * Checks if this feature is supported.
472          */
473         public bool supports_wumbo() {
474                 bool ret = bindings.InitFeatures_supports_wumbo(this.ptr);
475                 GC.KeepAlive(this);
476                 return ret;
477         }
478
479         /**
480          * Checks if this feature is required.
481          */
482         public bool requires_wumbo() {
483                 bool ret = bindings.InitFeatures_requires_wumbo(this.ptr);
484                 GC.KeepAlive(this);
485                 return ret;
486         }
487
488         /**
489          * Set this feature as optional.
490          */
491         public void set_anchors_nonzero_fee_htlc_tx_optional() {
492                 bindings.InitFeatures_set_anchors_nonzero_fee_htlc_tx_optional(this.ptr);
493                 GC.KeepAlive(this);
494         }
495
496         /**
497          * Set this feature as required.
498          */
499         public void set_anchors_nonzero_fee_htlc_tx_required() {
500                 bindings.InitFeatures_set_anchors_nonzero_fee_htlc_tx_required(this.ptr);
501                 GC.KeepAlive(this);
502         }
503
504         /**
505          * Checks if this feature is supported.
506          */
507         public bool supports_anchors_nonzero_fee_htlc_tx() {
508                 bool ret = bindings.InitFeatures_supports_anchors_nonzero_fee_htlc_tx(this.ptr);
509                 GC.KeepAlive(this);
510                 return ret;
511         }
512
513         /**
514          * Checks if this feature is required.
515          */
516         public bool requires_anchors_nonzero_fee_htlc_tx() {
517                 bool ret = bindings.InitFeatures_requires_anchors_nonzero_fee_htlc_tx(this.ptr);
518                 GC.KeepAlive(this);
519                 return ret;
520         }
521
522         /**
523          * Set this feature as optional.
524          */
525         public void set_anchors_zero_fee_htlc_tx_optional() {
526                 bindings.InitFeatures_set_anchors_zero_fee_htlc_tx_optional(this.ptr);
527                 GC.KeepAlive(this);
528         }
529
530         /**
531          * Set this feature as required.
532          */
533         public void set_anchors_zero_fee_htlc_tx_required() {
534                 bindings.InitFeatures_set_anchors_zero_fee_htlc_tx_required(this.ptr);
535                 GC.KeepAlive(this);
536         }
537
538         /**
539          * Checks if this feature is supported.
540          */
541         public bool supports_anchors_zero_fee_htlc_tx() {
542                 bool ret = bindings.InitFeatures_supports_anchors_zero_fee_htlc_tx(this.ptr);
543                 GC.KeepAlive(this);
544                 return ret;
545         }
546
547         /**
548          * Checks if this feature is required.
549          */
550         public bool requires_anchors_zero_fee_htlc_tx() {
551                 bool ret = bindings.InitFeatures_requires_anchors_zero_fee_htlc_tx(this.ptr);
552                 GC.KeepAlive(this);
553                 return ret;
554         }
555
556         /**
557          * Set this feature as optional.
558          */
559         public void set_route_blinding_optional() {
560                 bindings.InitFeatures_set_route_blinding_optional(this.ptr);
561                 GC.KeepAlive(this);
562         }
563
564         /**
565          * Set this feature as required.
566          */
567         public void set_route_blinding_required() {
568                 bindings.InitFeatures_set_route_blinding_required(this.ptr);
569                 GC.KeepAlive(this);
570         }
571
572         /**
573          * Checks if this feature is supported.
574          */
575         public bool supports_route_blinding() {
576                 bool ret = bindings.InitFeatures_supports_route_blinding(this.ptr);
577                 GC.KeepAlive(this);
578                 return ret;
579         }
580
581         /**
582          * Checks if this feature is required.
583          */
584         public bool requires_route_blinding() {
585                 bool ret = bindings.InitFeatures_requires_route_blinding(this.ptr);
586                 GC.KeepAlive(this);
587                 return ret;
588         }
589
590         /**
591          * Set this feature as optional.
592          */
593         public void set_shutdown_any_segwit_optional() {
594                 bindings.InitFeatures_set_shutdown_any_segwit_optional(this.ptr);
595                 GC.KeepAlive(this);
596         }
597
598         /**
599          * Set this feature as required.
600          */
601         public void set_shutdown_any_segwit_required() {
602                 bindings.InitFeatures_set_shutdown_any_segwit_required(this.ptr);
603                 GC.KeepAlive(this);
604         }
605
606         /**
607          * Checks if this feature is supported.
608          */
609         public bool supports_shutdown_anysegwit() {
610                 bool ret = bindings.InitFeatures_supports_shutdown_anysegwit(this.ptr);
611                 GC.KeepAlive(this);
612                 return ret;
613         }
614
615         /**
616          * Checks if this feature is required.
617          */
618         public bool requires_shutdown_anysegwit() {
619                 bool ret = bindings.InitFeatures_requires_shutdown_anysegwit(this.ptr);
620                 GC.KeepAlive(this);
621                 return ret;
622         }
623
624         /**
625          * Set this feature as optional.
626          */
627         public void set_taproot_optional() {
628                 bindings.InitFeatures_set_taproot_optional(this.ptr);
629                 GC.KeepAlive(this);
630         }
631
632         /**
633          * Set this feature as required.
634          */
635         public void set_taproot_required() {
636                 bindings.InitFeatures_set_taproot_required(this.ptr);
637                 GC.KeepAlive(this);
638         }
639
640         /**
641          * Checks if this feature is supported.
642          */
643         public bool supports_taproot() {
644                 bool ret = bindings.InitFeatures_supports_taproot(this.ptr);
645                 GC.KeepAlive(this);
646                 return ret;
647         }
648
649         /**
650          * Checks if this feature is required.
651          */
652         public bool requires_taproot() {
653                 bool ret = bindings.InitFeatures_requires_taproot(this.ptr);
654                 GC.KeepAlive(this);
655                 return ret;
656         }
657
658         /**
659          * Set this feature as optional.
660          */
661         public void set_onion_messages_optional() {
662                 bindings.InitFeatures_set_onion_messages_optional(this.ptr);
663                 GC.KeepAlive(this);
664         }
665
666         /**
667          * Set this feature as required.
668          */
669         public void set_onion_messages_required() {
670                 bindings.InitFeatures_set_onion_messages_required(this.ptr);
671                 GC.KeepAlive(this);
672         }
673
674         /**
675          * Checks if this feature is supported.
676          */
677         public bool supports_onion_messages() {
678                 bool ret = bindings.InitFeatures_supports_onion_messages(this.ptr);
679                 GC.KeepAlive(this);
680                 return ret;
681         }
682
683         /**
684          * Checks if this feature is required.
685          */
686         public bool requires_onion_messages() {
687                 bool ret = bindings.InitFeatures_requires_onion_messages(this.ptr);
688                 GC.KeepAlive(this);
689                 return ret;
690         }
691
692         /**
693          * Set this feature as optional.
694          */
695         public void set_channel_type_optional() {
696                 bindings.InitFeatures_set_channel_type_optional(this.ptr);
697                 GC.KeepAlive(this);
698         }
699
700         /**
701          * Set this feature as required.
702          */
703         public void set_channel_type_required() {
704                 bindings.InitFeatures_set_channel_type_required(this.ptr);
705                 GC.KeepAlive(this);
706         }
707
708         /**
709          * Checks if this feature is supported.
710          */
711         public bool supports_channel_type() {
712                 bool ret = bindings.InitFeatures_supports_channel_type(this.ptr);
713                 GC.KeepAlive(this);
714                 return ret;
715         }
716
717         /**
718          * Checks if this feature is required.
719          */
720         public bool requires_channel_type() {
721                 bool ret = bindings.InitFeatures_requires_channel_type(this.ptr);
722                 GC.KeepAlive(this);
723                 return ret;
724         }
725
726         /**
727          * Set this feature as optional.
728          */
729         public void set_scid_privacy_optional() {
730                 bindings.InitFeatures_set_scid_privacy_optional(this.ptr);
731                 GC.KeepAlive(this);
732         }
733
734         /**
735          * Set this feature as required.
736          */
737         public void set_scid_privacy_required() {
738                 bindings.InitFeatures_set_scid_privacy_required(this.ptr);
739                 GC.KeepAlive(this);
740         }
741
742         /**
743          * Checks if this feature is supported.
744          */
745         public bool supports_scid_privacy() {
746                 bool ret = bindings.InitFeatures_supports_scid_privacy(this.ptr);
747                 GC.KeepAlive(this);
748                 return ret;
749         }
750
751         /**
752          * Checks if this feature is required.
753          */
754         public bool requires_scid_privacy() {
755                 bool ret = bindings.InitFeatures_requires_scid_privacy(this.ptr);
756                 GC.KeepAlive(this);
757                 return ret;
758         }
759
760         /**
761          * Set this feature as optional.
762          */
763         public void set_zero_conf_optional() {
764                 bindings.InitFeatures_set_zero_conf_optional(this.ptr);
765                 GC.KeepAlive(this);
766         }
767
768         /**
769          * Set this feature as required.
770          */
771         public void set_zero_conf_required() {
772                 bindings.InitFeatures_set_zero_conf_required(this.ptr);
773                 GC.KeepAlive(this);
774         }
775
776         /**
777          * Checks if this feature is supported.
778          */
779         public bool supports_zero_conf() {
780                 bool ret = bindings.InitFeatures_supports_zero_conf(this.ptr);
781                 GC.KeepAlive(this);
782                 return ret;
783         }
784
785         /**
786          * Checks if this feature is required.
787          */
788         public bool requires_zero_conf() {
789                 bool ret = bindings.InitFeatures_requires_zero_conf(this.ptr);
790                 GC.KeepAlive(this);
791                 return ret;
792         }
793
794 }
795 } } }