4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2fcessna_2eproto
5 #define PROTOBUF_INCLUDED_gz_2fmsgs_2fcessna_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/header.pb.h"
35 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2fcessna_2eproto GZ_MSGS_VISIBLE
40 static const ::google::protobuf::internal::ParseTableField entries[];
41 static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
42 static const ::google::protobuf::internal::ParseTable schema[1];
43 static const ::google::protobuf::internal::FieldMetadata field_metadata[];
44 static const ::google::protobuf::internal::SerializationTable serialization_table[];
45 static const ::google::protobuf::uint32 offsets[];
52 class CessnaDefaultTypeInternal;
58 template<> GZ_MSGS_VISIBLE ::gz::msgs::Cessna* Arena::CreateMaybeMessage<::gz::msgs::Cessna>(Arena*);
66 class GZ_MSGS_VISIBLE
Cessna :
public ::google::protobuf::Message {
80 *
this = ::std::move(from);
83 inline Cessna& operator=(Cessna&& from) noexcept {
84 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
85 if (
this != &from) InternalSwap(&from);
92 static const ::google::protobuf::Descriptor* descriptor();
93 static const Cessna& default_instance();
95 static void InitAsDefaultInstance();
97 return reinterpret_cast<const Cessna*
>(
100 static constexpr
int kIndexInFileMessages =
111 return CreateMaybeMessage<Cessna>(NULL);
114 Cessna*
New(::google::protobuf::Arena* arena)
const final {
115 return CreateMaybeMessage<Cessna>(arena);
117 void CopyFrom(const ::google::protobuf::Message& from)
final;
118 void MergeFrom(const ::google::protobuf::Message& from)
final;
119 void CopyFrom(
const Cessna& from);
120 void MergeFrom(
const Cessna& from);
122 bool IsInitialized() const final;
124 size_t ByteSizeLong() const final;
125 bool MergePartialFromCodedStream(
126 ::
google::protobuf::io::CodedInputStream* input) final;
127 void SerializeWithCachedSizes(
128 ::
google::protobuf::io::CodedOutputStream* output) const final;
129 ::
google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
130 bool deterministic, ::
google::protobuf::uint8* target) const final;
131 int GetCachedSize() const final {
return _cached_size_.Get(); }
136 void SetCachedSize(
int size)
const final;
137 void InternalSwap(
Cessna* other);
139 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
142 inline void* MaybeArenaPtr()
const {
147 ::google::protobuf::Metadata GetMetadata() const final;
154 bool has_header() const;
156 static const
int kHeaderFieldNumber = 1;
158 const ::
gz::msgs::
Header& _internal_header() const;
160 const ::
gz::msgs::
Header& header() const;
161 ::
gz::msgs::
Header* release_header();
162 ::
gz::msgs::
Header* mutable_header();
163 void set_allocated_header(::
gz::msgs::
Header* header);
166 void clear_propeller_speed();
167 static const
int kPropellerSpeedFieldNumber = 2;
168 float propeller_speed() const;
169 void set_propeller_speed(
float value);
172 void clear_left_aileron();
173 static const
int kLeftAileronFieldNumber = 3;
174 float left_aileron() const;
175 void set_left_aileron(
float value);
178 void clear_left_flap();
179 static const
int kLeftFlapFieldNumber = 4;
180 float left_flap() const;
181 void set_left_flap(
float value);
184 void clear_right_aileron();
185 static const
int kRightAileronFieldNumber = 5;
186 float right_aileron() const;
187 void set_right_aileron(
float value);
190 void clear_right_flap();
191 static const
int kRightFlapFieldNumber = 6;
192 float right_flap() const;
193 void set_right_flap(
float value);
196 void clear_elevators();
197 static const
int kElevatorsFieldNumber = 7;
198 float elevators() const;
199 void set_elevators(
float value);
203 static const
int kRudderFieldNumber = 8;
204 float rudder() const;
205 void set_rudder(
float value);
208 void clear_cmd_propeller_speed();
209 static const
int kCmdPropellerSpeedFieldNumber = 9;
210 float cmd_propeller_speed() const;
211 void set_cmd_propeller_speed(
float value);
214 void clear_cmd_left_aileron();
215 static const
int kCmdLeftAileronFieldNumber = 10;
216 float cmd_left_aileron() const;
217 void set_cmd_left_aileron(
float value);
220 void clear_cmd_left_flap();
221 static const
int kCmdLeftFlapFieldNumber = 11;
222 float cmd_left_flap() const;
223 void set_cmd_left_flap(
float value);
226 void clear_cmd_right_aileron();
227 static const
int kCmdRightAileronFieldNumber = 12;
228 float cmd_right_aileron() const;
229 void set_cmd_right_aileron(
float value);
232 void clear_cmd_right_flap();
233 static const
int kCmdRightFlapFieldNumber = 13;
234 float cmd_right_flap() const;
235 void set_cmd_right_flap(
float value);
238 void clear_cmd_elevators();
239 static const
int kCmdElevatorsFieldNumber = 14;
240 float cmd_elevators() const;
241 void set_cmd_elevators(
float value);
244 void clear_cmd_rudder();
245 static const
int kCmdRudderFieldNumber = 15;
246 float cmd_rudder() const;
247 void set_cmd_rudder(
float value);
252 ::
google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
254 float propeller_speed_;
257 float right_aileron_;
261 float cmd_propeller_speed_;
262 float cmd_left_aileron_;
263 float cmd_left_flap_;
264 float cmd_right_aileron_;
265 float cmd_right_flap_;
266 float cmd_elevators_;
268 mutable ::
google::protobuf::internal::CachedSize _cached_size_;
277 #pragma GCC diagnostic push
278 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
284 return this != internal_default_instance() && header_ != NULL;
286 inline const ::gz::msgs::Header& Cessna::_internal_header()
const {
290 const ::gz::msgs::Header* p = header_;
304 if (header_ == NULL) {
305 auto* p = CreateMaybeMessage<::gz::msgs::Header>(GetArenaNoVirtual());
312 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
313 if (message_arena == NULL) {
314 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(header_);
317 ::google::protobuf::Arena* submessage_arena = NULL;
318 if (message_arena != submessage_arena) {
319 header = ::google::protobuf::internal::GetOwnedMessage(
320 message_arena, header, submessage_arena);
332 propeller_speed_ = 0;
336 return propeller_speed_;
340 propeller_speed_ = value;
350 return left_aileron_;
354 left_aileron_ = value;
378 return right_aileron_;
382 right_aileron_ = value;
430 cmd_propeller_speed_ = 0;
434 return cmd_propeller_speed_;
438 cmd_propeller_speed_ = value;
444 cmd_left_aileron_ = 0;
448 return cmd_left_aileron_;
452 cmd_left_aileron_ = value;
462 return cmd_left_flap_;
466 cmd_left_flap_ = value;
472 cmd_right_aileron_ = 0;
476 return cmd_right_aileron_;
480 cmd_right_aileron_ = value;
490 return cmd_right_flap_;
494 cmd_right_flap_ = value;
504 return cmd_elevators_;
508 cmd_elevators_ = value;
527 #pragma GCC diagnostic pop
537 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2fcessna_2eproto