Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 1 | // Generated by the protocol buffer compiler. DO NOT EDIT! |
| 2 | // source: google/protobuf/wrappers.proto |
| 3 | |
| 4 | #import "GPBProtocolBuffers_RuntimeSupport.h" |
| 5 | #import "google/protobuf/Wrappers.pbobjc.h" |
| 6 | // @@protoc_insertion_point(imports) |
| 7 | |
Thomas Van Lenten | e664aa6 | 2016-04-19 13:13:04 -0400 | [diff] [blame] | 8 | #pragma clang diagnostic push |
| 9 | #pragma clang diagnostic ignored "-Wdeprecated-declarations" |
| 10 | |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 11 | #pragma mark - GPBWrappersRoot |
| 12 | |
| 13 | @implementation GPBWrappersRoot |
| 14 | |
| 15 | @end |
| 16 | |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 17 | #pragma mark - GPBWrappersRoot_FileDescriptor |
| 18 | |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 19 | static GPBFileDescriptor *GPBWrappersRoot_FileDescriptor(void) { |
| 20 | // This is called by +initialize so there is no need to worry |
| 21 | // about thread safety of the singleton. |
| 22 | static GPBFileDescriptor *descriptor = NULL; |
| 23 | if (!descriptor) { |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 24 | GPBDebugCheckRuntimeVersion(); |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 25 | descriptor = [[GPBFileDescriptor alloc] initWithPackage:@"google.protobuf" |
| 26 | syntax:GPBFileSyntaxProto3]; |
| 27 | } |
| 28 | return descriptor; |
| 29 | } |
| 30 | |
| 31 | #pragma mark - GPBDoubleValue |
| 32 | |
| 33 | @implementation GPBDoubleValue |
| 34 | |
| 35 | @dynamic value; |
| 36 | |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 37 | typedef struct GPBDoubleValue__storage_ { |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 38 | uint32_t _has_storage_[1]; |
| 39 | double value; |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 40 | } GPBDoubleValue__storage_; |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 41 | |
| 42 | // This method is threadsafe because it is initially called |
| 43 | // in +initialize for each subclass. |
| 44 | + (GPBDescriptor *)descriptor { |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 45 | static GPBDescriptor *descriptor = nil; |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 46 | if (!descriptor) { |
| 47 | static GPBMessageFieldDescription fields[] = { |
| 48 | { |
| 49 | .name = "value", |
Thomas Van Lenten | 79a23c4 | 2016-03-17 10:04:21 -0400 | [diff] [blame] | 50 | .dataTypeSpecific.className = NULL, |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 51 | .number = GPBDoubleValue_FieldNumber_Value, |
| 52 | .hasIndex = 0, |
Thomas Van Lenten | 79a23c4 | 2016-03-17 10:04:21 -0400 | [diff] [blame] | 53 | .offset = (uint32_t)offsetof(GPBDoubleValue__storage_, value), |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 54 | .flags = GPBFieldOptional, |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 55 | .dataType = GPBDataTypeDouble, |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 56 | }, |
| 57 | }; |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 58 | GPBDescriptor *localDescriptor = |
| 59 | [GPBDescriptor allocDescriptorForClass:[GPBDoubleValue class] |
| 60 | rootClass:[GPBWrappersRoot class] |
| 61 | file:GPBWrappersRoot_FileDescriptor() |
| 62 | fields:fields |
Thomas Van Lenten | 79a23c4 | 2016-03-17 10:04:21 -0400 | [diff] [blame] | 63 | fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 64 | storageSize:sizeof(GPBDoubleValue__storage_) |
Thomas Van Lenten | 79a23c4 | 2016-03-17 10:04:21 -0400 | [diff] [blame] | 65 | flags:0]; |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 66 | NSAssert(descriptor == nil, @"Startup recursed!"); |
| 67 | descriptor = localDescriptor; |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 68 | } |
| 69 | return descriptor; |
| 70 | } |
| 71 | |
| 72 | @end |
| 73 | |
| 74 | #pragma mark - GPBFloatValue |
| 75 | |
| 76 | @implementation GPBFloatValue |
| 77 | |
| 78 | @dynamic value; |
| 79 | |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 80 | typedef struct GPBFloatValue__storage_ { |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 81 | uint32_t _has_storage_[1]; |
| 82 | float value; |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 83 | } GPBFloatValue__storage_; |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 84 | |
| 85 | // This method is threadsafe because it is initially called |
| 86 | // in +initialize for each subclass. |
| 87 | + (GPBDescriptor *)descriptor { |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 88 | static GPBDescriptor *descriptor = nil; |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 89 | if (!descriptor) { |
| 90 | static GPBMessageFieldDescription fields[] = { |
| 91 | { |
| 92 | .name = "value", |
Thomas Van Lenten | 79a23c4 | 2016-03-17 10:04:21 -0400 | [diff] [blame] | 93 | .dataTypeSpecific.className = NULL, |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 94 | .number = GPBFloatValue_FieldNumber_Value, |
| 95 | .hasIndex = 0, |
Thomas Van Lenten | 79a23c4 | 2016-03-17 10:04:21 -0400 | [diff] [blame] | 96 | .offset = (uint32_t)offsetof(GPBFloatValue__storage_, value), |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 97 | .flags = GPBFieldOptional, |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 98 | .dataType = GPBDataTypeFloat, |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 99 | }, |
| 100 | }; |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 101 | GPBDescriptor *localDescriptor = |
| 102 | [GPBDescriptor allocDescriptorForClass:[GPBFloatValue class] |
| 103 | rootClass:[GPBWrappersRoot class] |
| 104 | file:GPBWrappersRoot_FileDescriptor() |
| 105 | fields:fields |
Thomas Van Lenten | 79a23c4 | 2016-03-17 10:04:21 -0400 | [diff] [blame] | 106 | fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 107 | storageSize:sizeof(GPBFloatValue__storage_) |
Thomas Van Lenten | 79a23c4 | 2016-03-17 10:04:21 -0400 | [diff] [blame] | 108 | flags:0]; |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 109 | NSAssert(descriptor == nil, @"Startup recursed!"); |
| 110 | descriptor = localDescriptor; |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 111 | } |
| 112 | return descriptor; |
| 113 | } |
| 114 | |
| 115 | @end |
| 116 | |
| 117 | #pragma mark - GPBInt64Value |
| 118 | |
| 119 | @implementation GPBInt64Value |
| 120 | |
| 121 | @dynamic value; |
| 122 | |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 123 | typedef struct GPBInt64Value__storage_ { |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 124 | uint32_t _has_storage_[1]; |
| 125 | int64_t value; |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 126 | } GPBInt64Value__storage_; |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 127 | |
| 128 | // This method is threadsafe because it is initially called |
| 129 | // in +initialize for each subclass. |
| 130 | + (GPBDescriptor *)descriptor { |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 131 | static GPBDescriptor *descriptor = nil; |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 132 | if (!descriptor) { |
| 133 | static GPBMessageFieldDescription fields[] = { |
| 134 | { |
| 135 | .name = "value", |
Thomas Van Lenten | 79a23c4 | 2016-03-17 10:04:21 -0400 | [diff] [blame] | 136 | .dataTypeSpecific.className = NULL, |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 137 | .number = GPBInt64Value_FieldNumber_Value, |
| 138 | .hasIndex = 0, |
Thomas Van Lenten | 79a23c4 | 2016-03-17 10:04:21 -0400 | [diff] [blame] | 139 | .offset = (uint32_t)offsetof(GPBInt64Value__storage_, value), |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 140 | .flags = GPBFieldOptional, |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 141 | .dataType = GPBDataTypeInt64, |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 142 | }, |
| 143 | }; |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 144 | GPBDescriptor *localDescriptor = |
| 145 | [GPBDescriptor allocDescriptorForClass:[GPBInt64Value class] |
| 146 | rootClass:[GPBWrappersRoot class] |
| 147 | file:GPBWrappersRoot_FileDescriptor() |
| 148 | fields:fields |
Thomas Van Lenten | 79a23c4 | 2016-03-17 10:04:21 -0400 | [diff] [blame] | 149 | fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 150 | storageSize:sizeof(GPBInt64Value__storage_) |
Thomas Van Lenten | 79a23c4 | 2016-03-17 10:04:21 -0400 | [diff] [blame] | 151 | flags:0]; |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 152 | NSAssert(descriptor == nil, @"Startup recursed!"); |
| 153 | descriptor = localDescriptor; |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 154 | } |
| 155 | return descriptor; |
| 156 | } |
| 157 | |
| 158 | @end |
| 159 | |
| 160 | #pragma mark - GPBUInt64Value |
| 161 | |
| 162 | @implementation GPBUInt64Value |
| 163 | |
| 164 | @dynamic value; |
| 165 | |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 166 | typedef struct GPBUInt64Value__storage_ { |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 167 | uint32_t _has_storage_[1]; |
| 168 | uint64_t value; |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 169 | } GPBUInt64Value__storage_; |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 170 | |
| 171 | // This method is threadsafe because it is initially called |
| 172 | // in +initialize for each subclass. |
| 173 | + (GPBDescriptor *)descriptor { |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 174 | static GPBDescriptor *descriptor = nil; |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 175 | if (!descriptor) { |
| 176 | static GPBMessageFieldDescription fields[] = { |
| 177 | { |
| 178 | .name = "value", |
Thomas Van Lenten | 79a23c4 | 2016-03-17 10:04:21 -0400 | [diff] [blame] | 179 | .dataTypeSpecific.className = NULL, |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 180 | .number = GPBUInt64Value_FieldNumber_Value, |
| 181 | .hasIndex = 0, |
Thomas Van Lenten | 79a23c4 | 2016-03-17 10:04:21 -0400 | [diff] [blame] | 182 | .offset = (uint32_t)offsetof(GPBUInt64Value__storage_, value), |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 183 | .flags = GPBFieldOptional, |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 184 | .dataType = GPBDataTypeUInt64, |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 185 | }, |
| 186 | }; |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 187 | GPBDescriptor *localDescriptor = |
| 188 | [GPBDescriptor allocDescriptorForClass:[GPBUInt64Value class] |
| 189 | rootClass:[GPBWrappersRoot class] |
| 190 | file:GPBWrappersRoot_FileDescriptor() |
| 191 | fields:fields |
Thomas Van Lenten | 79a23c4 | 2016-03-17 10:04:21 -0400 | [diff] [blame] | 192 | fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 193 | storageSize:sizeof(GPBUInt64Value__storage_) |
Thomas Van Lenten | 79a23c4 | 2016-03-17 10:04:21 -0400 | [diff] [blame] | 194 | flags:0]; |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 195 | NSAssert(descriptor == nil, @"Startup recursed!"); |
| 196 | descriptor = localDescriptor; |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 197 | } |
| 198 | return descriptor; |
| 199 | } |
| 200 | |
| 201 | @end |
| 202 | |
| 203 | #pragma mark - GPBInt32Value |
| 204 | |
| 205 | @implementation GPBInt32Value |
| 206 | |
| 207 | @dynamic value; |
| 208 | |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 209 | typedef struct GPBInt32Value__storage_ { |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 210 | uint32_t _has_storage_[1]; |
| 211 | int32_t value; |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 212 | } GPBInt32Value__storage_; |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 213 | |
| 214 | // This method is threadsafe because it is initially called |
| 215 | // in +initialize for each subclass. |
| 216 | + (GPBDescriptor *)descriptor { |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 217 | static GPBDescriptor *descriptor = nil; |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 218 | if (!descriptor) { |
| 219 | static GPBMessageFieldDescription fields[] = { |
| 220 | { |
| 221 | .name = "value", |
Thomas Van Lenten | 79a23c4 | 2016-03-17 10:04:21 -0400 | [diff] [blame] | 222 | .dataTypeSpecific.className = NULL, |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 223 | .number = GPBInt32Value_FieldNumber_Value, |
| 224 | .hasIndex = 0, |
Thomas Van Lenten | 79a23c4 | 2016-03-17 10:04:21 -0400 | [diff] [blame] | 225 | .offset = (uint32_t)offsetof(GPBInt32Value__storage_, value), |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 226 | .flags = GPBFieldOptional, |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 227 | .dataType = GPBDataTypeInt32, |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 228 | }, |
| 229 | }; |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 230 | GPBDescriptor *localDescriptor = |
| 231 | [GPBDescriptor allocDescriptorForClass:[GPBInt32Value class] |
| 232 | rootClass:[GPBWrappersRoot class] |
| 233 | file:GPBWrappersRoot_FileDescriptor() |
| 234 | fields:fields |
Thomas Van Lenten | 79a23c4 | 2016-03-17 10:04:21 -0400 | [diff] [blame] | 235 | fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 236 | storageSize:sizeof(GPBInt32Value__storage_) |
Thomas Van Lenten | 79a23c4 | 2016-03-17 10:04:21 -0400 | [diff] [blame] | 237 | flags:0]; |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 238 | NSAssert(descriptor == nil, @"Startup recursed!"); |
| 239 | descriptor = localDescriptor; |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 240 | } |
| 241 | return descriptor; |
| 242 | } |
| 243 | |
| 244 | @end |
| 245 | |
| 246 | #pragma mark - GPBUInt32Value |
| 247 | |
| 248 | @implementation GPBUInt32Value |
| 249 | |
| 250 | @dynamic value; |
| 251 | |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 252 | typedef struct GPBUInt32Value__storage_ { |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 253 | uint32_t _has_storage_[1]; |
| 254 | uint32_t value; |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 255 | } GPBUInt32Value__storage_; |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 256 | |
| 257 | // This method is threadsafe because it is initially called |
| 258 | // in +initialize for each subclass. |
| 259 | + (GPBDescriptor *)descriptor { |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 260 | static GPBDescriptor *descriptor = nil; |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 261 | if (!descriptor) { |
| 262 | static GPBMessageFieldDescription fields[] = { |
| 263 | { |
| 264 | .name = "value", |
Thomas Van Lenten | 79a23c4 | 2016-03-17 10:04:21 -0400 | [diff] [blame] | 265 | .dataTypeSpecific.className = NULL, |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 266 | .number = GPBUInt32Value_FieldNumber_Value, |
| 267 | .hasIndex = 0, |
Thomas Van Lenten | 79a23c4 | 2016-03-17 10:04:21 -0400 | [diff] [blame] | 268 | .offset = (uint32_t)offsetof(GPBUInt32Value__storage_, value), |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 269 | .flags = GPBFieldOptional, |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 270 | .dataType = GPBDataTypeUInt32, |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 271 | }, |
| 272 | }; |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 273 | GPBDescriptor *localDescriptor = |
| 274 | [GPBDescriptor allocDescriptorForClass:[GPBUInt32Value class] |
| 275 | rootClass:[GPBWrappersRoot class] |
| 276 | file:GPBWrappersRoot_FileDescriptor() |
| 277 | fields:fields |
Thomas Van Lenten | 79a23c4 | 2016-03-17 10:04:21 -0400 | [diff] [blame] | 278 | fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 279 | storageSize:sizeof(GPBUInt32Value__storage_) |
Thomas Van Lenten | 79a23c4 | 2016-03-17 10:04:21 -0400 | [diff] [blame] | 280 | flags:0]; |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 281 | NSAssert(descriptor == nil, @"Startup recursed!"); |
| 282 | descriptor = localDescriptor; |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 283 | } |
| 284 | return descriptor; |
| 285 | } |
| 286 | |
| 287 | @end |
| 288 | |
| 289 | #pragma mark - GPBBoolValue |
| 290 | |
| 291 | @implementation GPBBoolValue |
| 292 | |
| 293 | @dynamic value; |
| 294 | |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 295 | typedef struct GPBBoolValue__storage_ { |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 296 | uint32_t _has_storage_[1]; |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 297 | } GPBBoolValue__storage_; |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 298 | |
| 299 | // This method is threadsafe because it is initially called |
| 300 | // in +initialize for each subclass. |
| 301 | + (GPBDescriptor *)descriptor { |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 302 | static GPBDescriptor *descriptor = nil; |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 303 | if (!descriptor) { |
| 304 | static GPBMessageFieldDescription fields[] = { |
| 305 | { |
| 306 | .name = "value", |
Thomas Van Lenten | 79a23c4 | 2016-03-17 10:04:21 -0400 | [diff] [blame] | 307 | .dataTypeSpecific.className = NULL, |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 308 | .number = GPBBoolValue_FieldNumber_Value, |
| 309 | .hasIndex = 0, |
Thomas Van Lenten | 79a23c4 | 2016-03-17 10:04:21 -0400 | [diff] [blame] | 310 | .offset = 1, // Stored in _has_storage_ to save space. |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 311 | .flags = GPBFieldOptional, |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 312 | .dataType = GPBDataTypeBool, |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 313 | }, |
| 314 | }; |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 315 | GPBDescriptor *localDescriptor = |
| 316 | [GPBDescriptor allocDescriptorForClass:[GPBBoolValue class] |
| 317 | rootClass:[GPBWrappersRoot class] |
| 318 | file:GPBWrappersRoot_FileDescriptor() |
| 319 | fields:fields |
Thomas Van Lenten | 79a23c4 | 2016-03-17 10:04:21 -0400 | [diff] [blame] | 320 | fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 321 | storageSize:sizeof(GPBBoolValue__storage_) |
Thomas Van Lenten | 79a23c4 | 2016-03-17 10:04:21 -0400 | [diff] [blame] | 322 | flags:0]; |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 323 | NSAssert(descriptor == nil, @"Startup recursed!"); |
| 324 | descriptor = localDescriptor; |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 325 | } |
| 326 | return descriptor; |
| 327 | } |
| 328 | |
| 329 | @end |
| 330 | |
| 331 | #pragma mark - GPBStringValue |
| 332 | |
| 333 | @implementation GPBStringValue |
| 334 | |
| 335 | @dynamic value; |
| 336 | |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 337 | typedef struct GPBStringValue__storage_ { |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 338 | uint32_t _has_storage_[1]; |
| 339 | NSString *value; |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 340 | } GPBStringValue__storage_; |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 341 | |
| 342 | // This method is threadsafe because it is initially called |
| 343 | // in +initialize for each subclass. |
| 344 | + (GPBDescriptor *)descriptor { |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 345 | static GPBDescriptor *descriptor = nil; |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 346 | if (!descriptor) { |
| 347 | static GPBMessageFieldDescription fields[] = { |
| 348 | { |
| 349 | .name = "value", |
Thomas Van Lenten | 79a23c4 | 2016-03-17 10:04:21 -0400 | [diff] [blame] | 350 | .dataTypeSpecific.className = NULL, |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 351 | .number = GPBStringValue_FieldNumber_Value, |
| 352 | .hasIndex = 0, |
Thomas Van Lenten | 79a23c4 | 2016-03-17 10:04:21 -0400 | [diff] [blame] | 353 | .offset = (uint32_t)offsetof(GPBStringValue__storage_, value), |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 354 | .flags = GPBFieldOptional, |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 355 | .dataType = GPBDataTypeString, |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 356 | }, |
| 357 | }; |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 358 | GPBDescriptor *localDescriptor = |
| 359 | [GPBDescriptor allocDescriptorForClass:[GPBStringValue class] |
| 360 | rootClass:[GPBWrappersRoot class] |
| 361 | file:GPBWrappersRoot_FileDescriptor() |
| 362 | fields:fields |
Thomas Van Lenten | 79a23c4 | 2016-03-17 10:04:21 -0400 | [diff] [blame] | 363 | fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 364 | storageSize:sizeof(GPBStringValue__storage_) |
Thomas Van Lenten | 79a23c4 | 2016-03-17 10:04:21 -0400 | [diff] [blame] | 365 | flags:0]; |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 366 | NSAssert(descriptor == nil, @"Startup recursed!"); |
| 367 | descriptor = localDescriptor; |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 368 | } |
| 369 | return descriptor; |
| 370 | } |
| 371 | |
| 372 | @end |
| 373 | |
| 374 | #pragma mark - GPBBytesValue |
| 375 | |
| 376 | @implementation GPBBytesValue |
| 377 | |
| 378 | @dynamic value; |
| 379 | |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 380 | typedef struct GPBBytesValue__storage_ { |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 381 | uint32_t _has_storage_[1]; |
| 382 | NSData *value; |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 383 | } GPBBytesValue__storage_; |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 384 | |
| 385 | // This method is threadsafe because it is initially called |
| 386 | // in +initialize for each subclass. |
| 387 | + (GPBDescriptor *)descriptor { |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 388 | static GPBDescriptor *descriptor = nil; |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 389 | if (!descriptor) { |
| 390 | static GPBMessageFieldDescription fields[] = { |
| 391 | { |
| 392 | .name = "value", |
Thomas Van Lenten | 79a23c4 | 2016-03-17 10:04:21 -0400 | [diff] [blame] | 393 | .dataTypeSpecific.className = NULL, |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 394 | .number = GPBBytesValue_FieldNumber_Value, |
| 395 | .hasIndex = 0, |
Thomas Van Lenten | 79a23c4 | 2016-03-17 10:04:21 -0400 | [diff] [blame] | 396 | .offset = (uint32_t)offsetof(GPBBytesValue__storage_, value), |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 397 | .flags = GPBFieldOptional, |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 398 | .dataType = GPBDataTypeBytes, |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 399 | }, |
| 400 | }; |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 401 | GPBDescriptor *localDescriptor = |
| 402 | [GPBDescriptor allocDescriptorForClass:[GPBBytesValue class] |
| 403 | rootClass:[GPBWrappersRoot class] |
| 404 | file:GPBWrappersRoot_FileDescriptor() |
| 405 | fields:fields |
Thomas Van Lenten | 79a23c4 | 2016-03-17 10:04:21 -0400 | [diff] [blame] | 406 | fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 407 | storageSize:sizeof(GPBBytesValue__storage_) |
Thomas Van Lenten | 79a23c4 | 2016-03-17 10:04:21 -0400 | [diff] [blame] | 408 | flags:0]; |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 409 | NSAssert(descriptor == nil, @"Startup recursed!"); |
| 410 | descriptor = localDescriptor; |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 411 | } |
| 412 | return descriptor; |
| 413 | } |
| 414 | |
| 415 | @end |
| 416 | |
| 417 | |
Thomas Van Lenten | e664aa6 | 2016-04-19 13:13:04 -0400 | [diff] [blame] | 418 | #pragma clang diagnostic pop |
| 419 | |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 420 | // @@protoc_insertion_point(global_scope) |