SHOGUN  v3.2.0
Headers.pb.h
浏览该文件的文档.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: Headers.proto
3 
4 #ifndef PROTOBUF_Headers_2eproto__INCLUDED
5 #define PROTOBUF_Headers_2eproto__INCLUDED
6 
7 #include <string>
8 
9 #include <google/protobuf/stubs/common.h>
10 
11 #if GOOGLE_PROTOBUF_VERSION < 3000000
12 #error This file was generated by a newer version of protoc which is
13 #error incompatible with your Protocol Buffer headers. Please update
14 #error your headers.
15 #endif
16 #if 3000000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
17 #error This file was generated by an older version of protoc which is
18 #error incompatible with your Protocol Buffer headers. Please
19 #error regenerate this file with a newer version of protoc.
20 #endif
21 
22 #include <google/protobuf/arena.h>
23 #include <google/protobuf/arenastring.h>
24 #include <google/protobuf/generated_message_util.h>
25 #include <google/protobuf/metadata.h>
26 #include <google/protobuf/message.h>
27 #include <google/protobuf/repeated_field.h>
28 #include <google/protobuf/extension_set.h>
29 #include <google/protobuf/unknown_field_set.h>
30 // @@protoc_insertion_point(includes)
31 
32 namespace shogun {
33 
34 // Internal implementation detail -- do not call these.
38 
39 class MatrixHeader;
40 class SparseMatrixHeader;
41 class StringListHeader;
42 class VectorHeader;
43 
44 // ===================================================================
45 
46 class VectorHeader : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:shogun.VectorHeader) */ {
47  public:
48  VectorHeader();
49  virtual ~VectorHeader();
50 
51  VectorHeader(const VectorHeader& from);
52 
53  inline VectorHeader& operator=(const VectorHeader& from) {
54  CopyFrom(from);
55  return *this;
56  }
57 
58  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
59  return _internal_metadata_.unknown_fields();
60  }
61 
62  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
63  return _internal_metadata_.mutable_unknown_fields();
64  }
65 
66  static const ::google::protobuf::Descriptor* descriptor();
67  static const VectorHeader& default_instance();
68 
69  void Swap(VectorHeader* other);
70 
71  // implements Message ----------------------------------------------
72 
73  inline VectorHeader* New() const { return New(NULL); }
74 
75  VectorHeader* New(::google::protobuf::Arena* arena) const;
76  void CopyFrom(const ::google::protobuf::Message& from);
77  void MergeFrom(const ::google::protobuf::Message& from);
78  void CopyFrom(const VectorHeader& from);
79  void MergeFrom(const VectorHeader& from);
80  void Clear();
81  bool IsInitialized() const;
82 
83  int ByteSize() const;
85  ::google::protobuf::io::CodedInputStream* input);
87  ::google::protobuf::io::CodedOutputStream* output) const;
88  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
89  bool deterministic, ::google::protobuf::uint8* output) const;
90  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const {
91  return InternalSerializeWithCachedSizesToArray(false, output);
92  }
93  int GetCachedSize() const { return _cached_size_; }
94  private:
95  void SharedCtor();
96  void SharedDtor();
97  void SetCachedSize(int size) const;
98  void InternalSwap(VectorHeader* other);
99  private:
100  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
101  return _internal_metadata_.arena();
102  }
103  inline void* MaybeArenaPtr() const {
104  return _internal_metadata_.raw_arena_ptr();
105  }
106  public:
107 
108  ::google::protobuf::Metadata GetMetadata() const;
109 
110  // nested types ----------------------------------------------------
111 
112  // accessors -------------------------------------------------------
113 
114  // required uint64 len = 1;
115  bool has_len() const;
116  void clear_len();
117  static const int kLenFieldNumber = 1;
118  ::google::protobuf::uint64 len() const;
119  void set_len(::google::protobuf::uint64 value);
120 
121  // required uint32 num_messages = 2;
122  bool has_num_messages() const;
123  void clear_num_messages();
124  static const int kNumMessagesFieldNumber = 2;
125  ::google::protobuf::uint32 num_messages() const;
126  void set_num_messages(::google::protobuf::uint32 value);
127 
128  // @@protoc_insertion_point(class_scope:shogun.VectorHeader)
129  private:
130  inline void set_has_len();
131  inline void clear_has_len();
132  inline void set_has_num_messages();
133  inline void clear_has_num_messages();
134 
135  // helper for ByteSize()
136  int RequiredFieldsByteSizeFallback() const;
137 
138  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
139  ::google::protobuf::uint32 _has_bits_[1];
140  mutable int _cached_size_;
141  ::google::protobuf::uint64 len_;
142  ::google::protobuf::uint32 num_messages_;
143  friend void protobuf_AddDesc_Headers_2eproto();
146 
147  void InitAsDefaultInstance();
148  static VectorHeader* default_instance_;
149 };
150 // -------------------------------------------------------------------
151 
152 class MatrixHeader : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:shogun.MatrixHeader) */ {
153  public:
154  MatrixHeader();
155  virtual ~MatrixHeader();
156 
157  MatrixHeader(const MatrixHeader& from);
158 
159  inline MatrixHeader& operator=(const MatrixHeader& from) {
160  CopyFrom(from);
161  return *this;
162  }
163 
164  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
165  return _internal_metadata_.unknown_fields();
166  }
167 
168  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
169  return _internal_metadata_.mutable_unknown_fields();
170  }
171 
172  static const ::google::protobuf::Descriptor* descriptor();
173  static const MatrixHeader& default_instance();
174 
175  void Swap(MatrixHeader* other);
176 
177  // implements Message ----------------------------------------------
178 
179  inline MatrixHeader* New() const { return New(NULL); }
180 
181  MatrixHeader* New(::google::protobuf::Arena* arena) const;
182  void CopyFrom(const ::google::protobuf::Message& from);
183  void MergeFrom(const ::google::protobuf::Message& from);
184  void CopyFrom(const MatrixHeader& from);
185  void MergeFrom(const MatrixHeader& from);
186  void Clear();
187  bool IsInitialized() const;
188 
189  int ByteSize() const;
191  ::google::protobuf::io::CodedInputStream* input);
193  ::google::protobuf::io::CodedOutputStream* output) const;
194  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
195  bool deterministic, ::google::protobuf::uint8* output) const;
196  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const {
197  return InternalSerializeWithCachedSizesToArray(false, output);
198  }
199  int GetCachedSize() const { return _cached_size_; }
200  private:
201  void SharedCtor();
202  void SharedDtor();
203  void SetCachedSize(int size) const;
204  void InternalSwap(MatrixHeader* other);
205  private:
206  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
207  return _internal_metadata_.arena();
208  }
209  inline void* MaybeArenaPtr() const {
210  return _internal_metadata_.raw_arena_ptr();
211  }
212  public:
213 
214  ::google::protobuf::Metadata GetMetadata() const;
215 
216  // nested types ----------------------------------------------------
217 
218  // accessors -------------------------------------------------------
219 
220  // required uint64 num_cols = 1;
221  bool has_num_cols() const;
222  void clear_num_cols();
223  static const int kNumColsFieldNumber = 1;
224  ::google::protobuf::uint64 num_cols() const;
225  void set_num_cols(::google::protobuf::uint64 value);
226 
227  // required uint64 num_rows = 2;
228  bool has_num_rows() const;
229  void clear_num_rows();
230  static const int kNumRowsFieldNumber = 2;
231  ::google::protobuf::uint64 num_rows() const;
232  void set_num_rows(::google::protobuf::uint64 value);
233 
234  // required uint32 num_messages = 3;
235  bool has_num_messages() const;
236  void clear_num_messages();
237  static const int kNumMessagesFieldNumber = 3;
238  ::google::protobuf::uint32 num_messages() const;
239  void set_num_messages(::google::protobuf::uint32 value);
240 
241  // @@protoc_insertion_point(class_scope:shogun.MatrixHeader)
242  private:
243  inline void set_has_num_cols();
244  inline void clear_has_num_cols();
245  inline void set_has_num_rows();
246  inline void clear_has_num_rows();
247  inline void set_has_num_messages();
248  inline void clear_has_num_messages();
249 
250  // helper for ByteSize()
251  int RequiredFieldsByteSizeFallback() const;
252 
253  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
254  ::google::protobuf::uint32 _has_bits_[1];
255  mutable int _cached_size_;
256  ::google::protobuf::uint64 num_cols_;
257  ::google::protobuf::uint64 num_rows_;
258  ::google::protobuf::uint32 num_messages_;
259  friend void protobuf_AddDesc_Headers_2eproto();
262 
263  void InitAsDefaultInstance();
264  static MatrixHeader* default_instance_;
265 };
266 // -------------------------------------------------------------------
267 
268 class SparseMatrixHeader : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:shogun.SparseMatrixHeader) */ {
269  public:
271  virtual ~SparseMatrixHeader();
272 
274 
276  CopyFrom(from);
277  return *this;
278  }
279 
280  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
281  return _internal_metadata_.unknown_fields();
282  }
283 
284  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
285  return _internal_metadata_.mutable_unknown_fields();
286  }
287 
288  static const ::google::protobuf::Descriptor* descriptor();
289  static const SparseMatrixHeader& default_instance();
290 
291  void Swap(SparseMatrixHeader* other);
292 
293  // implements Message ----------------------------------------------
294 
295  inline SparseMatrixHeader* New() const { return New(NULL); }
296 
297  SparseMatrixHeader* New(::google::protobuf::Arena* arena) const;
298  void CopyFrom(const ::google::protobuf::Message& from);
299  void MergeFrom(const ::google::protobuf::Message& from);
300  void CopyFrom(const SparseMatrixHeader& from);
301  void MergeFrom(const SparseMatrixHeader& from);
302  void Clear();
303  bool IsInitialized() const;
304 
305  int ByteSize() const;
307  ::google::protobuf::io::CodedInputStream* input);
309  ::google::protobuf::io::CodedOutputStream* output) const;
310  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
311  bool deterministic, ::google::protobuf::uint8* output) const;
312  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const {
313  return InternalSerializeWithCachedSizesToArray(false, output);
314  }
315  int GetCachedSize() const { return _cached_size_; }
316  private:
317  void SharedCtor();
318  void SharedDtor();
319  void SetCachedSize(int size) const;
320  void InternalSwap(SparseMatrixHeader* other);
321  private:
322  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
323  return _internal_metadata_.arena();
324  }
325  inline void* MaybeArenaPtr() const {
326  return _internal_metadata_.raw_arena_ptr();
327  }
328  public:
329 
330  ::google::protobuf::Metadata GetMetadata() const;
331 
332  // nested types ----------------------------------------------------
333 
334  // accessors -------------------------------------------------------
335 
336  // required uint64 num_vectors = 1;
337  bool has_num_vectors() const;
338  void clear_num_vectors();
339  static const int kNumVectorsFieldNumber = 1;
340  ::google::protobuf::uint64 num_vectors() const;
341  void set_num_vectors(::google::protobuf::uint64 value);
342 
343  // required uint64 num_features = 2;
344  bool has_num_features() const;
345  void clear_num_features();
346  static const int kNumFeaturesFieldNumber = 2;
347  ::google::protobuf::uint64 num_features() const;
348  void set_num_features(::google::protobuf::uint64 value);
349 
350  // repeated uint64 num_feat_entries = 3;
351  int num_feat_entries_size() const;
352  void clear_num_feat_entries();
353  static const int kNumFeatEntriesFieldNumber = 3;
354  ::google::protobuf::uint64 num_feat_entries(int index) const;
355  void set_num_feat_entries(int index, ::google::protobuf::uint64 value);
356  void add_num_feat_entries(::google::protobuf::uint64 value);
357  const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >&
358  num_feat_entries() const;
359  ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >*
360  mutable_num_feat_entries();
361 
362  // @@protoc_insertion_point(class_scope:shogun.SparseMatrixHeader)
363  private:
364  inline void set_has_num_vectors();
365  inline void clear_has_num_vectors();
366  inline void set_has_num_features();
367  inline void clear_has_num_features();
368 
369  // helper for ByteSize()
370  int RequiredFieldsByteSizeFallback() const;
371 
372  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
373  ::google::protobuf::uint32 _has_bits_[1];
374  mutable int _cached_size_;
375  ::google::protobuf::uint64 num_vectors_;
376  ::google::protobuf::uint64 num_features_;
377  ::google::protobuf::RepeatedField< ::google::protobuf::uint64 > num_feat_entries_;
378  friend void protobuf_AddDesc_Headers_2eproto();
381 
382  void InitAsDefaultInstance();
383  static SparseMatrixHeader* default_instance_;
384 };
385 // -------------------------------------------------------------------
386 
387 class StringListHeader : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:shogun.StringListHeader) */ {
388  public:
390  virtual ~StringListHeader();
391 
392  StringListHeader(const StringListHeader& from);
393 
395  CopyFrom(from);
396  return *this;
397  }
398 
399  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
400  return _internal_metadata_.unknown_fields();
401  }
402 
403  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
404  return _internal_metadata_.mutable_unknown_fields();
405  }
406 
407  static const ::google::protobuf::Descriptor* descriptor();
408  static const StringListHeader& default_instance();
409 
410  void Swap(StringListHeader* other);
411 
412  // implements Message ----------------------------------------------
413 
414  inline StringListHeader* New() const { return New(NULL); }
415 
416  StringListHeader* New(::google::protobuf::Arena* arena) const;
417  void CopyFrom(const ::google::protobuf::Message& from);
418  void MergeFrom(const ::google::protobuf::Message& from);
419  void CopyFrom(const StringListHeader& from);
420  void MergeFrom(const StringListHeader& from);
421  void Clear();
422  bool IsInitialized() const;
423 
424  int ByteSize() const;
426  ::google::protobuf::io::CodedInputStream* input);
428  ::google::protobuf::io::CodedOutputStream* output) const;
429  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
430  bool deterministic, ::google::protobuf::uint8* output) const;
431  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const {
432  return InternalSerializeWithCachedSizesToArray(false, output);
433  }
434  int GetCachedSize() const { return _cached_size_; }
435  private:
436  void SharedCtor();
437  void SharedDtor();
438  void SetCachedSize(int size) const;
439  void InternalSwap(StringListHeader* other);
440  private:
441  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
442  return _internal_metadata_.arena();
443  }
444  inline void* MaybeArenaPtr() const {
445  return _internal_metadata_.raw_arena_ptr();
446  }
447  public:
448 
449  ::google::protobuf::Metadata GetMetadata() const;
450 
451  // nested types ----------------------------------------------------
452 
453  // accessors -------------------------------------------------------
454 
455  // required uint64 num_str = 1;
456  bool has_num_str() const;
457  void clear_num_str();
458  static const int kNumStrFieldNumber = 1;
459  ::google::protobuf::uint64 num_str() const;
460  void set_num_str(::google::protobuf::uint64 value);
461 
462  // required uint64 max_string_len = 2;
463  bool has_max_string_len() const;
464  void clear_max_string_len();
465  static const int kMaxStringLenFieldNumber = 2;
466  ::google::protobuf::uint64 max_string_len() const;
467  void set_max_string_len(::google::protobuf::uint64 value);
468 
469  // repeated uint64 str_len = 3;
470  int str_len_size() const;
471  void clear_str_len();
472  static const int kStrLenFieldNumber = 3;
473  ::google::protobuf::uint64 str_len(int index) const;
474  void set_str_len(int index, ::google::protobuf::uint64 value);
475  void add_str_len(::google::protobuf::uint64 value);
476  const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >&
477  str_len() const;
478  ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >*
479  mutable_str_len();
480 
481  // @@protoc_insertion_point(class_scope:shogun.StringListHeader)
482  private:
483  inline void set_has_num_str();
484  inline void clear_has_num_str();
485  inline void set_has_max_string_len();
486  inline void clear_has_max_string_len();
487 
488  // helper for ByteSize()
489  int RequiredFieldsByteSizeFallback() const;
490 
491  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
492  ::google::protobuf::uint32 _has_bits_[1];
493  mutable int _cached_size_;
494  ::google::protobuf::uint64 num_str_;
495  ::google::protobuf::uint64 max_string_len_;
496  ::google::protobuf::RepeatedField< ::google::protobuf::uint64 > str_len_;
497  friend void protobuf_AddDesc_Headers_2eproto();
500 
501  void InitAsDefaultInstance();
502  static StringListHeader* default_instance_;
503 };
504 // ===================================================================
505 
506 
507 // ===================================================================
508 
509 #if !PROTOBUF_INLINE_NOT_IN_HEADERS
510 // VectorHeader
511 
512 // required uint64 len = 1;
513 inline bool VectorHeader::has_len() const {
514  return (_has_bits_[0] & 0x00000001u) != 0;
515 }
516 inline void VectorHeader::set_has_len() {
517  _has_bits_[0] |= 0x00000001u;
518 }
519 inline void VectorHeader::clear_has_len() {
520  _has_bits_[0] &= ~0x00000001u;
521 }
522 inline void VectorHeader::clear_len() {
523  len_ = GOOGLE_ULONGLONG(0);
524  clear_has_len();
525 }
526 inline ::google::protobuf::uint64 VectorHeader::len() const {
527  // @@protoc_insertion_point(field_get:shogun.VectorHeader.len)
528  return len_;
529 }
530 inline void VectorHeader::set_len(::google::protobuf::uint64 value) {
531  set_has_len();
532  len_ = value;
533  // @@protoc_insertion_point(field_set:shogun.VectorHeader.len)
534 }
535 
536 // required uint32 num_messages = 2;
537 inline bool VectorHeader::has_num_messages() const {
538  return (_has_bits_[0] & 0x00000002u) != 0;
539 }
540 inline void VectorHeader::set_has_num_messages() {
541  _has_bits_[0] |= 0x00000002u;
542 }
543 inline void VectorHeader::clear_has_num_messages() {
544  _has_bits_[0] &= ~0x00000002u;
545 }
547  num_messages_ = 0u;
548  clear_has_num_messages();
549 }
550 inline ::google::protobuf::uint32 VectorHeader::num_messages() const {
551  // @@protoc_insertion_point(field_get:shogun.VectorHeader.num_messages)
552  return num_messages_;
553 }
554 inline void VectorHeader::set_num_messages(::google::protobuf::uint32 value) {
555  set_has_num_messages();
556  num_messages_ = value;
557  // @@protoc_insertion_point(field_set:shogun.VectorHeader.num_messages)
558 }
559 
560 // -------------------------------------------------------------------
561 
562 // MatrixHeader
563 
564 // required uint64 num_cols = 1;
565 inline bool MatrixHeader::has_num_cols() const {
566  return (_has_bits_[0] & 0x00000001u) != 0;
567 }
568 inline void MatrixHeader::set_has_num_cols() {
569  _has_bits_[0] |= 0x00000001u;
570 }
571 inline void MatrixHeader::clear_has_num_cols() {
572  _has_bits_[0] &= ~0x00000001u;
573 }
575  num_cols_ = GOOGLE_ULONGLONG(0);
576  clear_has_num_cols();
577 }
578 inline ::google::protobuf::uint64 MatrixHeader::num_cols() const {
579  // @@protoc_insertion_point(field_get:shogun.MatrixHeader.num_cols)
580  return num_cols_;
581 }
582 inline void MatrixHeader::set_num_cols(::google::protobuf::uint64 value) {
583  set_has_num_cols();
584  num_cols_ = value;
585  // @@protoc_insertion_point(field_set:shogun.MatrixHeader.num_cols)
586 }
587 
588 // required uint64 num_rows = 2;
589 inline bool MatrixHeader::has_num_rows() const {
590  return (_has_bits_[0] & 0x00000002u) != 0;
591 }
592 inline void MatrixHeader::set_has_num_rows() {
593  _has_bits_[0] |= 0x00000002u;
594 }
595 inline void MatrixHeader::clear_has_num_rows() {
596  _has_bits_[0] &= ~0x00000002u;
597 }
599  num_rows_ = GOOGLE_ULONGLONG(0);
600  clear_has_num_rows();
601 }
602 inline ::google::protobuf::uint64 MatrixHeader::num_rows() const {
603  // @@protoc_insertion_point(field_get:shogun.MatrixHeader.num_rows)
604  return num_rows_;
605 }
606 inline void MatrixHeader::set_num_rows(::google::protobuf::uint64 value) {
607  set_has_num_rows();
608  num_rows_ = value;
609  // @@protoc_insertion_point(field_set:shogun.MatrixHeader.num_rows)
610 }
611 
612 // required uint32 num_messages = 3;
613 inline bool MatrixHeader::has_num_messages() const {
614  return (_has_bits_[0] & 0x00000004u) != 0;
615 }
616 inline void MatrixHeader::set_has_num_messages() {
617  _has_bits_[0] |= 0x00000004u;
618 }
619 inline void MatrixHeader::clear_has_num_messages() {
620  _has_bits_[0] &= ~0x00000004u;
621 }
623  num_messages_ = 0u;
624  clear_has_num_messages();
625 }
626 inline ::google::protobuf::uint32 MatrixHeader::num_messages() const {
627  // @@protoc_insertion_point(field_get:shogun.MatrixHeader.num_messages)
628  return num_messages_;
629 }
630 inline void MatrixHeader::set_num_messages(::google::protobuf::uint32 value) {
631  set_has_num_messages();
632  num_messages_ = value;
633  // @@protoc_insertion_point(field_set:shogun.MatrixHeader.num_messages)
634 }
635 
636 // -------------------------------------------------------------------
637 
638 // SparseMatrixHeader
639 
640 // required uint64 num_vectors = 1;
642  return (_has_bits_[0] & 0x00000001u) != 0;
643 }
644 inline void SparseMatrixHeader::set_has_num_vectors() {
645  _has_bits_[0] |= 0x00000001u;
646 }
647 inline void SparseMatrixHeader::clear_has_num_vectors() {
648  _has_bits_[0] &= ~0x00000001u;
649 }
651  num_vectors_ = GOOGLE_ULONGLONG(0);
652  clear_has_num_vectors();
653 }
654 inline ::google::protobuf::uint64 SparseMatrixHeader::num_vectors() const {
655  // @@protoc_insertion_point(field_get:shogun.SparseMatrixHeader.num_vectors)
656  return num_vectors_;
657 }
658 inline void SparseMatrixHeader::set_num_vectors(::google::protobuf::uint64 value) {
659  set_has_num_vectors();
660  num_vectors_ = value;
661  // @@protoc_insertion_point(field_set:shogun.SparseMatrixHeader.num_vectors)
662 }
663 
664 // required uint64 num_features = 2;
666  return (_has_bits_[0] & 0x00000002u) != 0;
667 }
668 inline void SparseMatrixHeader::set_has_num_features() {
669  _has_bits_[0] |= 0x00000002u;
670 }
671 inline void SparseMatrixHeader::clear_has_num_features() {
672  _has_bits_[0] &= ~0x00000002u;
673 }
675  num_features_ = GOOGLE_ULONGLONG(0);
676  clear_has_num_features();
677 }
678 inline ::google::protobuf::uint64 SparseMatrixHeader::num_features() const {
679  // @@protoc_insertion_point(field_get:shogun.SparseMatrixHeader.num_features)
680  return num_features_;
681 }
682 inline void SparseMatrixHeader::set_num_features(::google::protobuf::uint64 value) {
683  set_has_num_features();
684  num_features_ = value;
685  // @@protoc_insertion_point(field_set:shogun.SparseMatrixHeader.num_features)
686 }
687 
688 // repeated uint64 num_feat_entries = 3;
690  return num_feat_entries_.size();
691 }
693  num_feat_entries_.Clear();
694 }
695 inline ::google::protobuf::uint64 SparseMatrixHeader::num_feat_entries(int index) const {
696  // @@protoc_insertion_point(field_get:shogun.SparseMatrixHeader.num_feat_entries)
697  return num_feat_entries_.Get(index);
698 }
699 inline void SparseMatrixHeader::set_num_feat_entries(int index, ::google::protobuf::uint64 value) {
700  num_feat_entries_.Set(index, value);
701  // @@protoc_insertion_point(field_set:shogun.SparseMatrixHeader.num_feat_entries)
702 }
703 inline void SparseMatrixHeader::add_num_feat_entries(::google::protobuf::uint64 value) {
704  num_feat_entries_.Add(value);
705  // @@protoc_insertion_point(field_add:shogun.SparseMatrixHeader.num_feat_entries)
706 }
707 inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >&
709  // @@protoc_insertion_point(field_list:shogun.SparseMatrixHeader.num_feat_entries)
710  return num_feat_entries_;
711 }
712 inline ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >*
714  // @@protoc_insertion_point(field_mutable_list:shogun.SparseMatrixHeader.num_feat_entries)
715  return &num_feat_entries_;
716 }
717 
718 // -------------------------------------------------------------------
719 
720 // StringListHeader
721 
722 // required uint64 num_str = 1;
723 inline bool StringListHeader::has_num_str() const {
724  return (_has_bits_[0] & 0x00000001u) != 0;
725 }
726 inline void StringListHeader::set_has_num_str() {
727  _has_bits_[0] |= 0x00000001u;
728 }
729 inline void StringListHeader::clear_has_num_str() {
730  _has_bits_[0] &= ~0x00000001u;
731 }
733  num_str_ = GOOGLE_ULONGLONG(0);
734  clear_has_num_str();
735 }
736 inline ::google::protobuf::uint64 StringListHeader::num_str() const {
737  // @@protoc_insertion_point(field_get:shogun.StringListHeader.num_str)
738  return num_str_;
739 }
740 inline void StringListHeader::set_num_str(::google::protobuf::uint64 value) {
741  set_has_num_str();
742  num_str_ = value;
743  // @@protoc_insertion_point(field_set:shogun.StringListHeader.num_str)
744 }
745 
746 // required uint64 max_string_len = 2;
748  return (_has_bits_[0] & 0x00000002u) != 0;
749 }
750 inline void StringListHeader::set_has_max_string_len() {
751  _has_bits_[0] |= 0x00000002u;
752 }
753 inline void StringListHeader::clear_has_max_string_len() {
754  _has_bits_[0] &= ~0x00000002u;
755 }
757  max_string_len_ = GOOGLE_ULONGLONG(0);
758  clear_has_max_string_len();
759 }
760 inline ::google::protobuf::uint64 StringListHeader::max_string_len() const {
761  // @@protoc_insertion_point(field_get:shogun.StringListHeader.max_string_len)
762  return max_string_len_;
763 }
764 inline void StringListHeader::set_max_string_len(::google::protobuf::uint64 value) {
765  set_has_max_string_len();
766  max_string_len_ = value;
767  // @@protoc_insertion_point(field_set:shogun.StringListHeader.max_string_len)
768 }
769 
770 // repeated uint64 str_len = 3;
771 inline int StringListHeader::str_len_size() const {
772  return str_len_.size();
773 }
775  str_len_.Clear();
776 }
777 inline ::google::protobuf::uint64 StringListHeader::str_len(int index) const {
778  // @@protoc_insertion_point(field_get:shogun.StringListHeader.str_len)
779  return str_len_.Get(index);
780 }
781 inline void StringListHeader::set_str_len(int index, ::google::protobuf::uint64 value) {
782  str_len_.Set(index, value);
783  // @@protoc_insertion_point(field_set:shogun.StringListHeader.str_len)
784 }
785 inline void StringListHeader::add_str_len(::google::protobuf::uint64 value) {
786  str_len_.Add(value);
787  // @@protoc_insertion_point(field_add:shogun.StringListHeader.str_len)
788 }
789 inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >&
791  // @@protoc_insertion_point(field_list:shogun.StringListHeader.str_len)
792  return str_len_;
793 }
794 inline ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >*
796  // @@protoc_insertion_point(field_mutable_list:shogun.StringListHeader.str_len)
797  return &str_len_;
798 }
799 
800 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS
801 // -------------------------------------------------------------------
802 
803 // -------------------------------------------------------------------
804 
805 // -------------------------------------------------------------------
806 
807 
808 // @@protoc_insertion_point(namespace_scope)
809 
810 } // namespace shogun
811 
812 // @@protoc_insertion_point(global_scope)
813 
814 #endif // PROTOBUF_Headers_2eproto__INCLUDED
bool IsInitialized() const
bool has_num_features() const
Definition: Headers.pb.h:665
::google::protobuf::RepeatedField< ::google::protobuf::uint64 > * mutable_str_len()
Definition: Headers.pb.h:795
const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 > & num_feat_entries() const
Definition: Headers.pb.h:708
static const int kNumMessagesFieldNumber
Definition: Headers.pb.h:124
void protobuf_ShutdownFile_Headers_2eproto()
void set_max_string_len(::google::protobuf::uint64 value)
Definition: Headers.pb.h:764
MatrixHeader * New() const
Definition: Headers.pb.h:179
void set_str_len(int index, ::google::protobuf::uint64 value)
Definition: Headers.pb.h:781
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: Headers.pb.h:431
void set_num_cols(::google::protobuf::uint64 value)
Definition: Headers.pb.h:582
int ByteSize() const
int GetCachedSize() const
Definition: Headers.pb.h:93
::google::protobuf::RepeatedField< ::google::protobuf::uint64 > * mutable_num_feat_entries()
Definition: Headers.pb.h:713
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
Definition: Headers.pb.h:164
bool has_num_rows() const
Definition: Headers.pb.h:589
::google::protobuf::uint64 num_cols() const
Definition: Headers.pb.h:578
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: Headers.pb.h:312
SparseMatrixHeader * New() const
Definition: Headers.pb.h:295
void SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream *output) const
bool has_num_str() const
Definition: Headers.pb.h:723
friend void protobuf_AssignDesc_Headers_2eproto()
void add_num_feat_entries(::google::protobuf::uint64 value)
Definition: Headers.pb.h:703
void protobuf_AssignDesc_Headers_2eproto()
::google::protobuf::uint64 len() const
Definition: Headers.pb.h:526
int GetCachedSize() const
Definition: Headers.pb.h:199
int num_feat_entries_size() const
Definition: Headers.pb.h:689
inline ::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
Definition: Headers.pb.h:62
void Swap(VectorHeader *other)
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
Definition: Headers.pb.h:399
bool has_num_messages() const
Definition: Headers.pb.h:613
::google::protobuf::uint64 num_rows() const
Definition: Headers.pb.h:602
bool has_len() const
Definition: Headers.pb.h:513
MatrixHeader & operator=(const MatrixHeader &from)
Definition: Headers.pb.h:159
::google::protobuf::uint8 * InternalSerializeWithCachedSizesToArray(bool deterministic, ::google::protobuf::uint8 *output) const
::google::protobuf::Metadata GetMetadata() const
void set_num_feat_entries(int index, ::google::protobuf::uint64 value)
Definition: Headers.pb.h:699
int str_len_size() const
Definition: Headers.pb.h:771
void set_num_features(::google::protobuf::uint64 value)
Definition: Headers.pb.h:682
VectorHeader & operator=(const VectorHeader &from)
Definition: Headers.pb.h:53
StringListHeader & operator=(const StringListHeader &from)
Definition: Headers.pb.h:394
::google::protobuf::uint32 num_messages() const
Definition: Headers.pb.h:550
inline ::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
Definition: Headers.pb.h:403
bool has_num_messages() const
Definition: Headers.pb.h:537
bool has_max_string_len() const
Definition: Headers.pb.h:747
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
Definition: Headers.pb.h:58
void add_str_len(::google::protobuf::uint64 value)
Definition: Headers.pb.h:785
static const ::google::protobuf::Descriptor * descriptor()
void set_num_str(::google::protobuf::uint64 value)
Definition: Headers.pb.h:740
inline ::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
Definition: Headers.pb.h:168
void CopyFrom(const ::google::protobuf::Message &from)
void set_num_messages(::google::protobuf::uint32 value)
Definition: Headers.pb.h:630
StringListHeader * New() const
Definition: Headers.pb.h:414
int GetCachedSize() const
Definition: Headers.pb.h:434
void protobuf_AddDesc_Headers_2eproto()
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: Headers.pb.h:196
bool MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream *input)
friend void protobuf_AddDesc_Headers_2eproto()
all of classes and functions are contained in the shogun namespace
Definition: class_list.h:16
void MergeFrom(const ::google::protobuf::Message &from)
static const VectorHeader & default_instance()
inline ::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
Definition: Headers.pb.h:284
::google::protobuf::uint64 max_string_len() const
Definition: Headers.pb.h:760
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
Definition: Headers.pb.h:280
SparseMatrixHeader & operator=(const SparseMatrixHeader &from)
Definition: Headers.pb.h:275
::google::protobuf::uint64 num_vectors() const
Definition: Headers.pb.h:654
const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 > & str_len() const
Definition: Headers.pb.h:790
static const int kLenFieldNumber
Definition: Headers.pb.h:117
VectorHeader * New() const
Definition: Headers.pb.h:73
bool has_num_vectors() const
Definition: Headers.pb.h:641
bool has_num_cols() const
Definition: Headers.pb.h:565
void set_num_rows(::google::protobuf::uint64 value)
Definition: Headers.pb.h:606
::google::protobuf::uint32 num_messages() const
Definition: Headers.pb.h:626
friend void protobuf_ShutdownFile_Headers_2eproto()
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: Headers.pb.h:90
::google::protobuf::uint64 num_features() const
Definition: Headers.pb.h:678
void set_len(::google::protobuf::uint64 value)
Definition: Headers.pb.h:530
::google::protobuf::uint64 num_str() const
Definition: Headers.pb.h:736
void set_num_vectors(::google::protobuf::uint64 value)
Definition: Headers.pb.h:658
void set_num_messages(::google::protobuf::uint32 value)
Definition: Headers.pb.h:554

SHOGUN Machine Learning Toolbox - Documentation