4 #ifndef PROTOBUF_INCLUDED_ignition_2fmsgs_2fjoint_5fcmd_2eproto
5 #define PROTOBUF_INCLUDED_ignition_2fmsgs_2fjoint_5fcmd_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>
37 #pragma GCC system_header
40 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
43 #include <sys/sysmacros.h>
48 #define PROTOBUF_INTERNAL_EXPORT_protobuf_ignition_2fmsgs_2fjoint_5fcmd_2eproto IGNITION_MSGS_VISIBLE
53 static const ::google::protobuf::internal::ParseTableField entries[];
54 static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
55 static const ::google::protobuf::internal::ParseTable schema[1];
56 static const ::google::protobuf::internal::FieldMetadata field_metadata[];
57 static const ::google::protobuf::internal::SerializationTable serialization_table[];
58 static const ::google::protobuf::uint32 offsets[];
65 class JointCmdDefaultTypeInternal;
71 template<> IGNITION_MSGS_VISIBLE ::ignition::msgs::JointCmd* Arena::CreateMaybeMessage<::ignition::msgs::JointCmd>(Arena*);
79 class IGNITION_MSGS_VISIBLE
JointCmd :
public ::google::protobuf::Message {
93 *
this = ::std::move(from);
96 inline JointCmd& operator=(JointCmd&& from) noexcept {
97 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
98 if (
this != &from) InternalSwap(&from);
105 static const ::google::protobuf::Descriptor* descriptor();
106 static const JointCmd& default_instance();
108 static void InitAsDefaultInstance();
110 return reinterpret_cast<const JointCmd*
>(
113 static constexpr
int kIndexInFileMessages =
124 return CreateMaybeMessage<JointCmd>(NULL);
128 return CreateMaybeMessage<JointCmd>(arena);
130 void CopyFrom(const ::google::protobuf::Message& from)
final;
131 void MergeFrom(const ::google::protobuf::Message& from)
final;
132 void CopyFrom(
const JointCmd& from);
133 void MergeFrom(
const JointCmd& from);
135 bool IsInitialized() const final;
137 size_t ByteSizeLong() const final;
138 bool MergePartialFromCodedStream(
139 ::
google::protobuf::io::CodedInputStream* input) final;
140 void SerializeWithCachedSizes(
141 ::
google::protobuf::io::CodedOutputStream* output) const final;
142 ::
google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
143 bool deterministic, ::
google::protobuf::uint8* target) const final;
144 int GetCachedSize() const final {
return _cached_size_.Get(); }
149 void SetCachedSize(
int size)
const final;
152 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
155 inline void* MaybeArenaPtr()
const {
160 ::google::protobuf::Metadata GetMetadata() const final;
168 static const
int kNameFieldNumber = 2;
169 const ::
std::
string& name() const;
170 void set_name(const ::
std::
string& value);
174 void set_name(
const char* value);
175 void set_name(
const char* value,
size_t size);
181 bool has_header()
const;
183 static const int kHeaderFieldNumber = 1;
185 const ::ignition::msgs::Header& _internal_header()
const;
187 const ::ignition::msgs::Header& header()
const;
193 bool has_position()
const;
194 void clear_position();
195 static const int kPositionFieldNumber = 5;
197 const ::ignition::msgs::PID& _internal_position()
const;
199 const ::ignition::msgs::PID& position()
const;
205 bool has_velocity()
const;
206 void clear_velocity();
207 static const int kVelocityFieldNumber = 6;
209 const ::ignition::msgs::PID& _internal_velocity()
const;
211 const ::ignition::msgs::PID& velocity()
const;
217 bool has_force_optional()
const;
218 void clear_force_optional();
219 static const int kForceOptionalFieldNumber = 8;
221 const ::ignition::msgs::Double& _internal_force_optional()
const;
223 const ::ignition::msgs::Double& force_optional()
const;
229 GOOGLE_PROTOBUF_DEPRECATED_ATTR
void clear_force();
230 GOOGLE_PROTOBUF_DEPRECATED_ATTR
static const int kForceFieldNumber = 4;
231 GOOGLE_PROTOBUF_DEPRECATED_ATTR
double force()
const;
232 GOOGLE_PROTOBUF_DEPRECATED_ATTR
void set_force(
double value);
236 static const int kAxisFieldNumber = 3;
237 ::google::protobuf::int32 axis()
const;
238 void set_axis(::google::protobuf::int32 value);
242 static const int kResetFieldNumber = 7;
244 void set_reset(
bool value);
249 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
250 ::google::protobuf::internal::ArenaStringPtr name_;
256 ::google::protobuf::int32 axis_;
258 mutable ::google::protobuf::internal::CachedSize _cached_size_;
259 friend struct ::protobuf_ignition_2fmsgs_2fjoint_5fcmd_2eproto::TableStruct;
267 #pragma GCC diagnostic push
268 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
276 inline const ::ignition::msgs::Header& JointCmd::_internal_header()
const {
280 const ::ignition::msgs::Header* p = header_;
294 if (header_ == NULL) {
295 auto* p = CreateMaybeMessage<::ignition::msgs::Header>(GetArenaNoVirtual());
302 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
303 if (message_arena == NULL) {
304 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(header_);
307 ::google::protobuf::Arena* submessage_arena = NULL;
308 if (message_arena != submessage_arena) {
309 header = ::google::protobuf::internal::GetOwnedMessage(
310 message_arena,
header, submessage_arena);
322 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
326 return name_.GetNoArena();
330 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
337 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::move(value));
342 GOOGLE_DCHECK(value != NULL);
344 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
349 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
350 ::
std::string(
reinterpret_cast<const char*
>(value), size));
356 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
361 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
369 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
name);
405 inline const ::ignition::msgs::PID& JointCmd::_internal_position()
const {
409 const ::ignition::msgs::PID* p = position_;
423 if (position_ == NULL) {
424 auto* p = CreateMaybeMessage<::ignition::msgs::PID>(GetArenaNoVirtual());
431 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
432 if (message_arena == NULL) {
433 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(position_);
436 ::google::protobuf::Arena* submessage_arena = NULL;
437 if (message_arena != submessage_arena) {
438 position = ::google::protobuf::internal::GetOwnedMessage(
439 message_arena,
position, submessage_arena);
453 inline const ::ignition::msgs::PID& JointCmd::_internal_velocity()
const {
457 const ::ignition::msgs::PID* p = velocity_;
471 if (velocity_ == NULL) {
472 auto* p = CreateMaybeMessage<::ignition::msgs::PID>(GetArenaNoVirtual());
479 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
480 if (message_arena == NULL) {
481 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(velocity_);
484 ::google::protobuf::Arena* submessage_arena = NULL;
485 if (message_arena != submessage_arena) {
486 velocity = ::google::protobuf::internal::GetOwnedMessage(
487 message_arena,
velocity, submessage_arena);
515 inline const ::ignition::msgs::Double& JointCmd::_internal_force_optional()
const {
516 return *force_optional_;
519 const ::ignition::msgs::Double* p = force_optional_;
528 force_optional_ = NULL;
533 if (force_optional_ == NULL) {
534 auto* p = CreateMaybeMessage<::ignition::msgs::Double>(GetArenaNoVirtual());
538 return force_optional_;
541 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
542 if (message_arena == NULL) {
543 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(force_optional_);
546 ::google::protobuf::Arena* submessage_arena = NULL;
547 if (message_arena != submessage_arena) {
560 #pragma GCC diagnostic pop
577 #endif // PROTOBUF_INCLUDED_ignition_2fmsgs_2fjoint_5fcmd_2eproto