SHOGUN  4.0.0
ShogunVersion.pb.h
浏览该文件的文档.
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 < 2005000
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 2005000 < 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 
111  ::google::protobuf::Metadata GetMetadata() const;
112 
113  // nested types ----------------------------------------------------
114 
116  static const SGDataType VECTOR = ShogunVersion_SGDataType_VECTOR;
117  static const SGDataType MATRIX = ShogunVersion_SGDataType_MATRIX;
121  static inline bool SGDataType_IsValid(int value) {
122  return ShogunVersion_SGDataType_IsValid(value);
123  }
124  static const SGDataType SGDataType_MIN =
126  static const SGDataType SGDataType_MAX =
128  static const int SGDataType_ARRAYSIZE =
130  static inline const ::google::protobuf::EnumDescriptor*
133  }
134  static inline const ::std::string& SGDataType_Name(SGDataType value) {
135  return ShogunVersion_SGDataType_Name(value);
136  }
137  static inline bool SGDataType_Parse(const ::std::string& name,
138  SGDataType* value) {
139  return ShogunVersion_SGDataType_Parse(name, value);
140  }
141 
142  // accessors -------------------------------------------------------
143 
144  // required int32 version = 1;
145  inline bool has_version() const;
146  inline void clear_version();
147  static const int kVersionFieldNumber = 1;
148  inline ::google::protobuf::int32 version() const;
149  inline void set_version(::google::protobuf::int32 value);
150 
151  // required .shogun.ShogunVersion.SGDataType data_type = 2;
152  inline bool has_data_type() const;
153  inline void clear_data_type();
154  static const int kDataTypeFieldNumber = 2;
156  inline void set_data_type(::shogun::ShogunVersion_SGDataType value);
157 
158  // @@protoc_insertion_point(class_scope:shogun.ShogunVersion)
159  private:
160  inline void set_has_version();
161  inline void clear_has_version();
162  inline void set_has_data_type();
163  inline void clear_has_data_type();
164 
165  ::google::protobuf::UnknownFieldSet _unknown_fields_;
166 
167  ::google::protobuf::int32 version_;
168  int data_type_;
169 
170  mutable int _cached_size_;
171  ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32];
172 
176 
177  void InitAsDefaultInstance();
178  static ShogunVersion* default_instance_;
179 };
180 // ===================================================================
181 
182 
183 // ===================================================================
184 
185 // ShogunVersion
186 
187 // required int32 version = 1;
188 inline bool ShogunVersion::has_version() const {
189  return (_has_bits_[0] & 0x00000001u) != 0;
190 }
191 inline void ShogunVersion::set_has_version() {
192  _has_bits_[0] |= 0x00000001u;
193 }
194 inline void ShogunVersion::clear_has_version() {
195  _has_bits_[0] &= ~0x00000001u;
196 }
198  version_ = 0;
199  clear_has_version();
200 }
201 inline ::google::protobuf::int32 ShogunVersion::version() const {
202  return version_;
203 }
204 inline void ShogunVersion::set_version(::google::protobuf::int32 value) {
205  set_has_version();
206  version_ = value;
207 }
208 
209 // required .shogun.ShogunVersion.SGDataType data_type = 2;
210 inline bool ShogunVersion::has_data_type() const {
211  return (_has_bits_[0] & 0x00000002u) != 0;
212 }
213 inline void ShogunVersion::set_has_data_type() {
214  _has_bits_[0] |= 0x00000002u;
215 }
216 inline void ShogunVersion::clear_has_data_type() {
217  _has_bits_[0] &= ~0x00000002u;
218 }
220  data_type_ = 1;
221  clear_has_data_type();
222 }
224  return static_cast< ::shogun::ShogunVersion_SGDataType >(data_type_);
225 }
228  set_has_data_type();
229  data_type_ = value;
230 }
231 
232 
233 // @@protoc_insertion_point(namespace_scope)
234 
235 } // namespace shogun
236 
237 #ifndef SWIG
238 namespace google {
239 namespace protobuf {
240 
241 template <>
242 inline const EnumDescriptor* GetEnumDescriptor< ::shogun::ShogunVersion_SGDataType>() {
244 }
245 
246 } // namespace google
247 } // namespace protobuf
248 #endif // SWIG
249 
250 // @@protoc_insertion_point(global_scope)
251 
252 #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:18
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 机器学习工具包 - 项目文档