4 #ifndef PROTOBUF_INCLUDED_Headers_2eproto 5 #define PROTOBUF_INCLUDED_Headers_2eproto 9 #include <google/protobuf/stubs/common.h> 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 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. 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> 31 #include <google/protobuf/extension_set.h> 32 #include <google/protobuf/unknown_field_set.h> 34 #define PROTOBUF_INTERNAL_EXPORT_protobuf_Headers_2eproto 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];
44 static const ::google::protobuf::uint32
offsets[];
50 class MatrixHeaderDefaultTypeInternal;
52 class SparseMatrixHeader;
53 class SparseMatrixHeaderDefaultTypeInternal;
55 class StringListHeader;
56 class StringListHeaderDefaultTypeInternal;
59 class VectorHeaderDefaultTypeInternal;
88 *
this = ::std::move(from);
92 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
93 if (
this != &from) InternalSwap(&from);
101 return _internal_metadata_.unknown_fields();
104 return _internal_metadata_.mutable_unknown_fields();
107 static const ::google::protobuf::Descriptor* descriptor();
110 static void InitAsDefaultInstance();
115 static constexpr
int kIndexInFileMessages =
126 return CreateMaybeMessage<VectorHeader>(NULL);
130 return CreateMaybeMessage<VectorHeader>(arena);
132 void CopyFrom(const ::google::protobuf::Message& from)
final;
133 void MergeFrom(const ::google::protobuf::Message& from)
final;
137 bool IsInitialized()
const final;
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;
151 void SetCachedSize(
int size)
const final;
154 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
157 inline void* MaybeArenaPtr()
const {
162 ::google::protobuf::Metadata GetMetadata()
const final;
169 bool has_len()
const;
171 static const int kLenFieldNumber = 1;
172 ::google::protobuf::uint64 len()
const;
173 void set_len(::google::protobuf::uint64 value);
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);
185 void clear_has_len();
186 void set_has_num_messages();
187 void clear_has_num_messages();
190 size_t RequiredFieldsByteSizeFallback()
const;
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;
215 *
this = ::std::move(from);
219 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
220 if (
this != &from) InternalSwap(&from);
228 return _internal_metadata_.unknown_fields();
231 return _internal_metadata_.mutable_unknown_fields();
234 static const ::google::protobuf::Descriptor* descriptor();
237 static void InitAsDefaultInstance();
242 static constexpr
int kIndexInFileMessages =
253 return CreateMaybeMessage<MatrixHeader>(NULL);
257 return CreateMaybeMessage<MatrixHeader>(arena);
259 void CopyFrom(const ::google::protobuf::Message& from)
final;
260 void MergeFrom(const ::google::protobuf::Message& from)
final;
264 bool IsInitialized()
const final;
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;
278 void SetCachedSize(
int size)
const final;
281 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
284 inline void* MaybeArenaPtr()
const {
289 ::google::protobuf::Metadata GetMetadata()
const final;
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);
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);
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);
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();
326 size_t RequiredFieldsByteSizeFallback()
const;
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;
352 *
this = ::std::move(from);
356 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
357 if (
this != &from) InternalSwap(&from);
365 return _internal_metadata_.unknown_fields();
368 return _internal_metadata_.mutable_unknown_fields();
371 static const ::google::protobuf::Descriptor* descriptor();
374 static void InitAsDefaultInstance();
379 static constexpr
int kIndexInFileMessages =
390 return CreateMaybeMessage<SparseMatrixHeader>(NULL);
394 return CreateMaybeMessage<SparseMatrixHeader>(arena);
396 void CopyFrom(const ::google::protobuf::Message& from)
final;
397 void MergeFrom(const ::google::protobuf::Message& from)
final;
401 bool IsInitialized()
const final;
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;
415 void SetCachedSize(
int size)
const final;
418 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
421 inline void* MaybeArenaPtr()
const {
426 ::google::protobuf::Metadata GetMetadata()
const final;
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();
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);
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);
460 void set_has_num_vectors();
461 void clear_has_num_vectors();
462 void set_has_num_features();
463 void clear_has_num_features();
466 size_t RequiredFieldsByteSizeFallback()
const;
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;
492 *
this = ::std::move(from);
496 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
497 if (
this != &from) InternalSwap(&from);
505 return _internal_metadata_.unknown_fields();
508 return _internal_metadata_.mutable_unknown_fields();
511 static const ::google::protobuf::Descriptor* descriptor();
514 static void InitAsDefaultInstance();
519 static constexpr
int kIndexInFileMessages =
530 return CreateMaybeMessage<StringListHeader>(NULL);
534 return CreateMaybeMessage<StringListHeader>(arena);
536 void CopyFrom(const ::google::protobuf::Message& from)
final;
537 void MergeFrom(const ::google::protobuf::Message& from)
final;
541 bool IsInitialized()
const final;
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;
555 void SetCachedSize(
int size)
const final;
558 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
561 inline void* MaybeArenaPtr()
const {
566 ::google::protobuf::Metadata GetMetadata()
const final;
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 >&
581 ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >*
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);
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);
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();
606 size_t RequiredFieldsByteSizeFallback()
const;
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;
622 #pragma GCC diagnostic push 623 #pragma GCC diagnostic ignored "-Wstrict-aliasing" 628 inline bool VectorHeader::has_len()
const {
629 return (_has_bits_[0] & 0x00000001u) != 0;
631 inline void VectorHeader::set_has_len() {
632 _has_bits_[0] |= 0x00000001u;
634 inline void VectorHeader::clear_has_len() {
635 _has_bits_[0] &= ~0x00000001u;
637 inline void VectorHeader::clear_len() {
638 len_ = GOOGLE_ULONGLONG(0);
641 inline ::google::protobuf::uint64 VectorHeader::len()
const {
645 inline void VectorHeader::set_len(::google::protobuf::uint64 value) {
652 inline bool VectorHeader::has_num_messages()
const {
653 return (_has_bits_[0] & 0x00000002u) != 0;
655 inline void VectorHeader::set_has_num_messages() {
656 _has_bits_[0] |= 0x00000002u;
658 inline void VectorHeader::clear_has_num_messages() {
659 _has_bits_[0] &= ~0x00000002u;
661 inline void VectorHeader::clear_num_messages() {
663 clear_has_num_messages();
665 inline ::google::protobuf::uint32 VectorHeader::num_messages()
const {
667 return num_messages_;
669 inline void VectorHeader::set_num_messages(::google::protobuf::uint32 value) {
670 set_has_num_messages();
671 num_messages_ = value;
680 inline bool MatrixHeader::has_num_cols()
const {
681 return (_has_bits_[0] & 0x00000001u) != 0;
683 inline void MatrixHeader::set_has_num_cols() {
684 _has_bits_[0] |= 0x00000001u;
686 inline void MatrixHeader::clear_has_num_cols() {
687 _has_bits_[0] &= ~0x00000001u;
689 inline void MatrixHeader::clear_num_cols() {
690 num_cols_ = GOOGLE_ULONGLONG(0);
691 clear_has_num_cols();
693 inline ::google::protobuf::uint64 MatrixHeader::num_cols()
const {
697 inline void MatrixHeader::set_num_cols(::google::protobuf::uint64 value) {
704 inline bool MatrixHeader::has_num_rows()
const {
705 return (_has_bits_[0] & 0x00000002u) != 0;
707 inline void MatrixHeader::set_has_num_rows() {
708 _has_bits_[0] |= 0x00000002u;
710 inline void MatrixHeader::clear_has_num_rows() {
711 _has_bits_[0] &= ~0x00000002u;
713 inline void MatrixHeader::clear_num_rows() {
714 num_rows_ = GOOGLE_ULONGLONG(0);
715 clear_has_num_rows();
717 inline ::google::protobuf::uint64 MatrixHeader::num_rows()
const {
721 inline void MatrixHeader::set_num_rows(::google::protobuf::uint64 value) {
728 inline bool MatrixHeader::has_num_messages()
const {
729 return (_has_bits_[0] & 0x00000004u) != 0;
731 inline void MatrixHeader::set_has_num_messages() {
732 _has_bits_[0] |= 0x00000004u;
734 inline void MatrixHeader::clear_has_num_messages() {
735 _has_bits_[0] &= ~0x00000004u;
737 inline void MatrixHeader::clear_num_messages() {
739 clear_has_num_messages();
741 inline ::google::protobuf::uint32 MatrixHeader::num_messages()
const {
743 return num_messages_;
745 inline void MatrixHeader::set_num_messages(::google::protobuf::uint32 value) {
746 set_has_num_messages();
747 num_messages_ = value;
756 inline bool SparseMatrixHeader::has_num_vectors()
const {
757 return (_has_bits_[0] & 0x00000001u) != 0;
759 inline void SparseMatrixHeader::set_has_num_vectors() {
760 _has_bits_[0] |= 0x00000001u;
762 inline void SparseMatrixHeader::clear_has_num_vectors() {
763 _has_bits_[0] &= ~0x00000001u;
765 inline void SparseMatrixHeader::clear_num_vectors() {
766 num_vectors_ = GOOGLE_ULONGLONG(0);
767 clear_has_num_vectors();
769 inline ::google::protobuf::uint64 SparseMatrixHeader::num_vectors()
const {
773 inline void SparseMatrixHeader::set_num_vectors(::google::protobuf::uint64 value) {
774 set_has_num_vectors();
775 num_vectors_ = value;
780 inline bool SparseMatrixHeader::has_num_features()
const {
781 return (_has_bits_[0] & 0x00000002u) != 0;
783 inline void SparseMatrixHeader::set_has_num_features() {
784 _has_bits_[0] |= 0x00000002u;
786 inline void SparseMatrixHeader::clear_has_num_features() {
787 _has_bits_[0] &= ~0x00000002u;
789 inline void SparseMatrixHeader::clear_num_features() {
790 num_features_ = GOOGLE_ULONGLONG(0);
791 clear_has_num_features();
793 inline ::google::protobuf::uint64 SparseMatrixHeader::num_features()
const {
795 return num_features_;
797 inline void SparseMatrixHeader::set_num_features(::google::protobuf::uint64 value) {
798 set_has_num_features();
799 num_features_ = value;
804 inline int SparseMatrixHeader::num_feat_entries_size()
const {
805 return num_feat_entries_.size();
807 inline void SparseMatrixHeader::clear_num_feat_entries() {
808 num_feat_entries_.Clear();
810 inline ::google::protobuf::uint64 SparseMatrixHeader::num_feat_entries(
int index)
const {
812 return num_feat_entries_.Get(index);
814 inline void SparseMatrixHeader::set_num_feat_entries(
int index, ::google::protobuf::uint64 value) {
815 num_feat_entries_.Set(index, value);
818 inline void SparseMatrixHeader::add_num_feat_entries(::google::protobuf::uint64 value) {
819 num_feat_entries_.Add(value);
822 inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >&
823 SparseMatrixHeader::num_feat_entries()
const {
825 return num_feat_entries_;
827 inline ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >*
828 SparseMatrixHeader::mutable_num_feat_entries() {
830 return &num_feat_entries_;
838 inline bool StringListHeader::has_num_str()
const {
839 return (_has_bits_[0] & 0x00000001u) != 0;
841 inline void StringListHeader::set_has_num_str() {
842 _has_bits_[0] |= 0x00000001u;
844 inline void StringListHeader::clear_has_num_str() {
845 _has_bits_[0] &= ~0x00000001u;
847 inline void StringListHeader::clear_num_str() {
848 num_str_ = GOOGLE_ULONGLONG(0);
851 inline ::google::protobuf::uint64 StringListHeader::num_str()
const {
855 inline void StringListHeader::set_num_str(::google::protobuf::uint64 value) {
862 inline bool StringListHeader::has_max_string_len()
const {
863 return (_has_bits_[0] & 0x00000002u) != 0;
865 inline void StringListHeader::set_has_max_string_len() {
866 _has_bits_[0] |= 0x00000002u;
868 inline void StringListHeader::clear_has_max_string_len() {
869 _has_bits_[0] &= ~0x00000002u;
871 inline void StringListHeader::clear_max_string_len() {
872 max_string_len_ = GOOGLE_ULONGLONG(0);
873 clear_has_max_string_len();
875 inline ::google::protobuf::uint64 StringListHeader::max_string_len()
const {
877 return max_string_len_;
879 inline void StringListHeader::set_max_string_len(::google::protobuf::uint64 value) {
880 set_has_max_string_len();
881 max_string_len_ = value;
886 inline int StringListHeader::str_len_size()
const {
887 return str_len_.size();
889 inline void StringListHeader::clear_str_len() {
892 inline ::google::protobuf::uint64 StringListHeader::str_len(
int index)
const {
894 return str_len_.Get(index);
896 inline void StringListHeader::set_str_len(
int index, ::google::protobuf::uint64 value) {
897 str_len_.Set(index, value);
900 inline void StringListHeader::add_str_len(::google::protobuf::uint64 value) {
904 inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >&
905 StringListHeader::str_len()
const {
909 inline ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >*
910 StringListHeader::mutable_str_len() {
916 #pragma GCC diagnostic pop 931 #endif // PROTOBUF_INCLUDED_Headers_2eproto
MatrixHeaderDefaultTypeInternal _MatrixHeader_default_instance_
StringListHeaderDefaultTypeInternal _StringListHeader_default_instance_
VectorHeaderDefaultTypeInternal _VectorHeader_default_instance_
all of classes and functions are contained in the shogun namespace
SparseMatrixHeaderDefaultTypeInternal _SparseMatrixHeader_default_instance_