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
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use crate::common::*;
use crate::CoreData::*;
use crate::Foundation::*;

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

    #[cfg(feature = "CoreData_NSBatchUpdateRequest")]
    unsafe impl ClassType for NSBatchUpdateRequest {
        #[inherits(NSObject)]
        type Super = NSPersistentStoreRequest;
    }
);

#[cfg(feature = "CoreData_NSBatchUpdateRequest")]
unsafe impl NSObjectProtocol for NSBatchUpdateRequest {}

extern_methods!(
    #[cfg(feature = "CoreData_NSBatchUpdateRequest")]
    unsafe impl NSBatchUpdateRequest {
        #[cfg(feature = "Foundation_NSString")]
        #[method_id(@__retain_semantics Other batchUpdateRequestWithEntityName:)]
        pub unsafe fn batchUpdateRequestWithEntityName(entity_name: &NSString) -> Id<Self, Shared>;

        #[cfg(feature = "Foundation_NSString")]
        #[method_id(@__retain_semantics Init initWithEntityName:)]
        pub unsafe fn initWithEntityName(
            this: Option<Allocated<Self>>,
            entity_name: &NSString,
        ) -> Id<Self, Shared>;

        #[cfg(feature = "CoreData_NSEntityDescription")]
        #[method_id(@__retain_semantics Init initWithEntity:)]
        pub unsafe fn initWithEntity(
            this: Option<Allocated<Self>>,
            entity: &NSEntityDescription,
        ) -> Id<Self, Shared>;

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

        #[cfg(feature = "CoreData_NSEntityDescription")]
        #[method_id(@__retain_semantics Other entity)]
        pub unsafe fn entity(&self) -> Id<NSEntityDescription, Shared>;

        #[cfg(feature = "Foundation_NSPredicate")]
        #[method_id(@__retain_semantics Other predicate)]
        pub unsafe fn predicate(&self) -> Option<Id<NSPredicate, Shared>>;

        #[cfg(feature = "Foundation_NSPredicate")]
        #[method(setPredicate:)]
        pub unsafe fn setPredicate(&self, predicate: Option<&NSPredicate>);

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

        #[method(setIncludesSubentities:)]
        pub unsafe fn setIncludesSubentities(&self, includes_subentities: bool);

        #[method(resultType)]
        pub unsafe fn resultType(&self) -> NSBatchUpdateRequestResultType;

        #[method(setResultType:)]
        pub unsafe fn setResultType(&self, result_type: NSBatchUpdateRequestResultType);

        #[cfg(feature = "Foundation_NSDictionary")]
        #[method_id(@__retain_semantics Other propertiesToUpdate)]
        pub unsafe fn propertiesToUpdate(&self) -> Option<Id<NSDictionary, Shared>>;

        #[cfg(feature = "Foundation_NSDictionary")]
        #[method(setPropertiesToUpdate:)]
        pub unsafe fn setPropertiesToUpdate(&self, properties_to_update: Option<&NSDictionary>);
    }
);