4 #ifndef PROTOBUF_ignition_2fmsgs_2fpid_2eproto__INCLUDED 5 #define PROTOBUF_ignition_2fmsgs_2fpid_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> 33 #pragma GCC system_header 36 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251) 39 #include <sys/sysmacros.h> 57 class IGNITION_MSGS_VISIBLE
PID :
public ::google::protobuf::Message {
69 static const ::google::protobuf::Descriptor* descriptor();
70 static const PID& default_instance();
72 void Swap(
PID* other);
78 PID* New(::google::protobuf::Arena* arena)
const;
79 void CopyFrom(const ::google::protobuf::Message& from);
80 void MergeFrom(const ::google::protobuf::Message& from);
81 void CopyFrom(
const PID& from);
82 void MergeFrom(
const PID& from);
84 bool IsInitialized()
const;
87 bool MergePartialFromCodedStream(
88 ::google::protobuf::io::CodedInputStream* input);
89 void SerializeWithCachedSizes(
90 ::google::protobuf::io::CodedOutputStream* output)
const;
91 ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
92 bool deterministic, ::google::protobuf::uint8* output)
const;
94 return InternalSerializeWithCachedSizesToArray(
false, output);
100 void SetCachedSize(
int size)
const;
101 void InternalSwap(
PID* other);
103 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
104 return _internal_metadata_.arena();
106 inline void* MaybeArenaPtr()
const {
107 return _internal_metadata_.raw_arena_ptr();
111 ::google::protobuf::Metadata GetMetadata()
const;
118 bool has_header()
const;
120 static const int kHeaderFieldNumber = 1;
121 const ::ignition::msgs::Header& header()
const;
127 GOOGLE_PROTOBUF_DEPRECATED_ATTR
void clear_target();
128 GOOGLE_PROTOBUF_DEPRECATED_ATTR
static const int kTargetFieldNumber = 2;
129 GOOGLE_PROTOBUF_DEPRECATED_ATTR
double target()
const;
130 GOOGLE_PROTOBUF_DEPRECATED_ATTR
void set_target(
double value);
133 GOOGLE_PROTOBUF_DEPRECATED_ATTR
void clear_p_gain();
134 GOOGLE_PROTOBUF_DEPRECATED_ATTR
static const int kPGainFieldNumber = 3;
135 GOOGLE_PROTOBUF_DEPRECATED_ATTR
double p_gain()
const;
136 GOOGLE_PROTOBUF_DEPRECATED_ATTR
void set_p_gain(
double value);
139 GOOGLE_PROTOBUF_DEPRECATED_ATTR
void clear_i_gain();
140 GOOGLE_PROTOBUF_DEPRECATED_ATTR
static const int kIGainFieldNumber = 4;
141 GOOGLE_PROTOBUF_DEPRECATED_ATTR
double i_gain()
const;
142 GOOGLE_PROTOBUF_DEPRECATED_ATTR
void set_i_gain(
double value);
145 GOOGLE_PROTOBUF_DEPRECATED_ATTR
void clear_d_gain();
146 GOOGLE_PROTOBUF_DEPRECATED_ATTR
static const int kDGainFieldNumber = 5;
147 GOOGLE_PROTOBUF_DEPRECATED_ATTR
double d_gain()
const;
148 GOOGLE_PROTOBUF_DEPRECATED_ATTR
void set_d_gain(
double value);
151 GOOGLE_PROTOBUF_DEPRECATED_ATTR
void clear_i_max();
152 GOOGLE_PROTOBUF_DEPRECATED_ATTR
static const int kIMaxFieldNumber = 6;
153 GOOGLE_PROTOBUF_DEPRECATED_ATTR
double i_max()
const;
154 GOOGLE_PROTOBUF_DEPRECATED_ATTR
void set_i_max(
double value);
157 GOOGLE_PROTOBUF_DEPRECATED_ATTR
void clear_i_min();
158 GOOGLE_PROTOBUF_DEPRECATED_ATTR
static const int kIMinFieldNumber = 7;
159 GOOGLE_PROTOBUF_DEPRECATED_ATTR
double i_min()
const;
160 GOOGLE_PROTOBUF_DEPRECATED_ATTR
void set_i_min(
double value);
163 GOOGLE_PROTOBUF_DEPRECATED_ATTR
void clear_limit();
164 GOOGLE_PROTOBUF_DEPRECATED_ATTR
static const int kLimitFieldNumber = 8;
165 GOOGLE_PROTOBUF_DEPRECATED_ATTR
double limit()
const;
166 GOOGLE_PROTOBUF_DEPRECATED_ATTR
void set_limit(
double value);
169 bool has_target_optional()
const;
170 void clear_target_optional();
171 static const int kTargetOptionalFieldNumber = 9;
172 const ::ignition::msgs::Double& target_optional()
const;
178 bool has_p_gain_optional()
const;
179 void clear_p_gain_optional();
180 static const int kPGainOptionalFieldNumber = 10;
181 const ::ignition::msgs::Double& p_gain_optional()
const;
187 bool has_i_gain_optional()
const;
188 void clear_i_gain_optional();
189 static const int kIGainOptionalFieldNumber = 11;
190 const ::ignition::msgs::Double& i_gain_optional()
const;
196 bool has_d_gain_optional()
const;
197 void clear_d_gain_optional();
198 static const int kDGainOptionalFieldNumber = 12;
199 const ::ignition::msgs::Double& d_gain_optional()
const;
205 bool has_i_max_optional()
const;
206 void clear_i_max_optional();
207 static const int kIMaxOptionalFieldNumber = 13;
208 const ::ignition::msgs::Double& i_max_optional()
const;
214 bool has_i_min_optional()
const;
215 void clear_i_min_optional();
216 static const int kIMinOptionalFieldNumber = 14;
217 const ::ignition::msgs::Double& i_min_optional()
const;
223 bool has_limit_optional()
const;
224 void clear_limit_optional();
225 static const int kLimitOptionalFieldNumber = 15;
226 const ::ignition::msgs::Double& limit_optional()
const;
234 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
235 bool _is_default_instance_;
251 mutable int _cached_size_;
256 void InitAsDefaultInstance();
257 static PID* default_instance_;
264 #if !PROTOBUF_INLINE_NOT_IN_HEADERS 269 return !_is_default_instance_ && header_ != NULL;
272 if (GetArenaNoVirtual() == NULL && header_ != NULL)
delete header_;
277 return header_ != NULL ? *header_ : *default_instance_->header_;
281 if (header_ == NULL) {
282 header_ = new ::ignition::msgs::Header;
405 return !_is_default_instance_ && target_optional_ != NULL;
408 if (GetArenaNoVirtual() == NULL && target_optional_ != NULL)
delete target_optional_;
409 target_optional_ = NULL;
413 return target_optional_ != NULL ? *target_optional_ : *default_instance_->target_optional_;
417 if (target_optional_ == NULL) {
418 target_optional_ = new ::ignition::msgs::Double;
421 return target_optional_;
427 target_optional_ = NULL;
431 delete target_optional_;
432 target_optional_ = target_optional;
433 if (target_optional) {
443 return !_is_default_instance_ && p_gain_optional_ != NULL;
446 if (GetArenaNoVirtual() == NULL && p_gain_optional_ != NULL)
delete p_gain_optional_;
447 p_gain_optional_ = NULL;
451 return p_gain_optional_ != NULL ? *p_gain_optional_ : *default_instance_->p_gain_optional_;
455 if (p_gain_optional_ == NULL) {
456 p_gain_optional_ = new ::ignition::msgs::Double;
459 return p_gain_optional_;
465 p_gain_optional_ = NULL;
469 delete p_gain_optional_;
470 p_gain_optional_ = p_gain_optional;
471 if (p_gain_optional) {
481 return !_is_default_instance_ && i_gain_optional_ != NULL;
484 if (GetArenaNoVirtual() == NULL && i_gain_optional_ != NULL)
delete i_gain_optional_;
485 i_gain_optional_ = NULL;
489 return i_gain_optional_ != NULL ? *i_gain_optional_ : *default_instance_->i_gain_optional_;
493 if (i_gain_optional_ == NULL) {
494 i_gain_optional_ = new ::ignition::msgs::Double;
497 return i_gain_optional_;
503 i_gain_optional_ = NULL;
507 delete i_gain_optional_;
508 i_gain_optional_ = i_gain_optional;
509 if (i_gain_optional) {
519 return !_is_default_instance_ && d_gain_optional_ != NULL;
522 if (GetArenaNoVirtual() == NULL && d_gain_optional_ != NULL)
delete d_gain_optional_;
523 d_gain_optional_ = NULL;
527 return d_gain_optional_ != NULL ? *d_gain_optional_ : *default_instance_->d_gain_optional_;
531 if (d_gain_optional_ == NULL) {
532 d_gain_optional_ = new ::ignition::msgs::Double;
535 return d_gain_optional_;
541 d_gain_optional_ = NULL;
545 delete d_gain_optional_;
546 d_gain_optional_ = d_gain_optional;
547 if (d_gain_optional) {
557 return !_is_default_instance_ && i_max_optional_ != NULL;
560 if (GetArenaNoVirtual() == NULL && i_max_optional_ != NULL)
delete i_max_optional_;
561 i_max_optional_ = NULL;
565 return i_max_optional_ != NULL ? *i_max_optional_ : *default_instance_->i_max_optional_;
569 if (i_max_optional_ == NULL) {
570 i_max_optional_ = new ::ignition::msgs::Double;
573 return i_max_optional_;
579 i_max_optional_ = NULL;
583 delete i_max_optional_;
584 i_max_optional_ = i_max_optional;
585 if (i_max_optional) {
595 return !_is_default_instance_ && i_min_optional_ != NULL;
598 if (GetArenaNoVirtual() == NULL && i_min_optional_ != NULL)
delete i_min_optional_;
599 i_min_optional_ = NULL;
603 return i_min_optional_ != NULL ? *i_min_optional_ : *default_instance_->i_min_optional_;
607 if (i_min_optional_ == NULL) {
608 i_min_optional_ = new ::ignition::msgs::Double;
611 return i_min_optional_;
617 i_min_optional_ = NULL;
621 delete i_min_optional_;
622 i_min_optional_ = i_min_optional;
623 if (i_min_optional) {
633 return !_is_default_instance_ && limit_optional_ != NULL;
636 if (GetArenaNoVirtual() == NULL && limit_optional_ != NULL)
delete limit_optional_;
637 limit_optional_ = NULL;
641 return limit_optional_ != NULL ? *limit_optional_ : *default_instance_->limit_optional_;
645 if (limit_optional_ == NULL) {
646 limit_optional_ = new ::ignition::msgs::Double;
649 return limit_optional_;
655 limit_optional_ = NULL;
659 delete limit_optional_;
660 limit_optional_ = limit_optional;
661 if (limit_optional) {
669 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS 685 #endif // PROTOBUF_ignition_2fmsgs_2fpid_2eproto__INCLUDED PID * New() const
Definition: pid.pb.h:76
GOOGLE_PROTOBUF_DEPRECATED_ATTR void set_d_gain(double value)
Definition: pid.pb.h:355
void clear_header()
Definition: pid.pb.h:271
::ignition::msgs::Double * mutable_i_min_optional()
Definition: pid.pb.h:605
const ::ignition::msgs::Double & target_optional() const
Definition: pid.pb.h:411
::ignition::msgs::Double * release_i_gain_optional()
Definition: pid.pb.h:499
GOOGLE_PROTOBUF_DEPRECATED_ATTR void set_i_gain(double value)
Definition: pid.pb.h:341
GOOGLE_PROTOBUF_DEPRECATED_ATTR void set_i_min(double value)
Definition: pid.pb.h:383
const ::ignition::msgs::Header & header() const
Definition: pid.pb.h:275
::ignition::msgs::Double * release_limit_optional()
Definition: pid.pb.h:651
int GetCachedSize() const
Definition: pid.pb.h:96
void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fpid_2eproto()
GOOGLE_PROTOBUF_DEPRECATED_ATTR void clear_i_min()
Definition: pid.pb.h:376
void set_allocated_i_min_optional(::ignition::msgs::Double *i_min_optional)
Definition: pid.pb.h:620
::ignition::msgs::Double * release_p_gain_optional()
Definition: pid.pb.h:461
const ::ignition::msgs::Double & limit_optional() const
Definition: pid.pb.h:639
::ignition::msgs::Double * mutable_target_optional()
Definition: pid.pb.h:415
const ::ignition::msgs::Double & p_gain_optional() const
Definition: pid.pb.h:449
GOOGLE_PROTOBUF_DEPRECATED_ATTR void clear_target()
Definition: pid.pb.h:306
GOOGLE_PROTOBUF_DEPRECATED_ATTR void clear_i_max()
Definition: pid.pb.h:362
GOOGLE_PROTOBUF_DEPRECATED_ATTR void set_p_gain(double value)
Definition: pid.pb.h:327
void set_allocated_limit_optional(::ignition::msgs::Double *limit_optional)
Definition: pid.pb.h:658
::ignition::msgs::Double * mutable_p_gain_optional()
Definition: pid.pb.h:453
std::shared_ptr< const PID > ConstPIDSharedPtr
Definition: pid.pb.h:674
GOOGLE_PROTOBUF_DEPRECATED_ATTR double d_gain() const
Definition: pid.pb.h:351
::ignition::msgs::Double * mutable_limit_optional()
Definition: pid.pb.h:643
GOOGLE_PROTOBUF_DEPRECATED_ATTR double i_max() const
Definition: pid.pb.h:365
void clear_target_optional()
Definition: pid.pb.h:407
void clear_i_gain_optional()
Definition: pid.pb.h:483
bool has_p_gain_optional() const
Definition: pid.pb.h:442
::ignition::msgs::Double * release_target_optional()
Definition: pid.pb.h:423
const ::ignition::msgs::Double & d_gain_optional() const
Definition: pid.pb.h:525
bool has_target_optional() const
Definition: pid.pb.h:404
const ::ignition::msgs::Double & i_min_optional() const
Definition: pid.pb.h:601
bool has_header() const
Definition: pid.pb.h:268
GOOGLE_PROTOBUF_DEPRECATED_ATTR double p_gain() const
Definition: pid.pb.h:323
void set_allocated_i_gain_optional(::ignition::msgs::Double *i_gain_optional)
Definition: pid.pb.h:506
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: pid.pb.h:93
std::unique_ptr< PID > PIDUniquePtr
Definition: pid.pb.h:671
void set_allocated_p_gain_optional(::ignition::msgs::Double *p_gain_optional)
Definition: pid.pb.h:468
::ignition::msgs::Double * release_i_min_optional()
Definition: pid.pb.h:613
GOOGLE_PROTOBUF_DEPRECATED_ATTR void clear_i_gain()
Definition: pid.pb.h:334
std::unique_ptr< const PID > ConstPIDUniquePtr
Definition: pid.pb.h:672
GOOGLE_PROTOBUF_DEPRECATED_ATTR double limit() const
Definition: pid.pb.h:393
GOOGLE_PROTOBUF_DEPRECATED_ATTR void set_i_max(double value)
Definition: pid.pb.h:369
void set_allocated_header(::ignition::msgs::Header *header)
Definition: pid.pb.h:294
GOOGLE_PROTOBUF_DEPRECATED_ATTR double i_gain() const
Definition: pid.pb.h:337
GOOGLE_PROTOBUF_DEPRECATED_ATTR void clear_limit()
Definition: pid.pb.h:390
bool has_i_gain_optional() const
Definition: pid.pb.h:480
void clear_p_gain_optional()
Definition: pid.pb.h:445
GOOGLE_PROTOBUF_DEPRECATED_ATTR void clear_d_gain()
Definition: pid.pb.h:348
const ::ignition::msgs::Double & i_max_optional() const
Definition: pid.pb.h:563
bool has_i_min_optional() const
Definition: pid.pb.h:594
GOOGLE_PROTOBUF_DEPRECATED_ATTR void clear_p_gain()
Definition: pid.pb.h:320
::ignition::msgs::Double * release_i_max_optional()
Definition: pid.pb.h:575
::ignition::msgs::Double * release_d_gain_optional()
Definition: pid.pb.h:537
bool has_d_gain_optional() const
Definition: pid.pb.h:518
::ignition::msgs::Header * release_header()
Definition: pid.pb.h:287
GOOGLE_PROTOBUF_DEPRECATED_ATTR void set_target(double value)
Definition: pid.pb.h:313
void set_allocated_target_optional(::ignition::msgs::Double *target_optional)
Definition: pid.pb.h:430
void clear_i_min_optional()
Definition: pid.pb.h:597
bool has_i_max_optional() const
Definition: pid.pb.h:556
::ignition::msgs::Double * mutable_d_gain_optional()
Definition: pid.pb.h:529
void set_allocated_d_gain_optional(::ignition::msgs::Double *d_gain_optional)
Definition: pid.pb.h:544
const ::ignition::msgs::Double & i_gain_optional() const
Definition: pid.pb.h:487
GOOGLE_PROTOBUF_DEPRECATED_ATTR double target() const
Definition: pid.pb.h:309
Definition: double.pb.h:56
void protobuf_ShutdownFile_ignition_2fmsgs_2fpid_2eproto()
PID & operator=(const PID &from)
Definition: pid.pb.h:64
::ignition::msgs::Header * mutable_header()
Definition: pid.pb.h:279
void protobuf_AssignDesc_ignition_2fmsgs_2fpid_2eproto()
GOOGLE_PROTOBUF_DEPRECATED_ATTR double i_min() const
Definition: pid.pb.h:379
bool has_limit_optional() const
Definition: pid.pb.h:632
void clear_limit_optional()
Definition: pid.pb.h:635
void clear_i_max_optional()
Definition: pid.pb.h:559
void set_allocated_i_max_optional(::ignition::msgs::Double *i_max_optional)
Definition: pid.pb.h:582
void clear_d_gain_optional()
Definition: pid.pb.h:521
GOOGLE_PROTOBUF_DEPRECATED_ATTR void set_limit(double value)
Definition: pid.pb.h:397
std::shared_ptr< PID > PIDSharedPtr
Definition: pid.pb.h:673
::ignition::msgs::Double * mutable_i_gain_optional()
Definition: pid.pb.h:491
::ignition::msgs::Double * mutable_i_max_optional()
Definition: pid.pb.h:567