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