GPBEmpty.pbobjc.m 2.6 KB

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