4 #ifndef PROTOBUF_Headers_2eproto__INCLUDED 5 #define PROTOBUF_Headers_2eproto__INCLUDED 9 #include <google/protobuf/stubs/common.h> 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 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. 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> 40 class SparseMatrixHeader;
41 class StringListHeader;
59 return _internal_metadata_.unknown_fields();
63 return _internal_metadata_.mutable_unknown_fields();
66 static const ::google::protobuf::Descriptor*
descriptor();
76 void CopyFrom(const ::google::protobuf::Message& from);
77 void MergeFrom(const ::google::protobuf::Message& from);
85 ::google::protobuf::io::CodedInputStream* input);
87 ::google::protobuf::io::CodedOutputStream* output)
const;
89 bool deterministic, ::google::protobuf::uint8* output)
const;
97 void SetCachedSize(
int size)
const;
100 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
101 return _internal_metadata_.arena();
103 inline void* MaybeArenaPtr()
const {
104 return _internal_metadata_.raw_arena_ptr();
118 ::google::protobuf::uint64
len()
const;
119 void set_len(::google::protobuf::uint64 value);
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();
136 int RequiredFieldsByteSizeFallback()
const;
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_;
147 void InitAsDefaultInstance();
165 return _internal_metadata_.unknown_fields();
169 return _internal_metadata_.mutable_unknown_fields();
172 static const ::google::protobuf::Descriptor*
descriptor();
182 void CopyFrom(const ::google::protobuf::Message& from);
183 void MergeFrom(const ::google::protobuf::Message& from);
191 ::google::protobuf::io::CodedInputStream* input);
193 ::google::protobuf::io::CodedOutputStream* output)
const;
195 bool deterministic, ::google::protobuf::uint8* output)
const;
203 void SetCachedSize(
int size)
const;
206 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
207 return _internal_metadata_.arena();
209 inline void* MaybeArenaPtr()
const {
210 return _internal_metadata_.raw_arena_ptr();
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);
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);
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();
251 int RequiredFieldsByteSizeFallback()
const;
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_;
263 void InitAsDefaultInstance();
281 return _internal_metadata_.unknown_fields();
285 return _internal_metadata_.mutable_unknown_fields();
288 static const ::google::protobuf::Descriptor*
descriptor();
298 void CopyFrom(const ::google::protobuf::Message& from);
299 void MergeFrom(const ::google::protobuf::Message& from);
307 ::google::protobuf::io::CodedInputStream* input);
309 ::google::protobuf::io::CodedOutputStream* output)
const;
311 bool deterministic, ::google::protobuf::uint8* output)
const;
319 void SetCachedSize(
int size)
const;
322 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
323 return _internal_metadata_.arena();
325 inline void* MaybeArenaPtr()
const {
326 return _internal_metadata_.raw_arena_ptr();
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);
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);
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();
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();
370 int RequiredFieldsByteSizeFallback()
const;
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_;
382 void InitAsDefaultInstance();
400 return _internal_metadata_.unknown_fields();
404 return _internal_metadata_.mutable_unknown_fields();
407 static const ::google::protobuf::Descriptor*
descriptor();
417 void CopyFrom(const ::google::protobuf::Message& from);
418 void MergeFrom(const ::google::protobuf::Message& from);
426 ::google::protobuf::io::CodedInputStream* input);
428 ::google::protobuf::io::CodedOutputStream* output)
const;
430 bool deterministic, ::google::protobuf::uint8* output)
const;
438 void SetCachedSize(
int size)
const;
441 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
442 return _internal_metadata_.arena();
444 inline void* MaybeArenaPtr()
const {
445 return _internal_metadata_.raw_arena_ptr();
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);
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);
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 >&
478 ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >*
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();
489 int RequiredFieldsByteSizeFallback()
const;
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_;
501 void InitAsDefaultInstance();
509 #if !PROTOBUF_INLINE_NOT_IN_HEADERS 514 return (_has_bits_[0] & 0x00000001u) != 0;
516 inline void VectorHeader::set_has_len() {
517 _has_bits_[0] |= 0x00000001u;
519 inline void VectorHeader::clear_has_len() {
520 _has_bits_[0] &= ~0x00000001u;
523 len_ = GOOGLE_ULONGLONG(0);
538 return (_has_bits_[0] & 0x00000002u) != 0;
540 inline void VectorHeader::set_has_num_messages() {
541 _has_bits_[0] |= 0x00000002u;
543 inline void VectorHeader::clear_has_num_messages() {
544 _has_bits_[0] &= ~0x00000002u;
548 clear_has_num_messages();
552 return num_messages_;
555 set_has_num_messages();
556 num_messages_ = value;
566 return (_has_bits_[0] & 0x00000001u) != 0;
568 inline void MatrixHeader::set_has_num_cols() {
569 _has_bits_[0] |= 0x00000001u;
571 inline void MatrixHeader::clear_has_num_cols() {
572 _has_bits_[0] &= ~0x00000001u;
575 num_cols_ = GOOGLE_ULONGLONG(0);
576 clear_has_num_cols();
590 return (_has_bits_[0] & 0x00000002u) != 0;
592 inline void MatrixHeader::set_has_num_rows() {
593 _has_bits_[0] |= 0x00000002u;
595 inline void MatrixHeader::clear_has_num_rows() {
596 _has_bits_[0] &= ~0x00000002u;
599 num_rows_ = GOOGLE_ULONGLONG(0);
600 clear_has_num_rows();
614 return (_has_bits_[0] & 0x00000004u) != 0;
616 inline void MatrixHeader::set_has_num_messages() {
617 _has_bits_[0] |= 0x00000004u;
619 inline void MatrixHeader::clear_has_num_messages() {
620 _has_bits_[0] &= ~0x00000004u;
624 clear_has_num_messages();
628 return num_messages_;
631 set_has_num_messages();
632 num_messages_ = value;
642 return (_has_bits_[0] & 0x00000001u) != 0;
644 inline void SparseMatrixHeader::set_has_num_vectors() {
645 _has_bits_[0] |= 0x00000001u;
647 inline void SparseMatrixHeader::clear_has_num_vectors() {
648 _has_bits_[0] &= ~0x00000001u;
651 num_vectors_ = GOOGLE_ULONGLONG(0);
652 clear_has_num_vectors();
659 set_has_num_vectors();
660 num_vectors_ = value;
666 return (_has_bits_[0] & 0x00000002u) != 0;
668 inline void SparseMatrixHeader::set_has_num_features() {
669 _has_bits_[0] |= 0x00000002u;
671 inline void SparseMatrixHeader::clear_has_num_features() {
672 _has_bits_[0] &= ~0x00000002u;
675 num_features_ = GOOGLE_ULONGLONG(0);
676 clear_has_num_features();
680 return num_features_;
683 set_has_num_features();
684 num_features_ = value;
690 return num_feat_entries_.size();
693 num_feat_entries_.Clear();
697 return num_feat_entries_.Get(index);
700 num_feat_entries_.Set(index, value);
704 num_feat_entries_.Add(value);
707 inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >&
710 return num_feat_entries_;
712 inline ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >*
715 return &num_feat_entries_;
724 return (_has_bits_[0] & 0x00000001u) != 0;
726 inline void StringListHeader::set_has_num_str() {
727 _has_bits_[0] |= 0x00000001u;
729 inline void StringListHeader::clear_has_num_str() {
730 _has_bits_[0] &= ~0x00000001u;
733 num_str_ = GOOGLE_ULONGLONG(0);
748 return (_has_bits_[0] & 0x00000002u) != 0;
750 inline void StringListHeader::set_has_max_string_len() {
751 _has_bits_[0] |= 0x00000002u;
753 inline void StringListHeader::clear_has_max_string_len() {
754 _has_bits_[0] &= ~0x00000002u;
757 max_string_len_ = GOOGLE_ULONGLONG(0);
758 clear_has_max_string_len();
762 return max_string_len_;
765 set_has_max_string_len();
766 max_string_len_ = value;
772 return str_len_.size();
779 return str_len_.Get(index);
782 str_len_.Set(index, value);
789 inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >&
794 inline ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >*
800 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS 814 #endif // PROTOBUF_Headers_2eproto__INCLUDED
void protobuf_ShutdownFile_Headers_2eproto()
void protobuf_AssignDesc_Headers_2eproto()
void protobuf_AddDesc_Headers_2eproto()
all of classes and functions are contained in the shogun namespace