lux/document/document_definition.pb.h

00001 // Generated by the protocol buffer compiler.  DO NOT EDIT!
00002 // source: lux/document/document_definition.proto
00003 
00004 #ifndef PROTOBUF_lux_2fdocument_2fdocument_5fdefinition_2eproto__INCLUDED
00005 #define PROTOBUF_lux_2fdocument_2fdocument_5fdefinition_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 Config {
00030 
00031 // Internal implementation detail -- do not call these.
00032 void  protobuf_AddDesc_lux_2fdocument_2fdocument_5fdefinition_2eproto();
00033 void protobuf_AssignDesc_lux_2fdocument_2fdocument_5fdefinition_2eproto();
00034 void protobuf_ShutdownFile_lux_2fdocument_2fdocument_5fdefinition_2eproto();
00035 
00036 class Field;
00037 class Field_Index;
00038 class Field_AttrIndex;
00039 class Document;
00040 
00041 enum Field_AttrIndexType {
00042   Field_AttrIndexType_STRING = 0,
00043   Field_AttrIndexType_INT = 1
00044 };
00045 bool Field_AttrIndexType_IsValid(int value);
00046 const Field_AttrIndexType Field_AttrIndexType_AttrIndexType_MIN = Field_AttrIndexType_STRING;
00047 const Field_AttrIndexType Field_AttrIndexType_AttrIndexType_MAX = Field_AttrIndexType_INT;
00048 const int Field_AttrIndexType_AttrIndexType_ARRAYSIZE = Field_AttrIndexType_AttrIndexType_MAX + 1;
00049 
00050 const ::google::protobuf::EnumDescriptor* Field_AttrIndexType_descriptor();
00051 inline const ::std::string& Field_AttrIndexType_Name(Field_AttrIndexType value) {
00052   return ::google::protobuf::internal::NameOfEnum(
00053     Field_AttrIndexType_descriptor(), value);
00054 }
00055 inline bool Field_AttrIndexType_Parse(
00056     const ::std::string& name, Field_AttrIndexType* value) {
00057   return ::google::protobuf::internal::ParseNamedEnum<Field_AttrIndexType>(
00058     Field_AttrIndexType_descriptor(), name, value);
00059 }
00060 // ===================================================================
00061 
00062 class Field_Index : public ::google::protobuf::Message {
00063  public:
00064   Field_Index();
00065   virtual ~Field_Index();
00066   
00067   Field_Index(const Field_Index& from);
00068   
00069   inline Field_Index& operator=(const Field_Index& from) {
00070     CopyFrom(from);
00071     return *this;
00072   }
00073   
00074   inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
00075     return _unknown_fields_;
00076   }
00077   
00078   inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
00079     return &_unknown_fields_;
00080   }
00081   
00082   static const ::google::protobuf::Descriptor* descriptor();
00083   static const Field_Index& default_instance();
00084   
00085   void Swap(Field_Index* other);
00086   
00087   // implements Message ----------------------------------------------
00088   
00089   Field_Index* New() const;
00090   void CopyFrom(const ::google::protobuf::Message& from);
00091   void MergeFrom(const ::google::protobuf::Message& from);
00092   void CopyFrom(const Field_Index& from);
00093   void MergeFrom(const Field_Index& from);
00094   void Clear();
00095   bool IsInitialized() const;
00096   
00097   int ByteSize() const;
00098   bool MergePartialFromCodedStream(
00099       ::google::protobuf::io::CodedInputStream* input);
00100   void SerializeWithCachedSizes(
00101       ::google::protobuf::io::CodedOutputStream* output) const;
00102   ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
00103   int GetCachedSize() const { return _cached_size_; }
00104   private:
00105   void SharedCtor();
00106   void SharedDtor();
00107   void SetCachedSize(int size) const;
00108   public:
00109   
00110   ::google::protobuf::Metadata GetMetadata() const;
00111   
00112   // nested types ----------------------------------------------------
00113   
00114   // accessors -------------------------------------------------------
00115   
00116   // required bool indexing = 1;
00117   inline bool has_indexing() const;
00118   inline void clear_indexing();
00119   static const int kIndexingFieldNumber = 1;
00120   inline bool indexing() const;
00121   inline void set_indexing(bool value);
00122   
00123   // required string index_to = 2 [default = "default"];
00124   inline bool has_index_to() const;
00125   inline void clear_index_to();
00126   static const int kIndexToFieldNumber = 2;
00127   inline const ::std::string& index_to() const;
00128   inline void set_index_to(const ::std::string& value);
00129   inline void set_index_to(const char* value);
00130   inline void set_index_to(const char* value, size_t size);
00131   inline ::std::string* mutable_index_to();
00132   
00133   // optional bool exact = 3 [default = false];
00134   inline bool has_exact() const;
00135   inline void clear_exact();
00136   static const int kExactFieldNumber = 3;
00137   inline bool exact() const;
00138   inline void set_exact(bool value);
00139   
00140   // @@protoc_insertion_point(class_scope:Lux.Config.Field.Index)
00141  private:
00142   ::google::protobuf::UnknownFieldSet _unknown_fields_;
00143   mutable int _cached_size_;
00144   
00145   bool indexing_;
00146   ::std::string* index_to_;
00147   static const ::std::string _default_index_to_;
00148   bool exact_;
00149   friend void  protobuf_AddDesc_lux_2fdocument_2fdocument_5fdefinition_2eproto();
00150   friend void protobuf_AssignDesc_lux_2fdocument_2fdocument_5fdefinition_2eproto();
00151   friend void protobuf_ShutdownFile_lux_2fdocument_2fdocument_5fdefinition_2eproto();
00152   
00153   ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32];
00154   
00155   // WHY DOES & HAVE LOWER PRECEDENCE THAN != !?
00156   inline bool _has_bit(int index) const {
00157     return (_has_bits_[index / 32] & (1u << (index % 32))) != 0;
00158   }
00159   inline void _set_bit(int index) {
00160     _has_bits_[index / 32] |= (1u << (index % 32));
00161   }
00162   inline void _clear_bit(int index) {
00163     _has_bits_[index / 32] &= ~(1u << (index % 32));
00164   }
00165   
00166   void InitAsDefaultInstance();
00167   static Field_Index* default_instance_;
00168 };
00169 // -------------------------------------------------------------------
00170 
00171 class Field_AttrIndex : public ::google::protobuf::Message {
00172  public:
00173   Field_AttrIndex();
00174   virtual ~Field_AttrIndex();
00175   
00176   Field_AttrIndex(const Field_AttrIndex& from);
00177   
00178   inline Field_AttrIndex& operator=(const Field_AttrIndex& from) {
00179     CopyFrom(from);
00180     return *this;
00181   }
00182   
00183   inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
00184     return _unknown_fields_;
00185   }
00186   
00187   inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
00188     return &_unknown_fields_;
00189   }
00190   
00191   static const ::google::protobuf::Descriptor* descriptor();
00192   static const Field_AttrIndex& default_instance();
00193   
00194   void Swap(Field_AttrIndex* other);
00195   
00196   // implements Message ----------------------------------------------
00197   
00198   Field_AttrIndex* New() const;
00199   void CopyFrom(const ::google::protobuf::Message& from);
00200   void MergeFrom(const ::google::protobuf::Message& from);
00201   void CopyFrom(const Field_AttrIndex& from);
00202   void MergeFrom(const Field_AttrIndex& from);
00203   void Clear();
00204   bool IsInitialized() const;
00205   
00206   int ByteSize() const;
00207   bool MergePartialFromCodedStream(
00208       ::google::protobuf::io::CodedInputStream* input);
00209   void SerializeWithCachedSizes(
00210       ::google::protobuf::io::CodedOutputStream* output) const;
00211   ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
00212   int GetCachedSize() const { return _cached_size_; }
00213   private:
00214   void SharedCtor();
00215   void SharedDtor();
00216   void SetCachedSize(int size) const;
00217   public:
00218   
00219   ::google::protobuf::Metadata GetMetadata() const;
00220   
00221   // nested types ----------------------------------------------------
00222   
00223   // accessors -------------------------------------------------------
00224   
00225   // required bool indexing = 1 [default = false];
00226   inline bool has_indexing() const;
00227   inline void clear_indexing();
00228   static const int kIndexingFieldNumber = 1;
00229   inline bool indexing() const;
00230   inline void set_indexing(bool value);
00231   
00232   // required .Lux.Config.Field.AttrIndexType type = 2;
00233   inline bool has_type() const;
00234   inline void clear_type();
00235   static const int kTypeFieldNumber = 2;
00236   inline ::Lux::Config::Field_AttrIndexType type() const;
00237   inline void set_type(::Lux::Config::Field_AttrIndexType value);
00238   
00239   // required uint32 size = 3;
00240   inline bool has_size() const;
00241   inline void clear_size();
00242   static const int kSizeFieldNumber = 3;
00243   inline ::google::protobuf::uint32 size() const;
00244   inline void set_size(::google::protobuf::uint32 value);
00245   
00246   // @@protoc_insertion_point(class_scope:Lux.Config.Field.AttrIndex)
00247  private:
00248   ::google::protobuf::UnknownFieldSet _unknown_fields_;
00249   mutable int _cached_size_;
00250   
00251   bool indexing_;
00252   int type_;
00253   ::google::protobuf::uint32 size_;
00254   friend void  protobuf_AddDesc_lux_2fdocument_2fdocument_5fdefinition_2eproto();
00255   friend void protobuf_AssignDesc_lux_2fdocument_2fdocument_5fdefinition_2eproto();
00256   friend void protobuf_ShutdownFile_lux_2fdocument_2fdocument_5fdefinition_2eproto();
00257   
00258   ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32];
00259   
00260   // WHY DOES & HAVE LOWER PRECEDENCE THAN != !?
00261   inline bool _has_bit(int index) const {
00262     return (_has_bits_[index / 32] & (1u << (index % 32))) != 0;
00263   }
00264   inline void _set_bit(int index) {
00265     _has_bits_[index / 32] |= (1u << (index % 32));
00266   }
00267   inline void _clear_bit(int index) {
00268     _has_bits_[index / 32] &= ~(1u << (index % 32));
00269   }
00270   
00271   void InitAsDefaultInstance();
00272   static Field_AttrIndex* default_instance_;
00273 };
00274 // -------------------------------------------------------------------
00275 
00276 class Field : public ::google::protobuf::Message {
00277  public:
00278   Field();
00279   virtual ~Field();
00280   
00281   Field(const Field& from);
00282   
00283   inline Field& operator=(const Field& from) {
00284     CopyFrom(from);
00285     return *this;
00286   }
00287   
00288   inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
00289     return _unknown_fields_;
00290   }
00291   
00292   inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
00293     return &_unknown_fields_;
00294   }
00295   
00296   static const ::google::protobuf::Descriptor* descriptor();
00297   static const Field& default_instance();
00298   
00299   void Swap(Field* other);
00300   
00301   // implements Message ----------------------------------------------
00302   
00303   Field* New() const;
00304   void CopyFrom(const ::google::protobuf::Message& from);
00305   void MergeFrom(const ::google::protobuf::Message& from);
00306   void CopyFrom(const Field& from);
00307   void MergeFrom(const Field& from);
00308   void Clear();
00309   bool IsInitialized() const;
00310   
00311   int ByteSize() const;
00312   bool MergePartialFromCodedStream(
00313       ::google::protobuf::io::CodedInputStream* input);
00314   void SerializeWithCachedSizes(
00315       ::google::protobuf::io::CodedOutputStream* output) const;
00316   ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
00317   int GetCachedSize() const { return _cached_size_; }
00318   private:
00319   void SharedCtor();
00320   void SharedDtor();
00321   void SetCachedSize(int size) const;
00322   public:
00323   
00324   ::google::protobuf::Metadata GetMetadata() const;
00325   
00326   // nested types ----------------------------------------------------
00327   
00328   typedef Field_Index Index;
00329   typedef Field_AttrIndex AttrIndex;
00330   
00331   typedef Field_AttrIndexType AttrIndexType;
00332   static const AttrIndexType STRING = Field_AttrIndexType_STRING;
00333   static const AttrIndexType INT = Field_AttrIndexType_INT;
00334   static inline bool AttrIndexType_IsValid(int value) {
00335     return Field_AttrIndexType_IsValid(value);
00336   }
00337   static const AttrIndexType AttrIndexType_MIN =
00338     Field_AttrIndexType_AttrIndexType_MIN;
00339   static const AttrIndexType AttrIndexType_MAX =
00340     Field_AttrIndexType_AttrIndexType_MAX;
00341   static const int AttrIndexType_ARRAYSIZE =
00342     Field_AttrIndexType_AttrIndexType_ARRAYSIZE;
00343   static inline const ::google::protobuf::EnumDescriptor*
00344   AttrIndexType_descriptor() {
00345     return Field_AttrIndexType_descriptor();
00346   }
00347   static inline const ::std::string& AttrIndexType_Name(AttrIndexType value) {
00348     return Field_AttrIndexType_Name(value);
00349   }
00350   static inline bool AttrIndexType_Parse(const ::std::string& name,
00351       AttrIndexType* value) {
00352     return Field_AttrIndexType_Parse(name, value);
00353   }
00354   
00355   // accessors -------------------------------------------------------
00356   
00357   // required string name = 1;
00358   inline bool has_name() const;
00359   inline void clear_name();
00360   static const int kNameFieldNumber = 1;
00361   inline const ::std::string& name() const;
00362   inline void set_name(const ::std::string& value);
00363   inline void set_name(const char* value);
00364   inline void set_name(const char* value, size_t size);
00365   inline ::std::string* mutable_name();
00366   
00367   // optional .Lux.Config.Field.Index index = 2;
00368   inline bool has_index() const;
00369   inline void clear_index();
00370   static const int kIndexFieldNumber = 2;
00371   inline const ::Lux::Config::Field_Index& index() const;
00372   inline ::Lux::Config::Field_Index* mutable_index();
00373   
00374   // optional bool display = 3 [default = false];
00375   inline bool has_display() const;
00376   inline void clear_display();
00377   static const int kDisplayFieldNumber = 3;
00378   inline bool display() const;
00379   inline void set_display(bool value);
00380   
00381   // optional .Lux.Config.Field.AttrIndex attr_index = 4;
00382   inline bool has_attr_index() const;
00383   inline void clear_attr_index();
00384   static const int kAttrIndexFieldNumber = 4;
00385   inline const ::Lux::Config::Field_AttrIndex& attr_index() const;
00386   inline ::Lux::Config::Field_AttrIndex* mutable_attr_index();
00387   
00388   // @@protoc_insertion_point(class_scope:Lux.Config.Field)
00389  private:
00390   ::google::protobuf::UnknownFieldSet _unknown_fields_;
00391   mutable int _cached_size_;
00392   
00393   ::std::string* name_;
00394   static const ::std::string _default_name_;
00395   ::Lux::Config::Field_Index* index_;
00396   bool display_;
00397   ::Lux::Config::Field_AttrIndex* attr_index_;
00398   friend void  protobuf_AddDesc_lux_2fdocument_2fdocument_5fdefinition_2eproto();
00399   friend void protobuf_AssignDesc_lux_2fdocument_2fdocument_5fdefinition_2eproto();
00400   friend void protobuf_ShutdownFile_lux_2fdocument_2fdocument_5fdefinition_2eproto();
00401   
00402   ::google::protobuf::uint32 _has_bits_[(4 + 31) / 32];
00403   
00404   // WHY DOES & HAVE LOWER PRECEDENCE THAN != !?
00405   inline bool _has_bit(int index) const {
00406     return (_has_bits_[index / 32] & (1u << (index % 32))) != 0;
00407   }
00408   inline void _set_bit(int index) {
00409     _has_bits_[index / 32] |= (1u << (index % 32));
00410   }
00411   inline void _clear_bit(int index) {
00412     _has_bits_[index / 32] &= ~(1u << (index % 32));
00413   }
00414   
00415   void InitAsDefaultInstance();
00416   static Field* default_instance_;
00417 };
00418 // -------------------------------------------------------------------
00419 
00424 class Document : public ::google::protobuf::Message {
00425  public:
00426   Document();
00427   virtual ~Document();
00428   
00429   Document(const Document& from);
00430   
00431   inline Document& operator=(const Document& from) {
00432     CopyFrom(from);
00433     return *this;
00434   }
00435   
00436   inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
00437     return _unknown_fields_;
00438   }
00439   
00440   inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
00441     return &_unknown_fields_;
00442   }
00443   
00444   static const ::google::protobuf::Descriptor* descriptor();
00445   static const Document& default_instance();
00446   
00447   void Swap(Document* other);
00448   
00449   // implements Message ----------------------------------------------
00450   
00451   Document* New() const;
00452   void CopyFrom(const ::google::protobuf::Message& from);
00453   void MergeFrom(const ::google::protobuf::Message& from);
00454   void CopyFrom(const Document& from);
00455   void MergeFrom(const Document& from);
00456   void Clear();
00457   bool IsInitialized() const;
00458   
00459   int ByteSize() const;
00460   bool MergePartialFromCodedStream(
00461       ::google::protobuf::io::CodedInputStream* input);
00462   void SerializeWithCachedSizes(
00463       ::google::protobuf::io::CodedOutputStream* output) const;
00464   ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
00465   int GetCachedSize() const { return _cached_size_; }
00466   private:
00467   void SharedCtor();
00468   void SharedDtor();
00469   void SetCachedSize(int size) const;
00470   public:
00471   
00472   ::google::protobuf::Metadata GetMetadata() const;
00473   
00474   // nested types ----------------------------------------------------
00475   
00476   // accessors -------------------------------------------------------
00477   
00478   // repeated .Lux.Config.Field field = 1;
00479   inline int field_size() const;
00480   inline void clear_field();
00481   static const int kFieldFieldNumber = 1;
00482   inline const ::Lux::Config::Field& field(int index) const;
00483   inline ::Lux::Config::Field* mutable_field(int index);
00484   inline ::Lux::Config::Field* add_field();
00485   inline const ::google::protobuf::RepeatedPtrField< ::Lux::Config::Field >&
00486       field() const;
00487   inline ::google::protobuf::RepeatedPtrField< ::Lux::Config::Field >*
00488       mutable_field();
00489   
00490   // @@protoc_insertion_point(class_scope:Lux.Config.Document)
00491  private:
00492   ::google::protobuf::UnknownFieldSet _unknown_fields_;
00493   mutable int _cached_size_;
00494   
00495   ::google::protobuf::RepeatedPtrField< ::Lux::Config::Field > field_;
00496   friend void  protobuf_AddDesc_lux_2fdocument_2fdocument_5fdefinition_2eproto();
00497   friend void protobuf_AssignDesc_lux_2fdocument_2fdocument_5fdefinition_2eproto();
00498   friend void protobuf_ShutdownFile_lux_2fdocument_2fdocument_5fdefinition_2eproto();
00499   
00500   ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32];
00501   
00502   // WHY DOES & HAVE LOWER PRECEDENCE THAN != !?
00503   inline bool _has_bit(int index) const {
00504     return (_has_bits_[index / 32] & (1u << (index % 32))) != 0;
00505   }
00506   inline void _set_bit(int index) {
00507     _has_bits_[index / 32] |= (1u << (index % 32));
00508   }
00509   inline void _clear_bit(int index) {
00510     _has_bits_[index / 32] &= ~(1u << (index % 32));
00511   }
00512   
00513   void InitAsDefaultInstance();
00514   static Document* default_instance_;
00515 };
00516 // ===================================================================
00517 
00518 
00519 // ===================================================================
00520 
00521 // Field_Index
00522 
00523 // required bool indexing = 1;
00524 inline bool Field_Index::has_indexing() const {
00525   return _has_bit(0);
00526 }
00527 inline void Field_Index::clear_indexing() {
00528   indexing_ = false;
00529   _clear_bit(0);
00530 }
00531 inline bool Field_Index::indexing() const {
00532   return indexing_;
00533 }
00534 inline void Field_Index::set_indexing(bool value) {
00535   _set_bit(0);
00536   indexing_ = value;
00537 }
00538 
00539 // required string index_to = 2 [default = "default"];
00540 inline bool Field_Index::has_index_to() const {
00541   return _has_bit(1);
00542 }
00543 inline void Field_Index::clear_index_to() {
00544   if (index_to_ != &_default_index_to_) {
00545     index_to_->assign(_default_index_to_);
00546   }
00547   _clear_bit(1);
00548 }
00549 inline const ::std::string& Field_Index::index_to() const {
00550   return *index_to_;
00551 }
00552 inline void Field_Index::set_index_to(const ::std::string& value) {
00553   _set_bit(1);
00554   if (index_to_ == &_default_index_to_) {
00555     index_to_ = new ::std::string;
00556   }
00557   index_to_->assign(value);
00558 }
00559 inline void Field_Index::set_index_to(const char* value) {
00560   _set_bit(1);
00561   if (index_to_ == &_default_index_to_) {
00562     index_to_ = new ::std::string;
00563   }
00564   index_to_->assign(value);
00565 }
00566 inline void Field_Index::set_index_to(const char* value, size_t size) {
00567   _set_bit(1);
00568   if (index_to_ == &_default_index_to_) {
00569     index_to_ = new ::std::string;
00570   }
00571   index_to_->assign(reinterpret_cast<const char*>(value), size);
00572 }
00573 inline ::std::string* Field_Index::mutable_index_to() {
00574   _set_bit(1);
00575   if (index_to_ == &_default_index_to_) {
00576     index_to_ = new ::std::string(_default_index_to_);
00577   }
00578   return index_to_;
00579 }
00580 
00581 // optional bool exact = 3 [default = false];
00582 inline bool Field_Index::has_exact() const {
00583   return _has_bit(2);
00584 }
00585 inline void Field_Index::clear_exact() {
00586   exact_ = false;
00587   _clear_bit(2);
00588 }
00589 inline bool Field_Index::exact() const {
00590   return exact_;
00591 }
00592 inline void Field_Index::set_exact(bool value) {
00593   _set_bit(2);
00594   exact_ = value;
00595 }
00596 
00597 // -------------------------------------------------------------------
00598 
00599 // Field_AttrIndex
00600 
00601 // required bool indexing = 1 [default = false];
00602 inline bool Field_AttrIndex::has_indexing() const {
00603   return _has_bit(0);
00604 }
00605 inline void Field_AttrIndex::clear_indexing() {
00606   indexing_ = false;
00607   _clear_bit(0);
00608 }
00609 inline bool Field_AttrIndex::indexing() const {
00610   return indexing_;
00611 }
00612 inline void Field_AttrIndex::set_indexing(bool value) {
00613   _set_bit(0);
00614   indexing_ = value;
00615 }
00616 
00617 // required .Lux.Config.Field.AttrIndexType type = 2;
00618 inline bool Field_AttrIndex::has_type() const {
00619   return _has_bit(1);
00620 }
00621 inline void Field_AttrIndex::clear_type() {
00622   type_ = 0;
00623   _clear_bit(1);
00624 }
00625 inline ::Lux::Config::Field_AttrIndexType Field_AttrIndex::type() const {
00626   return static_cast< ::Lux::Config::Field_AttrIndexType >(type_);
00627 }
00628 inline void Field_AttrIndex::set_type(::Lux::Config::Field_AttrIndexType value) {
00629   GOOGLE_DCHECK(::Lux::Config::Field_AttrIndexType_IsValid(value));
00630   _set_bit(1);
00631   type_ = value;
00632 }
00633 
00634 // required uint32 size = 3;
00635 inline bool Field_AttrIndex::has_size() const {
00636   return _has_bit(2);
00637 }
00638 inline void Field_AttrIndex::clear_size() {
00639   size_ = 0u;
00640   _clear_bit(2);
00641 }
00642 inline ::google::protobuf::uint32 Field_AttrIndex::size() const {
00643   return size_;
00644 }
00645 inline void Field_AttrIndex::set_size(::google::protobuf::uint32 value) {
00646   _set_bit(2);
00647   size_ = value;
00648 }
00649 
00650 // -------------------------------------------------------------------
00651 
00652 // Field
00653 
00654 // required string name = 1;
00655 inline bool Field::has_name() const {
00656   return _has_bit(0);
00657 }
00658 inline void Field::clear_name() {
00659   if (name_ != &_default_name_) {
00660     name_->clear();
00661   }
00662   _clear_bit(0);
00663 }
00664 inline const ::std::string& Field::name() const {
00665   return *name_;
00666 }
00667 inline void Field::set_name(const ::std::string& value) {
00668   _set_bit(0);
00669   if (name_ == &_default_name_) {
00670     name_ = new ::std::string;
00671   }
00672   name_->assign(value);
00673 }
00674 inline void Field::set_name(const char* value) {
00675   _set_bit(0);
00676   if (name_ == &_default_name_) {
00677     name_ = new ::std::string;
00678   }
00679   name_->assign(value);
00680 }
00681 inline void Field::set_name(const char* value, size_t size) {
00682   _set_bit(0);
00683   if (name_ == &_default_name_) {
00684     name_ = new ::std::string;
00685   }
00686   name_->assign(reinterpret_cast<const char*>(value), size);
00687 }
00688 inline ::std::string* Field::mutable_name() {
00689   _set_bit(0);
00690   if (name_ == &_default_name_) {
00691     name_ = new ::std::string;
00692   }
00693   return name_;
00694 }
00695 
00696 // optional .Lux.Config.Field.Index index = 2;
00697 inline bool Field::has_index() const {
00698   return _has_bit(1);
00699 }
00700 inline void Field::clear_index() {
00701   if (index_ != NULL) index_->::Lux::Config::Field_Index::Clear();
00702   _clear_bit(1);
00703 }
00704 inline const ::Lux::Config::Field_Index& Field::index() const {
00705   return index_ != NULL ? *index_ : *default_instance_->index_;
00706 }
00707 inline ::Lux::Config::Field_Index* Field::mutable_index() {
00708   _set_bit(1);
00709   if (index_ == NULL) index_ = new ::Lux::Config::Field_Index;
00710   return index_;
00711 }
00712 
00713 // optional bool display = 3 [default = false];
00714 inline bool Field::has_display() const {
00715   return _has_bit(2);
00716 }
00717 inline void Field::clear_display() {
00718   display_ = false;
00719   _clear_bit(2);
00720 }
00721 inline bool Field::display() const {
00722   return display_;
00723 }
00724 inline void Field::set_display(bool value) {
00725   _set_bit(2);
00726   display_ = value;
00727 }
00728 
00729 // optional .Lux.Config.Field.AttrIndex attr_index = 4;
00730 inline bool Field::has_attr_index() const {
00731   return _has_bit(3);
00732 }
00733 inline void Field::clear_attr_index() {
00734   if (attr_index_ != NULL) attr_index_->::Lux::Config::Field_AttrIndex::Clear();
00735   _clear_bit(3);
00736 }
00737 inline const ::Lux::Config::Field_AttrIndex& Field::attr_index() const {
00738   return attr_index_ != NULL ? *attr_index_ : *default_instance_->attr_index_;
00739 }
00740 inline ::Lux::Config::Field_AttrIndex* Field::mutable_attr_index() {
00741   _set_bit(3);
00742   if (attr_index_ == NULL) attr_index_ = new ::Lux::Config::Field_AttrIndex;
00743   return attr_index_;
00744 }
00745 
00746 // -------------------------------------------------------------------
00747 
00748 // Document
00749 
00750 // repeated .Lux.Config.Field field = 1;
00751 inline int Document::field_size() const {
00752   return field_.size();
00753 }
00754 inline void Document::clear_field() {
00755   field_.Clear();
00756 }
00757 inline const ::Lux::Config::Field& Document::field(int index) const {
00758   return field_.Get(index);
00759 }
00760 inline ::Lux::Config::Field* Document::mutable_field(int index) {
00761   return field_.Mutable(index);
00762 }
00763 inline ::Lux::Config::Field* Document::add_field() {
00764   return field_.Add();
00765 }
00766 inline const ::google::protobuf::RepeatedPtrField< ::Lux::Config::Field >&
00767 Document::field() const {
00768   return field_;
00769 }
00770 inline ::google::protobuf::RepeatedPtrField< ::Lux::Config::Field >*
00771 Document::mutable_field() {
00772   return &field_;
00773 }
00774 
00775 
00776 // @@protoc_insertion_point(namespace_scope)
00777 
00778 }  // namespace Config
00779 }  // namespace Lux
00780 
00781 #ifndef SWIG
00782 namespace google {
00783 namespace protobuf {
00784 
00785 template <>
00786 inline const EnumDescriptor* GetEnumDescriptor< ::Lux::Config::Field_AttrIndexType>() {
00787   return ::Lux::Config::Field_AttrIndexType_descriptor();
00788 }
00789 
00790 }  // namespace google
00791 }  // namespace protobuf
00792 #endif  // SWIG
00793 
00794 // @@protoc_insertion_point(global_scope)
00795 
00796 #endif  // PROTOBUF_lux_2fdocument_2fdocument_5fdefinition_2eproto__INCLUDED

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