4 #ifndef PROTOBUF_INCLUDED_ShogunVersion_2eproto 5 #define PROTOBUF_INCLUDED_ShogunVersion_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/generated_enum_reflection.h> 33 #include <google/protobuf/unknown_field_set.h> 35 #define PROTOBUF_INTERNAL_EXPORT_protobuf_ShogunVersion_2eproto 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];
45 static const ::google::protobuf::uint32
offsets[];
51 class ShogunVersionDefaultTypeInternal;
75 return ::google::protobuf::internal::NameOfEnum(
80 return ::google::protobuf::internal::ParseNamedEnum<ShogunVersion_SGDataType>(
99 *
this = ::std::move(from);
103 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
104 if (
this != &from) InternalSwap(&from);
112 return _internal_metadata_.unknown_fields();
115 return _internal_metadata_.mutable_unknown_fields();
118 static const ::google::protobuf::Descriptor* descriptor();
121 static void InitAsDefaultInstance();
126 static constexpr
int kIndexInFileMessages =
137 return CreateMaybeMessage<ShogunVersion>(NULL);
141 return CreateMaybeMessage<ShogunVersion>(arena);
143 void CopyFrom(const ::google::protobuf::Message& from)
final;
144 void MergeFrom(const ::google::protobuf::Message& from)
final;
148 bool IsInitialized()
const final;
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;
162 void SetCachedSize(
int size)
const final;
165 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
168 inline void* MaybeArenaPtr()
const {
173 ::google::protobuf::Metadata GetMetadata()
const final;
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 =
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*
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);
219 bool has_data_type()
const;
220 void clear_data_type();
221 static const int kDataTypeFieldNumber = 2;
227 void set_has_version();
228 void clear_has_version();
229 void set_has_data_type();
230 void clear_has_data_type();
233 size_t RequiredFieldsByteSizeFallback()
const;
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_;
240 friend struct ::protobuf_ShogunVersion_2eproto::TableStruct;
248 #pragma GCC diagnostic push 249 #pragma GCC diagnostic ignored "-Wstrict-aliasing" 254 inline bool ShogunVersion::has_version()
const {
255 return (_has_bits_[0] & 0x00000001u) != 0;
257 inline void ShogunVersion::set_has_version() {
258 _has_bits_[0] |= 0x00000001u;
260 inline void ShogunVersion::clear_has_version() {
261 _has_bits_[0] &= ~0x00000001u;
263 inline void ShogunVersion::clear_version() {
267 inline ::google::protobuf::int32 ShogunVersion::version()
const {
271 inline void ShogunVersion::set_version(::google::protobuf::int32 value) {
278 inline bool ShogunVersion::has_data_type()
const {
279 return (_has_bits_[0] & 0x00000002u) != 0;
281 inline void ShogunVersion::set_has_data_type() {
282 _has_bits_[0] |= 0x00000002u;
284 inline void ShogunVersion::clear_has_data_type() {
285 _has_bits_[0] &= ~0x00000002u;
287 inline void ShogunVersion::clear_data_type() {
289 clear_has_data_type();
303 #pragma GCC diagnostic pop 315 inline const EnumDescriptor* GetEnumDescriptor< ::shogun::ShogunVersion_SGDataType>() {
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
void Swap(ShogunVersion *other)
static const ::google::protobuf::internal::FieldMetadata field_metadata[]
static bool SGDataType_Parse(const ::std::string &name, SGDataType *value)
const ::google::protobuf::UnknownFieldSet & unknown_fields() const