icrate 0.1.2

Bindings to Apple's frameworks
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use crate::common::*;
use crate::Foundation::*;
use crate::Speech::*;

extern_class!(
    #[derive(Debug, PartialEq, Eq, Hash)]
    #[cfg(feature = "Speech__SFSpeechAnalyzer")]
    pub struct _SFSpeechAnalyzer;

    #[cfg(feature = "Speech__SFSpeechAnalyzer")]
    unsafe impl ClassType for _SFSpeechAnalyzer {
        type Super = NSObject;
        type Mutability = InteriorMutable;
    }
);

#[cfg(feature = "Speech__SFSpeechAnalyzer")]
unsafe impl NSObjectProtocol for _SFSpeechAnalyzer {}

extern_methods!(
    #[cfg(feature = "Speech__SFSpeechAnalyzer")]
    unsafe impl _SFSpeechAnalyzer {
        #[cfg(all(
            feature = "Foundation_NSString",
            feature = "Speech__SFModelDownloadRequest",
            feature = "Speech__SFSpeechAnalyzerTranscriberOptions"
        ))]
        #[method_id(@__retain_semantics Other modelDownloadRequestForClientIdentifier:transcriberOptions:)]
        pub unsafe fn modelDownloadRequestForClientIdentifier_transcriberOptions(
            client_identifier: &NSString,
            transcriber_options: &_SFSpeechAnalyzerTranscriberOptions,
        ) -> Option<Id<_SFModelDownloadRequest>>;

        #[method_id(@__retain_semantics Init init)]
        pub unsafe fn init(this: Allocated<Self>) -> Id<Self>;

        #[cfg(feature = "Speech__SFInputSequencer")]
        #[method_id(@__retain_semantics Other inputSequence)]
        pub unsafe fn inputSequence(&self) -> Id<_SFInputSequencer>;

        #[cfg(feature = "Foundation_NSError")]
        #[method(cancelPendingResultsAndPauseWithCompletion:)]
        pub unsafe fn cancelPendingResultsAndPauseWithCompletion(
            &self,
            completion: &Block<(*mut NSError,), ()>,
        );

        #[cfg(feature = "Foundation_NSError")]
        #[method(resumeWithCompletion:)]
        pub unsafe fn resumeWithCompletion(&self, completion: &Block<(*mut NSError,), ()>);

        #[cfg(feature = "Foundation_NSError")]
        #[method(finalizeWithCompletion:)]
        pub unsafe fn finalizeWithCompletion(&self, completion: &Block<(*mut NSError,), ()>);

        #[cfg(feature = "Foundation_NSError")]
        #[method(finalizeAndFinishWithCompletion:)]
        pub unsafe fn finalizeAndFinishWithCompletion(
            &self,
            completion: &Block<(*mut NSError,), ()>,
        );

        #[cfg(feature = "Foundation_NSError")]
        #[method(finalizeAndFinishThroughEndOfInputWithCompletion:)]
        pub unsafe fn finalizeAndFinishThroughEndOfInputWithCompletion(
            &self,
            completion: &Block<(*mut NSError,), ()>,
        );

        #[cfg(all(feature = "Foundation_NSArray", feature = "Foundation_NSValue"))]
        #[method(requestResultAtEndpointTimes:)]
        pub unsafe fn requestResultAtEndpointTimes(&self, times: &NSArray<NSValue>);

        #[cfg(all(feature = "Foundation_NSSet", feature = "Foundation_NSString"))]
        #[method(getModelInfoTasksWithCompletion:)]
        pub unsafe fn getModelInfoTasksWithCompletion(
            &self,
            completion: &Block<(NonNull<NSSet<NSString>>,), ()>,
        );

        #[cfg(feature = "Foundation_NSString")]
        #[method(getModelInfoLanguageWithCompletion:)]
        pub unsafe fn getModelInfoLanguageWithCompletion(
            &self,
            completion: &Block<(NonNull<NSString>,), ()>,
        );

        #[cfg(feature = "Foundation_NSDictionary")]
        #[method(getRecognitionStatisticsWithCompletion:)]
        pub unsafe fn getRecognitionStatisticsWithCompletion(
            &self,
            completion: &Block<(NonNull<NSDictionary>,), ()>,
        );

        #[cfg(feature = "Foundation_NSDictionary")]
        #[method(getRecognitionUtterenceStatisticsWithCompletion:)]
        pub unsafe fn getRecognitionUtterenceStatisticsWithCompletion(
            &self,
            completion: &Block<(NonNull<NSDictionary>,), ()>,
        );

        #[cfg(feature = "Speech__SFAnalysisContext")]
        #[method(getContextWithCompletion:)]
        pub unsafe fn getContextWithCompletion(
            &self,
            completion: &Block<(NonNull<_SFAnalysisContext>,), ()>,
        );

        #[cfg(all(feature = "Foundation_NSError", feature = "Foundation_NSProgress"))]
        #[method(prepareToAnalyzeReportingInto:completion:)]
        pub unsafe fn prepareToAnalyzeReportingInto_completion(
            &self,
            progress: Option<&NSProgress>,
            completion: &Block<(*mut NSError,), ()>,
        );
    }
);

extern_methods!(
    /// Methods declared on superclass `NSObject`
    #[cfg(feature = "Speech__SFSpeechAnalyzer")]
    unsafe impl _SFSpeechAnalyzer {
        #[method_id(@__retain_semantics New new)]
        pub unsafe fn new() -> Id<Self>;
    }
);

extern_protocol!(
    pub unsafe trait _SFSpeechAnalyzerTranscriberResultDelegate {
        #[cfg(all(
            feature = "Speech__SFSpeechAnalyzer",
            feature = "Speech__SFTranscriberResult"
        ))]
        #[method(speechAnalyzer:didProduceTranscriberResult:)]
        unsafe fn speechAnalyzer_didProduceTranscriberResult(
            &self,
            speech_analyzer: &_SFSpeechAnalyzer,
            transcriber_result: &_SFTranscriberResult,
        );

        #[cfg(all(feature = "Foundation_NSError", feature = "Speech__SFSpeechAnalyzer"))]
        #[method(speechAnalyzer:didStopTranscriptionWithError:)]
        unsafe fn speechAnalyzer_didStopTranscriptionWithError(
            &self,
            speech_analyzer: &_SFSpeechAnalyzer,
            error: &NSError,
        );

        #[cfg(feature = "Speech__SFSpeechAnalyzer")]
        #[optional]
        #[method(speechAnalyzerDidProduceAllTranscriberResults:)]
        unsafe fn speechAnalyzerDidProduceAllTranscriberResults(
            &self,
            speech_analyzer: &_SFSpeechAnalyzer,
        );
    }

    unsafe impl ProtocolType for dyn _SFSpeechAnalyzerTranscriberResultDelegate {}
);

extern_protocol!(
    pub unsafe trait _SFSpeechAnalyzerEndpointingResultDelegate {
        #[cfg(all(
            feature = "Speech__SFEndpointingResult",
            feature = "Speech__SFSpeechAnalyzer"
        ))]
        #[method(speechAnalyzer:didProduceEndpointingResult:)]
        unsafe fn speechAnalyzer_didProduceEndpointingResult(
            &self,
            speech_analyzer: &_SFSpeechAnalyzer,
            endpointing_result: &_SFEndpointingResult,
        );

        #[cfg(all(feature = "Foundation_NSError", feature = "Speech__SFSpeechAnalyzer"))]
        #[method(speechAnalyzer:didStopEndpointingWithError:)]
        unsafe fn speechAnalyzer_didStopEndpointingWithError(
            &self,
            speech_analyzer: &_SFSpeechAnalyzer,
            error: &NSError,
        );
    }

    unsafe impl ProtocolType for dyn _SFSpeechAnalyzerEndpointingResultDelegate {}
);

extern_class!(
    #[derive(Debug, PartialEq, Eq, Hash)]
    #[cfg(feature = "Speech__SFModelDownloadRequest")]
    pub struct _SFModelDownloadRequest;

    #[cfg(feature = "Speech__SFModelDownloadRequest")]
    unsafe impl ClassType for _SFModelDownloadRequest {
        type Super = NSObject;
        type Mutability = InteriorMutable;
    }
);

#[cfg(feature = "Speech__SFModelDownloadRequest")]
unsafe impl NSObjectProtocol for _SFModelDownloadRequest {}

extern_methods!(
    #[cfg(feature = "Speech__SFModelDownloadRequest")]
    unsafe impl _SFModelDownloadRequest {
        #[cfg(feature = "Foundation_NSProgress")]
        #[method_id(@__retain_semantics Other progress)]
        pub unsafe fn progress(&self) -> Id<NSProgress>;

        #[cfg(feature = "Foundation_NSError")]
        #[method(downloadWithCompletion:)]
        pub unsafe fn downloadWithCompletion(&self, completion: &Block<(*mut NSError,), ()>);
    }
);

extern_methods!(
    /// Methods declared on superclass `NSObject`
    #[cfg(feature = "Speech__SFModelDownloadRequest")]
    unsafe impl _SFModelDownloadRequest {
        #[method_id(@__retain_semantics Init init)]
        pub unsafe fn init(this: Allocated<Self>) -> Id<Self>;

        #[method_id(@__retain_semantics New new)]
        pub unsafe fn new() -> Id<Self>;
    }
);

extern_class!(
    #[derive(Debug, PartialEq, Eq, Hash)]
    #[cfg(feature = "Speech__SFSpeechAnalyzerTranscriberOptions")]
    pub struct _SFSpeechAnalyzerTranscriberOptions;

    #[cfg(feature = "Speech__SFSpeechAnalyzerTranscriberOptions")]
    unsafe impl ClassType for _SFSpeechAnalyzerTranscriberOptions {
        type Super = NSObject;
        type Mutability = InteriorMutable;
    }
);

#[cfg(feature = "Speech__SFSpeechAnalyzerTranscriberOptions")]
unsafe impl NSObjectProtocol for _SFSpeechAnalyzerTranscriberOptions {}

extern_methods!(
    #[cfg(feature = "Speech__SFSpeechAnalyzerTranscriberOptions")]
    unsafe impl _SFSpeechAnalyzerTranscriberOptions {
        #[cfg(feature = "Foundation_NSLocale")]
        #[method_id(@__retain_semantics Other locale)]
        pub unsafe fn locale(&self) -> Id<NSLocale>;

        #[cfg(feature = "Foundation_NSLocale")]
        #[method(setLocale:)]
        pub unsafe fn setLocale(&self, locale: &NSLocale);

        #[method(taskHint)]
        pub unsafe fn taskHint(&self) -> SFSpeechRecognitionTaskHint;

        #[method(setTaskHint:)]
        pub unsafe fn setTaskHint(&self, task_hint: SFSpeechRecognitionTaskHint);

        #[cfg(feature = "Speech__SFTranscriberModelOptions")]
        #[method_id(@__retain_semantics Other modelOptions)]
        pub unsafe fn modelOptions(&self) -> Option<Id<_SFTranscriberModelOptions>>;

        #[cfg(feature = "Speech__SFTranscriberModelOptions")]
        #[method(setModelOptions:)]
        pub unsafe fn setModelOptions(&self, model_options: Option<&_SFTranscriberModelOptions>);

        #[method(transcriptionOptions)]
        pub unsafe fn transcriptionOptions(&self) -> _SFTranscriptionOptions;

        #[method(setTranscriptionOptions:)]
        pub unsafe fn setTranscriptionOptions(
            &self,
            transcription_options: _SFTranscriptionOptions,
        );

        #[method(attributeOptions)]
        pub unsafe fn attributeOptions(&self) -> _SFTranscriptionResultAttributeOptions;

        #[method(setAttributeOptions:)]
        pub unsafe fn setAttributeOptions(
            &self,
            attribute_options: _SFTranscriptionResultAttributeOptions,
        );

        #[method_id(@__retain_semantics Init init)]
        pub unsafe fn init(this: Allocated<Self>) -> Id<Self>;
    }
);

extern_methods!(
    /// Methods declared on superclass `NSObject`
    #[cfg(feature = "Speech__SFSpeechAnalyzerTranscriberOptions")]
    unsafe impl _SFSpeechAnalyzerTranscriberOptions {
        #[method_id(@__retain_semantics New new)]
        pub unsafe fn new() -> Id<Self>;
    }
);

extern_class!(
    #[derive(Debug, PartialEq, Eq, Hash)]
    #[cfg(feature = "Speech__SFSpeechAnalyzerCommandRecognizerOptions")]
    pub struct _SFSpeechAnalyzerCommandRecognizerOptions;

    #[cfg(feature = "Speech__SFSpeechAnalyzerCommandRecognizerOptions")]
    unsafe impl ClassType for _SFSpeechAnalyzerCommandRecognizerOptions {
        type Super = NSObject;
        type Mutability = InteriorMutable;
    }
);

#[cfg(feature = "Speech__SFSpeechAnalyzerCommandRecognizerOptions")]
unsafe impl NSObjectProtocol for _SFSpeechAnalyzerCommandRecognizerOptions {}

extern_methods!(
    #[cfg(feature = "Speech__SFSpeechAnalyzerCommandRecognizerOptions")]
    unsafe impl _SFSpeechAnalyzerCommandRecognizerOptions {
        #[cfg(feature = "Speech_EARVoiceCommandActiveSet")]
        #[method_id(@__retain_semantics Other voiceCommandActiveSet)]
        pub unsafe fn voiceCommandActiveSet(&self) -> Id<EARVoiceCommandActiveSet>;

        #[cfg(feature = "Speech_EARVoiceCommandActiveSet")]
        #[method(setVoiceCommandActiveSet:)]
        pub unsafe fn setVoiceCommandActiveSet(
            &self,
            voice_command_active_set: &EARVoiceCommandActiveSet,
        );

        #[cfg(feature = "Speech_EARVoiceCommandActiveSet")]
        #[method_id(@__retain_semantics Init initWithVoiceCommandActiveSet:)]
        pub unsafe fn initWithVoiceCommandActiveSet(
            this: Allocated<Self>,
            voice_command_active_set: &EARVoiceCommandActiveSet,
        ) -> Id<Self>;
    }
);

extern_methods!(
    /// Methods declared on superclass `NSObject`
    #[cfg(feature = "Speech__SFSpeechAnalyzerCommandRecognizerOptions")]
    unsafe impl _SFSpeechAnalyzerCommandRecognizerOptions {
        #[method_id(@__retain_semantics Init init)]
        pub unsafe fn init(this: Allocated<Self>) -> Id<Self>;

        #[method_id(@__retain_semantics New new)]
        pub unsafe fn new() -> Id<Self>;
    }
);

extern_class!(
    #[derive(Debug, PartialEq, Eq, Hash)]
    #[cfg(feature = "Speech__SFSpeechAnalyzerOptions")]
    pub struct _SFSpeechAnalyzerOptions;

    #[cfg(feature = "Speech__SFSpeechAnalyzerOptions")]
    unsafe impl ClassType for _SFSpeechAnalyzerOptions {
        type Super = NSObject;
        type Mutability = InteriorMutable;
    }
);

#[cfg(feature = "Speech__SFSpeechAnalyzerOptions")]
unsafe impl NSCopying for _SFSpeechAnalyzerOptions {}

#[cfg(feature = "Speech__SFSpeechAnalyzerOptions")]
unsafe impl NSObjectProtocol for _SFSpeechAnalyzerOptions {}

extern_methods!(
    #[cfg(feature = "Speech__SFSpeechAnalyzerOptions")]
    unsafe impl _SFSpeechAnalyzerOptions {
        #[method(highPriority)]
        pub unsafe fn highPriority(&self) -> bool;

        #[cfg(feature = "Speech__SFSpeechAnalyzerOptionsLoggingInfo")]
        #[method_id(@__retain_semantics Other loggingInfo)]
        pub unsafe fn loggingInfo(&self) -> Option<Id<_SFSpeechAnalyzerOptionsLoggingInfo>>;

        #[cfg(feature = "Speech__SFSpeechAnalyzerOptionsPowerContext")]
        #[method_id(@__retain_semantics Other powerContext)]
        pub unsafe fn powerContext(&self) -> Option<Id<_SFSpeechAnalyzerOptionsPowerContext>>;

        #[cfg(all(
            feature = "Speech__SFSpeechAnalyzerOptionsLoggingInfo",
            feature = "Speech__SFSpeechAnalyzerOptionsPowerContext"
        ))]
        #[method_id(@__retain_semantics Init initWithHighPriority:loggingInfo:powerContext:)]
        pub unsafe fn initWithHighPriority_loggingInfo_powerContext(
            this: Allocated<Self>,
            high_priority: bool,
            logging_info: Option<&_SFSpeechAnalyzerOptionsLoggingInfo>,
            power_context: Option<&_SFSpeechAnalyzerOptionsPowerContext>,
        ) -> Id<Self>;
    }
);

extern_methods!(
    /// Methods declared on superclass `NSObject`
    #[cfg(feature = "Speech__SFSpeechAnalyzerOptions")]
    unsafe impl _SFSpeechAnalyzerOptions {
        #[method_id(@__retain_semantics Init init)]
        pub unsafe fn init(this: Allocated<Self>) -> Id<Self>;

        #[method_id(@__retain_semantics New new)]
        pub unsafe fn new() -> Id<Self>;
    }
);

extern_class!(
    #[derive(Debug, PartialEq, Eq, Hash)]
    #[cfg(feature = "Speech__SFSpeechAnalyzerOptionsLoggingInfo")]
    pub struct _SFSpeechAnalyzerOptionsLoggingInfo;

    #[cfg(feature = "Speech__SFSpeechAnalyzerOptionsLoggingInfo")]
    unsafe impl ClassType for _SFSpeechAnalyzerOptionsLoggingInfo {
        type Super = NSObject;
        type Mutability = InteriorMutable;
    }
);

#[cfg(feature = "Speech__SFSpeechAnalyzerOptionsLoggingInfo")]
unsafe impl NSCopying for _SFSpeechAnalyzerOptionsLoggingInfo {}

#[cfg(feature = "Speech__SFSpeechAnalyzerOptionsLoggingInfo")]
unsafe impl NSObjectProtocol for _SFSpeechAnalyzerOptionsLoggingInfo {}

extern_methods!(
    #[cfg(feature = "Speech__SFSpeechAnalyzerOptionsLoggingInfo")]
    unsafe impl _SFSpeechAnalyzerOptionsLoggingInfo {
        #[cfg(feature = "Foundation_NSUUID")]
        #[method_id(@__retain_semantics Other asrID)]
        pub unsafe fn asrID(&self) -> Id<NSUUID>;

        #[cfg(feature = "Foundation_NSUUID")]
        #[method_id(@__retain_semantics Other requestID)]
        pub unsafe fn requestID(&self) -> Id<NSUUID>;

        #[cfg(feature = "Foundation_NSUUID")]
        #[method_id(@__retain_semantics Init initWithAsrID:requestID:)]
        pub unsafe fn initWithAsrID_requestID(
            this: Allocated<Self>,
            asr_id: &NSUUID,
            request_id: &NSUUID,
        ) -> Id<Self>;
    }
);

extern_methods!(
    /// Methods declared on superclass `NSObject`
    #[cfg(feature = "Speech__SFSpeechAnalyzerOptionsLoggingInfo")]
    unsafe impl _SFSpeechAnalyzerOptionsLoggingInfo {
        #[method_id(@__retain_semantics Init init)]
        pub unsafe fn init(this: Allocated<Self>) -> Id<Self>;

        #[method_id(@__retain_semantics New new)]
        pub unsafe fn new() -> Id<Self>;
    }
);

extern_class!(
    #[derive(Debug, PartialEq, Eq, Hash)]
    #[cfg(feature = "Speech__SFSpeechAnalyzerOptionsPowerContext")]
    pub struct _SFSpeechAnalyzerOptionsPowerContext;

    #[cfg(feature = "Speech__SFSpeechAnalyzerOptionsPowerContext")]
    unsafe impl ClassType for _SFSpeechAnalyzerOptionsPowerContext {
        type Super = NSObject;
        type Mutability = InteriorMutable;
    }
);

#[cfg(feature = "Speech__SFSpeechAnalyzerOptionsPowerContext")]
unsafe impl NSCopying for _SFSpeechAnalyzerOptionsPowerContext {}

#[cfg(feature = "Speech__SFSpeechAnalyzerOptionsPowerContext")]
unsafe impl NSObjectProtocol for _SFSpeechAnalyzerOptionsPowerContext {}

extern_methods!(
    #[cfg(feature = "Speech__SFSpeechAnalyzerOptionsPowerContext")]
    unsafe impl _SFSpeechAnalyzerOptionsPowerContext {
        #[cfg(feature = "Foundation_NSString")]
        #[method_id(@__retain_semantics Other ane)]
        pub unsafe fn ane(&self) -> Id<NSString>;

        #[cfg(feature = "Foundation_NSString")]
        #[method_id(@__retain_semantics Other cpu)]
        pub unsafe fn cpu(&self) -> Id<NSString>;

        #[cfg(feature = "Foundation_NSString")]
        #[method_id(@__retain_semantics Other gpu)]
        pub unsafe fn gpu(&self) -> Id<NSString>;

        #[cfg(feature = "Foundation_NSString")]
        #[method_id(@__retain_semantics Init initWithAne:cpu:gpu:)]
        pub unsafe fn initWithAne_cpu_gpu(
            this: Allocated<Self>,
            ane: &NSString,
            cpu: &NSString,
            gpu: &NSString,
        ) -> Id<Self>;
    }
);

extern_methods!(
    /// Methods declared on superclass `NSObject`
    #[cfg(feature = "Speech__SFSpeechAnalyzerOptionsPowerContext")]
    unsafe impl _SFSpeechAnalyzerOptionsPowerContext {
        #[method_id(@__retain_semantics Init init)]
        pub unsafe fn init(this: Allocated<Self>) -> Id<Self>;

        #[method_id(@__retain_semantics New new)]
        pub unsafe fn new() -> Id<Self>;
    }
);

extern_class!(
    #[derive(Debug, PartialEq, Eq, Hash)]
    #[cfg(feature = "Speech__SFTranscriberModelOptions")]
    pub struct _SFTranscriberModelOptions;

    #[cfg(feature = "Speech__SFTranscriberModelOptions")]
    unsafe impl ClassType for _SFTranscriberModelOptions {
        type Super = NSObject;
        type Mutability = InteriorMutable;
    }
);

#[cfg(feature = "Speech__SFTranscriberModelOptions")]
unsafe impl NSCopying for _SFTranscriberModelOptions {}

#[cfg(feature = "Speech__SFTranscriberModelOptions")]
unsafe impl NSObjectProtocol for _SFTranscriberModelOptions {}

extern_methods!(
    #[cfg(feature = "Speech__SFTranscriberModelOptions")]
    unsafe impl _SFTranscriberModelOptions {
        #[cfg(feature = "Foundation_NSURL")]
        #[method_id(@__retain_semantics Other supplementalModelURL)]
        pub unsafe fn supplementalModelURL(&self) -> Option<Id<NSURL>>;

        #[method(farField)]
        pub unsafe fn farField(&self) -> bool;

        #[cfg(feature = "Foundation_NSURL")]
        #[method_id(@__retain_semantics Other modelOverrideURL)]
        pub unsafe fn modelOverrideURL(&self) -> Option<Id<NSURL>>;

        #[cfg(feature = "Foundation_NSString")]
        #[method_id(@__retain_semantics Other taskForMemoryLock)]
        pub unsafe fn taskForMemoryLock(&self) -> Option<Id<NSString>>;

        #[cfg(all(feature = "Foundation_NSArray", feature = "Foundation_NSURL"))]
        #[method_id(@__retain_semantics Other speechProfileURLs)]
        pub unsafe fn speechProfileURLs(&self) -> Id<NSArray<NSURL>>;

        #[cfg(all(
            feature = "Foundation_NSArray",
            feature = "Foundation_NSString",
            feature = "Foundation_NSURL"
        ))]
        #[method_id(@__retain_semantics Init initWithSupplementalModelURL:farField:modelOverrideURL:speechProfileURLs:taskForMemoryLock:)]
        pub unsafe fn initWithSupplementalModelURL_farField_modelOverrideURL_speechProfileURLs_taskForMemoryLock(
            this: Allocated<Self>,
            supplemental_model_url: Option<&NSURL>,
            far_field: bool,
            model_override_url: Option<&NSURL>,
            speech_profile_ur_ls: &NSArray<NSURL>,
            task_for_memory_lock: Option<&NSString>,
        ) -> Id<Self>;
    }
);

extern_methods!(
    /// Methods declared on superclass `NSObject`
    #[cfg(feature = "Speech__SFTranscriberModelOptions")]
    unsafe impl _SFTranscriberModelOptions {
        #[method_id(@__retain_semantics Init init)]
        pub unsafe fn init(this: Allocated<Self>) -> Id<Self>;

        #[method_id(@__retain_semantics New new)]
        pub unsafe fn new() -> Id<Self>;
    }
);

extern_class!(
    #[derive(Debug, PartialEq, Eq, Hash)]
    #[cfg(feature = "Speech__SFTranscriberResult")]
    pub struct _SFTranscriberResult;

    #[cfg(feature = "Speech__SFTranscriberResult")]
    unsafe impl ClassType for _SFTranscriberResult {
        type Super = NSObject;
        type Mutability = InteriorMutable;
    }
);

#[cfg(feature = "Speech__SFTranscriberResult")]
unsafe impl NSObjectProtocol for _SFTranscriberResult {}

extern_methods!(
    #[cfg(feature = "Speech__SFTranscriberResult")]
    unsafe impl _SFTranscriberResult {
        #[cfg(feature = "Speech__STTranscriberMultisegmentResult")]
        #[method_id(@__retain_semantics Other normalizedTranscriberMultisegmentResult)]
        pub unsafe fn normalizedTranscriberMultisegmentResult(
            &self,
        ) -> Id<_STTranscriberMultisegmentResult>;

        #[cfg(feature = "Speech__STCommandRecognizerResult")]
        #[method_id(@__retain_semantics Other normalizedCommandRecognizerResult)]
        pub unsafe fn normalizedCommandRecognizerResult(
            &self,
        ) -> Option<Id<_STCommandRecognizerResult>>;

        #[cfg(feature = "Speech__STTranscriberMultisegmentResult")]
        #[method_id(@__retain_semantics Other contextualizedTranscriberMultisegmentResult)]
        pub unsafe fn contextualizedTranscriberMultisegmentResult(
            &self,
        ) -> Id<_STTranscriberMultisegmentResult>;

        #[cfg(feature = "Speech__STCommandRecognizerResult")]
        #[method_id(@__retain_semantics Other contextualizedCommandRecognizerResult)]
        pub unsafe fn contextualizedCommandRecognizerResult(
            &self,
        ) -> Option<Id<_STCommandRecognizerResult>>;
    }
);

extern_methods!(
    /// Methods declared on superclass `NSObject`
    #[cfg(feature = "Speech__SFTranscriberResult")]
    unsafe impl _SFTranscriberResult {
        #[method_id(@__retain_semantics Init init)]
        pub unsafe fn init(this: Allocated<Self>) -> Id<Self>;

        #[method_id(@__retain_semantics New new)]
        pub unsafe fn new() -> Id<Self>;
    }
);

extern_class!(
    #[derive(Debug, PartialEq, Eq, Hash)]
    #[cfg(feature = "Speech__STTranscriberMultisegmentResult")]
    pub struct _STTranscriberMultisegmentResult;

    #[cfg(feature = "Speech__STTranscriberMultisegmentResult")]
    unsafe impl ClassType for _STTranscriberMultisegmentResult {
        type Super = NSObject;
        type Mutability = InteriorMutable;
    }
);

#[cfg(feature = "Speech__STTranscriberMultisegmentResult")]
unsafe impl NSCopying for _STTranscriberMultisegmentResult {}

#[cfg(feature = "Speech__STTranscriberMultisegmentResult")]
unsafe impl NSObjectProtocol for _STTranscriberMultisegmentResult {}

extern_methods!(
    #[cfg(feature = "Speech__STTranscriberMultisegmentResult")]
    unsafe impl _STTranscriberMultisegmentResult {
        #[cfg(all(
            feature = "Foundation_NSArray",
            feature = "Speech__SFAnalyzerTranscriptionSegment"
        ))]
        #[method_id(@__retain_semantics Other segments)]
        pub unsafe fn segments(&self) -> Id<NSArray<_SFAnalyzerTranscriptionSegment>>;

        #[cfg(all(feature = "Foundation_NSArray", feature = "Speech__SFToken"))]
        #[method_id(@__retain_semantics Other transcriptions)]
        pub unsafe fn transcriptions(&self) -> Id<NSArray<NSArray<_SFToken>>>;

        #[method(earResultType)]
        pub unsafe fn earResultType(&self) -> _SFEARResultType;

        #[cfg(all(feature = "Foundation_NSArray", feature = "Foundation_NSIndexPath"))]
        #[method_id(@__retain_semantics Other nBestChoices)]
        pub unsafe fn nBestChoices(&self) -> Id<NSArray<NSIndexPath>>;
    }
);

extern_methods!(
    /// Methods declared on superclass `NSObject`
    #[cfg(feature = "Speech__STTranscriberMultisegmentResult")]
    unsafe impl _STTranscriberMultisegmentResult {
        #[method_id(@__retain_semantics Init init)]
        pub unsafe fn init(this: Allocated<Self>) -> Id<Self>;

        #[method_id(@__retain_semantics New new)]
        pub unsafe fn new() -> Id<Self>;
    }
);

extern_class!(
    #[derive(Debug, PartialEq, Eq, Hash)]
    #[cfg(feature = "Speech__SFAnalyzerTranscriptionSegment")]
    pub struct _SFAnalyzerTranscriptionSegment;

    #[cfg(feature = "Speech__SFAnalyzerTranscriptionSegment")]
    unsafe impl ClassType for _SFAnalyzerTranscriptionSegment {
        type Super = NSObject;
        type Mutability = InteriorMutable;
    }
);

#[cfg(feature = "Speech__SFAnalyzerTranscriptionSegment")]
unsafe impl NSObjectProtocol for _SFAnalyzerTranscriptionSegment {}

extern_methods!(
    #[cfg(feature = "Speech__SFAnalyzerTranscriptionSegment")]
    unsafe impl _SFAnalyzerTranscriptionSegment {
        #[cfg(all(feature = "Foundation_NSArray", feature = "Speech__SFToken"))]
        #[method_id(@__retain_semantics Other text)]
        pub unsafe fn text(&self) -> Id<NSArray<_SFToken>>;

        #[cfg(all(feature = "Foundation_NSArray", feature = "Speech__SFToken"))]
        #[method_id(@__retain_semantics Other alternatives)]
        pub unsafe fn alternatives(&self) -> Id<NSArray<NSArray<_SFToken>>>;

        #[cfg(all(feature = "Foundation_NSArray", feature = "Speech__SFToken"))]
        #[method_id(@__retain_semantics Init initWithText:alternatives:)]
        pub unsafe fn initWithText_alternatives(
            this: Allocated<Self>,
            text: &NSArray<_SFToken>,
            alternatives: &NSArray<NSArray<_SFToken>>,
        ) -> Id<Self>;
    }
);

extern_methods!(
    /// Methods declared on superclass `NSObject`
    #[cfg(feature = "Speech__SFAnalyzerTranscriptionSegment")]
    unsafe impl _SFAnalyzerTranscriptionSegment {
        #[method_id(@__retain_semantics Init init)]
        pub unsafe fn init(this: Allocated<Self>) -> Id<Self>;

        #[method_id(@__retain_semantics New new)]
        pub unsafe fn new() -> Id<Self>;
    }
);

extern_class!(
    #[derive(Debug, PartialEq, Eq, Hash)]
    #[cfg(feature = "Speech__STCommandRecognizerResult")]
    pub struct _STCommandRecognizerResult;

    #[cfg(feature = "Speech__STCommandRecognizerResult")]
    unsafe impl ClassType for _STCommandRecognizerResult {
        type Super = NSObject;
        type Mutability = InteriorMutable;
    }
);

#[cfg(feature = "Speech__STCommandRecognizerResult")]
unsafe impl NSCopying for _STCommandRecognizerResult {}

#[cfg(feature = "Speech__STCommandRecognizerResult")]
unsafe impl NSObjectProtocol for _STCommandRecognizerResult {}

extern_methods!(
    #[cfg(feature = "Speech__STCommandRecognizerResult")]
    unsafe impl _STCommandRecognizerResult {
        #[cfg(all(
            feature = "Foundation_NSArray",
            feature = "Speech__SFCommandRecognizerInterpretation"
        ))]
        #[method_id(@__retain_semantics Init initWithTranscriptionCommands:)]
        pub unsafe fn initWithTranscriptionCommands(
            this: Allocated<Self>,
            transcription_commands: &NSArray<NSArray<_SFCommandRecognizerInterpretation>>,
        ) -> Id<Self>;

        #[cfg(all(
            feature = "Foundation_NSArray",
            feature = "Speech__SFCommandRecognizerInterpretation"
        ))]
        #[method_id(@__retain_semantics Other transcriptionCommands)]
        pub unsafe fn transcriptionCommands(
            &self,
        ) -> Id<NSArray<NSArray<_SFCommandRecognizerInterpretation>>>;
    }
);

extern_methods!(
    /// Methods declared on superclass `NSObject`
    #[cfg(feature = "Speech__STCommandRecognizerResult")]
    unsafe impl _STCommandRecognizerResult {
        #[method_id(@__retain_semantics Init init)]
        pub unsafe fn init(this: Allocated<Self>) -> Id<Self>;

        #[method_id(@__retain_semantics New new)]
        pub unsafe fn new() -> Id<Self>;
    }
);

extern_class!(
    #[derive(Debug, PartialEq, Eq, Hash)]
    #[cfg(feature = "Speech__SFCommandRecognizerInterpretation")]
    pub struct _SFCommandRecognizerInterpretation;

    #[cfg(feature = "Speech__SFCommandRecognizerInterpretation")]
    unsafe impl ClassType for _SFCommandRecognizerInterpretation {
        type Super = NSObject;
        type Mutability = InteriorMutable;
    }
);

#[cfg(feature = "Speech__SFCommandRecognizerInterpretation")]
unsafe impl NSObjectProtocol for _SFCommandRecognizerInterpretation {}

extern_methods!(
    #[cfg(feature = "Speech__SFCommandRecognizerInterpretation")]
    unsafe impl _SFCommandRecognizerInterpretation {
        #[cfg(feature = "Foundation_NSString")]
        #[method_id(@__retain_semantics Other commandIdentifier)]
        pub unsafe fn commandIdentifier(&self) -> Id<NSString>;

        #[cfg(all(feature = "Foundation_NSSet", feature = "Foundation_NSString"))]
        #[method_id(@__retain_semantics Other suiteIdentifiers)]
        pub unsafe fn suiteIdentifiers(&self) -> Id<NSSet<NSString>>;

        #[method(range)]
        pub unsafe fn range(&self) -> NSRange;

        #[cfg(feature = "Foundation_NSIndexSet")]
        #[method_id(@__retain_semantics Other verbIndexes)]
        pub unsafe fn verbIndexes(&self) -> Id<NSIndexSet>;

        #[cfg(all(
            feature = "Foundation_NSArray",
            feature = "Speech__SFCommandRecognizerArgument"
        ))]
        #[method_id(@__retain_semantics Other arguments)]
        pub unsafe fn arguments(&self) -> Id<NSArray<_SFCommandRecognizerArgument>>;

        #[cfg(all(
            feature = "Foundation_NSArray",
            feature = "Foundation_NSIndexSet",
            feature = "Foundation_NSSet",
            feature = "Foundation_NSString",
            feature = "Speech__SFCommandRecognizerArgument"
        ))]
        #[method_id(@__retain_semantics Init initWithCommandIdentifier:suiteIdentifiers:range:verbIndexes:arguments:)]
        pub unsafe fn initWithCommandIdentifier_suiteIdentifiers_range_verbIndexes_arguments(
            this: Allocated<Self>,
            command_identifier: &NSString,
            suite_identifiers: &NSSet<NSString>,
            range: NSRange,
            verb_indexes: &NSIndexSet,
            arguments: &NSArray<_SFCommandRecognizerArgument>,
        ) -> Id<Self>;
    }
);

extern_methods!(
    /// Methods declared on superclass `NSObject`
    #[cfg(feature = "Speech__SFCommandRecognizerInterpretation")]
    unsafe impl _SFCommandRecognizerInterpretation {
        #[method_id(@__retain_semantics Init init)]
        pub unsafe fn init(this: Allocated<Self>) -> Id<Self>;

        #[method_id(@__retain_semantics New new)]
        pub unsafe fn new() -> Id<Self>;
    }
);

extern_class!(
    #[derive(Debug, PartialEq, Eq, Hash)]
    #[cfg(feature = "Speech__SFCommandRecognizerArgument")]
    pub struct _SFCommandRecognizerArgument;

    #[cfg(feature = "Speech__SFCommandRecognizerArgument")]
    unsafe impl ClassType for _SFCommandRecognizerArgument {
        type Super = NSObject;
        type Mutability = InteriorMutable;
    }
);

#[cfg(feature = "Speech__SFCommandRecognizerArgument")]
unsafe impl NSObjectProtocol for _SFCommandRecognizerArgument {}

extern_methods!(
    #[cfg(feature = "Speech__SFCommandRecognizerArgument")]
    unsafe impl _SFCommandRecognizerArgument {
        #[method(presence)]
        pub unsafe fn presence(&self) -> _SFCommandRecognizerArgumentPresence;

        #[cfg(feature = "Foundation_NSIndexSet")]
        #[method_id(@__retain_semantics Other indexes)]
        pub unsafe fn indexes(&self) -> Id<NSIndexSet>;

        #[cfg(feature = "Foundation_NSIndexSet")]
        #[method_id(@__retain_semantics Other adpositionIndexes)]
        pub unsafe fn adpositionIndexes(&self) -> Id<NSIndexSet>;

        #[cfg(feature = "Foundation_NSIndexSet")]
        #[method_id(@__retain_semantics Init initWithPresence:indexes:adpositionIndexes:)]
        pub unsafe fn initWithPresence_indexes_adpositionIndexes(
            this: Allocated<Self>,
            presence: _SFCommandRecognizerArgumentPresence,
            indexes: &NSIndexSet,
            adposition_indexes: &NSIndexSet,
        ) -> Id<Self>;
    }
);

extern_methods!(
    /// Methods declared on superclass `NSObject`
    #[cfg(feature = "Speech__SFCommandRecognizerArgument")]
    unsafe impl _SFCommandRecognizerArgument {
        #[method_id(@__retain_semantics Init init)]
        pub unsafe fn init(this: Allocated<Self>) -> Id<Self>;

        #[method_id(@__retain_semantics New new)]
        pub unsafe fn new() -> Id<Self>;
    }
);

extern_class!(
    #[derive(Debug, PartialEq, Eq, Hash)]
    #[cfg(feature = "Speech__SFEndpointingResult")]
    pub struct _SFEndpointingResult;

    #[cfg(feature = "Speech__SFEndpointingResult")]
    unsafe impl ClassType for _SFEndpointingResult {
        type Super = NSObject;
        type Mutability = InteriorMutable;
    }
);

#[cfg(feature = "Speech__SFEndpointingResult")]
unsafe impl NSObjectProtocol for _SFEndpointingResult {}

extern_methods!(
    #[cfg(feature = "Speech__SFEndpointingResult")]
    unsafe impl _SFEndpointingResult {
        #[method(wordCount)]
        pub unsafe fn wordCount(&self) -> NSInteger;

        #[method(eosLikelihood)]
        pub unsafe fn eosLikelihood(&self) -> c_double;

        #[cfg(all(feature = "Foundation_NSArray", feature = "Foundation_NSNumber"))]
        #[method_id(@__retain_semantics Other pauseCounts)]
        pub unsafe fn pauseCounts(&self) -> Id<NSArray<NSNumber>>;

        #[method(silencePosterior)]
        pub unsafe fn silencePosterior(&self) -> c_double;
    }
);

extern_methods!(
    /// Methods declared on superclass `NSObject`
    #[cfg(feature = "Speech__SFEndpointingResult")]
    unsafe impl _SFEndpointingResult {
        #[method_id(@__retain_semantics Init init)]
        pub unsafe fn init(this: Allocated<Self>) -> Id<Self>;

        #[method_id(@__retain_semantics New new)]
        pub unsafe fn new() -> Id<Self>;
    }
);

extern_class!(
    #[derive(Debug, PartialEq, Eq, Hash)]
    #[cfg(feature = "Speech__SFToken")]
    pub struct _SFToken;

    #[cfg(feature = "Speech__SFToken")]
    unsafe impl ClassType for _SFToken {
        type Super = NSObject;
        type Mutability = InteriorMutable;
    }
);

#[cfg(feature = "Speech__SFToken")]
unsafe impl NSCopying for _SFToken {}

#[cfg(feature = "Speech__SFToken")]
unsafe impl NSObjectProtocol for _SFToken {}

extern_methods!(
    #[cfg(feature = "Speech__SFToken")]
    unsafe impl _SFToken {
        #[cfg(feature = "Foundation_NSString")]
        #[method_id(@__retain_semantics Other text)]
        pub unsafe fn text(&self) -> Id<NSString>;

        #[method(confidence)]
        pub unsafe fn confidence(&self) -> c_double;

        #[method(startTime)]
        pub unsafe fn startTime(&self) -> c_double;

        #[method(duration)]
        pub unsafe fn duration(&self) -> c_double;

        #[cfg(feature = "Foundation_NSString")]
        #[method_id(@__retain_semantics Init initWithText:confidence:startTime:duration:)]
        pub unsafe fn initWithText_confidence_startTime_duration(
            this: Allocated<Self>,
            text: &NSString,
            confidence: c_double,
            start_time: c_double,
            duration: c_double,
        ) -> Id<Self>;
    }
);

extern_methods!(
    /// Methods declared on superclass `NSObject`
    #[cfg(feature = "Speech__SFToken")]
    unsafe impl _SFToken {
        #[method_id(@__retain_semantics Init init)]
        pub unsafe fn init(this: Allocated<Self>) -> Id<Self>;

        #[method_id(@__retain_semantics New new)]
        pub unsafe fn new() -> Id<Self>;
    }
);