4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2fpid_2eproto
5 #define PROTOBUF_INCLUDED_gz_2fmsgs_2fpid_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/double.pb.h"
34 #include "gz/msgs/header.pb.h"
36 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2fpid_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[1];
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 PIDDefaultTypeInternal;
59 template<> GZ_MSGS_VISIBLE ::gz::msgs::PID* Arena::CreateMaybeMessage<::gz::msgs::PID>(Arena*);
67 class GZ_MSGS_VISIBLE
PID :
public ::google::protobuf::Message {
81 *
this = ::std::move(from);
84 inline PID& operator=(PID&& from) noexcept {
85 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
86 if (
this != &from) InternalSwap(&from);
93 static const ::google::protobuf::Descriptor* descriptor();
94 static const PID& default_instance();
96 static void InitAsDefaultInstance();
98 return reinterpret_cast<const PID*
>(
101 static constexpr
int kIndexInFileMessages =
104 void Swap(
PID* other);
112 return CreateMaybeMessage<PID>(NULL);
115 PID*
New(::google::protobuf::Arena* arena)
const final {
116 return CreateMaybeMessage<PID>(arena);
118 void CopyFrom(const ::google::protobuf::Message& from)
final;
119 void MergeFrom(const ::google::protobuf::Message& from)
final;
120 void CopyFrom(
const PID& from);
121 void MergeFrom(
const PID& from);
123 bool IsInitialized() const final;
125 size_t ByteSizeLong() const final;
126 bool MergePartialFromCodedStream(
127 ::
google::protobuf::io::CodedInputStream* input) final;
128 void SerializeWithCachedSizes(
129 ::
google::protobuf::io::CodedOutputStream* output) const final;
130 ::
google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
131 bool deterministic, ::
google::protobuf::uint8* target) const final;
132 int GetCachedSize() const final {
return _cached_size_.Get(); }
137 void SetCachedSize(
int size)
const final;
138 void InternalSwap(
PID* other);
140 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
143 inline void* MaybeArenaPtr()
const {
148 ::google::protobuf::Metadata GetMetadata() const final;
155 bool has_header() const;
157 static const
int kHeaderFieldNumber = 1;
159 const ::
gz::msgs::
Header& _internal_header() const;
161 const ::
gz::msgs::
Header& header() const;
162 ::
gz::msgs::
Header* release_header();
163 ::
gz::msgs::
Header* mutable_header();
164 void set_allocated_header(::
gz::msgs::
Header* header);
167 bool has_target_optional() const;
168 void clear_target_optional();
169 static const
int kTargetOptionalFieldNumber = 2;
171 const ::
gz::msgs::
Double& _internal_target_optional() const;
173 const ::
gz::msgs::
Double& target_optional() const;
174 ::
gz::msgs::
Double* release_target_optional();
175 ::
gz::msgs::
Double* mutable_target_optional();
176 void set_allocated_target_optional(::
gz::msgs::
Double* target_optional);
179 bool has_p_gain_optional() const;
180 void clear_p_gain_optional();
181 static const
int kPGainOptionalFieldNumber = 3;
183 const ::
gz::msgs::
Double& _internal_p_gain_optional() const;
185 const ::
gz::msgs::
Double& p_gain_optional() const;
186 ::
gz::msgs::
Double* release_p_gain_optional();
187 ::
gz::msgs::
Double* mutable_p_gain_optional();
188 void set_allocated_p_gain_optional(::
gz::msgs::
Double* p_gain_optional);
191 bool has_i_gain_optional() const;
192 void clear_i_gain_optional();
193 static const
int kIGainOptionalFieldNumber = 4;
195 const ::
gz::msgs::
Double& _internal_i_gain_optional() const;
197 const ::
gz::msgs::
Double& i_gain_optional() const;
198 ::
gz::msgs::
Double* release_i_gain_optional();
199 ::
gz::msgs::
Double* mutable_i_gain_optional();
200 void set_allocated_i_gain_optional(::
gz::msgs::
Double* i_gain_optional);
203 bool has_d_gain_optional() const;
204 void clear_d_gain_optional();
205 static const
int kDGainOptionalFieldNumber = 5;
207 const ::
gz::msgs::
Double& _internal_d_gain_optional() const;
209 const ::
gz::msgs::
Double& d_gain_optional() const;
210 ::
gz::msgs::
Double* release_d_gain_optional();
211 ::
gz::msgs::
Double* mutable_d_gain_optional();
212 void set_allocated_d_gain_optional(::
gz::msgs::
Double* d_gain_optional);
215 bool has_i_max_optional() const;
216 void clear_i_max_optional();
217 static const
int kIMaxOptionalFieldNumber = 6;
219 const ::
gz::msgs::
Double& _internal_i_max_optional() const;
221 const ::
gz::msgs::
Double& i_max_optional() const;
222 ::
gz::msgs::
Double* release_i_max_optional();
223 ::
gz::msgs::
Double* mutable_i_max_optional();
224 void set_allocated_i_max_optional(::
gz::msgs::
Double* i_max_optional);
227 bool has_i_min_optional() const;
228 void clear_i_min_optional();
229 static const
int kIMinOptionalFieldNumber = 7;
231 const ::
gz::msgs::
Double& _internal_i_min_optional() const;
233 const ::
gz::msgs::
Double& i_min_optional() const;
234 ::
gz::msgs::
Double* release_i_min_optional();
235 ::
gz::msgs::
Double* mutable_i_min_optional();
236 void set_allocated_i_min_optional(::
gz::msgs::
Double* i_min_optional);
239 bool has_limit_optional() const;
240 void clear_limit_optional();
241 static const
int kLimitOptionalFieldNumber = 8;
243 const ::
gz::msgs::
Double& _internal_limit_optional() const;
245 const ::
gz::msgs::
Double& limit_optional() const;
246 ::
gz::msgs::
Double* release_limit_optional();
247 ::
gz::msgs::
Double* mutable_limit_optional();
248 void set_allocated_limit_optional(::
gz::msgs::
Double* limit_optional);
253 ::
google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
255 ::
gz::msgs::
Double* target_optional_;
256 ::
gz::msgs::
Double* p_gain_optional_;
257 ::
gz::msgs::
Double* i_gain_optional_;
258 ::
gz::msgs::
Double* d_gain_optional_;
259 ::
gz::msgs::
Double* i_max_optional_;
260 ::
gz::msgs::
Double* i_min_optional_;
261 ::
gz::msgs::
Double* limit_optional_;
262 mutable ::
google::protobuf::internal::CachedSize _cached_size_;
271 #pragma GCC diagnostic push
272 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
278 return this != internal_default_instance() && header_ != NULL;
280 inline const ::gz::msgs::Header& PID::_internal_header()
const {
284 const ::gz::msgs::Header* p = header_;
298 if (header_ == NULL) {
299 auto* p = CreateMaybeMessage<::gz::msgs::Header>(GetArenaNoVirtual());
306 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
307 if (message_arena == NULL) {
308 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(header_);
311 ::google::protobuf::Arena* submessage_arena = NULL;
312 if (message_arena != submessage_arena) {
313 header = ::google::protobuf::internal::GetOwnedMessage(
314 message_arena, header, submessage_arena);
326 return this != internal_default_instance() && target_optional_ != NULL;
328 inline const ::gz::msgs::Double& PID::_internal_target_optional()
const {
329 return *target_optional_;
332 const ::gz::msgs::Double* p = target_optional_;
341 target_optional_ = NULL;
346 if (target_optional_ == NULL) {
347 auto* p = CreateMaybeMessage<::gz::msgs::Double>(GetArenaNoVirtual());
348 target_optional_ = p;
351 return target_optional_;
354 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
355 if (message_arena == NULL) {
356 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(target_optional_);
358 if (target_optional) {
359 ::google::protobuf::Arena* submessage_arena = NULL;
360 if (message_arena != submessage_arena) {
361 target_optional = ::google::protobuf::internal::GetOwnedMessage(
362 message_arena, target_optional, submessage_arena);
368 target_optional_ = target_optional;
374 return this != internal_default_instance() && p_gain_optional_ != NULL;
376 inline const ::gz::msgs::Double& PID::_internal_p_gain_optional()
const {
377 return *p_gain_optional_;
380 const ::gz::msgs::Double* p = p_gain_optional_;
389 p_gain_optional_ = NULL;
394 if (p_gain_optional_ == NULL) {
395 auto* p = CreateMaybeMessage<::gz::msgs::Double>(GetArenaNoVirtual());
396 p_gain_optional_ = p;
399 return p_gain_optional_;
402 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
403 if (message_arena == NULL) {
404 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(p_gain_optional_);
406 if (p_gain_optional) {
407 ::google::protobuf::Arena* submessage_arena = NULL;
408 if (message_arena != submessage_arena) {
409 p_gain_optional = ::google::protobuf::internal::GetOwnedMessage(
410 message_arena, p_gain_optional, submessage_arena);
416 p_gain_optional_ = p_gain_optional;
422 return this != internal_default_instance() && i_gain_optional_ != NULL;
424 inline const ::gz::msgs::Double& PID::_internal_i_gain_optional()
const {
425 return *i_gain_optional_;
428 const ::gz::msgs::Double* p = i_gain_optional_;
437 i_gain_optional_ = NULL;
442 if (i_gain_optional_ == NULL) {
443 auto* p = CreateMaybeMessage<::gz::msgs::Double>(GetArenaNoVirtual());
444 i_gain_optional_ = p;
447 return i_gain_optional_;
450 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
451 if (message_arena == NULL) {
452 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(i_gain_optional_);
454 if (i_gain_optional) {
455 ::google::protobuf::Arena* submessage_arena = NULL;
456 if (message_arena != submessage_arena) {
457 i_gain_optional = ::google::protobuf::internal::GetOwnedMessage(
458 message_arena, i_gain_optional, submessage_arena);
464 i_gain_optional_ = i_gain_optional;
470 return this != internal_default_instance() && d_gain_optional_ != NULL;
472 inline const ::gz::msgs::Double& PID::_internal_d_gain_optional()
const {
473 return *d_gain_optional_;
476 const ::gz::msgs::Double* p = d_gain_optional_;
485 d_gain_optional_ = NULL;
490 if (d_gain_optional_ == NULL) {
491 auto* p = CreateMaybeMessage<::gz::msgs::Double>(GetArenaNoVirtual());
492 d_gain_optional_ = p;
495 return d_gain_optional_;
498 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
499 if (message_arena == NULL) {
500 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(d_gain_optional_);
502 if (d_gain_optional) {
503 ::google::protobuf::Arena* submessage_arena = NULL;
504 if (message_arena != submessage_arena) {
505 d_gain_optional = ::google::protobuf::internal::GetOwnedMessage(
506 message_arena, d_gain_optional, submessage_arena);
512 d_gain_optional_ = d_gain_optional;
518 return this != internal_default_instance() && i_max_optional_ != NULL;
520 inline const ::gz::msgs::Double& PID::_internal_i_max_optional()
const {
521 return *i_max_optional_;
524 const ::gz::msgs::Double* p = i_max_optional_;
533 i_max_optional_ = NULL;
538 if (i_max_optional_ == NULL) {
539 auto* p = CreateMaybeMessage<::gz::msgs::Double>(GetArenaNoVirtual());
543 return i_max_optional_;
546 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
547 if (message_arena == NULL) {
548 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(i_max_optional_);
550 if (i_max_optional) {
551 ::google::protobuf::Arena* submessage_arena = NULL;
552 if (message_arena != submessage_arena) {
553 i_max_optional = ::google::protobuf::internal::GetOwnedMessage(
554 message_arena, i_max_optional, submessage_arena);
560 i_max_optional_ = i_max_optional;
566 return this != internal_default_instance() && i_min_optional_ != NULL;
568 inline const ::gz::msgs::Double& PID::_internal_i_min_optional()
const {
569 return *i_min_optional_;
572 const ::gz::msgs::Double* p = i_min_optional_;
581 i_min_optional_ = NULL;
586 if (i_min_optional_ == NULL) {
587 auto* p = CreateMaybeMessage<::gz::msgs::Double>(GetArenaNoVirtual());
591 return i_min_optional_;
594 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
595 if (message_arena == NULL) {
596 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(i_min_optional_);
598 if (i_min_optional) {
599 ::google::protobuf::Arena* submessage_arena = NULL;
600 if (message_arena != submessage_arena) {
601 i_min_optional = ::google::protobuf::internal::GetOwnedMessage(
602 message_arena, i_min_optional, submessage_arena);
608 i_min_optional_ = i_min_optional;
614 return this != internal_default_instance() && limit_optional_ != NULL;
616 inline const ::gz::msgs::Double& PID::_internal_limit_optional()
const {
617 return *limit_optional_;
620 const ::gz::msgs::Double* p = limit_optional_;
629 limit_optional_ = NULL;
634 if (limit_optional_ == NULL) {
635 auto* p = CreateMaybeMessage<::gz::msgs::Double>(GetArenaNoVirtual());
639 return limit_optional_;
642 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
643 if (message_arena == NULL) {
644 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(limit_optional_);
646 if (limit_optional) {
647 ::google::protobuf::Arena* submessage_arena = NULL;
648 if (message_arena != submessage_arena) {
649 limit_optional = ::google::protobuf::internal::GetOwnedMessage(
650 message_arena, limit_optional, submessage_arena);
656 limit_optional_ = limit_optional;
661 #pragma GCC diagnostic pop
671 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2fpid_2eproto