lux/dist/update-protocol.pb.h

00001 // Generated by the protocol buffer compiler.  DO NOT EDIT!
00002 // source: lux/dist/update-protocol.proto
00003 
00004 #ifndef PROTOBUF_lux_2fdist_2fupdate_2dprotocol_2eproto__INCLUDED
00005 #define PROTOBUF_lux_2fdist_2fupdate_2dprotocol_2eproto__INCLUDED
00006 
00007 #include <string>
00008 
00009 #include <google/protobuf/stubs/common.h>
00010 
00011 #if GOOGLE_PROTOBUF_VERSION < 2003000
00012 #error This file was generated by a newer version of protoc which is
00013 #error incompatible with your Protocol Buffer headers.  Please update
00014 #error your headers.
00015 #endif
00016 #if 2003000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
00017 #error This file was generated by an older version of protoc which is
00018 #error incompatible with your Protocol Buffer headers.  Please
00019 #error regenerate this file with a newer version of protoc.
00020 #endif
00021 
00022 #include <google/protobuf/generated_message_util.h>
00023 #include <google/protobuf/repeated_field.h>
00024 #include <google/protobuf/extension_set.h>
00025 #include <google/protobuf/generated_message_reflection.h>
00026 // @@protoc_insertion_point(includes)
00027 
00028 namespace Lux {
00029 namespace Protocol {
00030 
00031 // Internal implementation detail -- do not call these.
00032 void  protobuf_AddDesc_lux_2fdist_2fupdate_2dprotocol_2eproto();
00033 void protobuf_AssignDesc_lux_2fdist_2fupdate_2dprotocol_2eproto();
00034 void protobuf_ShutdownFile_lux_2fdist_2fupdate_2dprotocol_2eproto();
00035 
00036 class Field;
00037 class Document;
00038 class Update;
00039 class Updates;
00040 
00041 enum Update_UpdateType {
00042   Update_UpdateType_ADD = 0,
00043   Update_UpdateType_DELETE = 1,
00044   Update_UpdateType_ALTER = 2
00045 };
00046 bool Update_UpdateType_IsValid(int value);
00047 const Update_UpdateType Update_UpdateType_UpdateType_MIN = Update_UpdateType_ADD;
00048 const Update_UpdateType Update_UpdateType_UpdateType_MAX = Update_UpdateType_ALTER;
00049 const int Update_UpdateType_UpdateType_ARRAYSIZE = Update_UpdateType_UpdateType_MAX + 1;
00050 
00051 const ::google::protobuf::EnumDescriptor* Update_UpdateType_descriptor();
00052 inline const ::std::string& Update_UpdateType_Name(Update_UpdateType value) {
00053   return ::google::protobuf::internal::NameOfEnum(
00054     Update_UpdateType_descriptor(), value);
00055 }
00056 inline bool Update_UpdateType_Parse(
00057     const ::std::string& name, Update_UpdateType* value) {
00058   return ::google::protobuf::internal::ParseNamedEnum<Update_UpdateType>(
00059     Update_UpdateType_descriptor(), name, value);
00060 }
00061 // ===================================================================
00062 
00063 class Field : public ::google::protobuf::Message {
00064  public:
00065   Field();
00066   virtual ~Field();
00067   
00068   Field(const Field& from);
00069   
00070   inline Field& operator=(const Field& from) {
00071     CopyFrom(from);
00072     return *this;
00073   }
00074   
00075   inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
00076     return _unknown_fields_;
00077   }
00078   
00079   inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
00080     return &_unknown_fields_;
00081   }
00082   
00083   static const ::google::protobuf::Descriptor* descriptor();
00084   static const Field& default_instance();
00085   
00086   void Swap(Field* other);
00087   
00088   // implements Message ----------------------------------------------
00089   
00090   Field* New() const;
00091   void CopyFrom(const ::google::protobuf::Message& from);
00092   void MergeFrom(const ::google::protobuf::Message& from);
00093   void CopyFrom(const Field& from);
00094   void MergeFrom(const Field& from);
00095   void Clear();
00096   bool IsInitialized() const;
00097   
00098   int ByteSize() const;
00099   bool MergePartialFromCodedStream(
00100       ::google::protobuf::io::CodedInputStream* input);
00101   void SerializeWithCachedSizes(
00102       ::google::protobuf::io::CodedOutputStream* output) const;
00103   ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
00104   int GetCachedSize() const { return _cached_size_; }
00105   private:
00106   void SharedCtor();
00107   void SharedDtor();
00108   void SetCachedSize(int size) const;
00109   public:
00110   
00111   ::google::protobuf::Metadata GetMetadata() const;
00112   
00113   // nested types ----------------------------------------------------
00114   
00115   // accessors -------------------------------------------------------
00116   
00117   // required string name = 1;
00118   inline bool has_name() const;
00119   inline void clear_name();
00120   static const int kNameFieldNumber = 1;
00121   inline const ::std::string& name() const;
00122   inline void set_name(const ::std::string& value);
00123   inline void set_name(const char* value);
00124   inline void set_name(const char* value, size_t size);
00125   inline ::std::string* mutable_name();
00126   
00127   // required string value = 2;
00128   inline bool has_value() const;
00129   inline void clear_value();
00130   static const int kValueFieldNumber = 2;
00131   inline const ::std::string& value() const;
00132   inline void set_value(const ::std::string& value);
00133   inline void set_value(const char* value);
00134   inline void set_value(const char* value, size_t size);
00135   inline ::std::string* mutable_value();
00136   
00137   // @@protoc_insertion_point(class_scope:Lux.Protocol.Field)
00138  private:
00139   ::google::protobuf::UnknownFieldSet _unknown_fields_;
00140   mutable int _cached_size_;
00141   
00142   ::std::string* name_;
00143   static const ::std::string _default_name_;
00144   ::std::string* value_;
00145   static const ::std::string _default_value_;
00146   friend void  protobuf_AddDesc_lux_2fdist_2fupdate_2dprotocol_2eproto();
00147   friend void protobuf_AssignDesc_lux_2fdist_2fupdate_2dprotocol_2eproto();
00148   friend void protobuf_ShutdownFile_lux_2fdist_2fupdate_2dprotocol_2eproto();
00149   
00150   ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32];
00151   
00152   // WHY DOES & HAVE LOWER PRECEDENCE THAN != !?
00153   inline bool _has_bit(int index) const {
00154     return (_has_bits_[index / 32] & (1u << (index % 32))) != 0;
00155   }
00156   inline void _set_bit(int index) {
00157     _has_bits_[index / 32] |= (1u << (index % 32));
00158   }
00159   inline void _clear_bit(int index) {
00160     _has_bits_[index / 32] &= ~(1u << (index % 32));
00161   }
00162   
00163   void InitAsDefaultInstance();
00164   static Field* default_instance_;
00165 };
00166 // -------------------------------------------------------------------
00167 
00168 class Document : public ::google::protobuf::Message {
00169  public:
00170   Document();
00171   virtual ~Document();
00172   
00173   Document(const Document& from);
00174   
00175   inline Document& operator=(const Document& from) {
00176     CopyFrom(from);
00177     return *this;
00178   }
00179   
00180   inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
00181     return _unknown_fields_;
00182   }
00183   
00184   inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
00185     return &_unknown_fields_;
00186   }
00187   
00188   static const ::google::protobuf::Descriptor* descriptor();
00189   static const Document& default_instance();
00190   
00191   void Swap(Document* other);
00192   
00193   // implements Message ----------------------------------------------
00194   
00195   Document* New() const;
00196   void CopyFrom(const ::google::protobuf::Message& from);
00197   void MergeFrom(const ::google::protobuf::Message& from);
00198   void CopyFrom(const Document& from);
00199   void MergeFrom(const Document& from);
00200   void Clear();
00201   bool IsInitialized() const;
00202   
00203   int ByteSize() const;
00204   bool MergePartialFromCodedStream(
00205       ::google::protobuf::io::CodedInputStream* input);
00206   void SerializeWithCachedSizes(
00207       ::google::protobuf::io::CodedOutputStream* output) const;
00208   ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
00209   int GetCachedSize() const { return _cached_size_; }
00210   private:
00211   void SharedCtor();
00212   void SharedDtor();
00213   void SetCachedSize(int size) const;
00214   public:
00215   
00216   ::google::protobuf::Metadata GetMetadata() const;
00217   
00218   // nested types ----------------------------------------------------
00219   
00220   // accessors -------------------------------------------------------
00221   
00222   // required string id = 1;
00223   inline bool has_id() const;
00224   inline void clear_id();
00225   static const int kIdFieldNumber = 1;
00226   inline const ::std::string& id() const;
00227   inline void set_id(const ::std::string& value);
00228   inline void set_id(const char* value);
00229   inline void set_id(const char* value, size_t size);
00230   inline ::std::string* mutable_id();
00231   
00232   // repeated .Lux.Protocol.Field field = 2;
00233   inline int field_size() const;
00234   inline void clear_field();
00235   static const int kFieldFieldNumber = 2;
00236   inline const ::Lux::Protocol::Field& field(int index) const;
00237   inline ::Lux::Protocol::Field* mutable_field(int index);
00238   inline ::Lux::Protocol::Field* add_field();
00239   inline const ::google::protobuf::RepeatedPtrField< ::Lux::Protocol::Field >&
00240       field() const;
00241   inline ::google::protobuf::RepeatedPtrField< ::Lux::Protocol::Field >*
00242       mutable_field();
00243   
00244   // @@protoc_insertion_point(class_scope:Lux.Protocol.Document)
00245  private:
00246   ::google::protobuf::UnknownFieldSet _unknown_fields_;
00247   mutable int _cached_size_;
00248   
00249   ::std::string* id_;
00250   static const ::std::string _default_id_;
00251   ::google::protobuf::RepeatedPtrField< ::Lux::Protocol::Field > field_;
00252   friend void  protobuf_AddDesc_lux_2fdist_2fupdate_2dprotocol_2eproto();
00253   friend void protobuf_AssignDesc_lux_2fdist_2fupdate_2dprotocol_2eproto();
00254   friend void protobuf_ShutdownFile_lux_2fdist_2fupdate_2dprotocol_2eproto();
00255   
00256   ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32];
00257   
00258   // WHY DOES & HAVE LOWER PRECEDENCE THAN != !?
00259   inline bool _has_bit(int index) const {
00260     return (_has_bits_[index / 32] & (1u << (index % 32))) != 0;
00261   }
00262   inline void _set_bit(int index) {
00263     _has_bits_[index / 32] |= (1u << (index % 32));
00264   }
00265   inline void _clear_bit(int index) {
00266     _has_bits_[index / 32] &= ~(1u << (index % 32));
00267   }
00268   
00269   void InitAsDefaultInstance();
00270   static Document* default_instance_;
00271 };
00272 // -------------------------------------------------------------------
00273 
00274 class Update : public ::google::protobuf::Message {
00275  public:
00276   Update();
00277   virtual ~Update();
00278   
00279   Update(const Update& from);
00280   
00281   inline Update& operator=(const Update& from) {
00282     CopyFrom(from);
00283     return *this;
00284   }
00285   
00286   inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
00287     return _unknown_fields_;
00288   }
00289   
00290   inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
00291     return &_unknown_fields_;
00292   }
00293   
00294   static const ::google::protobuf::Descriptor* descriptor();
00295   static const Update& default_instance();
00296   
00297   void Swap(Update* other);
00298   
00299   // implements Message ----------------------------------------------
00300   
00301   Update* New() const;
00302   void CopyFrom(const ::google::protobuf::Message& from);
00303   void MergeFrom(const ::google::protobuf::Message& from);
00304   void CopyFrom(const Update& from);
00305   void MergeFrom(const Update& from);
00306   void Clear();
00307   bool IsInitialized() const;
00308   
00309   int ByteSize() const;
00310   bool MergePartialFromCodedStream(
00311       ::google::protobuf::io::CodedInputStream* input);
00312   void SerializeWithCachedSizes(
00313       ::google::protobuf::io::CodedOutputStream* output) const;
00314   ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
00315   int GetCachedSize() const { return _cached_size_; }
00316   private:
00317   void SharedCtor();
00318   void SharedDtor();
00319   void SetCachedSize(int size) const;
00320   public:
00321   
00322   ::google::protobuf::Metadata GetMetadata() const;
00323   
00324   // nested types ----------------------------------------------------
00325   
00326   typedef Update_UpdateType UpdateType;
00327   static const UpdateType ADD = Update_UpdateType_ADD;
00328   static const UpdateType DELETE = Update_UpdateType_DELETE;
00329   static const UpdateType ALTER = Update_UpdateType_ALTER;
00330   static inline bool UpdateType_IsValid(int value) {
00331     return Update_UpdateType_IsValid(value);
00332   }
00333   static const UpdateType UpdateType_MIN =
00334     Update_UpdateType_UpdateType_MIN;
00335   static const UpdateType UpdateType_MAX =
00336     Update_UpdateType_UpdateType_MAX;
00337   static const int UpdateType_ARRAYSIZE =
00338     Update_UpdateType_UpdateType_ARRAYSIZE;
00339   static inline const ::google::protobuf::EnumDescriptor*
00340   UpdateType_descriptor() {
00341     return Update_UpdateType_descriptor();
00342   }
00343   static inline const ::std::string& UpdateType_Name(UpdateType value) {
00344     return Update_UpdateType_Name(value);
00345   }
00346   static inline bool UpdateType_Parse(const ::std::string& name,
00347       UpdateType* value) {
00348     return Update_UpdateType_Parse(name, value);
00349   }
00350   
00351   // accessors -------------------------------------------------------
00352   
00353   // required .Lux.Protocol.Document document = 1;
00354   inline bool has_document() const;
00355   inline void clear_document();
00356   static const int kDocumentFieldNumber = 1;
00357   inline const ::Lux::Protocol::Document& document() const;
00358   inline ::Lux::Protocol::Document* mutable_document();
00359   
00360   // required .Lux.Protocol.Update.UpdateType type = 2;
00361   inline bool has_type() const;
00362   inline void clear_type();
00363   static const int kTypeFieldNumber = 2;
00364   inline ::Lux::Protocol::Update_UpdateType type() const;
00365   inline void set_type(::Lux::Protocol::Update_UpdateType value);
00366   
00367   // @@protoc_insertion_point(class_scope:Lux.Protocol.Update)
00368  private:
00369   ::google::protobuf::UnknownFieldSet _unknown_fields_;
00370   mutable int _cached_size_;
00371   
00372   ::Lux::Protocol::Document* document_;
00373   int type_;
00374   friend void  protobuf_AddDesc_lux_2fdist_2fupdate_2dprotocol_2eproto();
00375   friend void protobuf_AssignDesc_lux_2fdist_2fupdate_2dprotocol_2eproto();
00376   friend void protobuf_ShutdownFile_lux_2fdist_2fupdate_2dprotocol_2eproto();
00377   
00378   ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32];
00379   
00380   // WHY DOES & HAVE LOWER PRECEDENCE THAN != !?
00381   inline bool _has_bit(int index) const {
00382     return (_has_bits_[index / 32] & (1u << (index % 32))) != 0;
00383   }
00384   inline void _set_bit(int index) {
00385     _has_bits_[index / 32] |= (1u << (index % 32));
00386   }
00387   inline void _clear_bit(int index) {
00388     _has_bits_[index / 32] &= ~(1u << (index % 32));
00389   }
00390   
00391   void InitAsDefaultInstance();
00392   static Update* default_instance_;
00393 };
00394 // -------------------------------------------------------------------
00395 
00396 class Updates : public ::google::protobuf::Message {
00397  public:
00398   Updates();
00399   virtual ~Updates();
00400   
00401   Updates(const Updates& from);
00402   
00403   inline Updates& operator=(const Updates& from) {
00404     CopyFrom(from);
00405     return *this;
00406   }
00407   
00408   inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
00409     return _unknown_fields_;
00410   }
00411   
00412   inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
00413     return &_unknown_fields_;
00414   }
00415   
00416   static const ::google::protobuf::Descriptor* descriptor();
00417   static const Updates& default_instance();
00418   
00419   void Swap(Updates* other);
00420   
00421   // implements Message ----------------------------------------------
00422   
00423   Updates* New() const;
00424   void CopyFrom(const ::google::protobuf::Message& from);
00425   void MergeFrom(const ::google::protobuf::Message& from);
00426   void CopyFrom(const Updates& from);
00427   void MergeFrom(const Updates& from);
00428   void Clear();
00429   bool IsInitialized() const;
00430   
00431   int ByteSize() const;
00432   bool MergePartialFromCodedStream(
00433       ::google::protobuf::io::CodedInputStream* input);
00434   void SerializeWithCachedSizes(
00435       ::google::protobuf::io::CodedOutputStream* output) const;
00436   ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
00437   int GetCachedSize() const { return _cached_size_; }
00438   private:
00439   void SharedCtor();
00440   void SharedDtor();
00441   void SetCachedSize(int size) const;
00442   public:
00443   
00444   ::google::protobuf::Metadata GetMetadata() const;
00445   
00446   // nested types ----------------------------------------------------
00447   
00448   // accessors -------------------------------------------------------
00449   
00450   // repeated .Lux.Protocol.Update update = 1;
00451   inline int update_size() const;
00452   inline void clear_update();
00453   static const int kUpdateFieldNumber = 1;
00454   inline const ::Lux::Protocol::Update& update(int index) const;
00455   inline ::Lux::Protocol::Update* mutable_update(int index);
00456   inline ::Lux::Protocol::Update* add_update();
00457   inline const ::google::protobuf::RepeatedPtrField< ::Lux::Protocol::Update >&
00458       update() const;
00459   inline ::google::protobuf::RepeatedPtrField< ::Lux::Protocol::Update >*
00460       mutable_update();
00461   
00462   // @@protoc_insertion_point(class_scope:Lux.Protocol.Updates)
00463  private:
00464   ::google::protobuf::UnknownFieldSet _unknown_fields_;
00465   mutable int _cached_size_;
00466   
00467   ::google::protobuf::RepeatedPtrField< ::Lux::Protocol::Update > update_;
00468   friend void  protobuf_AddDesc_lux_2fdist_2fupdate_2dprotocol_2eproto();
00469   friend void protobuf_AssignDesc_lux_2fdist_2fupdate_2dprotocol_2eproto();
00470   friend void protobuf_ShutdownFile_lux_2fdist_2fupdate_2dprotocol_2eproto();
00471   
00472   ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32];
00473   
00474   // WHY DOES & HAVE LOWER PRECEDENCE THAN != !?
00475   inline bool _has_bit(int index) const {
00476     return (_has_bits_[index / 32] & (1u << (index % 32))) != 0;
00477   }
00478   inline void _set_bit(int index) {
00479     _has_bits_[index / 32] |= (1u << (index % 32));
00480   }
00481   inline void _clear_bit(int index) {
00482     _has_bits_[index / 32] &= ~(1u << (index % 32));
00483   }
00484   
00485   void InitAsDefaultInstance();
00486   static Updates* default_instance_;
00487 };
00488 // ===================================================================
00489 
00490 
00491 // ===================================================================
00492 
00493 // Field
00494 
00495 // required string name = 1;
00496 inline bool Field::has_name() const {
00497   return _has_bit(0);
00498 }
00499 inline void Field::clear_name() {
00500   if (name_ != &_default_name_) {
00501     name_->clear();
00502   }
00503   _clear_bit(0);
00504 }
00505 inline const ::std::string& Field::name() const {
00506   return *name_;
00507 }
00508 inline void Field::set_name(const ::std::string& value) {
00509   _set_bit(0);
00510   if (name_ == &_default_name_) {
00511     name_ = new ::std::string;
00512   }
00513   name_->assign(value);
00514 }
00515 inline void Field::set_name(const char* value) {
00516   _set_bit(0);
00517   if (name_ == &_default_name_) {
00518     name_ = new ::std::string;
00519   }
00520   name_->assign(value);
00521 }
00522 inline void Field::set_name(const char* value, size_t size) {
00523   _set_bit(0);
00524   if (name_ == &_default_name_) {
00525     name_ = new ::std::string;
00526   }
00527   name_->assign(reinterpret_cast<const char*>(value), size);
00528 }
00529 inline ::std::string* Field::mutable_name() {
00530   _set_bit(0);
00531   if (name_ == &_default_name_) {
00532     name_ = new ::std::string;
00533   }
00534   return name_;
00535 }
00536 
00537 // required string value = 2;
00538 inline bool Field::has_value() const {
00539   return _has_bit(1);
00540 }
00541 inline void Field::clear_value() {
00542   if (value_ != &_default_value_) {
00543     value_->clear();
00544   }
00545   _clear_bit(1);
00546 }
00547 inline const ::std::string& Field::value() const {
00548   return *value_;
00549 }
00550 inline void Field::set_value(const ::std::string& value) {
00551   _set_bit(1);
00552   if (value_ == &_default_value_) {
00553     value_ = new ::std::string;
00554   }
00555   value_->assign(value);
00556 }
00557 inline void Field::set_value(const char* value) {
00558   _set_bit(1);
00559   if (value_ == &_default_value_) {
00560     value_ = new ::std::string;
00561   }
00562   value_->assign(value);
00563 }
00564 inline void Field::set_value(const char* value, size_t size) {
00565   _set_bit(1);
00566   if (value_ == &_default_value_) {
00567     value_ = new ::std::string;
00568   }
00569   value_->assign(reinterpret_cast<const char*>(value), size);
00570 }
00571 inline ::std::string* Field::mutable_value() {
00572   _set_bit(1);
00573   if (value_ == &_default_value_) {
00574     value_ = new ::std::string;
00575   }
00576   return value_;
00577 }
00578 
00579 // -------------------------------------------------------------------
00580 
00581 // Document
00582 
00583 // required string id = 1;
00584 inline bool Document::has_id() const {
00585   return _has_bit(0);
00586 }
00587 inline void Document::clear_id() {
00588   if (id_ != &_default_id_) {
00589     id_->clear();
00590   }
00591   _clear_bit(0);
00592 }
00593 inline const ::std::string& Document::id() const {
00594   return *id_;
00595 }
00596 inline void Document::set_id(const ::std::string& value) {
00597   _set_bit(0);
00598   if (id_ == &_default_id_) {
00599     id_ = new ::std::string;
00600   }
00601   id_->assign(value);
00602 }
00603 inline void Document::set_id(const char* value) {
00604   _set_bit(0);
00605   if (id_ == &_default_id_) {
00606     id_ = new ::std::string;
00607   }
00608   id_->assign(value);
00609 }
00610 inline void Document::set_id(const char* value, size_t size) {
00611   _set_bit(0);
00612   if (id_ == &_default_id_) {
00613     id_ = new ::std::string;
00614   }
00615   id_->assign(reinterpret_cast<const char*>(value), size);
00616 }
00617 inline ::std::string* Document::mutable_id() {
00618   _set_bit(0);
00619   if (id_ == &_default_id_) {
00620     id_ = new ::std::string;
00621   }
00622   return id_;
00623 }
00624 
00625 // repeated .Lux.Protocol.Field field = 2;
00626 inline int Document::field_size() const {
00627   return field_.size();
00628 }
00629 inline void Document::clear_field() {
00630   field_.Clear();
00631 }
00632 inline const ::Lux::Protocol::Field& Document::field(int index) const {
00633   return field_.Get(index);
00634 }
00635 inline ::Lux::Protocol::Field* Document::mutable_field(int index) {
00636   return field_.Mutable(index);
00637 }
00638 inline ::Lux::Protocol::Field* Document::add_field() {
00639   return field_.Add();
00640 }
00641 inline const ::google::protobuf::RepeatedPtrField< ::Lux::Protocol::Field >&
00642 Document::field() const {
00643   return field_;
00644 }
00645 inline ::google::protobuf::RepeatedPtrField< ::Lux::Protocol::Field >*
00646 Document::mutable_field() {
00647   return &field_;
00648 }
00649 
00650 // -------------------------------------------------------------------
00651 
00652 // Update
00653 
00654 // required .Lux.Protocol.Document document = 1;
00655 inline bool Update::has_document() const {
00656   return _has_bit(0);
00657 }
00658 inline void Update::clear_document() {
00659   if (document_ != NULL) document_->::Lux::Protocol::Document::Clear();
00660   _clear_bit(0);
00661 }
00662 inline const ::Lux::Protocol::Document& Update::document() const {
00663   return document_ != NULL ? *document_ : *default_instance_->document_;
00664 }
00665 inline ::Lux::Protocol::Document* Update::mutable_document() {
00666   _set_bit(0);
00667   if (document_ == NULL) document_ = new ::Lux::Protocol::Document;
00668   return document_;
00669 }
00670 
00671 // required .Lux.Protocol.Update.UpdateType type = 2;
00672 inline bool Update::has_type() const {
00673   return _has_bit(1);
00674 }
00675 inline void Update::clear_type() {
00676   type_ = 0;
00677   _clear_bit(1);
00678 }
00679 inline ::Lux::Protocol::Update_UpdateType Update::type() const {
00680   return static_cast< ::Lux::Protocol::Update_UpdateType >(type_);
00681 }
00682 inline void Update::set_type(::Lux::Protocol::Update_UpdateType value) {
00683   GOOGLE_DCHECK(::Lux::Protocol::Update_UpdateType_IsValid(value));
00684   _set_bit(1);
00685   type_ = value;
00686 }
00687 
00688 // -------------------------------------------------------------------
00689 
00690 // Updates
00691 
00692 // repeated .Lux.Protocol.Update update = 1;
00693 inline int Updates::update_size() const {
00694   return update_.size();
00695 }
00696 inline void Updates::clear_update() {
00697   update_.Clear();
00698 }
00699 inline const ::Lux::Protocol::Update& Updates::update(int index) const {
00700   return update_.Get(index);
00701 }
00702 inline ::Lux::Protocol::Update* Updates::mutable_update(int index) {
00703   return update_.Mutable(index);
00704 }
00705 inline ::Lux::Protocol::Update* Updates::add_update() {
00706   return update_.Add();
00707 }
00708 inline const ::google::protobuf::RepeatedPtrField< ::Lux::Protocol::Update >&
00709 Updates::update() const {
00710   return update_;
00711 }
00712 inline ::google::protobuf::RepeatedPtrField< ::Lux::Protocol::Update >*
00713 Updates::mutable_update() {
00714   return &update_;
00715 }
00716 
00717 
00718 // @@protoc_insertion_point(namespace_scope)
00719 
00720 }  // namespace Protocol
00721 }  // namespace Lux
00722 
00723 #ifndef SWIG
00724 namespace google {
00725 namespace protobuf {
00726 
00727 template <>
00728 inline const EnumDescriptor* GetEnumDescriptor< ::Lux::Protocol::Update_UpdateType>() {
00729   return ::Lux::Protocol::Update_UpdateType_descriptor();
00730 }
00731 
00732 }  // namespace google
00733 }  // namespace protobuf
00734 #endif  // SWIG
00735 
00736 // @@protoc_insertion_point(global_scope)
00737 
00738 #endif  // PROTOBUF_lux_2fdist_2fupdate_2dprotocol_2eproto__INCLUDED

Generated on Fri Feb 5 15:50:30 2010 for Lux by  doxygen 1.4.7