SHOGUN  v3.2.0
ShogunVersion.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: ShogunVersion.proto
3 
4 #ifndef PROTOBUF_INCLUDED_ShogunVersion_2eproto
5 #define PROTOBUF_INCLUDED_ShogunVersion_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/generated_enum_reflection.h>
33 #include <google/protobuf/unknown_field_set.h>
34 // @@protoc_insertion_point(includes)
35 #define PROTOBUF_INTERNAL_EXPORT_protobuf_ShogunVersion_2eproto
36 
38 // Internal implementation detail -- do not use these members.
39 struct TableStruct {
40  static const ::google::protobuf::internal::ParseTableField entries[];
41  static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
42  static const ::google::protobuf::internal::ParseTable schema[1];
43  static const ::google::protobuf::internal::FieldMetadata field_metadata[];
44  static const ::google::protobuf::internal::SerializationTable serialization_table[];
45  static const ::google::protobuf::uint32 offsets[];
46 };
47 void AddDescriptors();
48 } // namespace protobuf_ShogunVersion_2eproto
49 namespace shogun {
50 class ShogunVersion;
51 class ShogunVersionDefaultTypeInternal;
52 extern ShogunVersionDefaultTypeInternal _ShogunVersion_default_instance_;
53 } // namespace shogun
54 namespace google {
55 namespace protobuf {
56 template<> ::shogun::ShogunVersion* Arena::CreateMaybeMessage<::shogun::ShogunVersion>(Arena*);
57 } // namespace protobuf
58 } // namespace google
59 namespace shogun {
60 
67 };
68 bool ShogunVersion_SGDataType_IsValid(int value);
71 const int ShogunVersion_SGDataType_SGDataType_ARRAYSIZE = ShogunVersion_SGDataType_SGDataType_MAX + 1;
72 
73 const ::google::protobuf::EnumDescriptor* ShogunVersion_SGDataType_descriptor();
74 inline const ::std::string& ShogunVersion_SGDataType_Name(ShogunVersion_SGDataType value) {
75  return ::google::protobuf::internal::NameOfEnum(
77 }
79  const ::std::string& name, ShogunVersion_SGDataType* value) {
80  return ::google::protobuf::internal::ParseNamedEnum<ShogunVersion_SGDataType>(
82 }
83 // ===================================================================
84 
85 class ShogunVersion : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:shogun.ShogunVersion) */ {
86  public:
87  ShogunVersion();
88  virtual ~ShogunVersion();
89 
90  ShogunVersion(const ShogunVersion& from);
91 
92  inline ShogunVersion& operator=(const ShogunVersion& from) {
93  CopyFrom(from);
94  return *this;
95  }
96  #if LANG_CXX11
97  ShogunVersion(ShogunVersion&& from) noexcept
98  : ShogunVersion() {
99  *this = ::std::move(from);
100  }
101 
102  inline ShogunVersion& operator=(ShogunVersion&& from) noexcept {
103  if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
104  if (this != &from) InternalSwap(&from);
105  } else {
106  CopyFrom(from);
107  }
108  return *this;
109  }
110  #endif
111  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
112  return _internal_metadata_.unknown_fields();
113  }
114  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
115  return _internal_metadata_.mutable_unknown_fields();
116  }
117 
118  static const ::google::protobuf::Descriptor* descriptor();
119  static const ShogunVersion& default_instance();
120 
121  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
122  static inline const ShogunVersion* internal_default_instance() {
123  return reinterpret_cast<const ShogunVersion*>(
125  }
126  static constexpr int kIndexInFileMessages =
127  0;
128 
129  void Swap(ShogunVersion* other);
130  friend void swap(ShogunVersion& a, ShogunVersion& b) {
131  a.Swap(&b);
132  }
133 
134  // implements Message ----------------------------------------------
135 
136  inline ShogunVersion* New() const final {
137  return CreateMaybeMessage<ShogunVersion>(NULL);
138  }
139 
140  ShogunVersion* New(::google::protobuf::Arena* arena) const final {
141  return CreateMaybeMessage<ShogunVersion>(arena);
142  }
143  void CopyFrom(const ::google::protobuf::Message& from) final;
144  void MergeFrom(const ::google::protobuf::Message& from) final;
145  void CopyFrom(const ShogunVersion& from);
146  void MergeFrom(const ShogunVersion& from);
147  void Clear() final;
148  bool IsInitialized() const final;
149 
150  size_t ByteSizeLong() const final;
151  bool MergePartialFromCodedStream(
152  ::google::protobuf::io::CodedInputStream* input) final;
153  void SerializeWithCachedSizes(
154  ::google::protobuf::io::CodedOutputStream* output) const final;
155  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
156  bool deterministic, ::google::protobuf::uint8* target) const final;
157  int GetCachedSize() const final { return _cached_size_.Get(); }
158 
159  private:
160  void SharedCtor();
161  void SharedDtor();
162  void SetCachedSize(int size) const final;
163  void InternalSwap(ShogunVersion* other);
164  private:
165  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
166  return NULL;
167  }
168  inline void* MaybeArenaPtr() const {
169  return NULL;
170  }
171  public:
172 
173  ::google::protobuf::Metadata GetMetadata() const final;
174 
175  // nested types ----------------------------------------------------
176 
178  static const SGDataType VECTOR =
180  static const SGDataType MATRIX =
182  static const SGDataType SPARSE_VECTOR =
184  static const SGDataType SPARSE_MATRIX =
186  static const SGDataType STRING_LIST =
188  static inline bool SGDataType_IsValid(int value) {
189  return ShogunVersion_SGDataType_IsValid(value);
190  }
191  static const SGDataType SGDataType_MIN =
193  static const SGDataType SGDataType_MAX =
195  static const int SGDataType_ARRAYSIZE =
197  static inline const ::google::protobuf::EnumDescriptor*
200  }
201  static inline const ::std::string& SGDataType_Name(SGDataType value) {
202  return ShogunVersion_SGDataType_Name(value);
203  }
204  static inline bool SGDataType_Parse(const ::std::string& name,
205  SGDataType* value) {
206  return ShogunVersion_SGDataType_Parse(name, value);
207  }
208 
209  // accessors -------------------------------------------------------
210 
211  // required int32 version = 1;
212  bool has_version() const;
213  void clear_version();
214  static const int kVersionFieldNumber = 1;
215  ::google::protobuf::int32 version() const;
216  void set_version(::google::protobuf::int32 value);
217 
218  // required .shogun.ShogunVersion.SGDataType data_type = 2;
219  bool has_data_type() const;
220  void clear_data_type();
221  static const int kDataTypeFieldNumber = 2;
222  ::shogun::ShogunVersion_SGDataType data_type() const;
223  void set_data_type(::shogun::ShogunVersion_SGDataType value);
224 
225  // @@protoc_insertion_point(class_scope:shogun.ShogunVersion)
226  private:
227  void set_has_version();
228  void clear_has_version();
229  void set_has_data_type();
230  void clear_has_data_type();
231 
232  // helper for ByteSizeLong()
233  size_t RequiredFieldsByteSizeFallback() const;
234 
235  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
236  ::google::protobuf::internal::HasBits<1> _has_bits_;
237  mutable ::google::protobuf::internal::CachedSize _cached_size_;
238  ::google::protobuf::int32 version_;
239  int data_type_;
240  friend struct ::protobuf_ShogunVersion_2eproto::TableStruct;
241 };
242 // ===================================================================
243 
244 
245 // ===================================================================
246 
247 #ifdef __GNUC__
248  #pragma GCC diagnostic push
249  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
250 #endif // __GNUC__
251 // ShogunVersion
252 
253 // required int32 version = 1;
254 inline bool ShogunVersion::has_version() const {
255  return (_has_bits_[0] & 0x00000001u) != 0;
256 }
257 inline void ShogunVersion::set_has_version() {
258  _has_bits_[0] |= 0x00000001u;
259 }
260 inline void ShogunVersion::clear_has_version() {
261  _has_bits_[0] &= ~0x00000001u;
262 }
263 inline void ShogunVersion::clear_version() {
264  version_ = 0;
265  clear_has_version();
266 }
267 inline ::google::protobuf::int32 ShogunVersion::version() const {
268  // @@protoc_insertion_point(field_get:shogun.ShogunVersion.version)
269  return version_;
270 }
271 inline void ShogunVersion::set_version(::google::protobuf::int32 value) {
272  set_has_version();
273  version_ = value;
274  // @@protoc_insertion_point(field_set:shogun.ShogunVersion.version)
275 }
276 
277 // required .shogun.ShogunVersion.SGDataType data_type = 2;
278 inline bool ShogunVersion::has_data_type() const {
279  return (_has_bits_[0] & 0x00000002u) != 0;
280 }
281 inline void ShogunVersion::set_has_data_type() {
282  _has_bits_[0] |= 0x00000002u;
283 }
284 inline void ShogunVersion::clear_has_data_type() {
285  _has_bits_[0] &= ~0x00000002u;
286 }
287 inline void ShogunVersion::clear_data_type() {
288  data_type_ = 1;
289  clear_has_data_type();
290 }
291 inline ::shogun::ShogunVersion_SGDataType ShogunVersion::data_type() const {
292  // @@protoc_insertion_point(field_get:shogun.ShogunVersion.data_type)
293  return static_cast< ::shogun::ShogunVersion_SGDataType >(data_type_);
294 }
295 inline void ShogunVersion::set_data_type(::shogun::ShogunVersion_SGDataType value) {
297  set_has_data_type();
298  data_type_ = value;
299  // @@protoc_insertion_point(field_set:shogun.ShogunVersion.data_type)
300 }
301 
302 #ifdef __GNUC__
303  #pragma GCC diagnostic pop
304 #endif // __GNUC__
305 
306 // @@protoc_insertion_point(namespace_scope)
307 
308 } // namespace shogun
309 
310 namespace google {
311 namespace protobuf {
312 
313 template <> struct is_proto_enum< ::shogun::ShogunVersion_SGDataType> : ::std::true_type {};
314 template <>
315 inline const EnumDescriptor* GetEnumDescriptor< ::shogun::ShogunVersion_SGDataType>() {
317 }
318 
319 } // namespace protobuf
320 } // namespace google
321 
322 // @@protoc_insertion_point(global_scope)
323 
324 #endif // PROTOBUF_INCLUDED_ShogunVersion_2eproto
const ::google::protobuf::EnumDescriptor * ShogunVersion_SGDataType_descriptor()
friend void swap(ShogunVersion &a, ShogunVersion &b)
ShogunVersion * New(::google::protobuf::Arena *arena) const final
bool ShogunVersion_SGDataType_IsValid(int value)
static const ::google::protobuf::internal::AuxillaryParseTableField aux[]
ShogunVersion_SGDataType SGDataType
static const ::google::protobuf::internal::ParseTableField entries[]
static bool SGDataType_IsValid(int value)
inline ::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
ShogunVersionDefaultTypeInternal _ShogunVersion_default_instance_
int GetCachedSize() const final
static const ::google::protobuf::internal::SerializationTable serialization_table[]
const ShogunVersion_SGDataType ShogunVersion_SGDataType_SGDataType_MAX
const int ShogunVersion_SGDataType_SGDataType_ARRAYSIZE
const ::std::string & ShogunVersion_SGDataType_Name(ShogunVersion_SGDataType value)
static const ShogunVersion * internal_default_instance()
ShogunVersion * New() const final
ShogunVersion & operator=(const ShogunVersion &from)
static const ::google::protobuf::EnumDescriptor * SGDataType_descriptor()
static const ::std::string & SGDataType_Name(SGDataType value)
static const ::google::protobuf::uint32 offsets[]
static const ::google::protobuf::internal::ParseTable schema[1]
const ShogunVersion_SGDataType ShogunVersion_SGDataType_SGDataType_MIN
bool ShogunVersion_SGDataType_Parse(const ::std::string &name, ShogunVersion_SGDataType *value)
all of classes and functions are contained in the shogun namespace
Definition: class_list.h:16
void Swap(ShogunVersion *other)
static const ::google::protobuf::internal::FieldMetadata field_metadata[]
ShogunVersion_SGDataType
static bool SGDataType_Parse(const ::std::string &name, SGDataType *value)
const ::google::protobuf::UnknownFieldSet & unknown_fields() const

SHOGUN Machine Learning Toolbox - Documentation