Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 1 | // Generated by the protocol buffer compiler. DO NOT EDIT! |
Thomas Van Lenten | 7c64628 | 2022-09-19 13:19:31 -0400 | [diff] [blame] | 2 | // clang-format off |
Thomas Van Lenten | 672adeb | 2022-10-06 16:16:07 -0400 | [diff] [blame] | 3 | // source: google/protobuf/wrappers.proto |
Thomas Van Lenten | 7c64628 | 2022-09-19 13:19:31 -0400 | [diff] [blame] | 4 | |
Thomas Van Lenten | 020e4e3 | 2022-03-01 14:16:50 -0500 | [diff] [blame] | 5 | #import "GPBProtocolBuffers_RuntimeSupport.h" |
| 6 | #import "GPBWrappers.pbobjc.h" |
Thomas Van Lenten | 7da023b | 2016-05-09 13:53:20 -0400 | [diff] [blame] | 7 | |
Protobuf Team Bot | e4d70bb | 2023-02-08 10:17:46 -0800 | [diff] [blame] | 8 | #if GOOGLE_PROTOBUF_OBJC_VERSION < 30007 |
| 9 | #error This file was generated by a newer version of protoc which is incompatible with your Protocol Buffer library sources. |
| 10 | #endif |
| 11 | #if 30007 < GOOGLE_PROTOBUF_OBJC_MIN_SUPPORTED_VERSION |
| 12 | #error This file was generated by an older version of protoc which is incompatible with your Protocol Buffer library sources. |
| 13 | #endif |
| 14 | |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 15 | // @@protoc_insertion_point(imports) |
| 16 | |
Thomas Van Lenten | e664aa6 | 2016-04-19 13:13:04 -0400 | [diff] [blame] | 17 | #pragma clang diagnostic push |
| 18 | #pragma clang diagnostic ignored "-Wdeprecated-declarations" |
Protobuf Team Bot | bf7de74 | 2023-02-02 11:29:54 -0800 | [diff] [blame] | 19 | #pragma clang diagnostic ignored "-Wdollar-in-identifier-extension" |
| 20 | |
Protobuf Team Bot | aeae430 | 2023-02-09 07:43:26 -0800 | [diff] [blame] | 21 | #pragma mark - Objective-C Class declarations |
| 22 | // Forward declarations of Objective-C classes that we can use as |
Protobuf Team Bot | bf7de74 | 2023-02-02 11:29:54 -0800 | [diff] [blame] | 23 | // static values in struct initializers. |
| 24 | // We don't use [Foo class] because it is not a static value. |
| 25 | GPBObjCClassDeclaration(GPBBoolValue); |
| 26 | GPBObjCClassDeclaration(GPBBytesValue); |
| 27 | GPBObjCClassDeclaration(GPBDoubleValue); |
| 28 | GPBObjCClassDeclaration(GPBFloatValue); |
| 29 | GPBObjCClassDeclaration(GPBInt32Value); |
| 30 | GPBObjCClassDeclaration(GPBInt64Value); |
| 31 | GPBObjCClassDeclaration(GPBStringValue); |
| 32 | GPBObjCClassDeclaration(GPBUInt32Value); |
| 33 | GPBObjCClassDeclaration(GPBUInt64Value); |
Thomas Van Lenten | e664aa6 | 2016-04-19 13:13:04 -0400 | [diff] [blame] | 34 | |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 35 | #pragma mark - GPBWrappersRoot |
| 36 | |
| 37 | @implementation GPBWrappersRoot |
| 38 | |
Thomas Van Lenten | 740d314 | 2023-08-14 10:04:53 -0700 | [diff] [blame] | 39 | // No extensions in the file and no imports or none of the imports (direct or |
| 40 | // indirect) defined extensions, so no need to generate +extensionRegistry. |
Thomas Van Lenten | 13a4124 | 2016-09-01 11:45:50 -0400 | [diff] [blame] | 41 | |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 42 | @end |
| 43 | |
Protobuf Team Bot | 4ed02cc | 2023-02-08 06:31:58 -0800 | [diff] [blame] | 44 | static GPBFileDescription GPBWrappersRoot_FileDescription = { |
| 45 | .package = "google.protobuf", |
| 46 | .prefix = "GPB", |
| 47 | .syntax = GPBFileSyntaxProto3 |
| 48 | }; |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 49 | |
| 50 | #pragma mark - GPBDoubleValue |
| 51 | |
| 52 | @implementation GPBDoubleValue |
| 53 | |
| 54 | @dynamic value; |
| 55 | |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 56 | typedef struct GPBDoubleValue__storage_ { |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 57 | uint32_t _has_storage_[1]; |
| 58 | double value; |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 59 | } GPBDoubleValue__storage_; |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 60 | |
| 61 | // This method is threadsafe because it is initially called |
| 62 | // in +initialize for each subclass. |
| 63 | + (GPBDescriptor *)descriptor { |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 64 | static GPBDescriptor *descriptor = nil; |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 65 | if (!descriptor) { |
Protobuf Team Bot | 78376c3 | 2023-01-31 11:29:07 -0800 | [diff] [blame] | 66 | GPB_DEBUG_CHECK_RUNTIME_VERSIONS(); |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 67 | static GPBMessageFieldDescription fields[] = { |
| 68 | { |
| 69 | .name = "value", |
Dave MacLachlan | 74956e1 | 2019-12-17 17:32:09 -0800 | [diff] [blame] | 70 | .dataTypeSpecific.clazz = Nil, |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 71 | .number = GPBDoubleValue_FieldNumber_Value, |
| 72 | .hasIndex = 0, |
Thomas Van Lenten | 79a23c4 | 2016-03-17 10:04:21 -0400 | [diff] [blame] | 73 | .offset = (uint32_t)offsetof(GPBDoubleValue__storage_, value), |
Thomas Van Lenten | b0e2792 | 2020-04-13 13:36:56 -0400 | [diff] [blame] | 74 | .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero), |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 75 | .dataType = GPBDataTypeDouble, |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 76 | }, |
| 77 | }; |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 78 | GPBDescriptor *localDescriptor = |
Protobuf Team Bot | bf7de74 | 2023-02-02 11:29:54 -0800 | [diff] [blame] | 79 | [GPBDescriptor allocDescriptorForClass:GPBObjCClass(GPBDoubleValue) |
Protobuf Team Bot | 4ed02cc | 2023-02-08 06:31:58 -0800 | [diff] [blame] | 80 | messageName:@"DoubleValue" |
| 81 | fileDescription:&GPBWrappersRoot_FileDescription |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 82 | fields:fields |
Thomas Van Lenten | 79a23c4 | 2016-03-17 10:04:21 -0400 | [diff] [blame] | 83 | fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 84 | storageSize:sizeof(GPBDoubleValue__storage_) |
Protobuf Team Bot | 4a12247 | 2022-11-15 11:22:51 -0800 | [diff] [blame] | 85 | flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown | GPBDescriptorInitializationFlag_ClosedEnumSupportKnown)]; |
Thomas Van Lenten | 6c4ab10 | 2023-07-11 07:49:55 -0700 | [diff] [blame] | 86 | #if defined(DEBUG) && DEBUG |
Dave MacLachlan | b631176 | 2018-12-11 16:32:48 -0800 | [diff] [blame] | 87 | NSAssert(descriptor == nil, @"Startup recursed!"); |
Thomas Van Lenten | 6c4ab10 | 2023-07-11 07:49:55 -0700 | [diff] [blame] | 88 | #endif // DEBUG |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 89 | descriptor = localDescriptor; |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 90 | } |
| 91 | return descriptor; |
| 92 | } |
| 93 | |
| 94 | @end |
| 95 | |
| 96 | #pragma mark - GPBFloatValue |
| 97 | |
| 98 | @implementation GPBFloatValue |
| 99 | |
| 100 | @dynamic value; |
| 101 | |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 102 | typedef struct GPBFloatValue__storage_ { |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 103 | uint32_t _has_storage_[1]; |
| 104 | float value; |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 105 | } GPBFloatValue__storage_; |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 106 | |
| 107 | // This method is threadsafe because it is initially called |
| 108 | // in +initialize for each subclass. |
| 109 | + (GPBDescriptor *)descriptor { |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 110 | static GPBDescriptor *descriptor = nil; |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 111 | if (!descriptor) { |
Protobuf Team Bot | 78376c3 | 2023-01-31 11:29:07 -0800 | [diff] [blame] | 112 | GPB_DEBUG_CHECK_RUNTIME_VERSIONS(); |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 113 | static GPBMessageFieldDescription fields[] = { |
| 114 | { |
| 115 | .name = "value", |
Dave MacLachlan | 74956e1 | 2019-12-17 17:32:09 -0800 | [diff] [blame] | 116 | .dataTypeSpecific.clazz = Nil, |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 117 | .number = GPBFloatValue_FieldNumber_Value, |
| 118 | .hasIndex = 0, |
Thomas Van Lenten | 79a23c4 | 2016-03-17 10:04:21 -0400 | [diff] [blame] | 119 | .offset = (uint32_t)offsetof(GPBFloatValue__storage_, value), |
Thomas Van Lenten | b0e2792 | 2020-04-13 13:36:56 -0400 | [diff] [blame] | 120 | .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero), |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 121 | .dataType = GPBDataTypeFloat, |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 122 | }, |
| 123 | }; |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 124 | GPBDescriptor *localDescriptor = |
Protobuf Team Bot | bf7de74 | 2023-02-02 11:29:54 -0800 | [diff] [blame] | 125 | [GPBDescriptor allocDescriptorForClass:GPBObjCClass(GPBFloatValue) |
Protobuf Team Bot | 4ed02cc | 2023-02-08 06:31:58 -0800 | [diff] [blame] | 126 | messageName:@"FloatValue" |
| 127 | fileDescription:&GPBWrappersRoot_FileDescription |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 128 | fields:fields |
Thomas Van Lenten | 79a23c4 | 2016-03-17 10:04:21 -0400 | [diff] [blame] | 129 | fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 130 | storageSize:sizeof(GPBFloatValue__storage_) |
Protobuf Team Bot | 4a12247 | 2022-11-15 11:22:51 -0800 | [diff] [blame] | 131 | flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown | GPBDescriptorInitializationFlag_ClosedEnumSupportKnown)]; |
Thomas Van Lenten | 6c4ab10 | 2023-07-11 07:49:55 -0700 | [diff] [blame] | 132 | #if defined(DEBUG) && DEBUG |
Dave MacLachlan | b631176 | 2018-12-11 16:32:48 -0800 | [diff] [blame] | 133 | NSAssert(descriptor == nil, @"Startup recursed!"); |
Thomas Van Lenten | 6c4ab10 | 2023-07-11 07:49:55 -0700 | [diff] [blame] | 134 | #endif // DEBUG |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 135 | descriptor = localDescriptor; |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 136 | } |
| 137 | return descriptor; |
| 138 | } |
| 139 | |
| 140 | @end |
| 141 | |
| 142 | #pragma mark - GPBInt64Value |
| 143 | |
| 144 | @implementation GPBInt64Value |
| 145 | |
| 146 | @dynamic value; |
| 147 | |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 148 | typedef struct GPBInt64Value__storage_ { |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 149 | uint32_t _has_storage_[1]; |
| 150 | int64_t value; |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 151 | } GPBInt64Value__storage_; |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 152 | |
| 153 | // This method is threadsafe because it is initially called |
| 154 | // in +initialize for each subclass. |
| 155 | + (GPBDescriptor *)descriptor { |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 156 | static GPBDescriptor *descriptor = nil; |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 157 | if (!descriptor) { |
Protobuf Team Bot | 78376c3 | 2023-01-31 11:29:07 -0800 | [diff] [blame] | 158 | GPB_DEBUG_CHECK_RUNTIME_VERSIONS(); |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 159 | static GPBMessageFieldDescription fields[] = { |
| 160 | { |
| 161 | .name = "value", |
Dave MacLachlan | 74956e1 | 2019-12-17 17:32:09 -0800 | [diff] [blame] | 162 | .dataTypeSpecific.clazz = Nil, |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 163 | .number = GPBInt64Value_FieldNumber_Value, |
| 164 | .hasIndex = 0, |
Thomas Van Lenten | 79a23c4 | 2016-03-17 10:04:21 -0400 | [diff] [blame] | 165 | .offset = (uint32_t)offsetof(GPBInt64Value__storage_, value), |
Thomas Van Lenten | b0e2792 | 2020-04-13 13:36:56 -0400 | [diff] [blame] | 166 | .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero), |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 167 | .dataType = GPBDataTypeInt64, |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 168 | }, |
| 169 | }; |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 170 | GPBDescriptor *localDescriptor = |
Protobuf Team Bot | bf7de74 | 2023-02-02 11:29:54 -0800 | [diff] [blame] | 171 | [GPBDescriptor allocDescriptorForClass:GPBObjCClass(GPBInt64Value) |
Protobuf Team Bot | 4ed02cc | 2023-02-08 06:31:58 -0800 | [diff] [blame] | 172 | messageName:@"Int64Value" |
| 173 | fileDescription:&GPBWrappersRoot_FileDescription |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 174 | fields:fields |
Thomas Van Lenten | 79a23c4 | 2016-03-17 10:04:21 -0400 | [diff] [blame] | 175 | fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 176 | storageSize:sizeof(GPBInt64Value__storage_) |
Protobuf Team Bot | 4a12247 | 2022-11-15 11:22:51 -0800 | [diff] [blame] | 177 | flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown | GPBDescriptorInitializationFlag_ClosedEnumSupportKnown)]; |
Thomas Van Lenten | 6c4ab10 | 2023-07-11 07:49:55 -0700 | [diff] [blame] | 178 | #if defined(DEBUG) && DEBUG |
Dave MacLachlan | b631176 | 2018-12-11 16:32:48 -0800 | [diff] [blame] | 179 | NSAssert(descriptor == nil, @"Startup recursed!"); |
Thomas Van Lenten | 6c4ab10 | 2023-07-11 07:49:55 -0700 | [diff] [blame] | 180 | #endif // DEBUG |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 181 | descriptor = localDescriptor; |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 182 | } |
| 183 | return descriptor; |
| 184 | } |
| 185 | |
| 186 | @end |
| 187 | |
| 188 | #pragma mark - GPBUInt64Value |
| 189 | |
| 190 | @implementation GPBUInt64Value |
| 191 | |
| 192 | @dynamic value; |
| 193 | |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 194 | typedef struct GPBUInt64Value__storage_ { |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 195 | uint32_t _has_storage_[1]; |
| 196 | uint64_t value; |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 197 | } GPBUInt64Value__storage_; |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 198 | |
| 199 | // This method is threadsafe because it is initially called |
| 200 | // in +initialize for each subclass. |
| 201 | + (GPBDescriptor *)descriptor { |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 202 | static GPBDescriptor *descriptor = nil; |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 203 | if (!descriptor) { |
Protobuf Team Bot | 78376c3 | 2023-01-31 11:29:07 -0800 | [diff] [blame] | 204 | GPB_DEBUG_CHECK_RUNTIME_VERSIONS(); |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 205 | static GPBMessageFieldDescription fields[] = { |
| 206 | { |
| 207 | .name = "value", |
Dave MacLachlan | 74956e1 | 2019-12-17 17:32:09 -0800 | [diff] [blame] | 208 | .dataTypeSpecific.clazz = Nil, |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 209 | .number = GPBUInt64Value_FieldNumber_Value, |
| 210 | .hasIndex = 0, |
Thomas Van Lenten | 79a23c4 | 2016-03-17 10:04:21 -0400 | [diff] [blame] | 211 | .offset = (uint32_t)offsetof(GPBUInt64Value__storage_, value), |
Thomas Van Lenten | b0e2792 | 2020-04-13 13:36:56 -0400 | [diff] [blame] | 212 | .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero), |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 213 | .dataType = GPBDataTypeUInt64, |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 214 | }, |
| 215 | }; |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 216 | GPBDescriptor *localDescriptor = |
Protobuf Team Bot | bf7de74 | 2023-02-02 11:29:54 -0800 | [diff] [blame] | 217 | [GPBDescriptor allocDescriptorForClass:GPBObjCClass(GPBUInt64Value) |
Protobuf Team Bot | 4ed02cc | 2023-02-08 06:31:58 -0800 | [diff] [blame] | 218 | messageName:@"UInt64Value" |
| 219 | fileDescription:&GPBWrappersRoot_FileDescription |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 220 | fields:fields |
Thomas Van Lenten | 79a23c4 | 2016-03-17 10:04:21 -0400 | [diff] [blame] | 221 | fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 222 | storageSize:sizeof(GPBUInt64Value__storage_) |
Protobuf Team Bot | 4a12247 | 2022-11-15 11:22:51 -0800 | [diff] [blame] | 223 | flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown | GPBDescriptorInitializationFlag_ClosedEnumSupportKnown)]; |
Thomas Van Lenten | 6c4ab10 | 2023-07-11 07:49:55 -0700 | [diff] [blame] | 224 | #if defined(DEBUG) && DEBUG |
Dave MacLachlan | b631176 | 2018-12-11 16:32:48 -0800 | [diff] [blame] | 225 | NSAssert(descriptor == nil, @"Startup recursed!"); |
Thomas Van Lenten | 6c4ab10 | 2023-07-11 07:49:55 -0700 | [diff] [blame] | 226 | #endif // DEBUG |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 227 | descriptor = localDescriptor; |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 228 | } |
| 229 | return descriptor; |
| 230 | } |
| 231 | |
| 232 | @end |
| 233 | |
| 234 | #pragma mark - GPBInt32Value |
| 235 | |
| 236 | @implementation GPBInt32Value |
| 237 | |
| 238 | @dynamic value; |
| 239 | |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 240 | typedef struct GPBInt32Value__storage_ { |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 241 | uint32_t _has_storage_[1]; |
| 242 | int32_t value; |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 243 | } GPBInt32Value__storage_; |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 244 | |
| 245 | // This method is threadsafe because it is initially called |
| 246 | // in +initialize for each subclass. |
| 247 | + (GPBDescriptor *)descriptor { |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 248 | static GPBDescriptor *descriptor = nil; |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 249 | if (!descriptor) { |
Protobuf Team Bot | 78376c3 | 2023-01-31 11:29:07 -0800 | [diff] [blame] | 250 | GPB_DEBUG_CHECK_RUNTIME_VERSIONS(); |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 251 | static GPBMessageFieldDescription fields[] = { |
| 252 | { |
| 253 | .name = "value", |
Dave MacLachlan | 74956e1 | 2019-12-17 17:32:09 -0800 | [diff] [blame] | 254 | .dataTypeSpecific.clazz = Nil, |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 255 | .number = GPBInt32Value_FieldNumber_Value, |
| 256 | .hasIndex = 0, |
Thomas Van Lenten | 79a23c4 | 2016-03-17 10:04:21 -0400 | [diff] [blame] | 257 | .offset = (uint32_t)offsetof(GPBInt32Value__storage_, value), |
Thomas Van Lenten | b0e2792 | 2020-04-13 13:36:56 -0400 | [diff] [blame] | 258 | .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero), |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 259 | .dataType = GPBDataTypeInt32, |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 260 | }, |
| 261 | }; |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 262 | GPBDescriptor *localDescriptor = |
Protobuf Team Bot | bf7de74 | 2023-02-02 11:29:54 -0800 | [diff] [blame] | 263 | [GPBDescriptor allocDescriptorForClass:GPBObjCClass(GPBInt32Value) |
Protobuf Team Bot | 4ed02cc | 2023-02-08 06:31:58 -0800 | [diff] [blame] | 264 | messageName:@"Int32Value" |
| 265 | fileDescription:&GPBWrappersRoot_FileDescription |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 266 | fields:fields |
Thomas Van Lenten | 79a23c4 | 2016-03-17 10:04:21 -0400 | [diff] [blame] | 267 | fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 268 | storageSize:sizeof(GPBInt32Value__storage_) |
Protobuf Team Bot | 4a12247 | 2022-11-15 11:22:51 -0800 | [diff] [blame] | 269 | flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown | GPBDescriptorInitializationFlag_ClosedEnumSupportKnown)]; |
Thomas Van Lenten | 6c4ab10 | 2023-07-11 07:49:55 -0700 | [diff] [blame] | 270 | #if defined(DEBUG) && DEBUG |
Dave MacLachlan | b631176 | 2018-12-11 16:32:48 -0800 | [diff] [blame] | 271 | NSAssert(descriptor == nil, @"Startup recursed!"); |
Thomas Van Lenten | 6c4ab10 | 2023-07-11 07:49:55 -0700 | [diff] [blame] | 272 | #endif // DEBUG |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 273 | descriptor = localDescriptor; |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 274 | } |
| 275 | return descriptor; |
| 276 | } |
| 277 | |
| 278 | @end |
| 279 | |
| 280 | #pragma mark - GPBUInt32Value |
| 281 | |
| 282 | @implementation GPBUInt32Value |
| 283 | |
| 284 | @dynamic value; |
| 285 | |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 286 | typedef struct GPBUInt32Value__storage_ { |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 287 | uint32_t _has_storage_[1]; |
| 288 | uint32_t value; |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 289 | } GPBUInt32Value__storage_; |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 290 | |
| 291 | // This method is threadsafe because it is initially called |
| 292 | // in +initialize for each subclass. |
| 293 | + (GPBDescriptor *)descriptor { |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 294 | static GPBDescriptor *descriptor = nil; |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 295 | if (!descriptor) { |
Protobuf Team Bot | 78376c3 | 2023-01-31 11:29:07 -0800 | [diff] [blame] | 296 | GPB_DEBUG_CHECK_RUNTIME_VERSIONS(); |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 297 | static GPBMessageFieldDescription fields[] = { |
| 298 | { |
| 299 | .name = "value", |
Dave MacLachlan | 74956e1 | 2019-12-17 17:32:09 -0800 | [diff] [blame] | 300 | .dataTypeSpecific.clazz = Nil, |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 301 | .number = GPBUInt32Value_FieldNumber_Value, |
| 302 | .hasIndex = 0, |
Thomas Van Lenten | 79a23c4 | 2016-03-17 10:04:21 -0400 | [diff] [blame] | 303 | .offset = (uint32_t)offsetof(GPBUInt32Value__storage_, value), |
Thomas Van Lenten | b0e2792 | 2020-04-13 13:36:56 -0400 | [diff] [blame] | 304 | .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero), |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 305 | .dataType = GPBDataTypeUInt32, |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 306 | }, |
| 307 | }; |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 308 | GPBDescriptor *localDescriptor = |
Protobuf Team Bot | bf7de74 | 2023-02-02 11:29:54 -0800 | [diff] [blame] | 309 | [GPBDescriptor allocDescriptorForClass:GPBObjCClass(GPBUInt32Value) |
Protobuf Team Bot | 4ed02cc | 2023-02-08 06:31:58 -0800 | [diff] [blame] | 310 | messageName:@"UInt32Value" |
| 311 | fileDescription:&GPBWrappersRoot_FileDescription |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 312 | fields:fields |
Thomas Van Lenten | 79a23c4 | 2016-03-17 10:04:21 -0400 | [diff] [blame] | 313 | fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 314 | storageSize:sizeof(GPBUInt32Value__storage_) |
Protobuf Team Bot | 4a12247 | 2022-11-15 11:22:51 -0800 | [diff] [blame] | 315 | flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown | GPBDescriptorInitializationFlag_ClosedEnumSupportKnown)]; |
Thomas Van Lenten | 6c4ab10 | 2023-07-11 07:49:55 -0700 | [diff] [blame] | 316 | #if defined(DEBUG) && DEBUG |
Dave MacLachlan | b631176 | 2018-12-11 16:32:48 -0800 | [diff] [blame] | 317 | NSAssert(descriptor == nil, @"Startup recursed!"); |
Thomas Van Lenten | 6c4ab10 | 2023-07-11 07:49:55 -0700 | [diff] [blame] | 318 | #endif // DEBUG |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 319 | descriptor = localDescriptor; |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 320 | } |
| 321 | return descriptor; |
| 322 | } |
| 323 | |
| 324 | @end |
| 325 | |
| 326 | #pragma mark - GPBBoolValue |
| 327 | |
| 328 | @implementation GPBBoolValue |
| 329 | |
| 330 | @dynamic value; |
| 331 | |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 332 | typedef struct GPBBoolValue__storage_ { |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 333 | uint32_t _has_storage_[1]; |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 334 | } GPBBoolValue__storage_; |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 335 | |
| 336 | // This method is threadsafe because it is initially called |
| 337 | // in +initialize for each subclass. |
| 338 | + (GPBDescriptor *)descriptor { |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 339 | static GPBDescriptor *descriptor = nil; |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 340 | if (!descriptor) { |
Protobuf Team Bot | 78376c3 | 2023-01-31 11:29:07 -0800 | [diff] [blame] | 341 | GPB_DEBUG_CHECK_RUNTIME_VERSIONS(); |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 342 | static GPBMessageFieldDescription fields[] = { |
| 343 | { |
| 344 | .name = "value", |
Dave MacLachlan | 74956e1 | 2019-12-17 17:32:09 -0800 | [diff] [blame] | 345 | .dataTypeSpecific.clazz = Nil, |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 346 | .number = GPBBoolValue_FieldNumber_Value, |
| 347 | .hasIndex = 0, |
Thomas Van Lenten | 79a23c4 | 2016-03-17 10:04:21 -0400 | [diff] [blame] | 348 | .offset = 1, // Stored in _has_storage_ to save space. |
Thomas Van Lenten | b0e2792 | 2020-04-13 13:36:56 -0400 | [diff] [blame] | 349 | .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero), |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 350 | .dataType = GPBDataTypeBool, |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 351 | }, |
| 352 | }; |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 353 | GPBDescriptor *localDescriptor = |
Protobuf Team Bot | bf7de74 | 2023-02-02 11:29:54 -0800 | [diff] [blame] | 354 | [GPBDescriptor allocDescriptorForClass:GPBObjCClass(GPBBoolValue) |
Protobuf Team Bot | 4ed02cc | 2023-02-08 06:31:58 -0800 | [diff] [blame] | 355 | messageName:@"BoolValue" |
| 356 | fileDescription:&GPBWrappersRoot_FileDescription |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 357 | fields:fields |
Thomas Van Lenten | 79a23c4 | 2016-03-17 10:04:21 -0400 | [diff] [blame] | 358 | fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 359 | storageSize:sizeof(GPBBoolValue__storage_) |
Protobuf Team Bot | 4a12247 | 2022-11-15 11:22:51 -0800 | [diff] [blame] | 360 | flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown | GPBDescriptorInitializationFlag_ClosedEnumSupportKnown)]; |
Thomas Van Lenten | 6c4ab10 | 2023-07-11 07:49:55 -0700 | [diff] [blame] | 361 | #if defined(DEBUG) && DEBUG |
Dave MacLachlan | b631176 | 2018-12-11 16:32:48 -0800 | [diff] [blame] | 362 | NSAssert(descriptor == nil, @"Startup recursed!"); |
Thomas Van Lenten | 6c4ab10 | 2023-07-11 07:49:55 -0700 | [diff] [blame] | 363 | #endif // DEBUG |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 364 | descriptor = localDescriptor; |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 365 | } |
| 366 | return descriptor; |
| 367 | } |
| 368 | |
| 369 | @end |
| 370 | |
| 371 | #pragma mark - GPBStringValue |
| 372 | |
| 373 | @implementation GPBStringValue |
| 374 | |
| 375 | @dynamic value; |
| 376 | |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 377 | typedef struct GPBStringValue__storage_ { |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 378 | uint32_t _has_storage_[1]; |
| 379 | NSString *value; |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 380 | } GPBStringValue__storage_; |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 381 | |
| 382 | // This method is threadsafe because it is initially called |
| 383 | // in +initialize for each subclass. |
| 384 | + (GPBDescriptor *)descriptor { |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 385 | static GPBDescriptor *descriptor = nil; |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 386 | if (!descriptor) { |
Protobuf Team Bot | 78376c3 | 2023-01-31 11:29:07 -0800 | [diff] [blame] | 387 | GPB_DEBUG_CHECK_RUNTIME_VERSIONS(); |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 388 | static GPBMessageFieldDescription fields[] = { |
| 389 | { |
| 390 | .name = "value", |
Dave MacLachlan | 74956e1 | 2019-12-17 17:32:09 -0800 | [diff] [blame] | 391 | .dataTypeSpecific.clazz = Nil, |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 392 | .number = GPBStringValue_FieldNumber_Value, |
| 393 | .hasIndex = 0, |
Thomas Van Lenten | 79a23c4 | 2016-03-17 10:04:21 -0400 | [diff] [blame] | 394 | .offset = (uint32_t)offsetof(GPBStringValue__storage_, value), |
Thomas Van Lenten | b0e2792 | 2020-04-13 13:36:56 -0400 | [diff] [blame] | 395 | .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero), |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 396 | .dataType = GPBDataTypeString, |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 397 | }, |
| 398 | }; |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 399 | GPBDescriptor *localDescriptor = |
Protobuf Team Bot | bf7de74 | 2023-02-02 11:29:54 -0800 | [diff] [blame] | 400 | [GPBDescriptor allocDescriptorForClass:GPBObjCClass(GPBStringValue) |
Protobuf Team Bot | 4ed02cc | 2023-02-08 06:31:58 -0800 | [diff] [blame] | 401 | messageName:@"StringValue" |
| 402 | fileDescription:&GPBWrappersRoot_FileDescription |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 403 | fields:fields |
Thomas Van Lenten | 79a23c4 | 2016-03-17 10:04:21 -0400 | [diff] [blame] | 404 | fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 405 | storageSize:sizeof(GPBStringValue__storage_) |
Protobuf Team Bot | 4a12247 | 2022-11-15 11:22:51 -0800 | [diff] [blame] | 406 | flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown | GPBDescriptorInitializationFlag_ClosedEnumSupportKnown)]; |
Thomas Van Lenten | 6c4ab10 | 2023-07-11 07:49:55 -0700 | [diff] [blame] | 407 | #if defined(DEBUG) && DEBUG |
Dave MacLachlan | b631176 | 2018-12-11 16:32:48 -0800 | [diff] [blame] | 408 | NSAssert(descriptor == nil, @"Startup recursed!"); |
Thomas Van Lenten | 6c4ab10 | 2023-07-11 07:49:55 -0700 | [diff] [blame] | 409 | #endif // DEBUG |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 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 | #pragma mark - GPBBytesValue |
| 418 | |
| 419 | @implementation GPBBytesValue |
| 420 | |
| 421 | @dynamic value; |
| 422 | |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 423 | typedef struct GPBBytesValue__storage_ { |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 424 | uint32_t _has_storage_[1]; |
| 425 | NSData *value; |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 426 | } GPBBytesValue__storage_; |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 427 | |
| 428 | // This method is threadsafe because it is initially called |
| 429 | // in +initialize for each subclass. |
| 430 | + (GPBDescriptor *)descriptor { |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 431 | static GPBDescriptor *descriptor = nil; |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 432 | if (!descriptor) { |
Protobuf Team Bot | 78376c3 | 2023-01-31 11:29:07 -0800 | [diff] [blame] | 433 | GPB_DEBUG_CHECK_RUNTIME_VERSIONS(); |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 434 | static GPBMessageFieldDescription fields[] = { |
| 435 | { |
| 436 | .name = "value", |
Dave MacLachlan | 74956e1 | 2019-12-17 17:32:09 -0800 | [diff] [blame] | 437 | .dataTypeSpecific.clazz = Nil, |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 438 | .number = GPBBytesValue_FieldNumber_Value, |
| 439 | .hasIndex = 0, |
Thomas Van Lenten | 79a23c4 | 2016-03-17 10:04:21 -0400 | [diff] [blame] | 440 | .offset = (uint32_t)offsetof(GPBBytesValue__storage_, value), |
Thomas Van Lenten | b0e2792 | 2020-04-13 13:36:56 -0400 | [diff] [blame] | 441 | .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero), |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 442 | .dataType = GPBDataTypeBytes, |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 443 | }, |
| 444 | }; |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 445 | GPBDescriptor *localDescriptor = |
Protobuf Team Bot | bf7de74 | 2023-02-02 11:29:54 -0800 | [diff] [blame] | 446 | [GPBDescriptor allocDescriptorForClass:GPBObjCClass(GPBBytesValue) |
Protobuf Team Bot | 4ed02cc | 2023-02-08 06:31:58 -0800 | [diff] [blame] | 447 | messageName:@"BytesValue" |
| 448 | fileDescription:&GPBWrappersRoot_FileDescription |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 449 | fields:fields |
Thomas Van Lenten | 79a23c4 | 2016-03-17 10:04:21 -0400 | [diff] [blame] | 450 | fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 451 | storageSize:sizeof(GPBBytesValue__storage_) |
Protobuf Team Bot | 4a12247 | 2022-11-15 11:22:51 -0800 | [diff] [blame] | 452 | flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown | GPBDescriptorInitializationFlag_ClosedEnumSupportKnown)]; |
Thomas Van Lenten | 6c4ab10 | 2023-07-11 07:49:55 -0700 | [diff] [blame] | 453 | #if defined(DEBUG) && DEBUG |
Dave MacLachlan | b631176 | 2018-12-11 16:32:48 -0800 | [diff] [blame] | 454 | NSAssert(descriptor == nil, @"Startup recursed!"); |
Thomas Van Lenten | 6c4ab10 | 2023-07-11 07:49:55 -0700 | [diff] [blame] | 455 | #endif // DEBUG |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 456 | descriptor = localDescriptor; |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 457 | } |
| 458 | return descriptor; |
| 459 | } |
| 460 | |
| 461 | @end |
| 462 | |
| 463 | |
Thomas Van Lenten | e664aa6 | 2016-04-19 13:13:04 -0400 | [diff] [blame] | 464 | #pragma clang diagnostic pop |
| 465 | |
Thomas Van Lenten | 1dcc329 | 2015-05-21 17:14:52 -0400 | [diff] [blame] | 466 | // @@protoc_insertion_point(global_scope) |
Thomas Van Lenten | 7c64628 | 2022-09-19 13:19:31 -0400 | [diff] [blame] | 467 | |
Thomas Van Lenten | 672adeb | 2022-10-06 16:16:07 -0400 | [diff] [blame] | 468 | // clang-format on |