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