BWAPI
|
00001 // Generated by the protocol buffer compiler. DO NOT EDIT! 00002 // source: types.proto 00003 00004 #ifndef PROTOBUF_types_2eproto__INCLUDED 00005 #define PROTOBUF_types_2eproto__INCLUDED 00006 00007 #include <string> 00008 00009 #include <google/protobuf/stubs/common.h> 00010 00011 #if GOOGLE_PROTOBUF_VERSION < 2003000 00012 #error This file was generated by a newer version of protoc which is 00013 #error incompatible with your Protocol Buffer headers. Please update 00014 #error your headers. 00015 #endif 00016 #if 2003000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION 00017 #error This file was generated by an older version of protoc which is 00018 #error incompatible with your Protocol Buffer headers. Please 00019 #error regenerate this file with a newer version of protoc. 00020 #endif 00021 00022 #include <google/protobuf/generated_message_util.h> 00023 #include <google/protobuf/repeated_field.h> 00024 #include <google/protobuf/extension_set.h> 00025 #include <google/protobuf/generated_message_reflection.h> 00026 // @@protoc_insertion_point(includes) 00027 00028 namespace messages { 00029 00030 // Internal implementation detail -- do not call these. 00031 void protobuf_AddDesc_types_2eproto(); 00032 void protobuf_AssignDesc_types_2eproto(); 00033 void protobuf_ShutdownFile_types_2eproto(); 00034 00035 class VoidT; 00036 class BoxedBoolean; 00037 class TextMsg; 00038 class Position; 00039 class TilePosition; 00040 00041 // =================================================================== 00042 00043 class VoidT : public ::google::protobuf::Message { 00044 public: 00045 VoidT(); 00046 virtual ~VoidT(); 00047 00048 VoidT(const VoidT& from); 00049 00050 inline VoidT& operator=(const VoidT& from) { 00051 CopyFrom(from); 00052 return *this; 00053 } 00054 00055 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { 00056 return _unknown_fields_; 00057 } 00058 00059 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { 00060 return &_unknown_fields_; 00061 } 00062 00063 static const ::google::protobuf::Descriptor* descriptor(); 00064 static const VoidT& default_instance(); 00065 00066 void Swap(VoidT* other); 00067 00068 // implements Message ---------------------------------------------- 00069 00070 VoidT* New() const; 00071 void CopyFrom(const ::google::protobuf::Message& from); 00072 void MergeFrom(const ::google::protobuf::Message& from); 00073 void CopyFrom(const VoidT& from); 00074 void MergeFrom(const VoidT& from); 00075 void Clear(); 00076 bool IsInitialized() const; 00077 00078 int ByteSize() const; 00079 bool MergePartialFromCodedStream( 00080 ::google::protobuf::io::CodedInputStream* input); 00081 void SerializeWithCachedSizes( 00082 ::google::protobuf::io::CodedOutputStream* output) const; 00083 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; 00084 int GetCachedSize() const { return _cached_size_; } 00085 private: 00086 void SharedCtor(); 00087 void SharedDtor(); 00088 void SetCachedSize(int size) const; 00089 public: 00090 00091 ::google::protobuf::Metadata GetMetadata() const; 00092 00093 // nested types ---------------------------------------------------- 00094 00095 // accessors ------------------------------------------------------- 00096 00097 // @@protoc_insertion_point(class_scope:messages.VoidT) 00098 private: 00099 ::google::protobuf::UnknownFieldSet _unknown_fields_; 00100 mutable int _cached_size_; 00101 00102 friend void protobuf_AddDesc_types_2eproto(); 00103 friend void protobuf_AssignDesc_types_2eproto(); 00104 friend void protobuf_ShutdownFile_types_2eproto(); 00105 00106 ::google::protobuf::uint32 _has_bits_[1]; 00107 00108 // WHY DOES & HAVE LOWER PRECEDENCE THAN != !? 00109 inline bool _has_bit(int index) const { 00110 return (_has_bits_[index / 32] & (1u << (index % 32))) != 0; 00111 } 00112 inline void _set_bit(int index) { 00113 _has_bits_[index / 32] |= (1u << (index % 32)); 00114 } 00115 inline void _clear_bit(int index) { 00116 _has_bits_[index / 32] &= ~(1u << (index % 32)); 00117 } 00118 00119 void InitAsDefaultInstance(); 00120 static VoidT* default_instance_; 00121 }; 00122 // ------------------------------------------------------------------- 00123 00124 class BoxedBoolean : public ::google::protobuf::Message { 00125 public: 00126 BoxedBoolean(); 00127 virtual ~BoxedBoolean(); 00128 00129 BoxedBoolean(const BoxedBoolean& from); 00130 00131 inline BoxedBoolean& operator=(const BoxedBoolean& from) { 00132 CopyFrom(from); 00133 return *this; 00134 } 00135 00136 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { 00137 return _unknown_fields_; 00138 } 00139 00140 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { 00141 return &_unknown_fields_; 00142 } 00143 00144 static const ::google::protobuf::Descriptor* descriptor(); 00145 static const BoxedBoolean& default_instance(); 00146 00147 void Swap(BoxedBoolean* other); 00148 00149 // implements Message ---------------------------------------------- 00150 00151 BoxedBoolean* New() const; 00152 void CopyFrom(const ::google::protobuf::Message& from); 00153 void MergeFrom(const ::google::protobuf::Message& from); 00154 void CopyFrom(const BoxedBoolean& from); 00155 void MergeFrom(const BoxedBoolean& from); 00156 void Clear(); 00157 bool IsInitialized() const; 00158 00159 int ByteSize() const; 00160 bool MergePartialFromCodedStream( 00161 ::google::protobuf::io::CodedInputStream* input); 00162 void SerializeWithCachedSizes( 00163 ::google::protobuf::io::CodedOutputStream* output) const; 00164 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; 00165 int GetCachedSize() const { return _cached_size_; } 00166 private: 00167 void SharedCtor(); 00168 void SharedDtor(); 00169 void SetCachedSize(int size) const; 00170 public: 00171 00172 ::google::protobuf::Metadata GetMetadata() const; 00173 00174 // nested types ---------------------------------------------------- 00175 00176 // accessors ------------------------------------------------------- 00177 00178 // required bool isWinner = 1; 00179 inline bool has_iswinner() const; 00180 inline void clear_iswinner(); 00181 static const int kIsWinnerFieldNumber = 1; 00182 inline bool iswinner() const; 00183 inline void set_iswinner(bool value); 00184 00185 // @@protoc_insertion_point(class_scope:messages.BoxedBoolean) 00186 private: 00187 ::google::protobuf::UnknownFieldSet _unknown_fields_; 00188 mutable int _cached_size_; 00189 00190 bool iswinner_; 00191 friend void protobuf_AddDesc_types_2eproto(); 00192 friend void protobuf_AssignDesc_types_2eproto(); 00193 friend void protobuf_ShutdownFile_types_2eproto(); 00194 00195 ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; 00196 00197 // WHY DOES & HAVE LOWER PRECEDENCE THAN != !? 00198 inline bool _has_bit(int index) const { 00199 return (_has_bits_[index / 32] & (1u << (index % 32))) != 0; 00200 } 00201 inline void _set_bit(int index) { 00202 _has_bits_[index / 32] |= (1u << (index % 32)); 00203 } 00204 inline void _clear_bit(int index) { 00205 _has_bits_[index / 32] &= ~(1u << (index % 32)); 00206 } 00207 00208 void InitAsDefaultInstance(); 00209 static BoxedBoolean* default_instance_; 00210 }; 00211 // ------------------------------------------------------------------- 00212 00213 class TextMsg : public ::google::protobuf::Message { 00214 public: 00215 TextMsg(); 00216 virtual ~TextMsg(); 00217 00218 TextMsg(const TextMsg& from); 00219 00220 inline TextMsg& operator=(const TextMsg& from) { 00221 CopyFrom(from); 00222 return *this; 00223 } 00224 00225 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { 00226 return _unknown_fields_; 00227 } 00228 00229 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { 00230 return &_unknown_fields_; 00231 } 00232 00233 static const ::google::protobuf::Descriptor* descriptor(); 00234 static const TextMsg& default_instance(); 00235 00236 void Swap(TextMsg* other); 00237 00238 // implements Message ---------------------------------------------- 00239 00240 TextMsg* New() const; 00241 void CopyFrom(const ::google::protobuf::Message& from); 00242 void MergeFrom(const ::google::protobuf::Message& from); 00243 void CopyFrom(const TextMsg& from); 00244 void MergeFrom(const TextMsg& from); 00245 void Clear(); 00246 bool IsInitialized() const; 00247 00248 int ByteSize() const; 00249 bool MergePartialFromCodedStream( 00250 ::google::protobuf::io::CodedInputStream* input); 00251 void SerializeWithCachedSizes( 00252 ::google::protobuf::io::CodedOutputStream* output) const; 00253 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; 00254 int GetCachedSize() const { return _cached_size_; } 00255 private: 00256 void SharedCtor(); 00257 void SharedDtor(); 00258 void SetCachedSize(int size) const; 00259 public: 00260 00261 ::google::protobuf::Metadata GetMetadata() const; 00262 00263 // nested types ---------------------------------------------------- 00264 00265 // accessors ------------------------------------------------------- 00266 00267 // required string text = 1; 00268 inline bool has_text() const; 00269 inline void clear_text(); 00270 static const int kTextFieldNumber = 1; 00271 inline const ::std::string& text() const; 00272 inline void set_text(const ::std::string& value); 00273 inline void set_text(const char* value); 00274 inline void set_text(const char* value, size_t size); 00275 inline ::std::string* mutable_text(); 00276 00277 // @@protoc_insertion_point(class_scope:messages.TextMsg) 00278 private: 00279 ::google::protobuf::UnknownFieldSet _unknown_fields_; 00280 mutable int _cached_size_; 00281 00282 ::std::string* text_; 00283 static const ::std::string _default_text_; 00284 friend void protobuf_AddDesc_types_2eproto(); 00285 friend void protobuf_AssignDesc_types_2eproto(); 00286 friend void protobuf_ShutdownFile_types_2eproto(); 00287 00288 ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; 00289 00290 // WHY DOES & HAVE LOWER PRECEDENCE THAN != !? 00291 inline bool _has_bit(int index) const { 00292 return (_has_bits_[index / 32] & (1u << (index % 32))) != 0; 00293 } 00294 inline void _set_bit(int index) { 00295 _has_bits_[index / 32] |= (1u << (index % 32)); 00296 } 00297 inline void _clear_bit(int index) { 00298 _has_bits_[index / 32] &= ~(1u << (index % 32)); 00299 } 00300 00301 void InitAsDefaultInstance(); 00302 static TextMsg* default_instance_; 00303 }; 00304 // ------------------------------------------------------------------- 00305 00306 class Position : public ::google::protobuf::Message { 00307 public: 00308 Position(); 00309 virtual ~Position(); 00310 00311 Position(const Position& from); 00312 00313 inline Position& operator=(const Position& from) { 00314 CopyFrom(from); 00315 return *this; 00316 } 00317 00318 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { 00319 return _unknown_fields_; 00320 } 00321 00322 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { 00323 return &_unknown_fields_; 00324 } 00325 00326 static const ::google::protobuf::Descriptor* descriptor(); 00327 static const Position& default_instance(); 00328 00329 void Swap(Position* other); 00330 00331 // implements Message ---------------------------------------------- 00332 00333 Position* New() const; 00334 void CopyFrom(const ::google::protobuf::Message& from); 00335 void MergeFrom(const ::google::protobuf::Message& from); 00336 void CopyFrom(const Position& from); 00337 void MergeFrom(const Position& from); 00338 void Clear(); 00339 bool IsInitialized() const; 00340 00341 int ByteSize() const; 00342 bool MergePartialFromCodedStream( 00343 ::google::protobuf::io::CodedInputStream* input); 00344 void SerializeWithCachedSizes( 00345 ::google::protobuf::io::CodedOutputStream* output) const; 00346 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; 00347 int GetCachedSize() const { return _cached_size_; } 00348 private: 00349 void SharedCtor(); 00350 void SharedDtor(); 00351 void SetCachedSize(int size) const; 00352 public: 00353 00354 ::google::protobuf::Metadata GetMetadata() const; 00355 00356 // nested types ---------------------------------------------------- 00357 00358 // accessors ------------------------------------------------------- 00359 00360 // required int32 x = 1; 00361 inline bool has_x() const; 00362 inline void clear_x(); 00363 static const int kXFieldNumber = 1; 00364 inline ::google::protobuf::int32 x() const; 00365 inline void set_x(::google::protobuf::int32 value); 00366 00367 // required int32 y = 2; 00368 inline bool has_y() const; 00369 inline void clear_y(); 00370 static const int kYFieldNumber = 2; 00371 inline ::google::protobuf::int32 y() const; 00372 inline void set_y(::google::protobuf::int32 value); 00373 00374 // @@protoc_insertion_point(class_scope:messages.Position) 00375 private: 00376 ::google::protobuf::UnknownFieldSet _unknown_fields_; 00377 mutable int _cached_size_; 00378 00379 ::google::protobuf::int32 x_; 00380 ::google::protobuf::int32 y_; 00381 friend void protobuf_AddDesc_types_2eproto(); 00382 friend void protobuf_AssignDesc_types_2eproto(); 00383 friend void protobuf_ShutdownFile_types_2eproto(); 00384 00385 ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; 00386 00387 // WHY DOES & HAVE LOWER PRECEDENCE THAN != !? 00388 inline bool _has_bit(int index) const { 00389 return (_has_bits_[index / 32] & (1u << (index % 32))) != 0; 00390 } 00391 inline void _set_bit(int index) { 00392 _has_bits_[index / 32] |= (1u << (index % 32)); 00393 } 00394 inline void _clear_bit(int index) { 00395 _has_bits_[index / 32] &= ~(1u << (index % 32)); 00396 } 00397 00398 void InitAsDefaultInstance(); 00399 static Position* default_instance_; 00400 }; 00401 // ------------------------------------------------------------------- 00402 00403 class TilePosition : public ::google::protobuf::Message { 00404 public: 00405 TilePosition(); 00406 virtual ~TilePosition(); 00407 00408 TilePosition(const TilePosition& from); 00409 00410 inline TilePosition& operator=(const TilePosition& from) { 00411 CopyFrom(from); 00412 return *this; 00413 } 00414 00415 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { 00416 return _unknown_fields_; 00417 } 00418 00419 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { 00420 return &_unknown_fields_; 00421 } 00422 00423 static const ::google::protobuf::Descriptor* descriptor(); 00424 static const TilePosition& default_instance(); 00425 00426 void Swap(TilePosition* other); 00427 00428 // implements Message ---------------------------------------------- 00429 00430 TilePosition* New() const; 00431 void CopyFrom(const ::google::protobuf::Message& from); 00432 void MergeFrom(const ::google::protobuf::Message& from); 00433 void CopyFrom(const TilePosition& from); 00434 void MergeFrom(const TilePosition& from); 00435 void Clear(); 00436 bool IsInitialized() const; 00437 00438 int ByteSize() const; 00439 bool MergePartialFromCodedStream( 00440 ::google::protobuf::io::CodedInputStream* input); 00441 void SerializeWithCachedSizes( 00442 ::google::protobuf::io::CodedOutputStream* output) const; 00443 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; 00444 int GetCachedSize() const { return _cached_size_; } 00445 private: 00446 void SharedCtor(); 00447 void SharedDtor(); 00448 void SetCachedSize(int size) const; 00449 public: 00450 00451 ::google::protobuf::Metadata GetMetadata() const; 00452 00453 // nested types ---------------------------------------------------- 00454 00455 // accessors ------------------------------------------------------- 00456 00457 // required int32 x = 1; 00458 inline bool has_x() const; 00459 inline void clear_x(); 00460 static const int kXFieldNumber = 1; 00461 inline ::google::protobuf::int32 x() const; 00462 inline void set_x(::google::protobuf::int32 value); 00463 00464 // required int32 y = 2; 00465 inline bool has_y() const; 00466 inline void clear_y(); 00467 static const int kYFieldNumber = 2; 00468 inline ::google::protobuf::int32 y() const; 00469 inline void set_y(::google::protobuf::int32 value); 00470 00471 // @@protoc_insertion_point(class_scope:messages.TilePosition) 00472 private: 00473 ::google::protobuf::UnknownFieldSet _unknown_fields_; 00474 mutable int _cached_size_; 00475 00476 ::google::protobuf::int32 x_; 00477 ::google::protobuf::int32 y_; 00478 friend void protobuf_AddDesc_types_2eproto(); 00479 friend void protobuf_AssignDesc_types_2eproto(); 00480 friend void protobuf_ShutdownFile_types_2eproto(); 00481 00482 ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; 00483 00484 // WHY DOES & HAVE LOWER PRECEDENCE THAN != !? 00485 inline bool _has_bit(int index) const { 00486 return (_has_bits_[index / 32] & (1u << (index % 32))) != 0; 00487 } 00488 inline void _set_bit(int index) { 00489 _has_bits_[index / 32] |= (1u << (index % 32)); 00490 } 00491 inline void _clear_bit(int index) { 00492 _has_bits_[index / 32] &= ~(1u << (index % 32)); 00493 } 00494 00495 void InitAsDefaultInstance(); 00496 static TilePosition* default_instance_; 00497 }; 00498 // =================================================================== 00499 00500 00501 // =================================================================== 00502 00503 // VoidT 00504 00505 // ------------------------------------------------------------------- 00506 00507 // BoxedBoolean 00508 00509 // required bool isWinner = 1; 00510 inline bool BoxedBoolean::has_iswinner() const { 00511 return _has_bit(0); 00512 } 00513 inline void BoxedBoolean::clear_iswinner() { 00514 iswinner_ = false; 00515 _clear_bit(0); 00516 } 00517 inline bool BoxedBoolean::iswinner() const { 00518 return iswinner_; 00519 } 00520 inline void BoxedBoolean::set_iswinner(bool value) { 00521 _set_bit(0); 00522 iswinner_ = value; 00523 } 00524 00525 // ------------------------------------------------------------------- 00526 00527 // TextMsg 00528 00529 // required string text = 1; 00530 inline bool TextMsg::has_text() const { 00531 return _has_bit(0); 00532 } 00533 inline void TextMsg::clear_text() { 00534 if (text_ != &_default_text_) { 00535 text_->clear(); 00536 } 00537 _clear_bit(0); 00538 } 00539 inline const ::std::string& TextMsg::text() const { 00540 return *text_; 00541 } 00542 inline void TextMsg::set_text(const ::std::string& value) { 00543 _set_bit(0); 00544 if (text_ == &_default_text_) { 00545 text_ = new ::std::string; 00546 } 00547 text_->assign(value); 00548 } 00549 inline void TextMsg::set_text(const char* value) { 00550 _set_bit(0); 00551 if (text_ == &_default_text_) { 00552 text_ = new ::std::string; 00553 } 00554 text_->assign(value); 00555 } 00556 inline void TextMsg::set_text(const char* value, size_t size) { 00557 _set_bit(0); 00558 if (text_ == &_default_text_) { 00559 text_ = new ::std::string; 00560 } 00561 text_->assign(reinterpret_cast<const char*>(value), size); 00562 } 00563 inline ::std::string* TextMsg::mutable_text() { 00564 _set_bit(0); 00565 if (text_ == &_default_text_) { 00566 text_ = new ::std::string; 00567 } 00568 return text_; 00569 } 00570 00571 // ------------------------------------------------------------------- 00572 00573 // Position 00574 00575 // required int32 x = 1; 00576 inline bool Position::has_x() const { 00577 return _has_bit(0); 00578 } 00579 inline void Position::clear_x() { 00580 x_ = 0; 00581 _clear_bit(0); 00582 } 00583 inline ::google::protobuf::int32 Position::x() const { 00584 return x_; 00585 } 00586 inline void Position::set_x(::google::protobuf::int32 value) { 00587 _set_bit(0); 00588 x_ = value; 00589 } 00590 00591 // required int32 y = 2; 00592 inline bool Position::has_y() const { 00593 return _has_bit(1); 00594 } 00595 inline void Position::clear_y() { 00596 y_ = 0; 00597 _clear_bit(1); 00598 } 00599 inline ::google::protobuf::int32 Position::y() const { 00600 return y_; 00601 } 00602 inline void Position::set_y(::google::protobuf::int32 value) { 00603 _set_bit(1); 00604 y_ = value; 00605 } 00606 00607 // ------------------------------------------------------------------- 00608 00609 // TilePosition 00610 00611 // required int32 x = 1; 00612 inline bool TilePosition::has_x() const { 00613 return _has_bit(0); 00614 } 00615 inline void TilePosition::clear_x() { 00616 x_ = 0; 00617 _clear_bit(0); 00618 } 00619 inline ::google::protobuf::int32 TilePosition::x() const { 00620 return x_; 00621 } 00622 inline void TilePosition::set_x(::google::protobuf::int32 value) { 00623 _set_bit(0); 00624 x_ = value; 00625 } 00626 00627 // required int32 y = 2; 00628 inline bool TilePosition::has_y() const { 00629 return _has_bit(1); 00630 } 00631 inline void TilePosition::clear_y() { 00632 y_ = 0; 00633 _clear_bit(1); 00634 } 00635 inline ::google::protobuf::int32 TilePosition::y() const { 00636 return y_; 00637 } 00638 inline void TilePosition::set_y(::google::protobuf::int32 value) { 00639 _set_bit(1); 00640 y_ = value; 00641 } 00642 00643 00644 // @@protoc_insertion_point(namespace_scope) 00645 00646 } // namespace messages 00647 00648 #ifndef SWIG 00649 namespace google { 00650 namespace protobuf { 00651 00652 00653 } // namespace google 00654 } // namespace protobuf 00655 #endif // SWIG 00656 00657 // @@protoc_insertion_point(global_scope) 00658 00659 #endif // PROTOBUF_types_2eproto__INCLUDED