v 0. Pasted by Anonymous as cpp at 2012-06-04 07:42:18 MSK and set expiration to never.

Paste will expire never.

  1. // Generated by the protocol buffer compiler.  DO NOT EDIT!
  2. // source: SO.proto
  3.  
  4. #ifndef PROTOBUF_SO_2eproto__INCLUDED
  5. #define PROTOBUF_SO_2eproto__INCLUDED
  6.  
  7. #include <string>
  8.  
  9. #include <google/protobuf/stubs/common.h>
  10.  
  11. #if GOOGLE_PROTOBUF_VERSION < 2004000
  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 2004001 < 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/generated_message_util.h>
  23. #include <google/protobuf/repeated_field.h>
  24. #include <google/protobuf/extension_set.h>
  25. #include <google/protobuf/generated_message_reflection.h>
  26. // @@protoc_insertion_point(includes)
  27.  
  28. namespace SO {
  29.  
  30. // Internal implementation detail -- do not call these.
  31. void  protobuf_AddDesc_SO_2eproto();
  32. void protobuf_AssignDesc_SO_2eproto();
  33. void protobuf_ShutdownFile_SO_2eproto();
  34.  
  35. class A;
  36. class B;
  37.  
  38. // ===================================================================
  39.  
  40. class A : public ::google::protobuf::Message {
  41.  public:
  42.   A();
  43.   virtual ~A();
  44.  
  45.   A(const A& from);
  46.  
  47.   inline A& operator=(const A& from) {
  48.     CopyFrom(from);
  49.     return *this;
  50.   }
  51.  
  52.   inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  53.     return _unknown_fields_;
  54.   }
  55.  
  56.   inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  57.     return &_unknown_fields_;
  58.   }
  59.  
  60.   static const ::google::protobuf::Descriptor* descriptor();
  61.   static const A& default_instance();
  62.  
  63.   void Swap(A* other);
  64.  
  65.   // implements Message ----------------------------------------------
  66.  
  67.   A* New() const;
  68.   void CopyFrom(const ::google::protobuf::Message& from);
  69.   void MergeFrom(const ::google::protobuf::Message& from);
  70.   void CopyFrom(const A& from);
  71.   void MergeFrom(const A& from);
  72.   void Clear();
  73.   bool IsInitialized() const;
  74.  
  75.   int ByteSize() const;
  76.   bool MergePartialFromCodedStream(
  77.       ::google::protobuf::io::CodedInputStream* input);
  78.   void SerializeWithCachedSizes(
  79.       ::google::protobuf::io::CodedOutputStream* output) const;
  80.   ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  81.   int GetCachedSize() const { return _cached_size_; }
  82.   private:
  83.   void SharedCtor();
  84.   void SharedDtor();
  85.   void SetCachedSize(int size) const;
  86.   public:
  87.  
  88.   ::google::protobuf::Metadata GetMetadata() const;
  89.  
  90.   // nested types ----------------------------------------------------
  91.  
  92.   // accessors -------------------------------------------------------
  93.  
  94.   // required int32 foo = 1;
  95.   inline bool has_foo() const;
  96.   inline void clear_foo();
  97.   static const int kFooFieldNumber = 1;
  98.   inline ::google::protobuf::int32 foo() const;
  99.   inline void set_foo(::google::protobuf::int32 value);
  100.  
  101.   // @@protoc_insertion_point(class_scope:SO.A)
  102.  private:
  103.   inline void set_has_foo();
  104.   inline void clear_has_foo();
  105.  
  106.   ::google::protobuf::UnknownFieldSet _unknown_fields_;
  107.  
  108.   ::google::protobuf::int32 foo_;
  109.  
  110.   mutable int _cached_size_;
  111.   ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32];
  112.  
  113.   friend void  protobuf_AddDesc_SO_2eproto();
  114.   friend void protobuf_AssignDesc_SO_2eproto();
  115.   friend void protobuf_ShutdownFile_SO_2eproto();
  116.  
  117.   void InitAsDefaultInstance();
  118.   static A* default_instance_;
  119. };
  120. // -------------------------------------------------------------------
  121.  
  122. class B : public ::google::protobuf::Message {
  123.  public:
  124.   B();
  125.   virtual ~B();
  126.  
  127.   B(const B& from);
  128.  
  129.   inline B& operator=(const B& from) {
  130.     CopyFrom(from);
  131.     return *this;
  132.   }
  133.  
  134.   inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  135.     return _unknown_fields_;
  136.   }
  137.  
  138.   inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  139.     return &_unknown_fields_;
  140.   }
  141.  
  142.   static const ::google::protobuf::Descriptor* descriptor();
  143.   static const B& default_instance();
  144.  
  145.   void Swap(B* other);
  146.  
  147.   // implements Message ----------------------------------------------
  148.  
  149.   B* New() const;
  150.   void CopyFrom(const ::google::protobuf::Message& from);
  151.   void MergeFrom(const ::google::protobuf::Message& from);
  152.   void CopyFrom(const B& from);
  153.   void MergeFrom(const B& from);
  154.   void Clear();
  155.   bool IsInitialized() const;
  156.  
  157.   int ByteSize() const;
  158.   bool MergePartialFromCodedStream(
  159.       ::google::protobuf::io::CodedInputStream* input);
  160.   void SerializeWithCachedSizes(
  161.       ::google::protobuf::io::CodedOutputStream* output) const;
  162.   ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  163.   int GetCachedSize() const { return _cached_size_; }
  164.   private:
  165.   void SharedCtor();
  166.   void SharedDtor();
  167.   void SetCachedSize(int size) const;
  168.   public:
  169.  
  170.   ::google::protobuf::Metadata GetMetadata() const;
  171.  
  172.   // nested types ----------------------------------------------------
  173.  
  174.   // accessors -------------------------------------------------------
  175.  
  176.   // optional .SO.A data = 1;
  177.   inline bool has_data() const;
  178.   inline void clear_data();
  179.   static const int kDataFieldNumber = 1;
  180.   inline const ::SO::A& data() const;
  181.   inline ::SO::A* mutable_data();
  182.   inline ::SO::A* release_data();
  183.  
  184.   // @@protoc_insertion_point(class_scope:SO.B)
  185.  private:
  186.   inline void set_has_data();
  187.   inline void clear_has_data();
  188.  
  189.   ::google::protobuf::UnknownFieldSet _unknown_fields_;
  190.  
  191.   ::SO::A* data_;
  192.  
  193.   mutable int _cached_size_;
  194.   ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32];
  195.  
  196.   friend void  protobuf_AddDesc_SO_2eproto();
  197.   friend void protobuf_AssignDesc_SO_2eproto();
  198.   friend void protobuf_ShutdownFile_SO_2eproto();
  199.  
  200.   void InitAsDefaultInstance();
  201.   static B* default_instance_;
  202. };
  203. // ===================================================================
  204.  
  205.  
  206. // ===================================================================
  207.  
  208. // A
  209.  
  210. // required int32 foo = 1;
  211. inline bool A::has_foo() const {
  212.   return (_has_bits_[0] & 0x00000001u) != 0;
  213. }
  214. inline void A::set_has_foo() {
  215.   _has_bits_[0] |= 0x00000001u;
  216. }
  217. inline void A::clear_has_foo() {
  218.   _has_bits_[0] &= ~0x00000001u;
  219. }
  220. inline void A::clear_foo() {
  221.   foo_ = 0;
  222.   clear_has_foo();
  223. }
  224. inline ::google::protobuf::int32 A::foo() const {
  225.   return foo_;
  226. }
  227. inline void A::set_foo(::google::protobuf::int32 value) {
  228.   set_has_foo();
  229.   foo_ = value;
  230. }
  231.  
  232. // -------------------------------------------------------------------
  233.  
  234. // B
  235.  
  236. // optional .SO.A data = 1;
  237. inline bool B::has_data() const {
  238.   return (_has_bits_[0] & 0x00000001u) != 0;
  239. }
  240. inline void B::set_has_data() {
  241.   _has_bits_[0] |= 0x00000001u;
  242. }
  243. inline void B::clear_has_data() {
  244.   _has_bits_[0] &= ~0x00000001u;
  245. }
  246. inline void B::clear_data() {
  247.   if (data_ != NULL) data_->::SO::A::Clear();
  248.   clear_has_data();
  249. }
  250. inline const ::SO::A& B::data() const {
  251.   return data_ != NULL ? *data_ : *default_instance_->data_;
  252. }
  253. inline ::SO::A* B::mutable_data() {
  254.   set_has_data();
  255.   if (data_ == NULL) data_ = new ::SO::A;
  256.   return data_;
  257. }
  258. inline ::SO::A* B::release_data() {
  259.   clear_has_data();
  260.   ::SO::A* temp = data_;
  261.   data_ = NULL;
  262.   return temp;
  263. }
  264.  
  265.  
  266. // @@protoc_insertion_point(namespace_scope)
  267.  
  268. }  // namespace SO
  269.  
  270. #ifndef SWIG
  271. namespace google {
  272. namespace protobuf {
  273.  
  274.  
  275. }  // namespace google
  276. }  // namespace protobuf
  277. #endif  // SWIG
  278.  
  279. // @@protoc_insertion_point(global_scope)
  280.  
  281. #endif  // PROTOBUF_SO_2eproto__INCLUDED
  282.