-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.pb.h
1158 lines (1075 loc) · 34.9 KB
/
config.pb.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: config.proto
#ifndef PROTOBUF_config_2eproto__INCLUDED
#define PROTOBUF_config_2eproto__INCLUDED
#include <string>
#include <google/protobuf/stubs/common.h>
#if GOOGLE_PROTOBUF_VERSION < 2005000
#error This file was generated by a newer version of protoc which is
#error incompatible with your Protocol Buffer headers. Please update
#error your headers.
#endif
#if 2005000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
#error This file was generated by an older version of protoc which is
#error incompatible with your Protocol Buffer headers. Please
#error regenerate this file with a newer version of protoc.
#endif
#include <google/protobuf/generated_message_util.h>
#include <google/protobuf/message.h>
#include <google/protobuf/repeated_field.h>
#include <google/protobuf/extension_set.h>
#include <google/protobuf/unknown_field_set.h>
// @@protoc_insertion_point(includes)
namespace dmlc {
namespace lda {
// Internal implementation detail -- do not call these.
void protobuf_AddDesc_config_2eproto();
void protobuf_AssignDesc_config_2eproto();
void protobuf_ShutdownFile_config_2eproto();
class Config;
// ===================================================================
class Config : public ::google::protobuf::Message {
public:
Config();
virtual ~Config();
Config(const Config& from);
inline Config& operator=(const Config& from) {
CopyFrom(from);
return *this;
}
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
return _unknown_fields_;
}
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
return &_unknown_fields_;
}
static const ::google::protobuf::Descriptor* descriptor();
static const Config& default_instance();
void Swap(Config* other);
// implements Message ----------------------------------------------
Config* New() const;
void CopyFrom(const ::google::protobuf::Message& from);
void MergeFrom(const ::google::protobuf::Message& from);
void CopyFrom(const Config& from);
void MergeFrom(const Config& from);
void Clear();
bool IsInitialized() const;
int ByteSize() const;
bool MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input);
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const;
::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
int GetCachedSize() const { return _cached_size_; }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const;
public:
::google::protobuf::Metadata GetMetadata() const;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// optional string train_data = 1;
inline bool has_train_data() const;
inline void clear_train_data();
static const int kTrainDataFieldNumber = 1;
inline const ::std::string& train_data() const;
inline void set_train_data(const ::std::string& value);
inline void set_train_data(const char* value);
inline void set_train_data(const char* value, size_t size);
inline ::std::string* mutable_train_data();
inline ::std::string* release_train_data();
inline void set_allocated_train_data(::std::string* train_data);
// optional string val_data = 2;
inline bool has_val_data() const;
inline void clear_val_data();
static const int kValDataFieldNumber = 2;
inline const ::std::string& val_data() const;
inline void set_val_data(const ::std::string& value);
inline void set_val_data(const char* value);
inline void set_val_data(const char* value, size_t size);
inline ::std::string* mutable_val_data();
inline ::std::string* release_val_data();
inline void set_allocated_val_data(::std::string* val_data);
// optional string data_format = 4 [default = "libsvm"];
inline bool has_data_format() const;
inline void clear_data_format();
static const int kDataFormatFieldNumber = 4;
inline const ::std::string& data_format() const;
inline void set_data_format(const ::std::string& value);
inline void set_data_format(const char* value);
inline void set_data_format(const char* value, size_t size);
inline ::std::string* mutable_data_format();
inline ::std::string* release_data_format();
inline void set_allocated_data_format(::std::string* data_format);
// optional string model_out = 5;
inline bool has_model_out() const;
inline void clear_model_out();
static const int kModelOutFieldNumber = 5;
inline const ::std::string& model_out() const;
inline void set_model_out(const ::std::string& value);
inline void set_model_out(const char* value);
inline void set_model_out(const char* value, size_t size);
inline ::std::string* mutable_model_out();
inline ::std::string* release_model_out();
inline void set_allocated_model_out(::std::string* model_out);
// optional string model_in = 7;
inline bool has_model_in() const;
inline void clear_model_in();
static const int kModelInFieldNumber = 7;
inline const ::std::string& model_in() const;
inline void set_model_in(const ::std::string& value);
inline void set_model_in(const char* value);
inline void set_model_in(const char* value, size_t size);
inline ::std::string* mutable_model_in();
inline ::std::string* release_model_in();
inline void set_allocated_model_in(::std::string* model_in);
// optional float alpha = 9;
inline bool has_alpha() const;
inline void clear_alpha();
static const int kAlphaFieldNumber = 9;
inline float alpha() const;
inline void set_alpha(float value);
// optional float beta = 10;
inline bool has_beta() const;
inline void clear_beta();
static const int kBetaFieldNumber = 10;
inline float beta() const;
inline void set_beta(float value);
// optional int32 topic_num = 11;
inline bool has_topic_num() const;
inline void clear_topic_num();
static const int kTopicNumFieldNumber = 11;
inline ::google::protobuf::int32 topic_num() const;
inline void set_topic_num(::google::protobuf::int32 value);
// optional int32 words_num = 12;
inline bool has_words_num() const;
inline void clear_words_num();
static const int kWordsNumFieldNumber = 12;
inline ::google::protobuf::int32 words_num() const;
inline void set_words_num(::google::protobuf::int32 value);
// optional string predict_out = 13;
inline bool has_predict_out() const;
inline void clear_predict_out();
static const int kPredictOutFieldNumber = 13;
inline const ::std::string& predict_out() const;
inline void set_predict_out(const ::std::string& value);
inline void set_predict_out(const char* value);
inline void set_predict_out(const char* value, size_t size);
inline ::std::string* mutable_predict_out();
inline ::std::string* release_predict_out();
inline void set_allocated_predict_out(::std::string* predict_out);
// optional int32 minibatch = 22 [default = 1000];
inline bool has_minibatch() const;
inline void clear_minibatch();
static const int kMinibatchFieldNumber = 22;
inline ::google::protobuf::int32 minibatch() const;
inline void set_minibatch(::google::protobuf::int32 value);
// optional int32 max_data_pass = 23 [default = 10];
inline bool has_max_data_pass() const;
inline void clear_max_data_pass();
static const int kMaxDataPassFieldNumber = 23;
inline ::google::protobuf::int32 max_data_pass() const;
inline void set_max_data_pass(::google::protobuf::int32 value);
// optional int32 save_iter = 6 [default = -1];
inline bool has_save_iter() const;
inline void clear_save_iter();
static const int kSaveIterFieldNumber = 6;
inline ::google::protobuf::int32 save_iter() const;
inline void set_save_iter(::google::protobuf::int32 value);
// optional int32 load_iter = 8 [default = -1];
inline bool has_load_iter() const;
inline void clear_load_iter();
static const int kLoadIterFieldNumber = 8;
inline ::google::protobuf::int32 load_iter() const;
inline void set_load_iter(::google::protobuf::int32 value);
// optional bool local_data = 101 [default = false];
inline bool has_local_data() const;
inline void clear_local_data();
static const int kLocalDataFieldNumber = 101;
inline bool local_data() const;
inline void set_local_data(bool value);
// optional int32 num_parts_per_file = 102 [default = 2];
inline bool has_num_parts_per_file() const;
inline void clear_num_parts_per_file();
static const int kNumPartsPerFileFieldNumber = 102;
inline ::google::protobuf::int32 num_parts_per_file() const;
inline void set_num_parts_per_file(::google::protobuf::int32 value);
// optional float print_sec = 111 [default = 1];
inline bool has_print_sec() const;
inline void clear_print_sec();
static const int kPrintSecFieldNumber = 111;
inline float print_sec() const;
inline void set_print_sec(float value);
// optional int32 num_threads = 121 [default = 2];
inline bool has_num_threads() const;
inline void clear_num_threads();
static const int kNumThreadsFieldNumber = 121;
inline ::google::protobuf::int32 num_threads() const;
inline void set_num_threads(::google::protobuf::int32 value);
// optional int32 max_concurrency = 122 [default = 2];
inline bool has_max_concurrency() const;
inline void clear_max_concurrency();
static const int kMaxConcurrencyFieldNumber = 122;
inline ::google::protobuf::int32 max_concurrency() const;
inline void set_max_concurrency(::google::protobuf::int32 value);
// optional bool key_cache = 123 [default = true];
inline bool has_key_cache() const;
inline void clear_key_cache();
static const int kKeyCacheFieldNumber = 123;
inline bool key_cache() const;
inline void set_key_cache(bool value);
// optional bool msg_compression = 124 [default = true];
inline bool has_msg_compression() const;
inline void clear_msg_compression();
static const int kMsgCompressionFieldNumber = 124;
inline bool msg_compression() const;
inline void set_msg_compression(bool value);
// optional int32 fixed_bytes = 125 [default = 0];
inline bool has_fixed_bytes() const;
inline void clear_fixed_bytes();
static const int kFixedBytesFieldNumber = 125;
inline ::google::protobuf::int32 fixed_bytes() const;
inline void set_fixed_bytes(::google::protobuf::int32 value);
// @@protoc_insertion_point(class_scope:dmlc.lda.Config)
private:
inline void set_has_train_data();
inline void clear_has_train_data();
inline void set_has_val_data();
inline void clear_has_val_data();
inline void set_has_data_format();
inline void clear_has_data_format();
inline void set_has_model_out();
inline void clear_has_model_out();
inline void set_has_model_in();
inline void clear_has_model_in();
inline void set_has_alpha();
inline void clear_has_alpha();
inline void set_has_beta();
inline void clear_has_beta();
inline void set_has_topic_num();
inline void clear_has_topic_num();
inline void set_has_words_num();
inline void clear_has_words_num();
inline void set_has_predict_out();
inline void clear_has_predict_out();
inline void set_has_minibatch();
inline void clear_has_minibatch();
inline void set_has_max_data_pass();
inline void clear_has_max_data_pass();
inline void set_has_save_iter();
inline void clear_has_save_iter();
inline void set_has_load_iter();
inline void clear_has_load_iter();
inline void set_has_local_data();
inline void clear_has_local_data();
inline void set_has_num_parts_per_file();
inline void clear_has_num_parts_per_file();
inline void set_has_print_sec();
inline void clear_has_print_sec();
inline void set_has_num_threads();
inline void clear_has_num_threads();
inline void set_has_max_concurrency();
inline void clear_has_max_concurrency();
inline void set_has_key_cache();
inline void clear_has_key_cache();
inline void set_has_msg_compression();
inline void clear_has_msg_compression();
inline void set_has_fixed_bytes();
inline void clear_has_fixed_bytes();
::google::protobuf::UnknownFieldSet _unknown_fields_;
::std::string* train_data_;
::std::string* val_data_;
::std::string* data_format_;
static ::std::string* _default_data_format_;
::std::string* model_out_;
::std::string* model_in_;
float alpha_;
float beta_;
::google::protobuf::int32 topic_num_;
::google::protobuf::int32 words_num_;
::std::string* predict_out_;
::google::protobuf::int32 minibatch_;
::google::protobuf::int32 max_data_pass_;
::google::protobuf::int32 save_iter_;
::google::protobuf::int32 load_iter_;
::google::protobuf::int32 num_parts_per_file_;
float print_sec_;
::google::protobuf::int32 num_threads_;
bool local_data_;
bool key_cache_;
bool msg_compression_;
::google::protobuf::int32 max_concurrency_;
::google::protobuf::int32 fixed_bytes_;
mutable int _cached_size_;
::google::protobuf::uint32 _has_bits_[(22 + 31) / 32];
friend void protobuf_AddDesc_config_2eproto();
friend void protobuf_AssignDesc_config_2eproto();
friend void protobuf_ShutdownFile_config_2eproto();
void InitAsDefaultInstance();
static Config* default_instance_;
};
// ===================================================================
// ===================================================================
// Config
// optional string train_data = 1;
inline bool Config::has_train_data() const {
return (_has_bits_[0] & 0x00000001u) != 0;
}
inline void Config::set_has_train_data() {
_has_bits_[0] |= 0x00000001u;
}
inline void Config::clear_has_train_data() {
_has_bits_[0] &= ~0x00000001u;
}
inline void Config::clear_train_data() {
if (train_data_ != &::google::protobuf::internal::kEmptyString) {
train_data_->clear();
}
clear_has_train_data();
}
inline const ::std::string& Config::train_data() const {
return *train_data_;
}
inline void Config::set_train_data(const ::std::string& value) {
set_has_train_data();
if (train_data_ == &::google::protobuf::internal::kEmptyString) {
train_data_ = new ::std::string;
}
train_data_->assign(value);
}
inline void Config::set_train_data(const char* value) {
set_has_train_data();
if (train_data_ == &::google::protobuf::internal::kEmptyString) {
train_data_ = new ::std::string;
}
train_data_->assign(value);
}
inline void Config::set_train_data(const char* value, size_t size) {
set_has_train_data();
if (train_data_ == &::google::protobuf::internal::kEmptyString) {
train_data_ = new ::std::string;
}
train_data_->assign(reinterpret_cast<const char*>(value), size);
}
inline ::std::string* Config::mutable_train_data() {
set_has_train_data();
if (train_data_ == &::google::protobuf::internal::kEmptyString) {
train_data_ = new ::std::string;
}
return train_data_;
}
inline ::std::string* Config::release_train_data() {
clear_has_train_data();
if (train_data_ == &::google::protobuf::internal::kEmptyString) {
return NULL;
} else {
::std::string* temp = train_data_;
train_data_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
return temp;
}
}
inline void Config::set_allocated_train_data(::std::string* train_data) {
if (train_data_ != &::google::protobuf::internal::kEmptyString) {
delete train_data_;
}
if (train_data) {
set_has_train_data();
train_data_ = train_data;
} else {
clear_has_train_data();
train_data_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
}
}
// optional string val_data = 2;
inline bool Config::has_val_data() const {
return (_has_bits_[0] & 0x00000002u) != 0;
}
inline void Config::set_has_val_data() {
_has_bits_[0] |= 0x00000002u;
}
inline void Config::clear_has_val_data() {
_has_bits_[0] &= ~0x00000002u;
}
inline void Config::clear_val_data() {
if (val_data_ != &::google::protobuf::internal::kEmptyString) {
val_data_->clear();
}
clear_has_val_data();
}
inline const ::std::string& Config::val_data() const {
return *val_data_;
}
inline void Config::set_val_data(const ::std::string& value) {
set_has_val_data();
if (val_data_ == &::google::protobuf::internal::kEmptyString) {
val_data_ = new ::std::string;
}
val_data_->assign(value);
}
inline void Config::set_val_data(const char* value) {
set_has_val_data();
if (val_data_ == &::google::protobuf::internal::kEmptyString) {
val_data_ = new ::std::string;
}
val_data_->assign(value);
}
inline void Config::set_val_data(const char* value, size_t size) {
set_has_val_data();
if (val_data_ == &::google::protobuf::internal::kEmptyString) {
val_data_ = new ::std::string;
}
val_data_->assign(reinterpret_cast<const char*>(value), size);
}
inline ::std::string* Config::mutable_val_data() {
set_has_val_data();
if (val_data_ == &::google::protobuf::internal::kEmptyString) {
val_data_ = new ::std::string;
}
return val_data_;
}
inline ::std::string* Config::release_val_data() {
clear_has_val_data();
if (val_data_ == &::google::protobuf::internal::kEmptyString) {
return NULL;
} else {
::std::string* temp = val_data_;
val_data_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
return temp;
}
}
inline void Config::set_allocated_val_data(::std::string* val_data) {
if (val_data_ != &::google::protobuf::internal::kEmptyString) {
delete val_data_;
}
if (val_data) {
set_has_val_data();
val_data_ = val_data;
} else {
clear_has_val_data();
val_data_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
}
}
// optional string data_format = 4 [default = "libsvm"];
inline bool Config::has_data_format() const {
return (_has_bits_[0] & 0x00000004u) != 0;
}
inline void Config::set_has_data_format() {
_has_bits_[0] |= 0x00000004u;
}
inline void Config::clear_has_data_format() {
_has_bits_[0] &= ~0x00000004u;
}
inline void Config::clear_data_format() {
if (data_format_ != _default_data_format_) {
data_format_->assign(*_default_data_format_);
}
clear_has_data_format();
}
inline const ::std::string& Config::data_format() const {
return *data_format_;
}
inline void Config::set_data_format(const ::std::string& value) {
set_has_data_format();
if (data_format_ == _default_data_format_) {
data_format_ = new ::std::string;
}
data_format_->assign(value);
}
inline void Config::set_data_format(const char* value) {
set_has_data_format();
if (data_format_ == _default_data_format_) {
data_format_ = new ::std::string;
}
data_format_->assign(value);
}
inline void Config::set_data_format(const char* value, size_t size) {
set_has_data_format();
if (data_format_ == _default_data_format_) {
data_format_ = new ::std::string;
}
data_format_->assign(reinterpret_cast<const char*>(value), size);
}
inline ::std::string* Config::mutable_data_format() {
set_has_data_format();
if (data_format_ == _default_data_format_) {
data_format_ = new ::std::string(*_default_data_format_);
}
return data_format_;
}
inline ::std::string* Config::release_data_format() {
clear_has_data_format();
if (data_format_ == _default_data_format_) {
return NULL;
} else {
::std::string* temp = data_format_;
data_format_ = const_cast< ::std::string*>(_default_data_format_);
return temp;
}
}
inline void Config::set_allocated_data_format(::std::string* data_format) {
if (data_format_ != _default_data_format_) {
delete data_format_;
}
if (data_format) {
set_has_data_format();
data_format_ = data_format;
} else {
clear_has_data_format();
data_format_ = const_cast< ::std::string*>(_default_data_format_);
}
}
// optional string model_out = 5;
inline bool Config::has_model_out() const {
return (_has_bits_[0] & 0x00000008u) != 0;
}
inline void Config::set_has_model_out() {
_has_bits_[0] |= 0x00000008u;
}
inline void Config::clear_has_model_out() {
_has_bits_[0] &= ~0x00000008u;
}
inline void Config::clear_model_out() {
if (model_out_ != &::google::protobuf::internal::kEmptyString) {
model_out_->clear();
}
clear_has_model_out();
}
inline const ::std::string& Config::model_out() const {
return *model_out_;
}
inline void Config::set_model_out(const ::std::string& value) {
set_has_model_out();
if (model_out_ == &::google::protobuf::internal::kEmptyString) {
model_out_ = new ::std::string;
}
model_out_->assign(value);
}
inline void Config::set_model_out(const char* value) {
set_has_model_out();
if (model_out_ == &::google::protobuf::internal::kEmptyString) {
model_out_ = new ::std::string;
}
model_out_->assign(value);
}
inline void Config::set_model_out(const char* value, size_t size) {
set_has_model_out();
if (model_out_ == &::google::protobuf::internal::kEmptyString) {
model_out_ = new ::std::string;
}
model_out_->assign(reinterpret_cast<const char*>(value), size);
}
inline ::std::string* Config::mutable_model_out() {
set_has_model_out();
if (model_out_ == &::google::protobuf::internal::kEmptyString) {
model_out_ = new ::std::string;
}
return model_out_;
}
inline ::std::string* Config::release_model_out() {
clear_has_model_out();
if (model_out_ == &::google::protobuf::internal::kEmptyString) {
return NULL;
} else {
::std::string* temp = model_out_;
model_out_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
return temp;
}
}
inline void Config::set_allocated_model_out(::std::string* model_out) {
if (model_out_ != &::google::protobuf::internal::kEmptyString) {
delete model_out_;
}
if (model_out) {
set_has_model_out();
model_out_ = model_out;
} else {
clear_has_model_out();
model_out_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
}
}
// optional string model_in = 7;
inline bool Config::has_model_in() const {
return (_has_bits_[0] & 0x00000010u) != 0;
}
inline void Config::set_has_model_in() {
_has_bits_[0] |= 0x00000010u;
}
inline void Config::clear_has_model_in() {
_has_bits_[0] &= ~0x00000010u;
}
inline void Config::clear_model_in() {
if (model_in_ != &::google::protobuf::internal::kEmptyString) {
model_in_->clear();
}
clear_has_model_in();
}
inline const ::std::string& Config::model_in() const {
return *model_in_;
}
inline void Config::set_model_in(const ::std::string& value) {
set_has_model_in();
if (model_in_ == &::google::protobuf::internal::kEmptyString) {
model_in_ = new ::std::string;
}
model_in_->assign(value);
}
inline void Config::set_model_in(const char* value) {
set_has_model_in();
if (model_in_ == &::google::protobuf::internal::kEmptyString) {
model_in_ = new ::std::string;
}
model_in_->assign(value);
}
inline void Config::set_model_in(const char* value, size_t size) {
set_has_model_in();
if (model_in_ == &::google::protobuf::internal::kEmptyString) {
model_in_ = new ::std::string;
}
model_in_->assign(reinterpret_cast<const char*>(value), size);
}
inline ::std::string* Config::mutable_model_in() {
set_has_model_in();
if (model_in_ == &::google::protobuf::internal::kEmptyString) {
model_in_ = new ::std::string;
}
return model_in_;
}
inline ::std::string* Config::release_model_in() {
clear_has_model_in();
if (model_in_ == &::google::protobuf::internal::kEmptyString) {
return NULL;
} else {
::std::string* temp = model_in_;
model_in_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
return temp;
}
}
inline void Config::set_allocated_model_in(::std::string* model_in) {
if (model_in_ != &::google::protobuf::internal::kEmptyString) {
delete model_in_;
}
if (model_in) {
set_has_model_in();
model_in_ = model_in;
} else {
clear_has_model_in();
model_in_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
}
}
// optional float alpha = 9;
inline bool Config::has_alpha() const {
return (_has_bits_[0] & 0x00000020u) != 0;
}
inline void Config::set_has_alpha() {
_has_bits_[0] |= 0x00000020u;
}
inline void Config::clear_has_alpha() {
_has_bits_[0] &= ~0x00000020u;
}
inline void Config::clear_alpha() {
alpha_ = 0;
clear_has_alpha();
}
inline float Config::alpha() const {
return alpha_;
}
inline void Config::set_alpha(float value) {
set_has_alpha();
alpha_ = value;
}
// optional float beta = 10;
inline bool Config::has_beta() const {
return (_has_bits_[0] & 0x00000040u) != 0;
}
inline void Config::set_has_beta() {
_has_bits_[0] |= 0x00000040u;
}
inline void Config::clear_has_beta() {
_has_bits_[0] &= ~0x00000040u;
}
inline void Config::clear_beta() {
beta_ = 0;
clear_has_beta();
}
inline float Config::beta() const {
return beta_;
}
inline void Config::set_beta(float value) {
set_has_beta();
beta_ = value;
}
// optional int32 topic_num = 11;
inline bool Config::has_topic_num() const {
return (_has_bits_[0] & 0x00000080u) != 0;
}
inline void Config::set_has_topic_num() {
_has_bits_[0] |= 0x00000080u;
}
inline void Config::clear_has_topic_num() {
_has_bits_[0] &= ~0x00000080u;
}
inline void Config::clear_topic_num() {
topic_num_ = 0;
clear_has_topic_num();
}
inline ::google::protobuf::int32 Config::topic_num() const {
return topic_num_;
}
inline void Config::set_topic_num(::google::protobuf::int32 value) {
set_has_topic_num();
topic_num_ = value;
}
// optional int32 words_num = 12;
inline bool Config::has_words_num() const {
return (_has_bits_[0] & 0x00000100u) != 0;
}
inline void Config::set_has_words_num() {
_has_bits_[0] |= 0x00000100u;
}
inline void Config::clear_has_words_num() {
_has_bits_[0] &= ~0x00000100u;
}
inline void Config::clear_words_num() {
words_num_ = 0;
clear_has_words_num();
}
inline ::google::protobuf::int32 Config::words_num() const {
return words_num_;
}
inline void Config::set_words_num(::google::protobuf::int32 value) {
set_has_words_num();
words_num_ = value;
}
// optional string predict_out = 13;
inline bool Config::has_predict_out() const {
return (_has_bits_[0] & 0x00000200u) != 0;
}
inline void Config::set_has_predict_out() {
_has_bits_[0] |= 0x00000200u;
}
inline void Config::clear_has_predict_out() {
_has_bits_[0] &= ~0x00000200u;
}
inline void Config::clear_predict_out() {
if (predict_out_ != &::google::protobuf::internal::kEmptyString) {
predict_out_->clear();
}
clear_has_predict_out();
}
inline const ::std::string& Config::predict_out() const {
return *predict_out_;
}
inline void Config::set_predict_out(const ::std::string& value) {
set_has_predict_out();
if (predict_out_ == &::google::protobuf::internal::kEmptyString) {
predict_out_ = new ::std::string;
}
predict_out_->assign(value);
}
inline void Config::set_predict_out(const char* value) {
set_has_predict_out();
if (predict_out_ == &::google::protobuf::internal::kEmptyString) {
predict_out_ = new ::std::string;
}
predict_out_->assign(value);
}
inline void Config::set_predict_out(const char* value, size_t size) {
set_has_predict_out();
if (predict_out_ == &::google::protobuf::internal::kEmptyString) {
predict_out_ = new ::std::string;
}
predict_out_->assign(reinterpret_cast<const char*>(value), size);
}
inline ::std::string* Config::mutable_predict_out() {
set_has_predict_out();
if (predict_out_ == &::google::protobuf::internal::kEmptyString) {
predict_out_ = new ::std::string;
}
return predict_out_;
}
inline ::std::string* Config::release_predict_out() {
clear_has_predict_out();
if (predict_out_ == &::google::protobuf::internal::kEmptyString) {
return NULL;
} else {
::std::string* temp = predict_out_;
predict_out_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
return temp;
}
}
inline void Config::set_allocated_predict_out(::std::string* predict_out) {
if (predict_out_ != &::google::protobuf::internal::kEmptyString) {
delete predict_out_;
}
if (predict_out) {
set_has_predict_out();
predict_out_ = predict_out;
} else {
clear_has_predict_out();
predict_out_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
}
}
// optional int32 minibatch = 22 [default = 1000];
inline bool Config::has_minibatch() const {
return (_has_bits_[0] & 0x00000400u) != 0;
}
inline void Config::set_has_minibatch() {
_has_bits_[0] |= 0x00000400u;
}
inline void Config::clear_has_minibatch() {
_has_bits_[0] &= ~0x00000400u;
}
inline void Config::clear_minibatch() {
minibatch_ = 1000;
clear_has_minibatch();
}
inline ::google::protobuf::int32 Config::minibatch() const {
return minibatch_;
}
inline void Config::set_minibatch(::google::protobuf::int32 value) {
set_has_minibatch();
minibatch_ = value;
}
// optional int32 max_data_pass = 23 [default = 10];
inline bool Config::has_max_data_pass() const {
return (_has_bits_[0] & 0x00000800u) != 0;
}
inline void Config::set_has_max_data_pass() {
_has_bits_[0] |= 0x00000800u;
}
inline void Config::clear_has_max_data_pass() {
_has_bits_[0] &= ~0x00000800u;
}
inline void Config::clear_max_data_pass() {
max_data_pass_ = 10;
clear_has_max_data_pass();
}
inline ::google::protobuf::int32 Config::max_data_pass() const {
return max_data_pass_;
}
inline void Config::set_max_data_pass(::google::protobuf::int32 value) {
set_has_max_data_pass();
max_data_pass_ = value;
}
// optional int32 save_iter = 6 [default = -1];
inline bool Config::has_save_iter() const {
return (_has_bits_[0] & 0x00001000u) != 0;
}
inline void Config::set_has_save_iter() {
_has_bits_[0] |= 0x00001000u;
}
inline void Config::clear_has_save_iter() {
_has_bits_[0] &= ~0x00001000u;
}
inline void Config::clear_save_iter() {
save_iter_ = -1;
clear_has_save_iter();
}
inline ::google::protobuf::int32 Config::save_iter() const {
return save_iter_;
}
inline void Config::set_save_iter(::google::protobuf::int32 value) {
set_has_save_iter();
save_iter_ = value;
}
// optional int32 load_iter = 8 [default = -1];
inline bool Config::has_load_iter() const {
return (_has_bits_[0] & 0x00002000u) != 0;
}
inline void Config::set_has_load_iter() {
_has_bits_[0] |= 0x00002000u;
}
inline void Config::clear_has_load_iter() {
_has_bits_[0] &= ~0x00002000u;
}
inline void Config::clear_load_iter() {
load_iter_ = -1;
clear_has_load_iter();
}
inline ::google::protobuf::int32 Config::load_iter() const {
return load_iter_;
}
inline void Config::set_load_iter(::google::protobuf::int32 value) {
set_has_load_iter();
load_iter_ = value;
}
// optional bool local_data = 101 [default = false];
inline bool Config::has_local_data() const {
return (_has_bits_[0] & 0x00004000u) != 0;
}
inline void Config::set_has_local_data() {
_has_bits_[0] |= 0x00004000u;
}
inline void Config::clear_has_local_data() {
_has_bits_[0] &= ~0x00004000u;
}
inline void Config::clear_local_data() {
local_data_ = false;
clear_has_local_data();
}
inline bool Config::local_data() const {
return local_data_;
}
inline void Config::set_local_data(bool value) {
set_has_local_data();
local_data_ = value;
}
// optional int32 num_parts_per_file = 102 [default = 2];
inline bool Config::has_num_parts_per_file() const {
return (_has_bits_[0] & 0x00008000u) != 0;
}
inline void Config::set_has_num_parts_per_file() {
_has_bits_[0] |= 0x00008000u;
}
inline void Config::clear_has_num_parts_per_file() {
_has_bits_[0] &= ~0x00008000u;
}
inline void Config::clear_num_parts_per_file() {
num_parts_per_file_ = 2;
clear_has_num_parts_per_file();
}