Advertisement
Guest User

Untitled

a guest
Dec 13th, 2019
262
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 3.41 KB | None | 0 0
  1. // Generated by the protocol buffer compiler.  DO NOT EDIT!
  2. // source: test.proto
  3.  
  4. #ifndef PROTOBUF_INCLUDED_test_2eproto
  5. #define PROTOBUF_INCLUDED_test_2eproto
  6.  
  7. #include <string>
  8.  
  9. #include <google/protobuf/stubs/common.h>
  10.  
  11. #if GOOGLE_PROTOBUF_VERSION < 3006001
  12. #error This file was generated by a newer version of protoc which is
  13. #error incompatible with your Protocol Buffer headers.  Please update
  14. #error your headers.
  15. #endif
  16. #if 3006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
  17. #error This file was generated by an older version of protoc which is
  18. #error incompatible with your Protocol Buffer headers.  Please
  19. #error regenerate this file with a newer version of protoc.
  20. #endif
  21.  
  22. #include <google/protobuf/io/coded_stream.h>
  23. #include <google/protobuf/arena.h>
  24. #include <google/protobuf/arenastring.h>
  25. #include <google/protobuf/generated_message_table_driven.h>
  26. #include <google/protobuf/generated_message_util.h>
  27. #include <google/protobuf/inlined_string_field.h>
  28. #include <google/protobuf/metadata.h>
  29. #include <google/protobuf/repeated_field.h>  // IWYU pragma: export
  30. #include <google/protobuf/extension_set.h>  // IWYU pragma: export
  31. #include <google/protobuf/generated_enum_reflection.h>
  32. // @@protoc_insertion_point(includes)
  33. #define PROTOBUF_INTERNAL_EXPORT_protobuf_test_2eproto
  34.  
  35. namespace protobuf_test_2eproto {
  36. // Internal implementation detail -- do not use these members.
  37. struct TableStruct {
  38.   static const ::google::protobuf::internal::ParseTableField entries[];
  39.   static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
  40.   static const ::google::protobuf::internal::ParseTable schema[1];
  41.   static const ::google::protobuf::internal::FieldMetadata field_metadata[];
  42.   static const ::google::protobuf::internal::SerializationTable serialization_table[];
  43.   static const ::google::protobuf::uint32 offsets[];
  44. };
  45. void AddDescriptors();
  46. }  // namespace protobuf_test_2eproto
  47. namespace test {
  48. }  // namespace test
  49. namespace test {
  50.  
  51. enum MyEnum {
  52.   UNKWNON = 0,
  53.   FIRST = 1,
  54.   SECOND = 2
  55. };
  56. bool MyEnum_IsValid(int value);
  57. const MyEnum MyEnum_MIN = UNKWNON;
  58. const MyEnum MyEnum_MAX = SECOND;
  59. const int MyEnum_ARRAYSIZE = MyEnum_MAX + 1;
  60.  
  61. const ::google::protobuf::EnumDescriptor* MyEnum_descriptor();
  62. inline const ::std::string& MyEnum_Name(MyEnum value) {
  63.   return ::google::protobuf::internal::NameOfEnum(
  64.     MyEnum_descriptor(), value);
  65. }
  66. inline bool MyEnum_Parse(
  67.     const ::std::string& name, MyEnum* value) {
  68.   return ::google::protobuf::internal::ParseNamedEnum<MyEnum>(
  69.     MyEnum_descriptor(), name, value);
  70. }
  71. // ===================================================================
  72.  
  73.  
  74. // ===================================================================
  75.  
  76.  
  77. // ===================================================================
  78.  
  79. #ifdef __GNUC__
  80.   #pragma GCC diagnostic push
  81.   #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  82. #endif  // __GNUC__
  83. #ifdef __GNUC__
  84.   #pragma GCC diagnostic pop
  85. #endif  // __GNUC__
  86.  
  87. // @@protoc_insertion_point(namespace_scope)
  88.  
  89. }  // namespace test
  90.  
  91. namespace google {
  92. namespace protobuf {
  93.  
  94. template <> struct is_proto_enum< ::test::MyEnum> : ::std::true_type {};
  95. template <>
  96. inline const EnumDescriptor* GetEnumDescriptor< ::test::MyEnum>() {
  97.   return ::test::MyEnum_descriptor();
  98. }
  99.  
  100. }  // namespace protobuf
  101. }  // namespace google
  102.  
  103. // @@protoc_insertion_point(global_scope)
  104.  
  105. #endif  // PROTOBUF_INCLUDED_test_2eproto
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement