00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039 #ifndef PROTOBUF_document_2eproto__INCLUDED
00040 #define PROTOBUF_document_2eproto__INCLUDED
00041
00042 #include <string>
00043
00044 #include <google/protobuf/stubs/common.h>
00045
00046 #if GOOGLE_PROTOBUF_VERSION < 2002000
00047 #error This file was generated by a newer version of protoc which is
00048 #error incompatible with your Protocol Buffer headers. Please update
00049 #error your headers.
00050 #endif
00051 #if 2002000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
00052 #error This file was generated by an older version of protoc which is
00053 #error incompatible with your Protocol Buffer headers. Please
00054 #error regenerate this file with a newer version of protoc.
00055 #endif
00056
00057 #include <google/protobuf/generated_message_util.h>
00058 #include <google/protobuf/repeated_field.h>
00059 #include <google/protobuf/extension_set.h>
00060 #include <google/protobuf/generated_message_reflection.h>
00061
00062 namespace LDA {
00063
00064
00065 void protobuf_AddDesc_document_2eproto();
00066 void protobuf_AssignDesc_document_2eproto();
00067 void protobuf_ShutdownFile_document_2eproto();
00068
00069 class unigram_document;
00070 class unigram_counts;
00071 class word_ind_pair;
00072 class header;
00073 class parameters;
00074
00075
00076
00077 class unigram_document : public ::google::protobuf::Message {
00078 public:
00079 unigram_document();
00080 virtual ~unigram_document();
00081
00082 unigram_document(const unigram_document& from);
00083
00084 inline unigram_document& operator=(const unigram_document& from) {
00085 CopyFrom(from);
00086 return *this;
00087 }
00088
00089 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
00090 return _unknown_fields_;
00091 }
00092
00093 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
00094 return &_unknown_fields_;
00095 }
00096
00097 static const ::google::protobuf::Descriptor* descriptor();
00098 static const unigram_document& default_instance();
00099 void Swap(unigram_document* other);
00100
00101
00102
00103 unigram_document* New() const;
00104 void CopyFrom(const ::google::protobuf::Message& from);
00105 void MergeFrom(const ::google::protobuf::Message& from);
00106 void CopyFrom(const unigram_document& from);
00107 void MergeFrom(const unigram_document& from);
00108 void Clear();
00109 bool IsInitialized() const;
00110
00111 int ByteSize() const;
00112 bool MergePartialFromCodedStream(
00113 ::google::protobuf::io::CodedInputStream* input);
00114 void SerializeWithCachedSizes(
00115 ::google::protobuf::io::CodedOutputStream* output) const;
00116 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
00117 int GetCachedSize() const { return _cached_size_; }
00118 private:
00119 void SharedCtor();
00120 void SharedDtor();
00121 void SetCachedSize(int size) const { _cached_size_ = size; }
00122 public:
00123
00124 ::google::protobuf::Metadata GetMetadata() const;
00125
00126
00127
00128
00129
00130
00131 inline bool has_docid() const;
00132 inline void clear_docid();
00133 static const int kDocIDFieldNumber = 1;
00134 inline const ::std::string& docid() const;
00135 inline void set_docid(const ::std::string& value);
00136 inline void set_docid(const char* value);
00137 inline void set_docid(const char* value, size_t size);
00138 inline ::std::string* mutable_docid();
00139
00140
00141 inline bool has_url() const;
00142 inline void clear_url();
00143 static const int kUrlFieldNumber = 2;
00144 inline const ::std::string& url() const;
00145 inline void set_url(const ::std::string& value);
00146 inline void set_url(const char* value);
00147 inline void set_url(const char* value, size_t size);
00148 inline ::std::string* mutable_url();
00149
00150
00151 inline int body_size() const;
00152 inline void clear_body();
00153 static const int kBodyFieldNumber = 3;
00154 inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& body() const
00155 ;
00156 inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* mutable_body();
00157 inline ::google::protobuf::uint32 body(int index) const;
00158 inline void set_body(int index, ::google::protobuf::uint32 value);
00159 inline void add_body(::google::protobuf::uint32 value);
00160
00161
00162 inline int topic_assignment_size() const;
00163 inline void clear_topic_assignment();
00164 static const int kTopicAssignmentFieldNumber = 4;
00165 inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& topic_assignment() const
00166 ;
00167 inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* mutable_topic_assignment();
00168 inline ::google::protobuf::uint32 topic_assignment(int index) const;
00169 inline void set_topic_assignment(int index, ::google::protobuf::uint32 value);
00170 inline void add_topic_assignment(::google::protobuf::uint32 value);
00171
00172
00173 inline int topic_counts_size() const;
00174 inline void clear_topic_counts();
00175 static const int kTopicCountsFieldNumber = 5;
00176 inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& topic_counts() const
00177 ;
00178 inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* mutable_topic_counts();
00179 inline ::google::protobuf::uint32 topic_counts(int index) const;
00180 inline void set_topic_counts(int index, ::google::protobuf::uint32 value);
00181 inline void add_topic_counts(::google::protobuf::uint32 value);
00182
00183
00184 inline int cnt_topics_size() const;
00185 inline void clear_cnt_topics();
00186 static const int kCntTopicsFieldNumber = 6;
00187 inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >& cnt_topics() const
00188 ;
00189 inline ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >* mutable_cnt_topics();
00190 inline ::google::protobuf::uint64 cnt_topics(int index) const;
00191 inline void set_cnt_topics(int index, ::google::protobuf::uint64 value);
00192 inline void add_cnt_topics(::google::protobuf::uint64 value);
00193
00194
00195 inline int topic_distribution_size() const;
00196 inline void clear_topic_distribution();
00197 static const int kTopicDistributionFieldNumber = 7;
00198 inline const ::google::protobuf::RepeatedField< float >& topic_distribution() const
00199 ;
00200 inline ::google::protobuf::RepeatedField< float >* mutable_topic_distribution();
00201 inline float topic_distribution(int index) const;
00202 inline void set_topic_distribution(int index, float value);
00203 inline void add_topic_distribution(float value);
00204
00205 private:
00206 ::google::protobuf::UnknownFieldSet _unknown_fields_;
00207 mutable int _cached_size_;
00208
00209 ::std::string* docid_;
00210 static const ::std::string _default_docid_;
00211 ::std::string* url_;
00212 static const ::std::string _default_url_;
00213 ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > body_;
00214 mutable int _body_cached_byte_size_;
00215 ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > topic_assignment_;
00216 mutable int _topic_assignment_cached_byte_size_;
00217 ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > topic_counts_;
00218 mutable int _topic_counts_cached_byte_size_;
00219 ::google::protobuf::RepeatedField< ::google::protobuf::uint64 > cnt_topics_;
00220 mutable int _cnt_topics_cached_byte_size_;
00221 ::google::protobuf::RepeatedField< float > topic_distribution_;
00222 mutable int _topic_distribution_cached_byte_size_;
00223 friend void protobuf_AddDesc_document_2eproto();
00224 friend void protobuf_AssignDesc_document_2eproto();
00225 friend void protobuf_ShutdownFile_document_2eproto();
00226
00227 ::google::protobuf::uint32 _has_bits_[(7 + 31) / 32];
00228
00229
00230 inline bool _has_bit(int index) const {
00231 return (_has_bits_[index / 32] & (1u << (index % 32))) != 0;
00232 }
00233 inline void _set_bit(int index) {
00234 _has_bits_[index / 32] |= (1u << (index % 32));
00235 }
00236 inline void _clear_bit(int index) {
00237 _has_bits_[index / 32] &= ~(1u << (index % 32));
00238 }
00239
00240 void InitAsDefaultInstance();
00241 static unigram_document* default_instance_;
00242 };
00243
00244
00245 class unigram_counts : public ::google::protobuf::Message {
00246 public:
00247 unigram_counts();
00248 virtual ~unigram_counts();
00249
00250 unigram_counts(const unigram_counts& from);
00251
00252 inline unigram_counts& operator=(const unigram_counts& from) {
00253 CopyFrom(from);
00254 return *this;
00255 }
00256
00257 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
00258 return _unknown_fields_;
00259 }
00260
00261 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
00262 return &_unknown_fields_;
00263 }
00264
00265 static const ::google::protobuf::Descriptor* descriptor();
00266 static const unigram_counts& default_instance();
00267 void Swap(unigram_counts* other);
00268
00269
00270
00271 unigram_counts* New() const;
00272 void CopyFrom(const ::google::protobuf::Message& from);
00273 void MergeFrom(const ::google::protobuf::Message& from);
00274 void CopyFrom(const unigram_counts& from);
00275 void MergeFrom(const unigram_counts& from);
00276 void Clear();
00277 bool IsInitialized() const;
00278
00279 int ByteSize() const;
00280 bool MergePartialFromCodedStream(
00281 ::google::protobuf::io::CodedInputStream* input);
00282 void SerializeWithCachedSizes(
00283 ::google::protobuf::io::CodedOutputStream* output) const;
00284 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
00285 int GetCachedSize() const { return _cached_size_; }
00286 private:
00287 void SharedCtor();
00288 void SharedDtor();
00289 void SetCachedSize(int size) const { _cached_size_ = size; }
00290 public:
00291
00292 ::google::protobuf::Metadata GetMetadata() const;
00293
00294
00295
00296
00297
00298
00299 inline int counts_size() const;
00300 inline void clear_counts();
00301 static const int kCountsFieldNumber = 1;
00302 inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >& counts() const
00303 ;
00304 inline ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >* mutable_counts();
00305 inline ::google::protobuf::uint64 counts(int index) const;
00306 inline void set_counts(int index, ::google::protobuf::uint64 value);
00307 inline void add_counts(::google::protobuf::uint64 value);
00308
00309
00310 inline int tokens_per_topic_size() const;
00311 inline void clear_tokens_per_topic();
00312 static const int kTokensPerTopicFieldNumber = 2;
00313 inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& tokens_per_topic() const
00314 ;
00315 inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* mutable_tokens_per_topic();
00316 inline ::google::protobuf::uint32 tokens_per_topic(int index) const;
00317 inline void set_tokens_per_topic(int index, ::google::protobuf::uint32 value);
00318 inline void add_tokens_per_topic(::google::protobuf::uint32 value);
00319
00320 private:
00321 ::google::protobuf::UnknownFieldSet _unknown_fields_;
00322 mutable int _cached_size_;
00323
00324 ::google::protobuf::RepeatedField< ::google::protobuf::uint64 > counts_;
00325 mutable int _counts_cached_byte_size_;
00326 ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > tokens_per_topic_;
00327 mutable int _tokens_per_topic_cached_byte_size_;
00328 friend void protobuf_AddDesc_document_2eproto();
00329 friend void protobuf_AssignDesc_document_2eproto();
00330 friend void protobuf_ShutdownFile_document_2eproto();
00331
00332 ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32];
00333
00334
00335 inline bool _has_bit(int index) const {
00336 return (_has_bits_[index / 32] & (1u << (index % 32))) != 0;
00337 }
00338 inline void _set_bit(int index) {
00339 _has_bits_[index / 32] |= (1u << (index % 32));
00340 }
00341 inline void _clear_bit(int index) {
00342 _has_bits_[index / 32] &= ~(1u << (index % 32));
00343 }
00344
00345 void InitAsDefaultInstance();
00346 static unigram_counts* default_instance_;
00347 };
00348
00349
00350 class word_ind_pair : public ::google::protobuf::Message {
00351 public:
00352 word_ind_pair();
00353 virtual ~word_ind_pair();
00354
00355 word_ind_pair(const word_ind_pair& from);
00356
00357 inline word_ind_pair& operator=(const word_ind_pair& from) {
00358 CopyFrom(from);
00359 return *this;
00360 }
00361
00362 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
00363 return _unknown_fields_;
00364 }
00365
00366 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
00367 return &_unknown_fields_;
00368 }
00369
00370 static const ::google::protobuf::Descriptor* descriptor();
00371 static const word_ind_pair& default_instance();
00372 void Swap(word_ind_pair* other);
00373
00374
00375
00376 word_ind_pair* New() const;
00377 void CopyFrom(const ::google::protobuf::Message& from);
00378 void MergeFrom(const ::google::protobuf::Message& from);
00379 void CopyFrom(const word_ind_pair& from);
00380 void MergeFrom(const word_ind_pair& from);
00381 void Clear();
00382 bool IsInitialized() const;
00383
00384 int ByteSize() const;
00385 bool MergePartialFromCodedStream(
00386 ::google::protobuf::io::CodedInputStream* input);
00387 void SerializeWithCachedSizes(
00388 ::google::protobuf::io::CodedOutputStream* output) const;
00389 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
00390 int GetCachedSize() const { return _cached_size_; }
00391 private:
00392 void SharedCtor();
00393 void SharedDtor();
00394 void SetCachedSize(int size) const { _cached_size_ = size; }
00395 public:
00396
00397 ::google::protobuf::Metadata GetMetadata() const;
00398
00399
00400
00401
00402
00403
00404 inline int word_size() const;
00405 inline void clear_word();
00406 static const int kWordFieldNumber = 1;
00407 inline const ::google::protobuf::RepeatedPtrField< ::std::string>& word() const;
00408 inline ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_word();
00409 inline const ::std::string& word(int index) const;
00410 inline ::std::string* mutable_word(int index);
00411 inline void set_word(int index, const ::std::string& value);
00412 inline void set_word(int index, const char* value);
00413 inline void set_word(int index, const char* value, size_t size);
00414 inline ::std::string* add_word();
00415 inline void add_word(const ::std::string& value);
00416 inline void add_word(const char* value);
00417 inline void add_word(const char* value, size_t size);
00418
00419
00420 inline int index_size() const;
00421 inline void clear_index();
00422 static const int kIndexFieldNumber = 2;
00423 inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& index() const
00424 ;
00425 inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* mutable_index();
00426 inline ::google::protobuf::uint32 index(int index) const;
00427 inline void set_index(int index, ::google::protobuf::uint32 value);
00428 inline void add_index(::google::protobuf::uint32 value);
00429
00430
00431 inline int frequency_size() const;
00432 inline void clear_frequency();
00433 static const int kFrequencyFieldNumber = 3;
00434 inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& frequency() const
00435 ;
00436 inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* mutable_frequency();
00437 inline ::google::protobuf::uint32 frequency(int index) const;
00438 inline void set_frequency(int index, ::google::protobuf::uint32 value);
00439 inline void add_frequency(::google::protobuf::uint32 value);
00440
00441 private:
00442 ::google::protobuf::UnknownFieldSet _unknown_fields_;
00443 mutable int _cached_size_;
00444
00445 ::google::protobuf::RepeatedPtrField< ::std::string> word_;
00446 ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > index_;
00447 mutable int _index_cached_byte_size_;
00448 ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > frequency_;
00449 mutable int _frequency_cached_byte_size_;
00450 friend void protobuf_AddDesc_document_2eproto();
00451 friend void protobuf_AssignDesc_document_2eproto();
00452 friend void protobuf_ShutdownFile_document_2eproto();
00453
00454 ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32];
00455
00456
00457 inline bool _has_bit(int index) const {
00458 return (_has_bits_[index / 32] & (1u << (index % 32))) != 0;
00459 }
00460 inline void _set_bit(int index) {
00461 _has_bits_[index / 32] |= (1u << (index % 32));
00462 }
00463 inline void _clear_bit(int index) {
00464 _has_bits_[index / 32] &= ~(1u << (index % 32));
00465 }
00466
00467 void InitAsDefaultInstance();
00468 static word_ind_pair* default_instance_;
00469 };
00470
00471
00472 class header : public ::google::protobuf::Message {
00473 public:
00474 header();
00475 virtual ~header();
00476
00477 header(const header& from);
00478
00479 inline header& operator=(const header& from) {
00480 CopyFrom(from);
00481 return *this;
00482 }
00483
00484 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
00485 return _unknown_fields_;
00486 }
00487
00488 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
00489 return &_unknown_fields_;
00490 }
00491
00492 static const ::google::protobuf::Descriptor* descriptor();
00493 static const header& default_instance();
00494 void Swap(header* other);
00495
00496
00497
00498 header* New() const;
00499 void CopyFrom(const ::google::protobuf::Message& from);
00500 void MergeFrom(const ::google::protobuf::Message& from);
00501 void CopyFrom(const header& from);
00502 void MergeFrom(const header& from);
00503 void Clear();
00504 bool IsInitialized() const;
00505
00506 int ByteSize() const;
00507 bool MergePartialFromCodedStream(
00508 ::google::protobuf::io::CodedInputStream* input);
00509 void SerializeWithCachedSizes(
00510 ::google::protobuf::io::CodedOutputStream* output) const;
00511 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
00512 int GetCachedSize() const { return _cached_size_; }
00513 private:
00514 void SharedCtor();
00515 void SharedDtor();
00516 void SetCachedSize(int size) const { _cached_size_ = size; }
00517 public:
00518
00519 ::google::protobuf::Metadata GetMetadata() const;
00520
00521
00522
00523
00524
00525
00526 inline bool has_version() const;
00527 inline void clear_version();
00528 static const int kVersionFieldNumber = 1;
00529 inline double version() const;
00530 inline void set_version(double value);
00531
00532
00533 inline bool has_num_words() const;
00534 inline void clear_num_words();
00535 static const int kNumWordsFieldNumber = 2;
00536 inline ::google::protobuf::uint32 num_words() const;
00537 inline void set_num_words(::google::protobuf::uint32 value);
00538
00539
00540 inline bool has_num_topics() const;
00541 inline void clear_num_topics();
00542 static const int kNumTopicsFieldNumber = 3;
00543 inline ::google::protobuf::uint32 num_topics() const;
00544 inline void set_num_topics(::google::protobuf::uint32 value);
00545
00546 private:
00547 ::google::protobuf::UnknownFieldSet _unknown_fields_;
00548 mutable int _cached_size_;
00549
00550 double version_;
00551 ::google::protobuf::uint32 num_words_;
00552 ::google::protobuf::uint32 num_topics_;
00553 friend void protobuf_AddDesc_document_2eproto();
00554 friend void protobuf_AssignDesc_document_2eproto();
00555 friend void protobuf_ShutdownFile_document_2eproto();
00556
00557 ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32];
00558
00559
00560 inline bool _has_bit(int index) const {
00561 return (_has_bits_[index / 32] & (1u << (index % 32))) != 0;
00562 }
00563 inline void _set_bit(int index) {
00564 _has_bits_[index / 32] |= (1u << (index % 32));
00565 }
00566 inline void _clear_bit(int index) {
00567 _has_bits_[index / 32] &= ~(1u << (index % 32));
00568 }
00569
00570 void InitAsDefaultInstance();
00571 static header* default_instance_;
00572 };
00573
00574
00575 class parameters : public ::google::protobuf::Message {
00576 public:
00577 parameters();
00578 virtual ~parameters();
00579
00580 parameters(const parameters& from);
00581
00582 inline parameters& operator=(const parameters& from) {
00583 CopyFrom(from);
00584 return *this;
00585 }
00586
00587 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
00588 return _unknown_fields_;
00589 }
00590
00591 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
00592 return &_unknown_fields_;
00593 }
00594
00595 static const ::google::protobuf::Descriptor* descriptor();
00596 static const parameters& default_instance();
00597 void Swap(parameters* other);
00598
00599
00600
00601 parameters* New() const;
00602 void CopyFrom(const ::google::protobuf::Message& from);
00603 void MergeFrom(const ::google::protobuf::Message& from);
00604 void CopyFrom(const parameters& from);
00605 void MergeFrom(const parameters& from);
00606 void Clear();
00607 bool IsInitialized() const;
00608
00609 int ByteSize() const;
00610 bool MergePartialFromCodedStream(
00611 ::google::protobuf::io::CodedInputStream* input);
00612 void SerializeWithCachedSizes(
00613 ::google::protobuf::io::CodedOutputStream* output) const;
00614 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
00615 int GetCachedSize() const { return _cached_size_; }
00616 private:
00617 void SharedCtor();
00618 void SharedDtor();
00619 void SetCachedSize(int size) const { _cached_size_ = size; }
00620 public:
00621
00622 ::google::protobuf::Metadata GetMetadata() const;
00623
00624
00625
00626
00627
00628
00629 inline bool has_alphasum() const;
00630 inline void clear_alphasum();
00631 static const int kAlphasumFieldNumber = 1;
00632 inline double alphasum() const;
00633 inline void set_alphasum(double value);
00634
00635
00636 inline int alphas_size() const;
00637 inline void clear_alphas();
00638 static const int kAlphasFieldNumber = 2;
00639 inline const ::google::protobuf::RepeatedField< double >& alphas() const
00640 ;
00641 inline ::google::protobuf::RepeatedField< double >* mutable_alphas();
00642 inline double alphas(int index) const;
00643 inline void set_alphas(int index, double value);
00644 inline void add_alphas(double value);
00645
00646 private:
00647 ::google::protobuf::UnknownFieldSet _unknown_fields_;
00648 mutable int _cached_size_;
00649
00650 double alphasum_;
00651 ::google::protobuf::RepeatedField< double > alphas_;
00652 mutable int _alphas_cached_byte_size_;
00653 friend void protobuf_AddDesc_document_2eproto();
00654 friend void protobuf_AssignDesc_document_2eproto();
00655 friend void protobuf_ShutdownFile_document_2eproto();
00656
00657 ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32];
00658
00659
00660 inline bool _has_bit(int index) const {
00661 return (_has_bits_[index / 32] & (1u << (index % 32))) != 0;
00662 }
00663 inline void _set_bit(int index) {
00664 _has_bits_[index / 32] |= (1u << (index % 32));
00665 }
00666 inline void _clear_bit(int index) {
00667 _has_bits_[index / 32] &= ~(1u << (index % 32));
00668 }
00669
00670 void InitAsDefaultInstance();
00671 static parameters* default_instance_;
00672 };
00673
00674
00675
00676
00677
00678
00679
00680
00681
00682
00683
00684 inline bool unigram_document::has_docid() const {
00685 return _has_bit(0);
00686 }
00687 inline void unigram_document::clear_docid() {
00688 if (docid_ != &_default_docid_) {
00689 docid_->clear();
00690 }
00691 _clear_bit(0);
00692 }
00693 inline const ::std::string& unigram_document::docid() const {
00694 return *docid_;
00695 }
00696 inline void unigram_document::set_docid(const ::std::string& value) {
00697 _set_bit(0);
00698 if (docid_ == &_default_docid_) {
00699 docid_ = new ::std::string;
00700 }
00701 docid_->assign(value);
00702 }
00703 inline void unigram_document::set_docid(const char* value) {
00704 _set_bit(0);
00705 if (docid_ == &_default_docid_) {
00706 docid_ = new ::std::string;
00707 }
00708 docid_->assign(value);
00709 }
00710 inline void unigram_document::set_docid(const char* value, size_t size) {
00711 _set_bit(0);
00712 if (docid_ == &_default_docid_) {
00713 docid_ = new ::std::string;
00714 }
00715 docid_->assign(reinterpret_cast<const char*>(value), size);
00716 }
00717 inline ::std::string* unigram_document::mutable_docid() {
00718 _set_bit(0);
00719 if (docid_ == &_default_docid_) {
00720 docid_ = new ::std::string;
00721 }
00722 return docid_;
00723 }
00724
00725
00726 inline bool unigram_document::has_url() const {
00727 return _has_bit(1);
00728 }
00729 inline void unigram_document::clear_url() {
00730 if (url_ != &_default_url_) {
00731 url_->clear();
00732 }
00733 _clear_bit(1);
00734 }
00735 inline const ::std::string& unigram_document::url() const {
00736 return *url_;
00737 }
00738 inline void unigram_document::set_url(const ::std::string& value) {
00739 _set_bit(1);
00740 if (url_ == &_default_url_) {
00741 url_ = new ::std::string;
00742 }
00743 url_->assign(value);
00744 }
00745 inline void unigram_document::set_url(const char* value) {
00746 _set_bit(1);
00747 if (url_ == &_default_url_) {
00748 url_ = new ::std::string;
00749 }
00750 url_->assign(value);
00751 }
00752 inline void unigram_document::set_url(const char* value, size_t size) {
00753 _set_bit(1);
00754 if (url_ == &_default_url_) {
00755 url_ = new ::std::string;
00756 }
00757 url_->assign(reinterpret_cast<const char*>(value), size);
00758 }
00759 inline ::std::string* unigram_document::mutable_url() {
00760 _set_bit(1);
00761 if (url_ == &_default_url_) {
00762 url_ = new ::std::string;
00763 }
00764 return url_;
00765 }
00766
00767
00768 inline int unigram_document::body_size() const {
00769 return body_.size();
00770 }
00771 inline void unigram_document::clear_body() {
00772 body_.Clear();
00773 }
00774 inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
00775 unigram_document::body() const {
00776 return body_;
00777 }
00778 inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
00779 unigram_document::mutable_body() {
00780 return &body_;
00781 }
00782 inline ::google::protobuf::uint32 unigram_document::body(int index) const {
00783 return body_.Get(index);
00784 }
00785 inline void unigram_document::set_body(int index, ::google::protobuf::uint32 value) {
00786 body_.Set(index, value);
00787 }
00788 inline void unigram_document::add_body(::google::protobuf::uint32 value) {
00789 body_.Add(value);
00790 }
00791
00792
00793 inline int unigram_document::topic_assignment_size() const {
00794 return topic_assignment_.size();
00795 }
00796 inline void unigram_document::clear_topic_assignment() {
00797 topic_assignment_.Clear();
00798 }
00799 inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
00800 unigram_document::topic_assignment() const {
00801 return topic_assignment_;
00802 }
00803 inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
00804 unigram_document::mutable_topic_assignment() {
00805 return &topic_assignment_;
00806 }
00807 inline ::google::protobuf::uint32 unigram_document::topic_assignment(int index) const {
00808 return topic_assignment_.Get(index);
00809 }
00810 inline void unigram_document::set_topic_assignment(int index, ::google::protobuf::uint32 value) {
00811 topic_assignment_.Set(index, value);
00812 }
00813 inline void unigram_document::add_topic_assignment(::google::protobuf::uint32 value) {
00814 topic_assignment_.Add(value);
00815 }
00816
00817
00818 inline int unigram_document::topic_counts_size() const {
00819 return topic_counts_.size();
00820 }
00821 inline void unigram_document::clear_topic_counts() {
00822 topic_counts_.Clear();
00823 }
00824 inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
00825 unigram_document::topic_counts() const {
00826 return topic_counts_;
00827 }
00828 inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
00829 unigram_document::mutable_topic_counts() {
00830 return &topic_counts_;
00831 }
00832 inline ::google::protobuf::uint32 unigram_document::topic_counts(int index) const {
00833 return topic_counts_.Get(index);
00834 }
00835 inline void unigram_document::set_topic_counts(int index, ::google::protobuf::uint32 value) {
00836 topic_counts_.Set(index, value);
00837 }
00838 inline void unigram_document::add_topic_counts(::google::protobuf::uint32 value) {
00839 topic_counts_.Add(value);
00840 }
00841
00842
00843 inline int unigram_document::cnt_topics_size() const {
00844 return cnt_topics_.size();
00845 }
00846 inline void unigram_document::clear_cnt_topics() {
00847 cnt_topics_.Clear();
00848 }
00849 inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >&
00850 unigram_document::cnt_topics() const {
00851 return cnt_topics_;
00852 }
00853 inline ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >*
00854 unigram_document::mutable_cnt_topics() {
00855 return &cnt_topics_;
00856 }
00857 inline ::google::protobuf::uint64 unigram_document::cnt_topics(int index) const {
00858 return cnt_topics_.Get(index);
00859 }
00860 inline void unigram_document::set_cnt_topics(int index, ::google::protobuf::uint64 value) {
00861 cnt_topics_.Set(index, value);
00862 }
00863 inline void unigram_document::add_cnt_topics(::google::protobuf::uint64 value) {
00864 cnt_topics_.Add(value);
00865 }
00866
00867
00868 inline int unigram_document::topic_distribution_size() const {
00869 return topic_distribution_.size();
00870 }
00871 inline void unigram_document::clear_topic_distribution() {
00872 topic_distribution_.Clear();
00873 }
00874 inline const ::google::protobuf::RepeatedField< float >&
00875 unigram_document::topic_distribution() const {
00876 return topic_distribution_;
00877 }
00878 inline ::google::protobuf::RepeatedField< float >*
00879 unigram_document::mutable_topic_distribution() {
00880 return &topic_distribution_;
00881 }
00882 inline float unigram_document::topic_distribution(int index) const {
00883 return topic_distribution_.Get(index);
00884 }
00885 inline void unigram_document::set_topic_distribution(int index, float value) {
00886 topic_distribution_.Set(index, value);
00887 }
00888 inline void unigram_document::add_topic_distribution(float value) {
00889 topic_distribution_.Add(value);
00890 }
00891
00892
00893
00894
00895
00896
00897 inline int unigram_counts::counts_size() const {
00898 return counts_.size();
00899 }
00900 inline void unigram_counts::clear_counts() {
00901 counts_.Clear();
00902 }
00903 inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >&
00904 unigram_counts::counts() const {
00905 return counts_;
00906 }
00907 inline ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >*
00908 unigram_counts::mutable_counts() {
00909 return &counts_;
00910 }
00911 inline ::google::protobuf::uint64 unigram_counts::counts(int index) const {
00912 return counts_.Get(index);
00913 }
00914 inline void unigram_counts::set_counts(int index, ::google::protobuf::uint64 value) {
00915 counts_.Set(index, value);
00916 }
00917 inline void unigram_counts::add_counts(::google::protobuf::uint64 value) {
00918 counts_.Add(value);
00919 }
00920
00921
00922 inline int unigram_counts::tokens_per_topic_size() const {
00923 return tokens_per_topic_.size();
00924 }
00925 inline void unigram_counts::clear_tokens_per_topic() {
00926 tokens_per_topic_.Clear();
00927 }
00928 inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
00929 unigram_counts::tokens_per_topic() const {
00930 return tokens_per_topic_;
00931 }
00932 inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
00933 unigram_counts::mutable_tokens_per_topic() {
00934 return &tokens_per_topic_;
00935 }
00936 inline ::google::protobuf::uint32 unigram_counts::tokens_per_topic(int index) const {
00937 return tokens_per_topic_.Get(index);
00938 }
00939 inline void unigram_counts::set_tokens_per_topic(int index, ::google::protobuf::uint32 value) {
00940 tokens_per_topic_.Set(index, value);
00941 }
00942 inline void unigram_counts::add_tokens_per_topic(::google::protobuf::uint32 value) {
00943 tokens_per_topic_.Add(value);
00944 }
00945
00946
00947
00948
00949
00950
00951 inline int word_ind_pair::word_size() const {
00952 return word_.size();
00953 }
00954 inline void word_ind_pair::clear_word() {
00955 word_.Clear();
00956 }
00957 inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
00958 word_ind_pair::word() const {
00959 return word_;
00960 }
00961 inline ::google::protobuf::RepeatedPtrField< ::std::string>*
00962 word_ind_pair::mutable_word() {
00963 return &word_;
00964 }
00965 inline const ::std::string& word_ind_pair::word(int index) const {
00966 return word_.Get(index);
00967 }
00968 inline ::std::string* word_ind_pair::mutable_word(int index) {
00969 return word_.Mutable(index);
00970 }
00971 inline void word_ind_pair::set_word(int index, const ::std::string& value) {
00972 word_.Mutable(index)->assign(value);
00973 }
00974 inline void word_ind_pair::set_word(int index, const char* value) {
00975 word_.Mutable(index)->assign(value);
00976 }
00977 inline void word_ind_pair::set_word(int index, const char* value, size_t size) {
00978 word_.Mutable(index)->assign(
00979 reinterpret_cast<const char*>(value), size);
00980 }
00981 inline ::std::string* word_ind_pair::add_word() {
00982 return word_.Add();
00983 }
00984 inline void word_ind_pair::add_word(const ::std::string& value) {
00985 word_.Add()->assign(value);
00986 }
00987 inline void word_ind_pair::add_word(const char* value) {
00988 word_.Add()->assign(value);
00989 }
00990 inline void word_ind_pair::add_word(const char* value, size_t size) {
00991 word_.Add()->assign(reinterpret_cast<const char*>(value), size);
00992 }
00993
00994
00995 inline int word_ind_pair::index_size() const {
00996 return index_.size();
00997 }
00998 inline void word_ind_pair::clear_index() {
00999 index_.Clear();
01000 }
01001 inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
01002 word_ind_pair::index() const {
01003 return index_;
01004 }
01005 inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
01006 word_ind_pair::mutable_index() {
01007 return &index_;
01008 }
01009 inline ::google::protobuf::uint32 word_ind_pair::index(int index) const {
01010 return index_.Get(index);
01011 }
01012 inline void word_ind_pair::set_index(int index, ::google::protobuf::uint32 value) {
01013 index_.Set(index, value);
01014 }
01015 inline void word_ind_pair::add_index(::google::protobuf::uint32 value) {
01016 index_.Add(value);
01017 }
01018
01019
01020 inline int word_ind_pair::frequency_size() const {
01021 return frequency_.size();
01022 }
01023 inline void word_ind_pair::clear_frequency() {
01024 frequency_.Clear();
01025 }
01026 inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
01027 word_ind_pair::frequency() const {
01028 return frequency_;
01029 }
01030 inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
01031 word_ind_pair::mutable_frequency() {
01032 return &frequency_;
01033 }
01034 inline ::google::protobuf::uint32 word_ind_pair::frequency(int index) const {
01035 return frequency_.Get(index);
01036 }
01037 inline void word_ind_pair::set_frequency(int index, ::google::protobuf::uint32 value) {
01038 frequency_.Set(index, value);
01039 }
01040 inline void word_ind_pair::add_frequency(::google::protobuf::uint32 value) {
01041 frequency_.Add(value);
01042 }
01043
01044
01045
01046
01047
01048
01049 inline bool header::has_version() const {
01050 return _has_bit(0);
01051 }
01052 inline void header::clear_version() {
01053 version_ = 0;
01054 _clear_bit(0);
01055 }
01056 inline double header::version() const {
01057 return version_;
01058 }
01059 inline void header::set_version(double value) {
01060 _set_bit(0);
01061 version_ = value;
01062 }
01063
01064
01065 inline bool header::has_num_words() const {
01066 return _has_bit(1);
01067 }
01068 inline void header::clear_num_words() {
01069 num_words_ = 0u;
01070 _clear_bit(1);
01071 }
01072 inline ::google::protobuf::uint32 header::num_words() const {
01073 return num_words_;
01074 }
01075 inline void header::set_num_words(::google::protobuf::uint32 value) {
01076 _set_bit(1);
01077 num_words_ = value;
01078 }
01079
01080
01081 inline bool header::has_num_topics() const {
01082 return _has_bit(2);
01083 }
01084 inline void header::clear_num_topics() {
01085 num_topics_ = 0u;
01086 _clear_bit(2);
01087 }
01088 inline ::google::protobuf::uint32 header::num_topics() const {
01089 return num_topics_;
01090 }
01091 inline void header::set_num_topics(::google::protobuf::uint32 value) {
01092 _set_bit(2);
01093 num_topics_ = value;
01094 }
01095
01096
01097
01098
01099
01100
01101 inline bool parameters::has_alphasum() const {
01102 return _has_bit(0);
01103 }
01104 inline void parameters::clear_alphasum() {
01105 alphasum_ = 0;
01106 _clear_bit(0);
01107 }
01108 inline double parameters::alphasum() const {
01109 return alphasum_;
01110 }
01111 inline void parameters::set_alphasum(double value) {
01112 _set_bit(0);
01113 alphasum_ = value;
01114 }
01115
01116
01117 inline int parameters::alphas_size() const {
01118 return alphas_.size();
01119 }
01120 inline void parameters::clear_alphas() {
01121 alphas_.Clear();
01122 }
01123 inline const ::google::protobuf::RepeatedField< double >&
01124 parameters::alphas() const {
01125 return alphas_;
01126 }
01127 inline ::google::protobuf::RepeatedField< double >*
01128 parameters::mutable_alphas() {
01129 return &alphas_;
01130 }
01131 inline double parameters::alphas(int index) const {
01132 return alphas_.Get(index);
01133 }
01134 inline void parameters::set_alphas(int index, double value) {
01135 alphas_.Set(index, value);
01136 }
01137 inline void parameters::add_alphas(double value) {
01138 alphas_.Add(value);
01139 }
01140
01141
01142 }
01143
01144 #ifndef SWIG
01145 namespace google {
01146 namespace protobuf {
01147
01148
01149 }
01150 }
01151 #endif // SWIG
01152
01153 #endif // PROTOBUF_document_2eproto__INCLUDED