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_ShogunVersion_2eproto__INCLUDED
5 #define PROTOBUF_ShogunVersion_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/generated_enum_reflection.h>
30 #include <google/protobuf/unknown_field_set.h>
31 // @@protoc_insertion_point(includes)
32 
33 namespace shogun {
34 
35 // Internal implementation detail -- do not call these.
39 
40 class ShogunVersion;
41 
48 };
49 bool ShogunVersion_SGDataType_IsValid(int value);
52 const int ShogunVersion_SGDataType_SGDataType_ARRAYSIZE = ShogunVersion_SGDataType_SGDataType_MAX + 1;
53 
54 const ::google::protobuf::EnumDescriptor* ShogunVersion_SGDataType_descriptor();
55 inline const ::std::string& ShogunVersion_SGDataType_Name(ShogunVersion_SGDataType value) {
56  return ::google::protobuf::internal::NameOfEnum(
58 }
60  const ::std::string& name, ShogunVersion_SGDataType* value) {
61  return ::google::protobuf::internal::ParseNamedEnum<ShogunVersion_SGDataType>(
63 }
64 // ===================================================================
65 
66 class ShogunVersion : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:shogun.ShogunVersion) */ {
67  public:
68  ShogunVersion();
69  virtual ~ShogunVersion();
70 
71  ShogunVersion(const ShogunVersion& from);
72 
73  inline ShogunVersion& operator=(const ShogunVersion& from) {
74  CopyFrom(from);
75  return *this;
76  }
77 
78  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
79  return _internal_metadata_.unknown_fields();
80  }
81 
82  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
83  return _internal_metadata_.mutable_unknown_fields();
84  }
85 
86  static const ::google::protobuf::Descriptor* descriptor();
87  static const ShogunVersion& default_instance();
88 
89  void Swap(ShogunVersion* other);
90 
91  // implements Message ----------------------------------------------
92 
93  inline ShogunVersion* New() const { return New(NULL); }
94 
95  ShogunVersion* New(::google::protobuf::Arena* arena) const;
96  void CopyFrom(const ::google::protobuf::Message& from);
97  void MergeFrom(const ::google::protobuf::Message& from);
98  void CopyFrom(const ShogunVersion& from);
99  void MergeFrom(const ShogunVersion& from);
100  void Clear();
101  bool IsInitialized() const;
102 
103  int ByteSize() const;
105  ::google::protobuf::io::CodedInputStream* input);
107  ::google::protobuf::io::CodedOutputStream* output) const;
108  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
109  bool deterministic, ::google::protobuf::uint8* output) const;
110  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const {
111  return InternalSerializeWithCachedSizesToArray(false, output);
112  }
113  int GetCachedSize() const { return _cached_size_; }
114  private:
115  void SharedCtor();
116  void SharedDtor();
117  void SetCachedSize(int size) const;
118  void InternalSwap(ShogunVersion* other);
119  private:
120  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
121  return _internal_metadata_.arena();
122  }
123  inline void* MaybeArenaPtr() const {
124  return _internal_metadata_.raw_arena_ptr();
125  }
126  public:
127 
128  ::google::protobuf::Metadata GetMetadata() const;
129 
130  // nested types ----------------------------------------------------
131 
133  static const SGDataType VECTOR =
135  static const SGDataType MATRIX =
137  static const SGDataType SPARSE_VECTOR =
139  static const SGDataType SPARSE_MATRIX =
141  static const SGDataType STRING_LIST =
143  static inline bool SGDataType_IsValid(int value) {
144  return ShogunVersion_SGDataType_IsValid(value);
145  }
146  static const SGDataType SGDataType_MIN =
148  static const SGDataType SGDataType_MAX =
150  static const int SGDataType_ARRAYSIZE =
152  static inline const ::google::protobuf::EnumDescriptor*
155  }
156  static inline const ::std::string& SGDataType_Name(SGDataType value) {
157  return ShogunVersion_SGDataType_Name(value);
158  }
159  static inline bool SGDataType_Parse(const ::std::string& name,
160  SGDataType* value) {
161  return ShogunVersion_SGDataType_Parse(name, value);
162  }
163 
164  // accessors -------------------------------------------------------
165 
166  // required int32 version = 1;
167  bool has_version() const;
168  void clear_version();
169  static const int kVersionFieldNumber = 1;
170  ::google::protobuf::int32 version() const;
171  void set_version(::google::protobuf::int32 value);
172 
173  // required .shogun.ShogunVersion.SGDataType data_type = 2;
174  bool has_data_type() const;
175  void clear_data_type();
176  static const int kDataTypeFieldNumber = 2;
179 
180  // @@protoc_insertion_point(class_scope:shogun.ShogunVersion)
181  private:
182  inline void set_has_version();
183  inline void clear_has_version();
184  inline void set_has_data_type();
185  inline void clear_has_data_type();
186 
187  // helper for ByteSize()
188  int RequiredFieldsByteSizeFallback() const;
189 
190  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
191  ::google::protobuf::uint32 _has_bits_[1];
192  mutable int _cached_size_;
193  ::google::protobuf::int32 version_;
194  int data_type_;
198 
199  void InitAsDefaultInstance();
200  static ShogunVersion* default_instance_;
201 };
202 // ===================================================================
203 
204 
205 // ===================================================================
206 
207 #if !PROTOBUF_INLINE_NOT_IN_HEADERS
208 // ShogunVersion
209 
210 // required int32 version = 1;
211 inline bool ShogunVersion::has_version() const {
212  return (_has_bits_[0] & 0x00000001u) != 0;
213 }
214 inline void ShogunVersion::set_has_version() {
215  _has_bits_[0] |= 0x00000001u;
216 }
217 inline void ShogunVersion::clear_has_version() {
218  _has_bits_[0] &= ~0x00000001u;
219 }
221  version_ = 0;
222  clear_has_version();
223 }
224 inline ::google::protobuf::int32 ShogunVersion::version() const {
225  // @@protoc_insertion_point(field_get:shogun.ShogunVersion.version)
226  return version_;
227 }
228 inline void ShogunVersion::set_version(::google::protobuf::int32 value) {
229  set_has_version();
230  version_ = value;
231  // @@protoc_insertion_point(field_set:shogun.ShogunVersion.version)
232 }
233 
234 // required .shogun.ShogunVersion.SGDataType data_type = 2;
235 inline bool ShogunVersion::has_data_type() const {
236  return (_has_bits_[0] & 0x00000002u) != 0;
237 }
238 inline void ShogunVersion::set_has_data_type() {
239  _has_bits_[0] |= 0x00000002u;
240 }
241 inline void ShogunVersion::clear_has_data_type() {
242  _has_bits_[0] &= ~0x00000002u;
243 }
245  data_type_ = 1;
246  clear_has_data_type();
247 }
249  // @@protoc_insertion_point(field_get:shogun.ShogunVersion.data_type)
250  return static_cast< ::shogun::ShogunVersion_SGDataType >(data_type_);
251 }
254  set_has_data_type();
255  data_type_ = value;
256  // @@protoc_insertion_point(field_set:shogun.ShogunVersion.data_type)
257 }
258 
259 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS
260 
261 // @@protoc_insertion_point(namespace_scope)
262 
263 } // namespace shogun
264 
265 #ifndef SWIG
266 namespace google {
267 namespace protobuf {
268 
269 template <> struct is_proto_enum< ::shogun::ShogunVersion_SGDataType> : ::google::protobuf::internal::true_type {};
270 template <>
271 inline const EnumDescriptor* GetEnumDescriptor< ::shogun::ShogunVersion_SGDataType>() {
273 }
274 
275 } // namespace protobuf
276 } // namespace google
277 #endif // SWIG
278 
279 // @@protoc_insertion_point(global_scope)
280 
281 #endif // PROTOBUF_ShogunVersion_2eproto__INCLUDED
const ::google::protobuf::EnumDescriptor * ShogunVersion_SGDataType_descriptor()
bool MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream *input)
static const int SGDataType_ARRAYSIZE
static const SGDataType SGDataType_MAX
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
bool ShogunVersion_SGDataType_IsValid(int value)
::shogun::ShogunVersion_SGDataType data_type() const
void set_data_type(::shogun::ShogunVersion_SGDataType value)
void protobuf_ShutdownFile_ShogunVersion_2eproto()
static const SGDataType SGDataType_MIN
ShogunVersion_SGDataType SGDataType
static const int kDataTypeFieldNumber
ShogunVersion * New() const
static bool SGDataType_IsValid(int value)
::google::protobuf::uint8 * InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 *output) const
inline::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
static const SGDataType STRING_LIST
::google::protobuf::Metadata GetMetadata() const
void protobuf_AssignDesc_ShogunVersion_2eproto()
static const ::google::protobuf::Descriptor * descriptor()
const ShogunVersion_SGDataType ShogunVersion_SGDataType_SGDataType_MAX
const int ShogunVersion_SGDataType_SGDataType_ARRAYSIZE
const ::std::string & ShogunVersion_SGDataType_Name(ShogunVersion_SGDataType value)
void CopyFrom(const ::google::protobuf::Message &from)
friend void protobuf_AddDesc_ShogunVersion_2eproto()
void set_version(::google::protobuf::int32 value)
static const SGDataType SPARSE_VECTOR
static const SGDataType MATRIX
void SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream *output) const
ShogunVersion & operator=(const ShogunVersion &from)
static const SGDataType SPARSE_MATRIX
static const ::google::protobuf::EnumDescriptor * SGDataType_descriptor()
friend void protobuf_AssignDesc_ShogunVersion_2eproto()
static const ::std::string & SGDataType_Name(SGDataType value)
static const ShogunVersion & default_instance()
const ShogunVersion_SGDataType ShogunVersion_SGDataType_SGDataType_MIN
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
void protobuf_AddDesc_ShogunVersion_2eproto()
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)
void MergeFrom(const ::google::protobuf::Message &from)
::google::protobuf::int32 version() const
bool has_data_type() const
static const SGDataType VECTOR
friend void protobuf_ShutdownFile_ShogunVersion_2eproto()
static const int kVersionFieldNumber
ShogunVersion_SGDataType
int ByteSize() const
static bool SGDataType_Parse(const ::std::string &name, SGDataType *value)
bool IsInitialized() const

SHOGUN Machine Learning Toolbox - Documentation