forked from Serheo/protobuf-objc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPerson.pb.h
174 lines (140 loc) · 5.42 KB
/
Person.pb.h
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
// Generated by the protocol buffer compiler. DO NOT EDIT!
#import "ProtocolBuffers.h"
// @@protoc_insertion_point(imports)
@class Person;
@class PersonBuilder;
@class PersonPhoneNumber;
@class PersonPhoneNumberBuilder;
#ifndef __has_feature
#define __has_feature(x) 0 // Compatibility with non-clang compilers.
#endif // __has_feature
#ifndef NS_RETURNS_NOT_RETAINED
#if __has_feature(attribute_ns_returns_not_retained)
#define NS_RETURNS_NOT_RETAINED __attribute__((ns_returns_not_retained))
#else
#define NS_RETURNS_NOT_RETAINED
#endif
#endif
typedef enum {
PersonPhoneTypeMobile = 0,
PersonPhoneTypeHome = 1,
PersonPhoneTypeWork = 2,
} PersonPhoneType;
BOOL PersonPhoneTypeIsValidValue(PersonPhoneType value);
@interface PersonRoot : NSObject {
}
+ (PBExtensionRegistry*) extensionRegistry;
+ (void) registerAllExtensions:(PBMutableExtensionRegistry*) registry;
@end
@interface Person : PBGeneratedMessage {
@private
BOOL hasPersonId_:1;
BOOL hasName_:1;
BOOL hasEmail_:1;
NSInteger personId;
NSString* name;
NSString* email;
PBAppendableArray * phonesArray;
}
- (BOOL) hasName;
- (BOOL) hasPersonId;
- (BOOL) hasEmail;
@property (readonly, strong) NSString* name;
@property (readonly) NSInteger personId;
@property (readonly, strong) NSString* email;
@property (readonly, strong) PBArray * phones;
- (PersonPhoneNumber*)phonesAtIndex:(NSUInteger)index;
+ (Person*) defaultInstance;
- (Person*) defaultInstance;
- (BOOL) isInitialized;
- (void) writeToCodedOutputStream:(PBCodedOutputStream*) output;
- (PersonBuilder*) builder;
+ (PersonBuilder*) builder;
+ (PersonBuilder*) builderWithPrototype:(Person*) prototype;
- (PersonBuilder*) toBuilder;
+ (Person*) parseFromData:(NSData*) data;
+ (Person*) parseFromData:(NSData*) data extensionRegistry:(PBExtensionRegistry*) extensionRegistry;
+ (Person*) parseFromInputStream:(NSInputStream*) input;
+ (Person*) parseFromInputStream:(NSInputStream*) input extensionRegistry:(PBExtensionRegistry*) extensionRegistry;
+ (Person*) parseFromCodedInputStream:(PBCodedInputStream*) input;
+ (Person*) parseFromCodedInputStream:(PBCodedInputStream*) input extensionRegistry:(PBExtensionRegistry*) extensionRegistry;
@end
@interface PersonPhoneNumber : PBGeneratedMessage {
@private
BOOL hasNumber_:1;
BOOL hasType_:1;
NSString* number;
PersonPhoneType type;
}
- (BOOL) hasNumber;
- (BOOL) hasType;
@property (readonly, strong) NSString* number;
@property (readonly) PersonPhoneType type;
+ (PersonPhoneNumber*) defaultInstance;
- (PersonPhoneNumber*) defaultInstance;
- (BOOL) isInitialized;
- (void) writeToCodedOutputStream:(PBCodedOutputStream*) output;
- (PersonPhoneNumberBuilder*) builder;
+ (PersonPhoneNumberBuilder*) builder;
+ (PersonPhoneNumberBuilder*) builderWithPrototype:(PersonPhoneNumber*) prototype;
- (PersonPhoneNumberBuilder*) toBuilder;
+ (PersonPhoneNumber*) parseFromData:(NSData*) data;
+ (PersonPhoneNumber*) parseFromData:(NSData*) data extensionRegistry:(PBExtensionRegistry*) extensionRegistry;
+ (PersonPhoneNumber*) parseFromInputStream:(NSInputStream*) input;
+ (PersonPhoneNumber*) parseFromInputStream:(NSInputStream*) input extensionRegistry:(PBExtensionRegistry*) extensionRegistry;
+ (PersonPhoneNumber*) parseFromCodedInputStream:(PBCodedInputStream*) input;
+ (PersonPhoneNumber*) parseFromCodedInputStream:(PBCodedInputStream*) input extensionRegistry:(PBExtensionRegistry*) extensionRegistry;
@end
@interface PersonPhoneNumberBuilder : PBGeneratedMessage_Builder {
@private
PersonPhoneNumber* result;
}
- (PersonPhoneNumber*) defaultInstance;
- (PersonPhoneNumberBuilder*) clear;
- (PersonPhoneNumberBuilder*) clone;
- (PersonPhoneNumber*) build;
- (PersonPhoneNumber*) buildPartial;
- (PersonPhoneNumberBuilder*) mergeFrom:(PersonPhoneNumber*) other;
- (PersonPhoneNumberBuilder*) mergeFromCodedInputStream:(PBCodedInputStream*) input;
- (PersonPhoneNumberBuilder*) mergeFromCodedInputStream:(PBCodedInputStream*) input extensionRegistry:(PBExtensionRegistry*) extensionRegistry;
- (BOOL) hasNumber;
- (NSString*) number;
- (PersonPhoneNumberBuilder*) setNumber:(NSString*) value;
- (PersonPhoneNumberBuilder*) clearNumber;
- (BOOL) hasType;
- (PersonPhoneType) type;
- (PersonPhoneNumberBuilder*) setType:(PersonPhoneType) value;
- (PersonPhoneNumberBuilder*) clearType;
@end
@interface PersonBuilder : PBGeneratedMessage_Builder {
@private
Person* result;
}
- (Person*) defaultInstance;
- (PersonBuilder*) clear;
- (PersonBuilder*) clone;
- (Person*) build;
- (Person*) buildPartial;
- (PersonBuilder*) mergeFrom:(Person*) other;
- (PersonBuilder*) mergeFromCodedInputStream:(PBCodedInputStream*) input;
- (PersonBuilder*) mergeFromCodedInputStream:(PBCodedInputStream*) input extensionRegistry:(PBExtensionRegistry*) extensionRegistry;
- (BOOL) hasName;
- (NSString*) name;
- (PersonBuilder*) setName:(NSString*) value;
- (PersonBuilder*) clearName;
- (BOOL) hasPersonId;
- (NSInteger) personId;
- (PersonBuilder*) setPersonId:(NSInteger) value;
- (PersonBuilder*) clearPersonId;
- (BOOL) hasEmail;
- (NSString*) email;
- (PersonBuilder*) setEmail:(NSString*) value;
- (PersonBuilder*) clearEmail;
- (PBAppendableArray *)phones;
- (PersonPhoneNumber*)phonesAtIndex:(NSUInteger)index;
- (PersonBuilder *)addPhones:(PersonPhoneNumber*)value;
- (PersonBuilder *)setPhonesArray:(NSArray *)array;
- (PersonBuilder *)setPhonesValues:(const PersonPhoneNumber* __strong *)values count:(NSUInteger)count;
- (PersonBuilder *)clearPhones;
@end
// @@protoc_insertion_point(global_scope)