SHOGUN  v3.2.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules
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 < 2006000
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 2006000 < 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/generated_message_util.h>
23 #include <google/protobuf/message.h>
24 #include <google/protobuf/repeated_field.h>
25 #include <google/protobuf/extension_set.h>
26 #include <google/protobuf/generated_enum_reflection.h>
27 #include <google/protobuf/unknown_field_set.h>
28 // @@protoc_insertion_point(includes)
29 
30 namespace shogun {
31 
32 // Internal implementation detail -- do not call these.
36 
37 class ShogunVersion;
38 
45 };
46 bool ShogunVersion_SGDataType_IsValid(int value);
49 const int ShogunVersion_SGDataType_SGDataType_ARRAYSIZE = ShogunVersion_SGDataType_SGDataType_MAX + 1;
50 
51 const ::google::protobuf::EnumDescriptor* ShogunVersion_SGDataType_descriptor();
52 inline const ::std::string& ShogunVersion_SGDataType_Name(ShogunVersion_SGDataType value) {
53  return ::google::protobuf::internal::NameOfEnum(
55 }
57  const ::std::string& name, ShogunVersion_SGDataType* value) {
58  return ::google::protobuf::internal::ParseNamedEnum<ShogunVersion_SGDataType>(
60 }
61 // ===================================================================
62 
63 class ShogunVersion : public ::google::protobuf::Message {
64  public:
65  ShogunVersion();
66  virtual ~ShogunVersion();
67 
68  ShogunVersion(const ShogunVersion& from);
69 
70  inline ShogunVersion& operator=(const ShogunVersion& from) {
71  CopyFrom(from);
72  return *this;
73  }
74 
75  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
76  return _unknown_fields_;
77  }
78 
79  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
80  return &_unknown_fields_;
81  }
82 
83  static const ::google::protobuf::Descriptor* descriptor();
84  static const ShogunVersion& default_instance();
85 
86  void Swap(ShogunVersion* other);
87 
88  // implements Message ----------------------------------------------
89 
90  ShogunVersion* New() const;
91  void CopyFrom(const ::google::protobuf::Message& from);
92  void MergeFrom(const ::google::protobuf::Message& from);
93  void CopyFrom(const ShogunVersion& from);
94  void MergeFrom(const ShogunVersion& from);
95  void Clear();
96  bool IsInitialized() const;
97 
98  int ByteSize() const;
100  ::google::protobuf::io::CodedInputStream* input);
102  ::google::protobuf::io::CodedOutputStream* output) const;
103  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
104  int GetCachedSize() const { return _cached_size_; }
105  private:
106  void SharedCtor();
107  void SharedDtor();
108  void SetCachedSize(int size) const;
109  public:
110  ::google::protobuf::Metadata GetMetadata() const;
111 
112  // nested types ----------------------------------------------------
113 
115  static const SGDataType VECTOR = ShogunVersion_SGDataType_VECTOR;
116  static const SGDataType MATRIX = ShogunVersion_SGDataType_MATRIX;
120  static inline bool SGDataType_IsValid(int value) {
121  return ShogunVersion_SGDataType_IsValid(value);
122  }
123  static const SGDataType SGDataType_MIN =
125  static const SGDataType SGDataType_MAX =
127  static const int SGDataType_ARRAYSIZE =
129  static inline const ::google::protobuf::EnumDescriptor*
132  }
133  static inline const ::std::string& SGDataType_Name(SGDataType value) {
134  return ShogunVersion_SGDataType_Name(value);
135  }
136  static inline bool SGDataType_Parse(const ::std::string& name,
137  SGDataType* value) {
138  return ShogunVersion_SGDataType_Parse(name, value);
139  }
140 
141  // accessors -------------------------------------------------------
142 
143  // required int32 version = 1;
144  inline bool has_version() const;
145  inline void clear_version();
146  static const int kVersionFieldNumber = 1;
147  inline ::google::protobuf::int32 version() const;
148  inline void set_version(::google::protobuf::int32 value);
149 
150  // required .shogun.ShogunVersion.SGDataType data_type = 2;
151  inline bool has_data_type() const;
152  inline void clear_data_type();
153  static const int kDataTypeFieldNumber = 2;
155  inline void set_data_type(::shogun::ShogunVersion_SGDataType value);
156 
157  // @@protoc_insertion_point(class_scope:shogun.ShogunVersion)
158  private:
159  inline void set_has_version();
160  inline void clear_has_version();
161  inline void set_has_data_type();
162  inline void clear_has_data_type();
163 
164  ::google::protobuf::UnknownFieldSet _unknown_fields_;
165 
166  ::google::protobuf::uint32 _has_bits_[1];
167  mutable int _cached_size_;
168  ::google::protobuf::int32 version_;
169  int data_type_;
173 
174  void InitAsDefaultInstance();
175  static ShogunVersion* default_instance_;
176 };
177 // ===================================================================
178 
179 
180 // ===================================================================
181 
182 // ShogunVersion
183 
184 // required int32 version = 1;
185 inline bool ShogunVersion::has_version() const {
186  return (_has_bits_[0] & 0x00000001u) != 0;
187 }
188 inline void ShogunVersion::set_has_version() {
189  _has_bits_[0] |= 0x00000001u;
190 }
191 inline void ShogunVersion::clear_has_version() {
192  _has_bits_[0] &= ~0x00000001u;
193 }
195  version_ = 0;
196  clear_has_version();
197 }
198 inline ::google::protobuf::int32 ShogunVersion::version() const {
199  // @@protoc_insertion_point(field_get:shogun.ShogunVersion.version)
200  return version_;
201 }
202 inline void ShogunVersion::set_version(::google::protobuf::int32 value) {
203  set_has_version();
204  version_ = value;
205  // @@protoc_insertion_point(field_set:shogun.ShogunVersion.version)
206 }
207 
208 // required .shogun.ShogunVersion.SGDataType data_type = 2;
209 inline bool ShogunVersion::has_data_type() const {
210  return (_has_bits_[0] & 0x00000002u) != 0;
211 }
212 inline void ShogunVersion::set_has_data_type() {
213  _has_bits_[0] |= 0x00000002u;
214 }
215 inline void ShogunVersion::clear_has_data_type() {
216  _has_bits_[0] &= ~0x00000002u;
217 }
219  data_type_ = 1;
220  clear_has_data_type();
221 }
223  // @@protoc_insertion_point(field_get:shogun.ShogunVersion.data_type)
224  return static_cast< ::shogun::ShogunVersion_SGDataType >(data_type_);
225 }
228  set_has_data_type();
229  data_type_ = value;
230  // @@protoc_insertion_point(field_set:shogun.ShogunVersion.data_type)
231 }
232 
233 
234 // @@protoc_insertion_point(namespace_scope)
235 
236 } // namespace shogun
237 
238 #ifndef SWIG
239 namespace google {
240 namespace protobuf {
241 
242 template <> struct is_proto_enum< ::shogun::ShogunVersion_SGDataType> : ::google::protobuf::internal::true_type {};
243 template <>
244 inline const EnumDescriptor* GetEnumDescriptor< ::shogun::ShogunVersion_SGDataType>() {
246 }
247 
248 } // namespace google
249 } // namespace protobuf
250 #endif // SWIG
251 
252 // @@protoc_insertion_point(global_scope)
253 
254 #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)
inline::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)
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)
inline::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