4 #ifndef PROTOBUF_ignition_2fmsgs_2fpacket_2eproto__INCLUDED 5 #define PROTOBUF_ignition_2fmsgs_2fpacket_2eproto__INCLUDED 9 #include <google/protobuf/stubs/common.h> 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 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. 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/unknown_field_set.h> 41 #pragma GCC system_header 44 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251) 47 #include <sys/sysmacros.h> 65 class IGNITION_MSGS_VISIBLE
Packet :
public ::google::protobuf::Message {
77 static const ::google::protobuf::Descriptor* descriptor();
78 static const Packet& default_instance();
100 Packet* New(::google::protobuf::Arena* arena)
const;
101 void CopyFrom(const ::google::protobuf::Message& from);
102 void MergeFrom(const ::google::protobuf::Message& from);
103 void CopyFrom(
const Packet& from);
104 void MergeFrom(
const Packet& from);
106 bool IsInitialized()
const;
108 int ByteSize()
const;
109 bool MergePartialFromCodedStream(
110 ::google::protobuf::io::CodedInputStream* input);
111 void SerializeWithCachedSizes(
112 ::google::protobuf::io::CodedOutputStream* output)
const;
113 ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
114 bool deterministic, ::google::protobuf::uint8* output)
const;
116 return InternalSerializeWithCachedSizesToArray(
false, output);
122 void SetCachedSize(
int size)
const;
123 void InternalSwap(
Packet* other);
125 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
126 return _internal_metadata_.arena();
128 inline void* MaybeArenaPtr()
const {
129 return _internal_metadata_.raw_arena_ptr();
133 ::google::protobuf::Metadata GetMetadata()
const;
141 static const int kTopicFieldNumber = 1;
142 const ::std::string& topic()
const;
143 void set_topic(const ::std::string& value);
144 void set_topic(
const char* value);
145 void set_topic(
const char* value,
size_t size);
152 static const int kTypeFieldNumber = 2;
153 const ::std::string& type()
const;
154 void set_type(const ::std::string& value);
155 void set_type(
const char* value);
156 void set_type(
const char* value,
size_t size);
162 bool has_cmd_vel2d()
const;
163 void clear_cmd_vel2d();
164 static const int kCmdVel2DFieldNumber = 3;
165 const ::ignition::msgs::CmdVel2D& cmd_vel2d()
const;
171 bool has_image()
const;
173 static const int kImageFieldNumber = 4;
174 const ::ignition::msgs::Image& image()
const;
180 bool has_string_msg_v()
const;
181 void clear_string_msg_v();
182 static const int kStringMsgVFieldNumber = 5;
183 const ::ignition::msgs::StringMsg_V& string_msg_v()
const;
189 bool has_web_request()
const;
190 void clear_web_request();
191 static const int kWebRequestFieldNumber = 6;
192 const ::ignition::msgs::WebRequest& web_request()
const;
198 bool has_pose()
const;
200 static const int kPoseFieldNumber = 7;
201 const ::ignition::msgs::Pose& pose()
const;
207 bool has_doublev()
const;
208 void clear_doublev();
209 static const int kDoublevFieldNumber = 8;
210 const ::ignition::msgs::Double_V& doublev()
const;
216 bool has_pose_v()
const;
218 static const int kPoseVFieldNumber = 9;
219 const ::ignition::msgs::Pose_V& pose_v()
const;
225 bool has_time()
const;
227 static const int kTimeFieldNumber = 10;
228 const ::ignition::msgs::Time& time()
const;
234 bool has_clock()
const;
236 static const int kClockFieldNumber = 11;
237 const ::ignition::msgs::Clock&
clock()
const;
243 bool has_world_stats()
const;
244 void clear_world_stats();
245 static const int kWorldStatsFieldNumber = 12;
246 const ::ignition::msgs::WorldStatistics& world_stats()
const;
254 inline void set_has_cmd_vel2d();
255 inline void set_has_image();
256 inline void set_has_string_msg_v();
257 inline void set_has_web_request();
258 inline void set_has_pose();
259 inline void set_has_doublev();
260 inline void set_has_pose_v();
261 inline void set_has_time();
262 inline void set_has_clock();
263 inline void set_has_world_stats();
265 inline bool has_content()
const;
266 void clear_content();
267 inline void clear_has_content();
269 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
270 bool _is_default_instance_;
271 ::google::protobuf::internal::ArenaStringPtr topic_;
272 ::google::protobuf::internal::ArenaStringPtr type_;
286 mutable int _cached_size_;
287 ::google::protobuf::uint32 _oneof_case_[1];
293 void InitAsDefaultInstance();
294 static Packet* default_instance_;
301 #if !PROTOBUF_INLINE_NOT_IN_HEADERS 306 topic_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
310 return topic_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
314 topic_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
319 topic_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
324 topic_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
325 ::
std::string(reinterpret_cast<const char*>(value), size));
331 return topic_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
336 return topic_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
344 topic_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), topic);
350 type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
354 return type_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
358 type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
363 type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
368 type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
369 ::
std::string(reinterpret_cast<const char*>(value), size));
375 return type_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
380 return type_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
388 type_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), type);
394 return content_case() == kCmdVel2D;
396 inline void Packet::set_has_cmd_vel2d() {
397 _oneof_case_[0] = kCmdVel2D;
400 if (has_cmd_vel2d()) {
401 delete content_.cmd_vel2d_;
407 return has_cmd_vel2d()
408 ? *content_.cmd_vel2d_
412 if (!has_cmd_vel2d()) {
415 content_.cmd_vel2d_ = new ::ignition::msgs::CmdVel2D;
418 return content_.cmd_vel2d_;
422 if (has_cmd_vel2d()) {
425 content_.cmd_vel2d_ = NULL;
435 content_.cmd_vel2d_ = cmd_vel2d;
442 return content_case() == kImage;
444 inline void Packet::set_has_image() {
445 _oneof_case_[0] = kImage;
449 delete content_.image_;
463 content_.image_ = new ::ignition::msgs::Image;
466 return content_.image_;
473 content_.image_ = NULL;
483 content_.image_ = image;
490 return content_case() == kStringMsgV;
492 inline void Packet::set_has_string_msg_v() {
493 _oneof_case_[0] = kStringMsgV;
496 if (has_string_msg_v()) {
497 delete content_.string_msg_v_;
503 return has_string_msg_v()
504 ? *content_.string_msg_v_
508 if (!has_string_msg_v()) {
510 set_has_string_msg_v();
511 content_.string_msg_v_ = new ::ignition::msgs::StringMsg_V;
514 return content_.string_msg_v_;
518 if (has_string_msg_v()) {
521 content_.string_msg_v_ = NULL;
530 set_has_string_msg_v();
531 content_.string_msg_v_ = string_msg_v;
538 return content_case() == kWebRequest;
540 inline void Packet::set_has_web_request() {
541 _oneof_case_[0] = kWebRequest;
544 if (has_web_request()) {
545 delete content_.web_request_;
551 return has_web_request()
552 ? *content_.web_request_
556 if (!has_web_request()) {
558 set_has_web_request();
559 content_.web_request_ = new ::ignition::msgs::WebRequest;
562 return content_.web_request_;
566 if (has_web_request()) {
569 content_.web_request_ = NULL;
578 set_has_web_request();
579 content_.web_request_ = web_request;
586 return content_case() == kPose;
588 inline void Packet::set_has_pose() {
589 _oneof_case_[0] = kPose;
593 delete content_.pose_;
607 content_.pose_ = new ::ignition::msgs::Pose;
610 return content_.pose_;
617 content_.pose_ = NULL;
627 content_.pose_ = pose;
634 return content_case() == kDoublev;
636 inline void Packet::set_has_doublev() {
637 _oneof_case_[0] = kDoublev;
641 delete content_.doublev_;
652 if (!has_doublev()) {
655 content_.doublev_ = new ::ignition::msgs::Double_V;
658 return content_.doublev_;
665 content_.doublev_ = NULL;
675 content_.doublev_ = doublev;
682 return content_case() == kPoseV;
684 inline void Packet::set_has_pose_v() {
685 _oneof_case_[0] = kPoseV;
689 delete content_.pose_v_;
703 content_.pose_v_ = new ::ignition::msgs::Pose_V;
706 return content_.pose_v_;
713 content_.pose_v_ = NULL;
723 content_.pose_v_ = pose_v;
730 return content_case() == kTime;
732 inline void Packet::set_has_time() {
733 _oneof_case_[0] = kTime;
737 delete content_.time_;
751 content_.time_ = new ::ignition::msgs::Time;
754 return content_.time_;
761 content_.time_ = NULL;
771 content_.time_ = time;
778 return content_case() == kClock;
780 inline void Packet::set_has_clock() {
781 _oneof_case_[0] = kClock;
785 delete content_.clock_;
799 content_.clock_ = new ::ignition::msgs::Clock;
802 return content_.clock_;
809 content_.clock_ = NULL;
819 content_.clock_ = clock;
826 return content_case() == kWorldStats;
828 inline void Packet::set_has_world_stats() {
829 _oneof_case_[0] = kWorldStats;
832 if (has_world_stats()) {
833 delete content_.world_stats_;
839 return has_world_stats()
840 ? *content_.world_stats_
844 if (!has_world_stats()) {
846 set_has_world_stats();
847 content_.world_stats_ = new ::ignition::msgs::WorldStatistics;
850 return content_.world_stats_;
854 if (has_world_stats()) {
857 content_.world_stats_ = NULL;
866 set_has_world_stats();
867 content_.world_stats_ = world_stats;
872 inline bool Packet::has_content()
const {
873 return content_case() != CONTENT_NOT_SET;
875 inline void Packet::clear_has_content() {
876 _oneof_case_[0] = CONTENT_NOT_SET;
881 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS 897 #endif // PROTOBUF_ignition_2fmsgs_2fpacket_2eproto__INCLUDED ::ignition::msgs::Pose_V * release_pose_v()
Definition: packet.pb.h:708
::ignition::msgs::Image * release_image()
Definition: packet.pb.h:468
void set_topic(const ::std::string &value)
Definition: packet.pb.h:312
bool has_doublev() const
Definition: packet.pb.h:633
void set_allocated_web_request(::ignition::msgs::WebRequest *web_request)
Definition: packet.pb.h:575
const ::ignition::msgs::Clock & clock() const
Definition: packet.pb.h:789
void clear_string_msg_v()
Definition: packet.pb.h:495
Packet & operator=(const Packet &from)
Definition: packet.pb.h:72
void clear_pose()
Definition: packet.pb.h:591
static const Time & default_instance()
void clear_web_request()
Definition: packet.pb.h:543
::ignition::msgs::WebRequest * mutable_web_request()
Definition: packet.pb.h:555
void clear_image()
Definition: packet.pb.h:447
void clear_clock()
Definition: packet.pb.h:783
::ignition::msgs::Clock * release_clock()
Definition: packet.pb.h:804
bool has_string_msg_v() const
Definition: packet.pb.h:489
Definition: world_stats.pb.h:58
::ignition::msgs::Pose * release_pose()
Definition: packet.pb.h:612
Packet * New() const
Definition: packet.pb.h:98
static const Image & default_instance()
const ::ignition::msgs::StringMsg_V & string_msg_v() const
Definition: packet.pb.h:501
Definition: image.pb.h:95
void set_allocated_doublev(::ignition::msgs::Double_V *doublev)
Definition: packet.pb.h:671
Definition: clock.pb.h:57
std::unique_ptr< Packet > PacketUniquePtr
Definition: packet.pb.h:883
const ::ignition::msgs::Pose_V & pose_v() const
Definition: packet.pb.h:693
bool has_time() const
Definition: packet.pb.h:729
void protobuf_ShutdownFile_ignition_2fmsgs_2fpacket_2eproto()
void protobuf_AssignDesc_ignition_2fmsgs_2fpacket_2eproto()
void clear_doublev()
Definition: packet.pb.h:639
bool has_web_request() const
Definition: packet.pb.h:537
static const WorldStatistics & default_instance()
void set_allocated_topic(::std::string *topic)
Definition: packet.pb.h:338
::ignition::msgs::CmdVel2D * mutable_cmd_vel2d()
Definition: packet.pb.h:411
::ignition::msgs::StringMsg_V * release_string_msg_v()
Definition: packet.pb.h:516
bool has_pose_v() const
Definition: packet.pb.h:681
void set_allocated_type(::std::string *type)
Definition: packet.pb.h:382
const ::ignition::msgs::WebRequest & web_request() const
Definition: packet.pb.h:549
int GetCachedSize() const
Definition: packet.pb.h:118
void set_allocated_pose_v(::ignition::msgs::Pose_V *pose_v)
Definition: packet.pb.h:719
Definition: pose_v.pb.h:57
void clear_pose_v()
Definition: packet.pb.h:687
void set_allocated_image(::ignition::msgs::Image *image)
Definition: packet.pb.h:479
void set_type(const ::std::string &value)
Definition: packet.pb.h:356
::ignition::msgs::Double_V * release_doublev()
Definition: packet.pb.h:660
const ::ignition::msgs::Time & time() const
Definition: packet.pb.h:741
bool has_clock() const
Definition: packet.pb.h:777
::ignition::msgs::WebRequest * release_web_request()
Definition: packet.pb.h:564
static const CmdVel2D & default_instance()
::ignition::msgs::Pose_V * mutable_pose_v()
Definition: packet.pb.h:699
::ignition::msgs::Time * release_time()
Definition: packet.pb.h:756
Definition: cmd_vel2d.pb.h:56
void set_allocated_cmd_vel2d(::ignition::msgs::CmdVel2D *cmd_vel2d)
Definition: packet.pb.h:431
::ignition::msgs::WorldStatistics * mutable_world_stats()
Definition: packet.pb.h:843
::std::string * release_topic()
Definition: packet.pb.h:333
void clear_type()
Definition: packet.pb.h:349
::ignition::msgs::Clock * mutable_clock()
Definition: packet.pb.h:795
::ignition::msgs::StringMsg_V * mutable_string_msg_v()
Definition: packet.pb.h:507
::std::string * release_type()
Definition: packet.pb.h:377
const ::ignition::msgs::Double_V & doublev() const
Definition: packet.pb.h:645
::ignition::msgs::Double_V * mutable_doublev()
Definition: packet.pb.h:651
ContentCase
Definition: packet.pb.h:80
void clear_topic()
Definition: packet.pb.h:305
::ignition::msgs::Pose * mutable_pose()
Definition: packet.pb.h:603
ContentCase content_case() const
Definition: packet.pb.h:878
std::shared_ptr< Packet > PacketSharedPtr
Definition: packet.pb.h:885
void clear_cmd_vel2d()
Definition: packet.pb.h:399
static const StringMsg_V & default_instance()
const ::ignition::msgs::Image & image() const
Definition: packet.pb.h:453
const ::std::string & type() const
Definition: packet.pb.h:352
::ignition::msgs::Image * mutable_image()
Definition: packet.pb.h:459
static const Pose & default_instance()
const ::ignition::msgs::WorldStatistics & world_stats() const
Definition: packet.pb.h:837
const ::ignition::msgs::CmdVel2D & cmd_vel2d() const
Definition: packet.pb.h:405
static const Clock & default_instance()
void clear_world_stats()
Definition: packet.pb.h:831
static const WebRequest & default_instance()
static const Double_V & default_instance()
std::shared_ptr< const Packet > ConstPacketSharedPtr
Definition: packet.pb.h:886
void set_allocated_time(::ignition::msgs::Time *time)
Definition: packet.pb.h:767
::std::string * mutable_topic()
Definition: packet.pb.h:328
static const Pose_V & default_instance()
void clear_time()
Definition: packet.pb.h:735
void set_allocated_clock(::ignition::msgs::Clock *clock)
Definition: packet.pb.h:815
bool has_cmd_vel2d() const
Definition: packet.pb.h:393
const ::std::string & topic() const
Definition: packet.pb.h:308
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: packet.pb.h:115
Definition: stringmsg_v.pb.h:56
std::unique_ptr< const Packet > ConstPacketUniquePtr
Definition: packet.pb.h:884
void set_allocated_string_msg_v(::ignition::msgs::StringMsg_V *string_msg_v)
Definition: packet.pb.h:527
Definition: packet.pb.h:65
Definition: web_request.pb.h:56
void set_allocated_pose(::ignition::msgs::Pose *pose)
Definition: packet.pb.h:623
::ignition::msgs::Time * mutable_time()
Definition: packet.pb.h:747
::ignition::msgs::CmdVel2D * release_cmd_vel2d()
Definition: packet.pb.h:420
const ::ignition::msgs::Pose & pose() const
Definition: packet.pb.h:597
::std::string * mutable_type()
Definition: packet.pb.h:372
bool has_image() const
Definition: packet.pb.h:441
::ignition::msgs::WorldStatistics * release_world_stats()
Definition: packet.pb.h:852
void set_allocated_world_stats(::ignition::msgs::WorldStatistics *world_stats)
Definition: packet.pb.h:863
void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fpacket_2eproto()
Definition: double_v.pb.h:55
bool has_pose() const
Definition: packet.pb.h:585
bool has_world_stats() const
Definition: packet.pb.h:825