4 #ifndef PROTOBUF_INCLUDED_ignition_2fmsgs_2fhydra_2eproto
5 #define PROTOBUF_INCLUDED_ignition_2fmsgs_2fhydra_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/unknown_field_set.h>
36 #pragma GCC system_header
39 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
42 #include <sys/sysmacros.h>
47 #define PROTOBUF_INTERNAL_EXPORT_protobuf_ignition_2fmsgs_2fhydra_2eproto IGNITION_MSGS_VISIBLE
52 static const ::google::protobuf::internal::ParseTableField entries[];
53 static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
54 static const ::google::protobuf::internal::ParseTable schema[2];
55 static const ::google::protobuf::internal::FieldMetadata field_metadata[];
56 static const ::google::protobuf::internal::SerializationTable serialization_table[];
57 static const ::google::protobuf::uint32 offsets[];
64 class HydraDefaultTypeInternal;
67 class Hydra_PaddleDefaultTypeInternal;
73 template<> IGNITION_MSGS_VISIBLE ::ignition::msgs::Hydra* Arena::CreateMaybeMessage<::ignition::msgs::Hydra>(Arena*);
74 template<> IGNITION_MSGS_VISIBLE ::ignition::msgs::Hydra_Paddle* Arena::CreateMaybeMessage<::ignition::msgs::Hydra_Paddle>(Arena*);
82 class IGNITION_MSGS_VISIBLE
Hydra_Paddle :
public ::google::protobuf::Message {
96 *
this = ::std::move(from);
99 inline Hydra_Paddle& operator=(Hydra_Paddle&& from) noexcept {
100 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
101 if (
this != &from) InternalSwap(&from);
108 static const ::google::protobuf::Descriptor* descriptor();
109 static const Hydra_Paddle& default_instance();
111 static void InitAsDefaultInstance();
116 static constexpr
int kIndexInFileMessages =
127 return CreateMaybeMessage<Hydra_Paddle>(NULL);
131 return CreateMaybeMessage<Hydra_Paddle>(arena);
133 void CopyFrom(const ::google::protobuf::Message& from)
final;
134 void MergeFrom(const ::google::protobuf::Message& from)
final;
138 bool IsInitialized() const final;
140 size_t ByteSizeLong() const final;
141 bool MergePartialFromCodedStream(
142 ::
google::protobuf::io::CodedInputStream* input) final;
143 void SerializeWithCachedSizes(
144 ::
google::protobuf::io::CodedOutputStream* output) const final;
145 ::
google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
146 bool deterministic, ::
google::protobuf::uint8* target) const final;
147 int GetCachedSize() const final {
return _cached_size_.Get(); }
152 void SetCachedSize(
int size)
const final;
155 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
158 inline void* MaybeArenaPtr()
const {
163 ::google::protobuf::Metadata GetMetadata() const final;
170 bool has_pose() const;
172 static const
int kPoseFieldNumber = 1;
182 void clear_button_bumper();
183 static const
int kButtonBumperFieldNumber = 2;
184 bool button_bumper() const;
185 void set_button_bumper(
bool value);
188 void clear_button_1();
189 static const
int kButton1FieldNumber = 3;
190 bool button_1() const;
191 void set_button_1(
bool value);
194 void clear_button_2();
195 static const
int kButton2FieldNumber = 4;
196 bool button_2() const;
197 void set_button_2(
bool value);
200 void clear_button_3();
201 static const
int kButton3FieldNumber = 5;
202 bool button_3() const;
203 void set_button_3(
bool value);
206 void clear_button_4();
207 static const
int kButton4FieldNumber = 6;
208 bool button_4() const;
209 void set_button_4(
bool value);
212 void clear_button_joy();
213 static const
int kButtonJoyFieldNumber = 7;
214 bool button_joy() const;
215 void set_button_joy(
bool value);
218 void clear_button_center();
219 static const
int kButtonCenterFieldNumber = 8;
220 bool button_center() const;
221 void set_button_center(
bool value);
225 static const
int kJoyXFieldNumber = 9;
226 double joy_x() const;
227 void set_joy_x(
double value);
231 static const
int kJoyYFieldNumber = 10;
232 double joy_y() const;
233 void set_joy_y(
double value);
236 void clear_trigger();
237 static const
int kTriggerFieldNumber = 11;
238 double trigger() const;
239 void set_trigger(
double value);
244 ::
google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
256 mutable ::
google::protobuf::internal::CachedSize _cached_size_;
261 class IGNITION_MSGS_VISIBLE
Hydra : public ::
google::protobuf::Message {
275 *
this = ::std::move(from);
278 inline Hydra& operator=(Hydra&& from) noexcept {
279 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
280 if (
this != &from) InternalSwap(&from);
287 static const ::google::protobuf::Descriptor* descriptor();
288 static const Hydra& default_instance();
290 static void InitAsDefaultInstance();
292 return reinterpret_cast<const Hydra*
>(
295 static constexpr
int kIndexInFileMessages =
298 void Swap(
Hydra* other);
306 return CreateMaybeMessage<Hydra>(NULL);
309 Hydra*
New(::google::protobuf::Arena* arena)
const final {
310 return CreateMaybeMessage<Hydra>(arena);
312 void CopyFrom(const ::google::protobuf::Message& from)
final;
313 void MergeFrom(const ::google::protobuf::Message& from)
final;
314 void CopyFrom(
const Hydra& from);
315 void MergeFrom(
const Hydra& from);
317 bool IsInitialized() const final;
319 size_t ByteSizeLong() const final;
320 bool MergePartialFromCodedStream(
321 ::
google::protobuf::io::CodedInputStream* input) final;
322 void SerializeWithCachedSizes(
323 ::
google::protobuf::io::CodedOutputStream* output) const final;
324 ::
google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
325 bool deterministic, ::
google::protobuf::uint8* target) const final;
326 int GetCachedSize() const final {
return _cached_size_.Get(); }
331 void SetCachedSize(
int size)
const final;
332 void InternalSwap(
Hydra* other);
334 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
337 inline void* MaybeArenaPtr()
const {
342 ::google::protobuf::Metadata GetMetadata() const final;
351 bool has_header() const;
353 static const
int kHeaderFieldNumber = 1;
363 bool has_right() const;
365 static const
int kRightFieldNumber = 2;
375 bool has_left() const;
377 static const
int kLeftFieldNumber = 3;
389 ::
google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
393 mutable ::
google::protobuf::internal::CachedSize _cached_size_;
402 #pragma GCC diagnostic push
403 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
409 return this != internal_default_instance() && pose_ != NULL;
411 inline const ::ignition::msgs::Pose& Hydra_Paddle::_internal_pose()
const {
415 const ::ignition::msgs::Pose* p = pose_;
430 auto* p = CreateMaybeMessage<::ignition::msgs::Pose>(GetArenaNoVirtual());
437 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
438 if (message_arena == NULL) {
439 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(pose_);
442 ::google::protobuf::Arena* submessage_arena = NULL;
443 if (message_arena != submessage_arena) {
444 pose = ::google::protobuf::internal::GetOwnedMessage(
445 message_arena, pose, submessage_arena);
457 button_bumper_ =
false;
461 return button_bumper_;
465 button_bumper_ = value;
541 button_center_ =
false;
545 return button_center_;
549 button_center_ = value;
601 return this != internal_default_instance() && header_ != NULL;
603 inline const ::ignition::msgs::Header& Hydra::_internal_header()
const {
607 const ::ignition::msgs::Header* p = header_;
621 if (header_ == NULL) {
622 auto* p = CreateMaybeMessage<::ignition::msgs::Header>(GetArenaNoVirtual());
629 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
630 if (message_arena == NULL) {
631 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(header_);
634 ::google::protobuf::Arena* submessage_arena = NULL;
635 if (message_arena != submessage_arena) {
636 header = ::google::protobuf::internal::GetOwnedMessage(
637 message_arena, header, submessage_arena);
649 return this != internal_default_instance() && right_ != NULL;
652 if (GetArenaNoVirtual() == NULL && right_ != NULL) {
657 inline const ::ignition::msgs::Hydra_Paddle& Hydra::_internal_right()
const {
661 const ::ignition::msgs::Hydra_Paddle* p = right_;
675 if (right_ == NULL) {
676 auto* p = CreateMaybeMessage<::ignition::msgs::Hydra_Paddle>(GetArenaNoVirtual());
683 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
684 if (message_arena == NULL) {
688 ::google::protobuf::Arena* submessage_arena = NULL;
689 if (message_arena != submessage_arena) {
690 right = ::google::protobuf::internal::GetOwnedMessage(
691 message_arena, right, submessage_arena);
703 return this != internal_default_instance() && left_ != NULL;
706 if (GetArenaNoVirtual() == NULL && left_ != NULL) {
711 inline const ::ignition::msgs::Hydra_Paddle& Hydra::_internal_left()
const {
714 inline const ::ignition::msgs::Hydra_Paddle&
Hydra::left()
const {
715 const ::ignition::msgs::Hydra_Paddle* p = left_;
730 auto* p = CreateMaybeMessage<::ignition::msgs::Hydra_Paddle>(GetArenaNoVirtual());
737 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
738 if (message_arena == NULL) {
742 ::google::protobuf::Arena* submessage_arena = NULL;
743 if (message_arena != submessage_arena) {
744 left = ::google::protobuf::internal::GetOwnedMessage(
745 message_arena, left, submessage_arena);
756 #pragma GCC diagnostic pop
775 #endif // PROTOBUF_INCLUDED_ignition_2fmsgs_2fhydra_2eproto