1ffe3c632Sopenharmony_ci// Generated by the protocol buffer compiler. DO NOT EDIT! 2ffe3c632Sopenharmony_ci// source: google/protobuf/any.proto 3ffe3c632Sopenharmony_ci 4ffe3c632Sopenharmony_ci// This CPP symbol can be defined to use imports that match up to the framework 5ffe3c632Sopenharmony_ci// imports needed when using CocoaPods. 6ffe3c632Sopenharmony_ci#if !defined(GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS) 7ffe3c632Sopenharmony_ci #define GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS 0 8ffe3c632Sopenharmony_ci#endif 9ffe3c632Sopenharmony_ci 10ffe3c632Sopenharmony_ci#if GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS 11ffe3c632Sopenharmony_ci #import <Protobuf/GPBProtocolBuffers_RuntimeSupport.h> 12ffe3c632Sopenharmony_ci#else 13ffe3c632Sopenharmony_ci #import "GPBProtocolBuffers_RuntimeSupport.h" 14ffe3c632Sopenharmony_ci#endif 15ffe3c632Sopenharmony_ci 16ffe3c632Sopenharmony_ci#if GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS 17ffe3c632Sopenharmony_ci #import <Protobuf/GPBAny.pbobjc.h> 18ffe3c632Sopenharmony_ci#else 19ffe3c632Sopenharmony_ci #import "GPBAny.pbobjc.h" 20ffe3c632Sopenharmony_ci#endif 21ffe3c632Sopenharmony_ci// @@protoc_insertion_point(imports) 22ffe3c632Sopenharmony_ci 23ffe3c632Sopenharmony_ci#pragma clang diagnostic push 24ffe3c632Sopenharmony_ci#pragma clang diagnostic ignored "-Wdeprecated-declarations" 25ffe3c632Sopenharmony_ci 26ffe3c632Sopenharmony_ci#pragma mark - GPBAnyRoot 27ffe3c632Sopenharmony_ci 28ffe3c632Sopenharmony_ci@implementation GPBAnyRoot 29ffe3c632Sopenharmony_ci 30ffe3c632Sopenharmony_ci// No extensions in the file and no imports, so no need to generate 31ffe3c632Sopenharmony_ci// +extensionRegistry. 32ffe3c632Sopenharmony_ci 33ffe3c632Sopenharmony_ci@end 34ffe3c632Sopenharmony_ci 35ffe3c632Sopenharmony_ci#pragma mark - GPBAnyRoot_FileDescriptor 36ffe3c632Sopenharmony_ci 37ffe3c632Sopenharmony_cistatic GPBFileDescriptor *GPBAnyRoot_FileDescriptor(void) { 38ffe3c632Sopenharmony_ci // This is called by +initialize so there is no need to worry 39ffe3c632Sopenharmony_ci // about thread safety of the singleton. 40ffe3c632Sopenharmony_ci static GPBFileDescriptor *descriptor = NULL; 41ffe3c632Sopenharmony_ci if (!descriptor) { 42ffe3c632Sopenharmony_ci GPB_DEBUG_CHECK_RUNTIME_VERSIONS(); 43ffe3c632Sopenharmony_ci descriptor = [[GPBFileDescriptor alloc] initWithPackage:@"google.protobuf" 44ffe3c632Sopenharmony_ci objcPrefix:@"GPB" 45ffe3c632Sopenharmony_ci syntax:GPBFileSyntaxProto3]; 46ffe3c632Sopenharmony_ci } 47ffe3c632Sopenharmony_ci return descriptor; 48ffe3c632Sopenharmony_ci} 49ffe3c632Sopenharmony_ci 50ffe3c632Sopenharmony_ci#pragma mark - GPBAny 51ffe3c632Sopenharmony_ci 52ffe3c632Sopenharmony_ci@implementation GPBAny 53ffe3c632Sopenharmony_ci 54ffe3c632Sopenharmony_ci@dynamic typeURL; 55ffe3c632Sopenharmony_ci@dynamic value; 56ffe3c632Sopenharmony_ci 57ffe3c632Sopenharmony_citypedef struct GPBAny__storage_ { 58ffe3c632Sopenharmony_ci uint32_t _has_storage_[1]; 59ffe3c632Sopenharmony_ci NSString *typeURL; 60ffe3c632Sopenharmony_ci NSData *value; 61ffe3c632Sopenharmony_ci} GPBAny__storage_; 62ffe3c632Sopenharmony_ci 63ffe3c632Sopenharmony_ci// This method is threadsafe because it is initially called 64ffe3c632Sopenharmony_ci// in +initialize for each subclass. 65ffe3c632Sopenharmony_ci+ (GPBDescriptor *)descriptor { 66ffe3c632Sopenharmony_ci static GPBDescriptor *descriptor = nil; 67ffe3c632Sopenharmony_ci if (!descriptor) { 68ffe3c632Sopenharmony_ci static GPBMessageFieldDescription fields[] = { 69ffe3c632Sopenharmony_ci { 70ffe3c632Sopenharmony_ci .name = "typeURL", 71ffe3c632Sopenharmony_ci .dataTypeSpecific.clazz = Nil, 72ffe3c632Sopenharmony_ci .number = GPBAny_FieldNumber_TypeURL, 73ffe3c632Sopenharmony_ci .hasIndex = 0, 74ffe3c632Sopenharmony_ci .offset = (uint32_t)offsetof(GPBAny__storage_, typeURL), 75ffe3c632Sopenharmony_ci .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldTextFormatNameCustom | GPBFieldClearHasIvarOnZero), 76ffe3c632Sopenharmony_ci .dataType = GPBDataTypeString, 77ffe3c632Sopenharmony_ci }, 78ffe3c632Sopenharmony_ci { 79ffe3c632Sopenharmony_ci .name = "value", 80ffe3c632Sopenharmony_ci .dataTypeSpecific.clazz = Nil, 81ffe3c632Sopenharmony_ci .number = GPBAny_FieldNumber_Value, 82ffe3c632Sopenharmony_ci .hasIndex = 1, 83ffe3c632Sopenharmony_ci .offset = (uint32_t)offsetof(GPBAny__storage_, value), 84ffe3c632Sopenharmony_ci .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero), 85ffe3c632Sopenharmony_ci .dataType = GPBDataTypeBytes, 86ffe3c632Sopenharmony_ci }, 87ffe3c632Sopenharmony_ci }; 88ffe3c632Sopenharmony_ci GPBDescriptor *localDescriptor = 89ffe3c632Sopenharmony_ci [GPBDescriptor allocDescriptorForClass:[GPBAny class] 90ffe3c632Sopenharmony_ci rootClass:[GPBAnyRoot class] 91ffe3c632Sopenharmony_ci file:GPBAnyRoot_FileDescriptor() 92ffe3c632Sopenharmony_ci fields:fields 93ffe3c632Sopenharmony_ci fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) 94ffe3c632Sopenharmony_ci storageSize:sizeof(GPBAny__storage_) 95ffe3c632Sopenharmony_ci flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown)]; 96ffe3c632Sopenharmony_ci#if !GPBOBJC_SKIP_MESSAGE_TEXTFORMAT_EXTRAS 97ffe3c632Sopenharmony_ci static const char *extraTextFormatInfo = 98ffe3c632Sopenharmony_ci "\001\001\004\241!!\000"; 99ffe3c632Sopenharmony_ci [localDescriptor setupExtraTextInfo:extraTextFormatInfo]; 100ffe3c632Sopenharmony_ci#endif // !GPBOBJC_SKIP_MESSAGE_TEXTFORMAT_EXTRAS 101ffe3c632Sopenharmony_ci #if defined(DEBUG) && DEBUG 102ffe3c632Sopenharmony_ci NSAssert(descriptor == nil, @"Startup recursed!"); 103ffe3c632Sopenharmony_ci #endif // DEBUG 104ffe3c632Sopenharmony_ci descriptor = localDescriptor; 105ffe3c632Sopenharmony_ci } 106ffe3c632Sopenharmony_ci return descriptor; 107ffe3c632Sopenharmony_ci} 108ffe3c632Sopenharmony_ci 109ffe3c632Sopenharmony_ci@end 110ffe3c632Sopenharmony_ci 111ffe3c632Sopenharmony_ci 112ffe3c632Sopenharmony_ci#pragma clang diagnostic pop 113ffe3c632Sopenharmony_ci 114ffe3c632Sopenharmony_ci// @@protoc_insertion_point(global_scope) 115