globalenums.pb.cc 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: globalenums.proto
  3. #include "globalenums.pb.h"
  4. #include <algorithm>
  5. #include <google/protobuf/stubs/common.h>
  6. #include <google/protobuf/stubs/port.h>
  7. #include <google/protobuf/io/coded_stream.h>
  8. #include <google/protobuf/wire_format_lite_inl.h>
  9. #include <google/protobuf/descriptor.h>
  10. #include <google/protobuf/generated_message_reflection.h>
  11. #include <google/protobuf/reflection_ops.h>
  12. #include <google/protobuf/wire_format.h>
  13. // This is a temporary google only hack
  14. #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  15. #include "third_party/protobuf/version.h"
  16. #endif
  17. // @@protoc_insertion_point(includes)
  18. namespace qtprotobufnamespace {
  19. namespace tests {
  20. namespace globalenums {
  21. } // namespace globalenums
  22. } // namespace tests
  23. } // namespace qtprotobufnamespace
  24. namespace protobuf_globalenums_2eproto {
  25. void InitDefaults() {
  26. }
  27. const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[1];
  28. const ::google::protobuf::uint32 TableStruct::offsets[1] = {};
  29. static const ::google::protobuf::internal::MigrationSchema* schemas = NULL;
  30. static const ::google::protobuf::Message* const* file_default_instances = NULL;
  31. void protobuf_AssignDescriptors() {
  32. AddDescriptors();
  33. AssignDescriptors(
  34. "globalenums.proto", schemas, file_default_instances, TableStruct::offsets,
  35. NULL, file_level_enum_descriptors, NULL);
  36. }
  37. void protobuf_AssignDescriptorsOnce() {
  38. static ::google::protobuf::internal::once_flag once;
  39. ::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors);
  40. }
  41. void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
  42. void protobuf_RegisterTypes(const ::std::string&) {
  43. protobuf_AssignDescriptorsOnce();
  44. }
  45. void AddDescriptorsImpl() {
  46. InitDefaults();
  47. static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  48. "\n\021globalenums.proto\022%qtprotobufnamespace"
  49. ".tests.globalenums*x\n\010TestEnum\022\024\n\020TEST_E"
  50. "NUM_VALUE0\020\000\022\024\n\020TEST_ENUM_VALUE1\020\001\022\024\n\020TE"
  51. "ST_ENUM_VALUE2\020\002\022\024\n\020TEST_ENUM_VALUE3\020\004\022\024"
  52. "\n\020TEST_ENUM_VALUE4\020\003b\006proto3"
  53. };
  54. ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
  55. descriptor, 188);
  56. ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
  57. "globalenums.proto", &protobuf_RegisterTypes);
  58. }
  59. void AddDescriptors() {
  60. static ::google::protobuf::internal::once_flag once;
  61. ::google::protobuf::internal::call_once(once, AddDescriptorsImpl);
  62. }
  63. // Force AddDescriptors() to be called at dynamic initialization time.
  64. struct StaticDescriptorInitializer {
  65. StaticDescriptorInitializer() {
  66. AddDescriptors();
  67. }
  68. } static_descriptor_initializer;
  69. } // namespace protobuf_globalenums_2eproto
  70. namespace qtprotobufnamespace {
  71. namespace tests {
  72. namespace globalenums {
  73. const ::google::protobuf::EnumDescriptor* TestEnum_descriptor() {
  74. protobuf_globalenums_2eproto::protobuf_AssignDescriptorsOnce();
  75. return protobuf_globalenums_2eproto::file_level_enum_descriptors[0];
  76. }
  77. bool TestEnum_IsValid(int value) {
  78. switch (value) {
  79. case 0:
  80. case 1:
  81. case 2:
  82. case 3:
  83. case 4:
  84. return true;
  85. default:
  86. return false;
  87. }
  88. }
  89. // @@protoc_insertion_point(namespace_scope)
  90. } // namespace globalenums
  91. } // namespace tests
  92. } // namespace qtprotobufnamespace
  93. namespace google {
  94. namespace protobuf {
  95. } // namespace protobuf
  96. } // namespace google
  97. // @@protoc_insertion_point(global_scope)