GPBEmpty.pbobjc.m 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // NO CHECKED-IN PROTOBUF GENCODE
  3. // clang-format off
  4. // source: google/protobuf/empty.proto
  5. #import "GPBProtocolBuffers_RuntimeSupport.h"
  6. #import "GPBEmpty.pbobjc.h"
  7. #if GOOGLE_PROTOBUF_OBJC_VERSION < 30007
  8. #error This file was generated by a newer version of protoc which is incompatible with your Protocol Buffer library sources.
  9. #endif
  10. #if 30007 < GOOGLE_PROTOBUF_OBJC_MIN_SUPPORTED_VERSION
  11. #error This file was generated by an older version of protoc which is incompatible with your Protocol Buffer library sources.
  12. #endif
  13. // @@protoc_insertion_point(imports)
  14. #pragma clang diagnostic push
  15. #pragma clang diagnostic ignored "-Wdeprecated-declarations"
  16. #pragma clang diagnostic ignored "-Wdollar-in-identifier-extension"
  17. #pragma mark - Objective-C Class declarations
  18. // Forward declarations of Objective-C classes that we can use as
  19. // static values in struct initializers.
  20. // We don't use [Foo class] because it is not a static value.
  21. GPBObjCClassDeclaration(GPBEmpty);
  22. #pragma mark - GPBEmptyRoot
  23. @implementation GPBEmptyRoot
  24. // No extensions in the file and no imports or none of the imports (direct or
  25. // indirect) defined extensions, so no need to generate +extensionRegistry.
  26. @end
  27. static GPBFileDescription GPBEmptyRoot_FileDescription = {
  28. .package = "google.protobuf",
  29. .prefix = "GPB",
  30. .syntax = GPBFileSyntaxProto3
  31. };
  32. #pragma mark - GPBEmpty
  33. @implementation GPBEmpty
  34. typedef struct GPBEmpty__storage_ {
  35. uint32_t _has_storage_[1];
  36. } GPBEmpty__storage_;
  37. // This method is threadsafe because it is initially called
  38. // in +initialize for each subclass.
  39. + (GPBDescriptor *)descriptor {
  40. static GPBDescriptor *descriptor = nil;
  41. if (!descriptor) {
  42. GPB_DEBUG_CHECK_RUNTIME_VERSIONS();
  43. GPBDescriptor *localDescriptor =
  44. [GPBDescriptor allocDescriptorForClass:GPBObjCClass(GPBEmpty)
  45. messageName:@"Empty"
  46. fileDescription:&GPBEmptyRoot_FileDescription
  47. fields:NULL
  48. fieldCount:0
  49. storageSize:sizeof(GPBEmpty__storage_)
  50. flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown | GPBDescriptorInitializationFlag_ClosedEnumSupportKnown)];
  51. #if defined(DEBUG) && DEBUG
  52. NSAssert(descriptor == nil, @"Startup recursed!");
  53. #endif // DEBUG
  54. descriptor = localDescriptor;
  55. }
  56. return descriptor;
  57. }
  58. @end
  59. #pragma clang diagnostic pop
  60. // @@protoc_insertion_point(global_scope)
  61. // clang-format on