4 #ifndef PROTOBUF_ignition_2fmsgs_2fjoy_2eproto__INCLUDED 5 #define PROTOBUF_ignition_2fmsgs_2fjoy_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> 32 #pragma GCC system_header 35 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251) 38 #include <sys/sysmacros.h> 56 class IGNITION_MSGS_VISIBLE
Joy :
public ::google::protobuf::Message {
68 static const ::google::protobuf::Descriptor* descriptor();
69 static const Joy& default_instance();
71 void Swap(
Joy* other);
77 Joy* New(::google::protobuf::Arena* arena)
const;
78 void CopyFrom(const ::google::protobuf::Message& from);
79 void MergeFrom(const ::google::protobuf::Message& from);
80 void CopyFrom(
const Joy& from);
81 void MergeFrom(
const Joy& from);
83 bool IsInitialized()
const;
86 bool MergePartialFromCodedStream(
87 ::google::protobuf::io::CodedInputStream* input);
88 void SerializeWithCachedSizes(
89 ::google::protobuf::io::CodedOutputStream* output)
const;
90 ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
91 bool deterministic, ::google::protobuf::uint8* output)
const;
93 return InternalSerializeWithCachedSizesToArray(
false, output);
99 void SetCachedSize(
int size)
const;
100 void InternalSwap(
Joy* other);
102 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
103 return _internal_metadata_.arena();
105 inline void* MaybeArenaPtr()
const {
106 return _internal_metadata_.raw_arena_ptr();
110 ::google::protobuf::Metadata GetMetadata()
const;
117 bool has_header()
const;
119 static const int kHeaderFieldNumber = 1;
120 const ::ignition::msgs::Header& header()
const;
126 int axes_size()
const;
128 static const int kAxesFieldNumber = 2;
129 float axes(
int index)
const;
130 void set_axes(
int index,
float value);
131 void add_axes(
float value);
132 const ::google::protobuf::RepeatedField< float >&
134 ::google::protobuf::RepeatedField< float >*
138 int buttons_size()
const;
139 void clear_buttons();
140 static const int kButtonsFieldNumber = 3;
141 ::google::protobuf::int32 buttons(
int index)
const;
142 void set_buttons(
int index, ::google::protobuf::int32 value);
143 void add_buttons(::google::protobuf::int32 value);
144 const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
146 ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
152 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
153 bool _is_default_instance_;
155 ::google::protobuf::RepeatedField< float > axes_;
156 mutable int _axes_cached_byte_size_;
157 ::google::protobuf::RepeatedField< ::google::protobuf::int32 > buttons_;
158 mutable int _buttons_cached_byte_size_;
159 mutable int _cached_size_;
164 void InitAsDefaultInstance();
165 static Joy* default_instance_;
172 #if !PROTOBUF_INLINE_NOT_IN_HEADERS 177 return !_is_default_instance_ && header_ != NULL;
180 if (GetArenaNoVirtual() == NULL && header_ != NULL)
delete header_;
185 return header_ != NULL ? *header_ : *default_instance_->header_;
189 if (header_ == NULL) {
190 header_ = new ::ignition::msgs::Header;
222 return axes_.Get(index);
225 axes_.Set(index, value);
232 inline const ::google::protobuf::RepeatedField< float >&
237 inline ::google::protobuf::RepeatedField< float >*
245 return buttons_.size();
252 return buttons_.Get(index);
255 buttons_.Set(index, value);
262 inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
267 inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
273 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS 289 #endif // PROTOBUF_ignition_2fmsgs_2fjoy_2eproto__INCLUDED Joy * New() const
Definition: joy.pb.h:75
bool has_header() const
Definition: joy.pb.h:176
int buttons_size() const
Definition: joy.pb.h:244
void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fjoy_2eproto()
::google::protobuf::RepeatedField< ::google::protobuf::int32 > * mutable_buttons()
Definition: joy.pb.h:268
void set_allocated_header(::ignition::msgs::Header *header)
Definition: joy.pb.h:202
::ignition::msgs::Header * mutable_header()
Definition: joy.pb.h:187
void clear_header()
Definition: joy.pb.h:179
std::unique_ptr< const Joy > ConstJoyUniquePtr
Definition: joy.pb.h:276
int GetCachedSize() const
Definition: joy.pb.h:95
int axes_size() const
Definition: joy.pb.h:214
void clear_axes()
Definition: joy.pb.h:217
std::shared_ptr< Joy > JoySharedPtr
Definition: joy.pb.h:277
void protobuf_ShutdownFile_ignition_2fmsgs_2fjoy_2eproto()
::ignition::msgs::Header * release_header()
Definition: joy.pb.h:195
std::unique_ptr< Joy > JoyUniquePtr
Definition: joy.pb.h:275
void set_buttons(int index, ::google::protobuf::int32 value)
Definition: joy.pb.h:254
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: joy.pb.h:92
void protobuf_AssignDesc_ignition_2fmsgs_2fjoy_2eproto()
const ::google::protobuf::RepeatedField< ::google::protobuf::int32 > & buttons() const
Definition: joy.pb.h:263
std::shared_ptr< const Joy > ConstJoySharedPtr
Definition: joy.pb.h:278
void set_axes(int index, float value)
Definition: joy.pb.h:224
void clear_buttons()
Definition: joy.pb.h:247
void add_buttons(::google::protobuf::int32 value)
Definition: joy.pb.h:258
::google::protobuf::RepeatedField< float > * mutable_axes()
Definition: joy.pb.h:238
Joy & operator=(const Joy &from)
Definition: joy.pb.h:63
const ::google::protobuf::RepeatedField< float > & axes() const
Definition: joy.pb.h:233
const ::ignition::msgs::Header & header() const
Definition: joy.pb.h:183
void add_axes(float value)
Definition: joy.pb.h:228