4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2fhydra_2eproto
5 #define PROTOBUF_INCLUDED_gz_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>
33 #include "gz/msgs/pose.pb.h"
34 #include "gz/msgs/header.pb.h"
36 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2fhydra_2eproto GZ_MSGS_VISIBLE
41 static const ::google::protobuf::internal::ParseTableField entries[];
42 static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
43 static const ::google::protobuf::internal::ParseTable schema[2];
44 static const ::google::protobuf::internal::FieldMetadata field_metadata[];
45 static const ::google::protobuf::internal::SerializationTable serialization_table[];
46 static const ::google::protobuf::uint32 offsets[];
53 class HydraDefaultTypeInternal;
56 class Hydra_PaddleDefaultTypeInternal;
62 template<> GZ_MSGS_VISIBLE ::gz::msgs::Hydra* Arena::CreateMaybeMessage<::gz::msgs::Hydra>(Arena*);
63 template<> GZ_MSGS_VISIBLE ::gz::msgs::Hydra_Paddle* Arena::CreateMaybeMessage<::gz::msgs::Hydra_Paddle>(Arena*);
71 class GZ_MSGS_VISIBLE
Hydra_Paddle :
public ::google::protobuf::Message {
85 *
this = ::std::move(from);
88 inline Hydra_Paddle& operator=(Hydra_Paddle&& from) noexcept {
89 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
90 if (
this != &from) InternalSwap(&from);
97 static const ::google::protobuf::Descriptor* descriptor();
98 static const Hydra_Paddle& default_instance();
100 static void InitAsDefaultInstance();
105 static constexpr
int kIndexInFileMessages =
116 return CreateMaybeMessage<Hydra_Paddle>(NULL);
120 return CreateMaybeMessage<Hydra_Paddle>(arena);
122 void CopyFrom(const ::google::protobuf::Message& from)
final;
123 void MergeFrom(const ::google::protobuf::Message& from)
final;
127 bool IsInitialized() const final;
129 size_t ByteSizeLong() const final;
130 bool MergePartialFromCodedStream(
131 ::
google::protobuf::io::CodedInputStream* input) final;
132 void SerializeWithCachedSizes(
133 ::
google::protobuf::io::CodedOutputStream* output) const final;
134 ::
google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
135 bool deterministic, ::
google::protobuf::uint8* target) const final;
136 int GetCachedSize() const final {
return _cached_size_.Get(); }
141 void SetCachedSize(
int size)
const final;
144 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
147 inline void* MaybeArenaPtr()
const {
152 ::google::protobuf::Metadata GetMetadata() const final;
159 bool has_pose() const;
161 static const
int kPoseFieldNumber = 1;
163 const ::
gz::msgs::
Pose& _internal_pose() const;
165 const ::
gz::msgs::
Pose& pose() const;
166 ::
gz::msgs::
Pose* release_pose();
167 ::
gz::msgs::
Pose* mutable_pose();
168 void set_allocated_pose(::
gz::msgs::
Pose* pose);
171 void clear_button_bumper();
172 static const
int kButtonBumperFieldNumber = 2;
173 bool button_bumper() const;
174 void set_button_bumper(
bool value);
177 void clear_button_1();
178 static const
int kButton1FieldNumber = 3;
179 bool button_1() const;
180 void set_button_1(
bool value);
183 void clear_button_2();
184 static const
int kButton2FieldNumber = 4;
185 bool button_2() const;
186 void set_button_2(
bool value);
189 void clear_button_3();
190 static const
int kButton3FieldNumber = 5;
191 bool button_3() const;
192 void set_button_3(
bool value);
195 void clear_button_4();
196 static const
int kButton4FieldNumber = 6;
197 bool button_4() const;
198 void set_button_4(
bool value);
201 void clear_button_joy();
202 static const
int kButtonJoyFieldNumber = 7;
203 bool button_joy() const;
204 void set_button_joy(
bool value);
207 void clear_button_center();
208 static const
int kButtonCenterFieldNumber = 8;
209 bool button_center() const;
210 void set_button_center(
bool value);
214 static const
int kJoyXFieldNumber = 9;
215 double joy_x() const;
216 void set_joy_x(
double value);
220 static const
int kJoyYFieldNumber = 10;
221 double joy_y() const;
222 void set_joy_y(
double value);
225 void clear_trigger();
226 static const
int kTriggerFieldNumber = 11;
227 double trigger() const;
228 void set_trigger(
double value);
233 ::
google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
245 mutable ::
google::protobuf::internal::CachedSize _cached_size_;
250 class GZ_MSGS_VISIBLE
Hydra : public ::
google::protobuf::Message {
264 *
this = ::std::move(from);
267 inline Hydra& operator=(Hydra&& from) noexcept {
268 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
269 if (
this != &from) InternalSwap(&from);
276 static const ::google::protobuf::Descriptor* descriptor();
277 static const Hydra& default_instance();
279 static void InitAsDefaultInstance();
281 return reinterpret_cast<const Hydra*
>(
284 static constexpr
int kIndexInFileMessages =
287 void Swap(
Hydra* other);
295 return CreateMaybeMessage<Hydra>(NULL);
298 Hydra*
New(::google::protobuf::Arena* arena)
const final {
299 return CreateMaybeMessage<Hydra>(arena);
301 void CopyFrom(const ::google::protobuf::Message& from)
final;
302 void MergeFrom(const ::google::protobuf::Message& from)
final;
303 void CopyFrom(
const Hydra& from);
304 void MergeFrom(
const Hydra& from);
306 bool IsInitialized() const final;
308 size_t ByteSizeLong() const final;
309 bool MergePartialFromCodedStream(
310 ::
google::protobuf::io::CodedInputStream* input) final;
311 void SerializeWithCachedSizes(
312 ::
google::protobuf::io::CodedOutputStream* output) const final;
313 ::
google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
314 bool deterministic, ::
google::protobuf::uint8* target) const final;
315 int GetCachedSize() const final {
return _cached_size_.Get(); }
320 void SetCachedSize(
int size)
const final;
321 void InternalSwap(
Hydra* other);
323 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
326 inline void* MaybeArenaPtr()
const {
331 ::google::protobuf::Metadata GetMetadata() const final;
340 bool has_header() const;
342 static const
int kHeaderFieldNumber = 1;
344 const ::
gz::msgs::
Header& _internal_header() const;
346 const ::
gz::msgs::
Header& header() const;
347 ::
gz::msgs::
Header* release_header();
348 ::
gz::msgs::
Header* mutable_header();
349 void set_allocated_header(::
gz::msgs::
Header* header);
352 bool has_right() const;
354 static const
int kRightFieldNumber = 2;
364 bool has_left() const;
366 static const
int kLeftFieldNumber = 3;
378 ::
google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
382 mutable ::
google::protobuf::internal::CachedSize _cached_size_;
391 #pragma GCC diagnostic push
392 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
398 return this != internal_default_instance() && pose_ != NULL;
400 inline const ::gz::msgs::Pose& Hydra_Paddle::_internal_pose()
const {
404 const ::gz::msgs::Pose* p = pose_;
406 return p != NULL ? *p : *
reinterpret_cast<const ::
gz::msgs::Pose*
>(
419 auto* p = CreateMaybeMessage<::gz::msgs::Pose>(GetArenaNoVirtual());
426 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
427 if (message_arena == NULL) {
428 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(pose_);
431 ::google::protobuf::Arena* submessage_arena = NULL;
432 if (message_arena != submessage_arena) {
433 pose = ::google::protobuf::internal::GetOwnedMessage(
434 message_arena, pose, submessage_arena);
446 button_bumper_ =
false;
450 return button_bumper_;
454 button_bumper_ = value;
530 button_center_ =
false;
534 return button_center_;
538 button_center_ = value;
590 return this != internal_default_instance() && header_ != NULL;
592 inline const ::gz::msgs::Header& Hydra::_internal_header()
const {
596 const ::gz::msgs::Header* p = header_;
610 if (header_ == NULL) {
611 auto* p = CreateMaybeMessage<::gz::msgs::Header>(GetArenaNoVirtual());
618 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
619 if (message_arena == NULL) {
620 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(header_);
623 ::google::protobuf::Arena* submessage_arena = NULL;
624 if (message_arena != submessage_arena) {
625 header = ::google::protobuf::internal::GetOwnedMessage(
626 message_arena, header, submessage_arena);
638 return this != internal_default_instance() && right_ != NULL;
641 if (GetArenaNoVirtual() == NULL && right_ != NULL) {
646 inline const ::gz::msgs::Hydra_Paddle& Hydra::_internal_right()
const {
650 const ::gz::msgs::Hydra_Paddle* p = right_;
664 if (right_ == NULL) {
665 auto* p = CreateMaybeMessage<::gz::msgs::Hydra_Paddle>(GetArenaNoVirtual());
672 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
673 if (message_arena == NULL) {
677 ::google::protobuf::Arena* submessage_arena = NULL;
678 if (message_arena != submessage_arena) {
679 right = ::google::protobuf::internal::GetOwnedMessage(
680 message_arena, right, submessage_arena);
692 return this != internal_default_instance() && left_ != NULL;
695 if (GetArenaNoVirtual() == NULL && left_ != NULL) {
700 inline const ::gz::msgs::Hydra_Paddle& Hydra::_internal_left()
const {
704 const ::gz::msgs::Hydra_Paddle* p = left_;
719 auto* p = CreateMaybeMessage<::gz::msgs::Hydra_Paddle>(GetArenaNoVirtual());
726 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
727 if (message_arena == NULL) {
731 ::google::protobuf::Arena* submessage_arena = NULL;
732 if (message_arena != submessage_arena) {
733 left = ::google::protobuf::internal::GetOwnedMessage(
734 message_arena, left, submessage_arena);
745 #pragma GCC diagnostic pop
757 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2fhydra_2eproto