1// Generated by the protocol buffer compiler. DO NOT EDIT! 2// source: google/protobuf/any.proto 3 4#import "GPBProtocolBuffers_RuntimeSupport.h" 5#import "google/protobuf/Any.pbobjc.h" 6// @@protoc_insertion_point(imports) 7 8#pragma clang diagnostic push 9#pragma clang diagnostic ignored "-Wdeprecated-declarations" 10 11#pragma mark - GPBAnyRoot 12 13@implementation GPBAnyRoot 14 15@end 16 17#pragma mark - GPBAnyRoot_FileDescriptor 18 19static GPBFileDescriptor *GPBAnyRoot_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) { 24 GPBDebugCheckRuntimeVersion(); 25 descriptor = [[GPBFileDescriptor alloc] initWithPackage:@"google.protobuf" 26 syntax:GPBFileSyntaxProto3]; 27 } 28 return descriptor; 29} 30 31#pragma mark - GPBAny 32 33@implementation GPBAny 34 35@dynamic typeURL; 36@dynamic value; 37 38typedef struct GPBAny__storage_ { 39 uint32_t _has_storage_[1]; 40 NSString *typeURL; 41 NSData *value; 42} GPBAny__storage_; 43 44// This method is threadsafe because it is initially called 45// in +initialize for each subclass. 46+ (GPBDescriptor *)descriptor { 47 static GPBDescriptor *descriptor = nil; 48 if (!descriptor) { 49 static GPBMessageFieldDescription fields[] = { 50 { 51 .name = "typeURL", 52 .dataTypeSpecific.className = NULL, 53 .number = GPBAny_FieldNumber_TypeURL, 54 .hasIndex = 0, 55 .offset = (uint32_t)offsetof(GPBAny__storage_, typeURL), 56 .flags = GPBFieldOptional | GPBFieldTextFormatNameCustom, 57 .dataType = GPBDataTypeString, 58 }, 59 { 60 .name = "value", 61 .dataTypeSpecific.className = NULL, 62 .number = GPBAny_FieldNumber_Value, 63 .hasIndex = 1, 64 .offset = (uint32_t)offsetof(GPBAny__storage_, value), 65 .flags = GPBFieldOptional, 66 .dataType = GPBDataTypeBytes, 67 }, 68 }; 69 GPBDescriptor *localDescriptor = 70 [GPBDescriptor allocDescriptorForClass:[GPBAny class] 71 rootClass:[GPBAnyRoot class] 72 file:GPBAnyRoot_FileDescriptor() 73 fields:fields 74 fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) 75 storageSize:sizeof(GPBAny__storage_) 76 flags:0]; 77#if !GPBOBJC_SKIP_MESSAGE_TEXTFORMAT_EXTRAS 78 static const char *extraTextFormatInfo = 79 "\001\001\004\241!!\000"; 80 [localDescriptor setupExtraTextInfo:extraTextFormatInfo]; 81#endif // !GPBOBJC_SKIP_MESSAGE_TEXTFORMAT_EXTRAS 82 NSAssert(descriptor == nil, @"Startup recursed!"); 83 descriptor = localDescriptor; 84 } 85 return descriptor; 86} 87 88@end 89 90 91#pragma clang diagnostic pop 92 93// @@protoc_insertion_point(global_scope) 94