blob: b41102a47b5fc31c9b52e9be02dbd6ab87b894fa [file] [log] [blame]
Brian Silverman9c614bc2016-02-15 20:20:02 -05001// 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 mark - GPBAnyRoot
9
10@implementation GPBAnyRoot
11
12@end
13
14#pragma mark - GPBAnyRoot_FileDescriptor
15
16static GPBFileDescriptor *GPBAnyRoot_FileDescriptor(void) {
17 // This is called by +initialize so there is no need to worry
18 // about thread safety of the singleton.
19 static GPBFileDescriptor *descriptor = NULL;
20 if (!descriptor) {
21 GPBDebugCheckRuntimeVersion();
22 descriptor = [[GPBFileDescriptor alloc] initWithPackage:@"google.protobuf"
23 syntax:GPBFileSyntaxProto3];
24 }
25 return descriptor;
26}
27
28#pragma mark - GPBAny
29
30@implementation GPBAny
31
32@dynamic typeURL;
33@dynamic value;
34
35typedef struct GPBAny__storage_ {
36 uint32_t _has_storage_[1];
37 NSString *typeURL;
38 NSData *value;
39} GPBAny__storage_;
40
41// This method is threadsafe because it is initially called
42// in +initialize for each subclass.
43+ (GPBDescriptor *)descriptor {
44 static GPBDescriptor *descriptor = nil;
45 if (!descriptor) {
46 static GPBMessageFieldDescription fields[] = {
47 {
48 .name = "typeURL",
49 .number = GPBAny_FieldNumber_TypeURL,
50 .hasIndex = 0,
51 .flags = GPBFieldOptional | GPBFieldTextFormatNameCustom,
52 .dataType = GPBDataTypeString,
53 .offset = offsetof(GPBAny__storage_, typeURL),
54 .defaultValue.valueString = nil,
55 .dataTypeSpecific.className = NULL,
56 .fieldOptions = NULL,
57 },
58 {
59 .name = "value",
60 .number = GPBAny_FieldNumber_Value,
61 .hasIndex = 1,
62 .flags = GPBFieldOptional,
63 .dataType = GPBDataTypeBytes,
64 .offset = offsetof(GPBAny__storage_, value),
65 .defaultValue.valueData = nil,
66 .dataTypeSpecific.className = NULL,
67 .fieldOptions = NULL,
68 },
69 };
70#if GPBOBJC_SKIP_MESSAGE_TEXTFORMAT_EXTRAS
71 const char *extraTextFormatInfo = NULL;
72#else
73 static const char *extraTextFormatInfo = "\001\001\004\241!!\000";
74#endif // GPBOBJC_SKIP_MESSAGE_TEXTFORMAT_EXTRAS
75 GPBDescriptor *localDescriptor =
76 [GPBDescriptor allocDescriptorForClass:[GPBAny class]
77 rootClass:[GPBAnyRoot class]
78 file:GPBAnyRoot_FileDescriptor()
79 fields:fields
80 fieldCount:sizeof(fields) / sizeof(GPBMessageFieldDescription)
81 oneofs:NULL
82 oneofCount:0
83 enums:NULL
84 enumCount:0
85 ranges:NULL
86 rangeCount:0
87 storageSize:sizeof(GPBAny__storage_)
88 wireFormat:NO
89 extraTextFormatInfo:extraTextFormatInfo];
90 NSAssert(descriptor == nil, @"Startup recursed!");
91 descriptor = localDescriptor;
92 }
93 return descriptor;
94}
95
96@end
97
98
99// @@protoc_insertion_point(global_scope)