SHOGUN  v3.2.0
Headers.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: Headers.proto
3 
4 #ifndef PROTOBUF_INCLUDED_Headers_2eproto
5 #define PROTOBUF_INCLUDED_Headers_2eproto
6 
7 #include <string>
8 
9 #include <google/protobuf/stubs/common.h>
10 
11 #if GOOGLE_PROTOBUF_VERSION < 3006001
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 3006001 < 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/io/coded_stream.h>
23 #include <google/protobuf/arena.h>
24 #include <google/protobuf/arenastring.h>
25 #include <google/protobuf/generated_message_table_driven.h>
26 #include <google/protobuf/generated_message_util.h>
27 #include <google/protobuf/inlined_string_field.h>
28 #include <google/protobuf/metadata.h>
29 #include <google/protobuf/message.h>
30 #include <google/protobuf/repeated_field.h> // IWYU pragma: export
31 #include <google/protobuf/extension_set.h> // IWYU pragma: export
32 #include <google/protobuf/unknown_field_set.h>
33 // @@protoc_insertion_point(includes)
34 #define PROTOBUF_INTERNAL_EXPORT_protobuf_Headers_2eproto
35 
37 // Internal implementation detail -- do not use these members.
38 struct TableStruct {
39  static const ::google::protobuf::internal::ParseTableField entries[];
40  static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
41  static const ::google::protobuf::internal::ParseTable schema[4];
42  static const ::google::protobuf::internal::FieldMetadata field_metadata[];
43  static const ::google::protobuf::internal::SerializationTable serialization_table[];
44  static const ::google::protobuf::uint32 offsets[];
45 };
46 void AddDescriptors();
47 } // namespace protobuf_Headers_2eproto
48 namespace shogun {
49 class MatrixHeader;
50 class MatrixHeaderDefaultTypeInternal;
51 extern MatrixHeaderDefaultTypeInternal _MatrixHeader_default_instance_;
52 class SparseMatrixHeader;
53 class SparseMatrixHeaderDefaultTypeInternal;
54 extern SparseMatrixHeaderDefaultTypeInternal _SparseMatrixHeader_default_instance_;
55 class StringListHeader;
56 class StringListHeaderDefaultTypeInternal;
57 extern StringListHeaderDefaultTypeInternal _StringListHeader_default_instance_;
58 class VectorHeader;
59 class VectorHeaderDefaultTypeInternal;
60 extern VectorHeaderDefaultTypeInternal _VectorHeader_default_instance_;
61 } // namespace shogun
62 namespace google {
63 namespace protobuf {
64 template<> ::shogun::MatrixHeader* Arena::CreateMaybeMessage<::shogun::MatrixHeader>(Arena*);
65 template<> ::shogun::SparseMatrixHeader* Arena::CreateMaybeMessage<::shogun::SparseMatrixHeader>(Arena*);
66 template<> ::shogun::StringListHeader* Arena::CreateMaybeMessage<::shogun::StringListHeader>(Arena*);
67 template<> ::shogun::VectorHeader* Arena::CreateMaybeMessage<::shogun::VectorHeader>(Arena*);
68 } // namespace protobuf
69 } // namespace google
70 namespace shogun {
71 
72 // ===================================================================
73 
74 class VectorHeader : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:shogun.VectorHeader) */ {
75  public:
76  VectorHeader();
77  virtual ~VectorHeader();
78 
79  VectorHeader(const VectorHeader& from);
80 
81  inline VectorHeader& operator=(const VectorHeader& from) {
82  CopyFrom(from);
83  return *this;
84  }
85  #if LANG_CXX11
86  VectorHeader(VectorHeader&& from) noexcept
87  : VectorHeader() {
88  *this = ::std::move(from);
89  }
90 
91  inline VectorHeader& operator=(VectorHeader&& from) noexcept {
92  if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
93  if (this != &from) InternalSwap(&from);
94  } else {
95  CopyFrom(from);
96  }
97  return *this;
98  }
99  #endif
100  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
101  return _internal_metadata_.unknown_fields();
102  }
103  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
104  return _internal_metadata_.mutable_unknown_fields();
105  }
106 
107  static const ::google::protobuf::Descriptor* descriptor();
108  static const VectorHeader& default_instance();
109 
110  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
111  static inline const VectorHeader* internal_default_instance() {
112  return reinterpret_cast<const VectorHeader*>(
114  }
115  static constexpr int kIndexInFileMessages =
116  0;
117 
118  void Swap(VectorHeader* other);
119  friend void swap(VectorHeader& a, VectorHeader& b) {
120  a.Swap(&b);
121  }
122 
123  // implements Message ----------------------------------------------
124 
125  inline VectorHeader* New() const final {
126  return CreateMaybeMessage<VectorHeader>(NULL);
127  }
128 
129  VectorHeader* New(::google::protobuf::Arena* arena) const final {
130  return CreateMaybeMessage<VectorHeader>(arena);
131  }
132  void CopyFrom(const ::google::protobuf::Message& from) final;
133  void MergeFrom(const ::google::protobuf::Message& from) final;
134  void CopyFrom(const VectorHeader& from);
135  void MergeFrom(const VectorHeader& from);
136  void Clear() final;
137  bool IsInitialized() const final;
138 
139  size_t ByteSizeLong() const final;
140  bool MergePartialFromCodedStream(
141  ::google::protobuf::io::CodedInputStream* input) final;
142  void SerializeWithCachedSizes(
143  ::google::protobuf::io::CodedOutputStream* output) const final;
144  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
145  bool deterministic, ::google::protobuf::uint8* target) const final;
146  int GetCachedSize() const final { return _cached_size_.Get(); }
147 
148  private:
149  void SharedCtor();
150  void SharedDtor();
151  void SetCachedSize(int size) const final;
152  void InternalSwap(VectorHeader* other);
153  private:
154  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
155  return NULL;
156  }
157  inline void* MaybeArenaPtr() const {
158  return NULL;
159  }
160  public:
161 
162  ::google::protobuf::Metadata GetMetadata() const final;
163 
164  // nested types ----------------------------------------------------
165 
166  // accessors -------------------------------------------------------
167 
168  // required uint64 len = 1;
169  bool has_len() const;
170  void clear_len();
171  static const int kLenFieldNumber = 1;
172  ::google::protobuf::uint64 len() const;
173  void set_len(::google::protobuf::uint64 value);
174 
175  // required uint32 num_messages = 2;
176  bool has_num_messages() const;
177  void clear_num_messages();
178  static const int kNumMessagesFieldNumber = 2;
179  ::google::protobuf::uint32 num_messages() const;
180  void set_num_messages(::google::protobuf::uint32 value);
181 
182  // @@protoc_insertion_point(class_scope:shogun.VectorHeader)
183  private:
184  void set_has_len();
185  void clear_has_len();
186  void set_has_num_messages();
187  void clear_has_num_messages();
188 
189  // helper for ByteSizeLong()
190  size_t RequiredFieldsByteSizeFallback() const;
191 
192  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
193  ::google::protobuf::internal::HasBits<1> _has_bits_;
194  mutable ::google::protobuf::internal::CachedSize _cached_size_;
195  ::google::protobuf::uint64 len_;
196  ::google::protobuf::uint32 num_messages_;
197  friend struct ::protobuf_Headers_2eproto::TableStruct;
198 };
199 // -------------------------------------------------------------------
200 
201 class MatrixHeader : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:shogun.MatrixHeader) */ {
202  public:
203  MatrixHeader();
204  virtual ~MatrixHeader();
205 
206  MatrixHeader(const MatrixHeader& from);
207 
208  inline MatrixHeader& operator=(const MatrixHeader& from) {
209  CopyFrom(from);
210  return *this;
211  }
212  #if LANG_CXX11
213  MatrixHeader(MatrixHeader&& from) noexcept
214  : MatrixHeader() {
215  *this = ::std::move(from);
216  }
217 
218  inline MatrixHeader& operator=(MatrixHeader&& from) noexcept {
219  if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
220  if (this != &from) InternalSwap(&from);
221  } else {
222  CopyFrom(from);
223  }
224  return *this;
225  }
226  #endif
227  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
228  return _internal_metadata_.unknown_fields();
229  }
230  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
231  return _internal_metadata_.mutable_unknown_fields();
232  }
233 
234  static const ::google::protobuf::Descriptor* descriptor();
235  static const MatrixHeader& default_instance();
236 
237  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
238  static inline const MatrixHeader* internal_default_instance() {
239  return reinterpret_cast<const MatrixHeader*>(
241  }
242  static constexpr int kIndexInFileMessages =
243  1;
244 
245  void Swap(MatrixHeader* other);
246  friend void swap(MatrixHeader& a, MatrixHeader& b) {
247  a.Swap(&b);
248  }
249 
250  // implements Message ----------------------------------------------
251 
252  inline MatrixHeader* New() const final {
253  return CreateMaybeMessage<MatrixHeader>(NULL);
254  }
255 
256  MatrixHeader* New(::google::protobuf::Arena* arena) const final {
257  return CreateMaybeMessage<MatrixHeader>(arena);
258  }
259  void CopyFrom(const ::google::protobuf::Message& from) final;
260  void MergeFrom(const ::google::protobuf::Message& from) final;
261  void CopyFrom(const MatrixHeader& from);
262  void MergeFrom(const MatrixHeader& from);
263  void Clear() final;
264  bool IsInitialized() const final;
265 
266  size_t ByteSizeLong() const final;
267  bool MergePartialFromCodedStream(
268  ::google::protobuf::io::CodedInputStream* input) final;
269  void SerializeWithCachedSizes(
270  ::google::protobuf::io::CodedOutputStream* output) const final;
271  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
272  bool deterministic, ::google::protobuf::uint8* target) const final;
273  int GetCachedSize() const final { return _cached_size_.Get(); }
274 
275  private:
276  void SharedCtor();
277  void SharedDtor();
278  void SetCachedSize(int size) const final;
279  void InternalSwap(MatrixHeader* other);
280  private:
281  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
282  return NULL;
283  }
284  inline void* MaybeArenaPtr() const {
285  return NULL;
286  }
287  public:
288 
289  ::google::protobuf::Metadata GetMetadata() const final;
290 
291  // nested types ----------------------------------------------------
292 
293  // accessors -------------------------------------------------------
294 
295  // required uint64 num_cols = 1;
296  bool has_num_cols() const;
297  void clear_num_cols();
298  static const int kNumColsFieldNumber = 1;
299  ::google::protobuf::uint64 num_cols() const;
300  void set_num_cols(::google::protobuf::uint64 value);
301 
302  // required uint64 num_rows = 2;
303  bool has_num_rows() const;
304  void clear_num_rows();
305  static const int kNumRowsFieldNumber = 2;
306  ::google::protobuf::uint64 num_rows() const;
307  void set_num_rows(::google::protobuf::uint64 value);
308 
309  // required uint32 num_messages = 3;
310  bool has_num_messages() const;
311  void clear_num_messages();
312  static const int kNumMessagesFieldNumber = 3;
313  ::google::protobuf::uint32 num_messages() const;
314  void set_num_messages(::google::protobuf::uint32 value);
315 
316  // @@protoc_insertion_point(class_scope:shogun.MatrixHeader)
317  private:
318  void set_has_num_cols();
319  void clear_has_num_cols();
320  void set_has_num_rows();
321  void clear_has_num_rows();
322  void set_has_num_messages();
323  void clear_has_num_messages();
324 
325  // helper for ByteSizeLong()
326  size_t RequiredFieldsByteSizeFallback() const;
327 
328  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
329  ::google::protobuf::internal::HasBits<1> _has_bits_;
330  mutable ::google::protobuf::internal::CachedSize _cached_size_;
331  ::google::protobuf::uint64 num_cols_;
332  ::google::protobuf::uint64 num_rows_;
333  ::google::protobuf::uint32 num_messages_;
334  friend struct ::protobuf_Headers_2eproto::TableStruct;
335 };
336 // -------------------------------------------------------------------
337 
338 class SparseMatrixHeader : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:shogun.SparseMatrixHeader) */ {
339  public:
341  virtual ~SparseMatrixHeader();
342 
344 
346  CopyFrom(from);
347  return *this;
348  }
349  #if LANG_CXX11
350  SparseMatrixHeader(SparseMatrixHeader&& from) noexcept
351  : SparseMatrixHeader() {
352  *this = ::std::move(from);
353  }
354 
355  inline SparseMatrixHeader& operator=(SparseMatrixHeader&& from) noexcept {
356  if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
357  if (this != &from) InternalSwap(&from);
358  } else {
359  CopyFrom(from);
360  }
361  return *this;
362  }
363  #endif
364  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
365  return _internal_metadata_.unknown_fields();
366  }
367  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
368  return _internal_metadata_.mutable_unknown_fields();
369  }
370 
371  static const ::google::protobuf::Descriptor* descriptor();
372  static const SparseMatrixHeader& default_instance();
373 
374  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
376  return reinterpret_cast<const SparseMatrixHeader*>(
378  }
379  static constexpr int kIndexInFileMessages =
380  2;
381 
382  void Swap(SparseMatrixHeader* other);
384  a.Swap(&b);
385  }
386 
387  // implements Message ----------------------------------------------
388 
389  inline SparseMatrixHeader* New() const final {
390  return CreateMaybeMessage<SparseMatrixHeader>(NULL);
391  }
392 
393  SparseMatrixHeader* New(::google::protobuf::Arena* arena) const final {
394  return CreateMaybeMessage<SparseMatrixHeader>(arena);
395  }
396  void CopyFrom(const ::google::protobuf::Message& from) final;
397  void MergeFrom(const ::google::protobuf::Message& from) final;
398  void CopyFrom(const SparseMatrixHeader& from);
399  void MergeFrom(const SparseMatrixHeader& from);
400  void Clear() final;
401  bool IsInitialized() const final;
402 
403  size_t ByteSizeLong() const final;
404  bool MergePartialFromCodedStream(
405  ::google::protobuf::io::CodedInputStream* input) final;
406  void SerializeWithCachedSizes(
407  ::google::protobuf::io::CodedOutputStream* output) const final;
408  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
409  bool deterministic, ::google::protobuf::uint8* target) const final;
410  int GetCachedSize() const final { return _cached_size_.Get(); }
411 
412  private:
413  void SharedCtor();
414  void SharedDtor();
415  void SetCachedSize(int size) const final;
416  void InternalSwap(SparseMatrixHeader* other);
417  private:
418  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
419  return NULL;
420  }
421  inline void* MaybeArenaPtr() const {
422  return NULL;
423  }
424  public:
425 
426  ::google::protobuf::Metadata GetMetadata() const final;
427 
428  // nested types ----------------------------------------------------
429 
430  // accessors -------------------------------------------------------
431 
432  // repeated uint64 num_feat_entries = 3;
433  int num_feat_entries_size() const;
434  void clear_num_feat_entries();
435  static const int kNumFeatEntriesFieldNumber = 3;
436  ::google::protobuf::uint64 num_feat_entries(int index) const;
437  void set_num_feat_entries(int index, ::google::protobuf::uint64 value);
438  void add_num_feat_entries(::google::protobuf::uint64 value);
439  const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >&
440  num_feat_entries() const;
441  ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >*
442  mutable_num_feat_entries();
443 
444  // required uint64 num_vectors = 1;
445  bool has_num_vectors() const;
446  void clear_num_vectors();
447  static const int kNumVectorsFieldNumber = 1;
448  ::google::protobuf::uint64 num_vectors() const;
449  void set_num_vectors(::google::protobuf::uint64 value);
450 
451  // required uint64 num_features = 2;
452  bool has_num_features() const;
453  void clear_num_features();
454  static const int kNumFeaturesFieldNumber = 2;
455  ::google::protobuf::uint64 num_features() const;
456  void set_num_features(::google::protobuf::uint64 value);
457 
458  // @@protoc_insertion_point(class_scope:shogun.SparseMatrixHeader)
459  private:
460  void set_has_num_vectors();
461  void clear_has_num_vectors();
462  void set_has_num_features();
463  void clear_has_num_features();
464 
465  // helper for ByteSizeLong()
466  size_t RequiredFieldsByteSizeFallback() const;
467 
468  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
469  ::google::protobuf::internal::HasBits<1> _has_bits_;
470  mutable ::google::protobuf::internal::CachedSize _cached_size_;
471  ::google::protobuf::RepeatedField< ::google::protobuf::uint64 > num_feat_entries_;
472  ::google::protobuf::uint64 num_vectors_;
473  ::google::protobuf::uint64 num_features_;
474  friend struct ::protobuf_Headers_2eproto::TableStruct;
475 };
476 // -------------------------------------------------------------------
477 
478 class StringListHeader : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:shogun.StringListHeader) */ {
479  public:
481  virtual ~StringListHeader();
482 
483  StringListHeader(const StringListHeader& from);
484 
486  CopyFrom(from);
487  return *this;
488  }
489  #if LANG_CXX11
490  StringListHeader(StringListHeader&& from) noexcept
491  : StringListHeader() {
492  *this = ::std::move(from);
493  }
494 
495  inline StringListHeader& operator=(StringListHeader&& from) noexcept {
496  if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
497  if (this != &from) InternalSwap(&from);
498  } else {
499  CopyFrom(from);
500  }
501  return *this;
502  }
503  #endif
504  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
505  return _internal_metadata_.unknown_fields();
506  }
507  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
508  return _internal_metadata_.mutable_unknown_fields();
509  }
510 
511  static const ::google::protobuf::Descriptor* descriptor();
512  static const StringListHeader& default_instance();
513 
514  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
516  return reinterpret_cast<const StringListHeader*>(
518  }
519  static constexpr int kIndexInFileMessages =
520  3;
521 
522  void Swap(StringListHeader* other);
523  friend void swap(StringListHeader& a, StringListHeader& b) {
524  a.Swap(&b);
525  }
526 
527  // implements Message ----------------------------------------------
528 
529  inline StringListHeader* New() const final {
530  return CreateMaybeMessage<StringListHeader>(NULL);
531  }
532 
533  StringListHeader* New(::google::protobuf::Arena* arena) const final {
534  return CreateMaybeMessage<StringListHeader>(arena);
535  }
536  void CopyFrom(const ::google::protobuf::Message& from) final;
537  void MergeFrom(const ::google::protobuf::Message& from) final;
538  void CopyFrom(const StringListHeader& from);
539  void MergeFrom(const StringListHeader& from);
540  void Clear() final;
541  bool IsInitialized() const final;
542 
543  size_t ByteSizeLong() const final;
544  bool MergePartialFromCodedStream(
545  ::google::protobuf::io::CodedInputStream* input) final;
546  void SerializeWithCachedSizes(
547  ::google::protobuf::io::CodedOutputStream* output) const final;
548  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
549  bool deterministic, ::google::protobuf::uint8* target) const final;
550  int GetCachedSize() const final { return _cached_size_.Get(); }
551 
552  private:
553  void SharedCtor();
554  void SharedDtor();
555  void SetCachedSize(int size) const final;
556  void InternalSwap(StringListHeader* other);
557  private:
558  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
559  return NULL;
560  }
561  inline void* MaybeArenaPtr() const {
562  return NULL;
563  }
564  public:
565 
566  ::google::protobuf::Metadata GetMetadata() const final;
567 
568  // nested types ----------------------------------------------------
569 
570  // accessors -------------------------------------------------------
571 
572  // repeated uint64 str_len = 3;
573  int str_len_size() const;
574  void clear_str_len();
575  static const int kStrLenFieldNumber = 3;
576  ::google::protobuf::uint64 str_len(int index) const;
577  void set_str_len(int index, ::google::protobuf::uint64 value);
578  void add_str_len(::google::protobuf::uint64 value);
579  const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >&
580  str_len() const;
581  ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >*
582  mutable_str_len();
583 
584  // required uint64 num_str = 1;
585  bool has_num_str() const;
586  void clear_num_str();
587  static const int kNumStrFieldNumber = 1;
588  ::google::protobuf::uint64 num_str() const;
589  void set_num_str(::google::protobuf::uint64 value);
590 
591  // required uint64 max_string_len = 2;
592  bool has_max_string_len() const;
593  void clear_max_string_len();
594  static const int kMaxStringLenFieldNumber = 2;
595  ::google::protobuf::uint64 max_string_len() const;
596  void set_max_string_len(::google::protobuf::uint64 value);
597 
598  // @@protoc_insertion_point(class_scope:shogun.StringListHeader)
599  private:
600  void set_has_num_str();
601  void clear_has_num_str();
602  void set_has_max_string_len();
603  void clear_has_max_string_len();
604 
605  // helper for ByteSizeLong()
606  size_t RequiredFieldsByteSizeFallback() const;
607 
608  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
609  ::google::protobuf::internal::HasBits<1> _has_bits_;
610  mutable ::google::protobuf::internal::CachedSize _cached_size_;
611  ::google::protobuf::RepeatedField< ::google::protobuf::uint64 > str_len_;
612  ::google::protobuf::uint64 num_str_;
613  ::google::protobuf::uint64 max_string_len_;
614  friend struct ::protobuf_Headers_2eproto::TableStruct;
615 };
616 // ===================================================================
617 
618 
619 // ===================================================================
620 
621 #ifdef __GNUC__
622  #pragma GCC diagnostic push
623  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
624 #endif // __GNUC__
625 // VectorHeader
626 
627 // required uint64 len = 1;
628 inline bool VectorHeader::has_len() const {
629  return (_has_bits_[0] & 0x00000001u) != 0;
630 }
631 inline void VectorHeader::set_has_len() {
632  _has_bits_[0] |= 0x00000001u;
633 }
634 inline void VectorHeader::clear_has_len() {
635  _has_bits_[0] &= ~0x00000001u;
636 }
637 inline void VectorHeader::clear_len() {
638  len_ = GOOGLE_ULONGLONG(0);
639  clear_has_len();
640 }
641 inline ::google::protobuf::uint64 VectorHeader::len() const {
642  // @@protoc_insertion_point(field_get:shogun.VectorHeader.len)
643  return len_;
644 }
645 inline void VectorHeader::set_len(::google::protobuf::uint64 value) {
646  set_has_len();
647  len_ = value;
648  // @@protoc_insertion_point(field_set:shogun.VectorHeader.len)
649 }
650 
651 // required uint32 num_messages = 2;
652 inline bool VectorHeader::has_num_messages() const {
653  return (_has_bits_[0] & 0x00000002u) != 0;
654 }
655 inline void VectorHeader::set_has_num_messages() {
656  _has_bits_[0] |= 0x00000002u;
657 }
658 inline void VectorHeader::clear_has_num_messages() {
659  _has_bits_[0] &= ~0x00000002u;
660 }
661 inline void VectorHeader::clear_num_messages() {
662  num_messages_ = 0u;
663  clear_has_num_messages();
664 }
665 inline ::google::protobuf::uint32 VectorHeader::num_messages() const {
666  // @@protoc_insertion_point(field_get:shogun.VectorHeader.num_messages)
667  return num_messages_;
668 }
669 inline void VectorHeader::set_num_messages(::google::protobuf::uint32 value) {
670  set_has_num_messages();
671  num_messages_ = value;
672  // @@protoc_insertion_point(field_set:shogun.VectorHeader.num_messages)
673 }
674 
675 // -------------------------------------------------------------------
676 
677 // MatrixHeader
678 
679 // required uint64 num_cols = 1;
680 inline bool MatrixHeader::has_num_cols() const {
681  return (_has_bits_[0] & 0x00000001u) != 0;
682 }
683 inline void MatrixHeader::set_has_num_cols() {
684  _has_bits_[0] |= 0x00000001u;
685 }
686 inline void MatrixHeader::clear_has_num_cols() {
687  _has_bits_[0] &= ~0x00000001u;
688 }
689 inline void MatrixHeader::clear_num_cols() {
690  num_cols_ = GOOGLE_ULONGLONG(0);
691  clear_has_num_cols();
692 }
693 inline ::google::protobuf::uint64 MatrixHeader::num_cols() const {
694  // @@protoc_insertion_point(field_get:shogun.MatrixHeader.num_cols)
695  return num_cols_;
696 }
697 inline void MatrixHeader::set_num_cols(::google::protobuf::uint64 value) {
698  set_has_num_cols();
699  num_cols_ = value;
700  // @@protoc_insertion_point(field_set:shogun.MatrixHeader.num_cols)
701 }
702 
703 // required uint64 num_rows = 2;
704 inline bool MatrixHeader::has_num_rows() const {
705  return (_has_bits_[0] & 0x00000002u) != 0;
706 }
707 inline void MatrixHeader::set_has_num_rows() {
708  _has_bits_[0] |= 0x00000002u;
709 }
710 inline void MatrixHeader::clear_has_num_rows() {
711  _has_bits_[0] &= ~0x00000002u;
712 }
713 inline void MatrixHeader::clear_num_rows() {
714  num_rows_ = GOOGLE_ULONGLONG(0);
715  clear_has_num_rows();
716 }
717 inline ::google::protobuf::uint64 MatrixHeader::num_rows() const {
718  // @@protoc_insertion_point(field_get:shogun.MatrixHeader.num_rows)
719  return num_rows_;
720 }
721 inline void MatrixHeader::set_num_rows(::google::protobuf::uint64 value) {
722  set_has_num_rows();
723  num_rows_ = value;
724  // @@protoc_insertion_point(field_set:shogun.MatrixHeader.num_rows)
725 }
726 
727 // required uint32 num_messages = 3;
728 inline bool MatrixHeader::has_num_messages() const {
729  return (_has_bits_[0] & 0x00000004u) != 0;
730 }
731 inline void MatrixHeader::set_has_num_messages() {
732  _has_bits_[0] |= 0x00000004u;
733 }
734 inline void MatrixHeader::clear_has_num_messages() {
735  _has_bits_[0] &= ~0x00000004u;
736 }
737 inline void MatrixHeader::clear_num_messages() {
738  num_messages_ = 0u;
739  clear_has_num_messages();
740 }
741 inline ::google::protobuf::uint32 MatrixHeader::num_messages() const {
742  // @@protoc_insertion_point(field_get:shogun.MatrixHeader.num_messages)
743  return num_messages_;
744 }
745 inline void MatrixHeader::set_num_messages(::google::protobuf::uint32 value) {
746  set_has_num_messages();
747  num_messages_ = value;
748  // @@protoc_insertion_point(field_set:shogun.MatrixHeader.num_messages)
749 }
750 
751 // -------------------------------------------------------------------
752 
753 // SparseMatrixHeader
754 
755 // required uint64 num_vectors = 1;
756 inline bool SparseMatrixHeader::has_num_vectors() const {
757  return (_has_bits_[0] & 0x00000001u) != 0;
758 }
759 inline void SparseMatrixHeader::set_has_num_vectors() {
760  _has_bits_[0] |= 0x00000001u;
761 }
762 inline void SparseMatrixHeader::clear_has_num_vectors() {
763  _has_bits_[0] &= ~0x00000001u;
764 }
765 inline void SparseMatrixHeader::clear_num_vectors() {
766  num_vectors_ = GOOGLE_ULONGLONG(0);
767  clear_has_num_vectors();
768 }
769 inline ::google::protobuf::uint64 SparseMatrixHeader::num_vectors() const {
770  // @@protoc_insertion_point(field_get:shogun.SparseMatrixHeader.num_vectors)
771  return num_vectors_;
772 }
773 inline void SparseMatrixHeader::set_num_vectors(::google::protobuf::uint64 value) {
774  set_has_num_vectors();
775  num_vectors_ = value;
776  // @@protoc_insertion_point(field_set:shogun.SparseMatrixHeader.num_vectors)
777 }
778 
779 // required uint64 num_features = 2;
780 inline bool SparseMatrixHeader::has_num_features() const {
781  return (_has_bits_[0] & 0x00000002u) != 0;
782 }
783 inline void SparseMatrixHeader::set_has_num_features() {
784  _has_bits_[0] |= 0x00000002u;
785 }
786 inline void SparseMatrixHeader::clear_has_num_features() {
787  _has_bits_[0] &= ~0x00000002u;
788 }
789 inline void SparseMatrixHeader::clear_num_features() {
790  num_features_ = GOOGLE_ULONGLONG(0);
791  clear_has_num_features();
792 }
793 inline ::google::protobuf::uint64 SparseMatrixHeader::num_features() const {
794  // @@protoc_insertion_point(field_get:shogun.SparseMatrixHeader.num_features)
795  return num_features_;
796 }
797 inline void SparseMatrixHeader::set_num_features(::google::protobuf::uint64 value) {
798  set_has_num_features();
799  num_features_ = value;
800  // @@protoc_insertion_point(field_set:shogun.SparseMatrixHeader.num_features)
801 }
802 
803 // repeated uint64 num_feat_entries = 3;
804 inline int SparseMatrixHeader::num_feat_entries_size() const {
805  return num_feat_entries_.size();
806 }
807 inline void SparseMatrixHeader::clear_num_feat_entries() {
808  num_feat_entries_.Clear();
809 }
810 inline ::google::protobuf::uint64 SparseMatrixHeader::num_feat_entries(int index) const {
811  // @@protoc_insertion_point(field_get:shogun.SparseMatrixHeader.num_feat_entries)
812  return num_feat_entries_.Get(index);
813 }
814 inline void SparseMatrixHeader::set_num_feat_entries(int index, ::google::protobuf::uint64 value) {
815  num_feat_entries_.Set(index, value);
816  // @@protoc_insertion_point(field_set:shogun.SparseMatrixHeader.num_feat_entries)
817 }
818 inline void SparseMatrixHeader::add_num_feat_entries(::google::protobuf::uint64 value) {
819  num_feat_entries_.Add(value);
820  // @@protoc_insertion_point(field_add:shogun.SparseMatrixHeader.num_feat_entries)
821 }
822 inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >&
823 SparseMatrixHeader::num_feat_entries() const {
824  // @@protoc_insertion_point(field_list:shogun.SparseMatrixHeader.num_feat_entries)
825  return num_feat_entries_;
826 }
827 inline ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >*
828 SparseMatrixHeader::mutable_num_feat_entries() {
829  // @@protoc_insertion_point(field_mutable_list:shogun.SparseMatrixHeader.num_feat_entries)
830  return &num_feat_entries_;
831 }
832 
833 // -------------------------------------------------------------------
834 
835 // StringListHeader
836 
837 // required uint64 num_str = 1;
838 inline bool StringListHeader::has_num_str() const {
839  return (_has_bits_[0] & 0x00000001u) != 0;
840 }
841 inline void StringListHeader::set_has_num_str() {
842  _has_bits_[0] |= 0x00000001u;
843 }
844 inline void StringListHeader::clear_has_num_str() {
845  _has_bits_[0] &= ~0x00000001u;
846 }
847 inline void StringListHeader::clear_num_str() {
848  num_str_ = GOOGLE_ULONGLONG(0);
849  clear_has_num_str();
850 }
851 inline ::google::protobuf::uint64 StringListHeader::num_str() const {
852  // @@protoc_insertion_point(field_get:shogun.StringListHeader.num_str)
853  return num_str_;
854 }
855 inline void StringListHeader::set_num_str(::google::protobuf::uint64 value) {
856  set_has_num_str();
857  num_str_ = value;
858  // @@protoc_insertion_point(field_set:shogun.StringListHeader.num_str)
859 }
860 
861 // required uint64 max_string_len = 2;
862 inline bool StringListHeader::has_max_string_len() const {
863  return (_has_bits_[0] & 0x00000002u) != 0;
864 }
865 inline void StringListHeader::set_has_max_string_len() {
866  _has_bits_[0] |= 0x00000002u;
867 }
868 inline void StringListHeader::clear_has_max_string_len() {
869  _has_bits_[0] &= ~0x00000002u;
870 }
871 inline void StringListHeader::clear_max_string_len() {
872  max_string_len_ = GOOGLE_ULONGLONG(0);
873  clear_has_max_string_len();
874 }
875 inline ::google::protobuf::uint64 StringListHeader::max_string_len() const {
876  // @@protoc_insertion_point(field_get:shogun.StringListHeader.max_string_len)
877  return max_string_len_;
878 }
879 inline void StringListHeader::set_max_string_len(::google::protobuf::uint64 value) {
880  set_has_max_string_len();
881  max_string_len_ = value;
882  // @@protoc_insertion_point(field_set:shogun.StringListHeader.max_string_len)
883 }
884 
885 // repeated uint64 str_len = 3;
886 inline int StringListHeader::str_len_size() const {
887  return str_len_.size();
888 }
889 inline void StringListHeader::clear_str_len() {
890  str_len_.Clear();
891 }
892 inline ::google::protobuf::uint64 StringListHeader::str_len(int index) const {
893  // @@protoc_insertion_point(field_get:shogun.StringListHeader.str_len)
894  return str_len_.Get(index);
895 }
896 inline void StringListHeader::set_str_len(int index, ::google::protobuf::uint64 value) {
897  str_len_.Set(index, value);
898  // @@protoc_insertion_point(field_set:shogun.StringListHeader.str_len)
899 }
900 inline void StringListHeader::add_str_len(::google::protobuf::uint64 value) {
901  str_len_.Add(value);
902  // @@protoc_insertion_point(field_add:shogun.StringListHeader.str_len)
903 }
904 inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >&
905 StringListHeader::str_len() const {
906  // @@protoc_insertion_point(field_list:shogun.StringListHeader.str_len)
907  return str_len_;
908 }
909 inline ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >*
910 StringListHeader::mutable_str_len() {
911  // @@protoc_insertion_point(field_mutable_list:shogun.StringListHeader.str_len)
912  return &str_len_;
913 }
914 
915 #ifdef __GNUC__
916  #pragma GCC diagnostic pop
917 #endif // __GNUC__
918 // -------------------------------------------------------------------
919 
920 // -------------------------------------------------------------------
921 
922 // -------------------------------------------------------------------
923 
924 
925 // @@protoc_insertion_point(namespace_scope)
926 
927 } // namespace shogun
928 
929 // @@protoc_insertion_point(global_scope)
930 
931 #endif // PROTOBUF_INCLUDED_Headers_2eproto
static const VectorHeader * internal_default_instance()
Definition: Headers.pb.h:111
void Swap(MatrixHeader *other)
MatrixHeaderDefaultTypeInternal _MatrixHeader_default_instance_
static const StringListHeader * internal_default_instance()
Definition: Headers.pb.h:515
friend void swap(StringListHeader &a, StringListHeader &b)
Definition: Headers.pb.h:523
friend void swap(VectorHeader &a, VectorHeader &b)
Definition: Headers.pb.h:119
StringListHeaderDefaultTypeInternal _StringListHeader_default_instance_
static const SparseMatrixHeader * internal_default_instance()
Definition: Headers.pb.h:375
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
Definition: Headers.pb.h:227
static const ::google::protobuf::internal::FieldMetadata field_metadata[]
Definition: Headers.pb.h:42
friend void swap(MatrixHeader &a, MatrixHeader &b)
Definition: Headers.pb.h:246
VectorHeader * New(::google::protobuf::Arena *arena) const final
Definition: Headers.pb.h:129
inline ::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
Definition: Headers.pb.h:103
void Swap(VectorHeader *other)
StringListHeader * New(::google::protobuf::Arena *arena) const final
Definition: Headers.pb.h:533
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
Definition: Headers.pb.h:504
int GetCachedSize() const final
Definition: Headers.pb.h:550
void Swap(StringListHeader *other)
static const ::google::protobuf::internal::AuxillaryParseTableField aux[]
Definition: Headers.pb.h:40
MatrixHeader & operator=(const MatrixHeader &from)
Definition: Headers.pb.h:208
static const ::google::protobuf::internal::SerializationTable serialization_table[]
Definition: Headers.pb.h:43
friend void swap(SparseMatrixHeader &a, SparseMatrixHeader &b)
Definition: Headers.pb.h:383
VectorHeader & operator=(const VectorHeader &from)
Definition: Headers.pb.h:81
StringListHeader & operator=(const StringListHeader &from)
Definition: Headers.pb.h:485
inline ::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
Definition: Headers.pb.h:507
static const ::google::protobuf::internal::ParseTable schema[4]
Definition: Headers.pb.h:41
SparseMatrixHeader * New() const final
Definition: Headers.pb.h:389
MatrixHeader * New(::google::protobuf::Arena *arena) const final
Definition: Headers.pb.h:256
void Swap(SparseMatrixHeader *other)
VectorHeaderDefaultTypeInternal _VectorHeader_default_instance_
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
Definition: Headers.pb.h:100
static const MatrixHeader * internal_default_instance()
Definition: Headers.pb.h:238
inline ::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
Definition: Headers.pb.h:230
all of classes and functions are contained in the shogun namespace
Definition: class_list.h:16
inline ::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
Definition: Headers.pb.h:367
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
Definition: Headers.pb.h:364
int GetCachedSize() const final
Definition: Headers.pb.h:273
SparseMatrixHeader & operator=(const SparseMatrixHeader &from)
Definition: Headers.pb.h:345
int GetCachedSize() const final
Definition: Headers.pb.h:146
int GetCachedSize() const final
Definition: Headers.pb.h:410
StringListHeader * New() const final
Definition: Headers.pb.h:529
VectorHeader * New() const final
Definition: Headers.pb.h:125
static const ::google::protobuf::internal::ParseTableField entries[]
Definition: Headers.pb.h:39
SparseMatrixHeader * New(::google::protobuf::Arena *arena) const final
Definition: Headers.pb.h:393
static const ::google::protobuf::uint32 offsets[]
Definition: Headers.pb.h:44
MatrixHeader * New() const final
Definition: Headers.pb.h:252
SparseMatrixHeaderDefaultTypeInternal _SparseMatrixHeader_default_instance_

SHOGUN Machine Learning Toolbox - Documentation