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;
230 static const int kAxisFieldNumber = 3;
231 ::google::protobuf::int32 axis()
const;
232 void set_axis(::google::protobuf::int32 value);
236 static const int kResetFieldNumber = 7;
238 void set_reset(
bool value);
243 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
244 ::google::protobuf::internal::ArenaStringPtr name_;
249 ::google::protobuf::int32 axis_;
251 mutable ::google::protobuf::internal::CachedSize _cached_size_;
252 friend struct ::protobuf_ignition_2fmsgs_2fjoint_5fcmd_2eproto::TableStruct;
260 #pragma GCC diagnostic push
261 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
269 inline const ::ignition::msgs::Header& JointCmd::_internal_header()
const {
273 const ::ignition::msgs::Header* p = header_;
287 if (header_ == NULL) {
288 auto* p = CreateMaybeMessage<::ignition::msgs::Header>(GetArenaNoVirtual());
295 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
296 if (message_arena == NULL) {
297 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(header_);
300 ::google::protobuf::Arena* submessage_arena = NULL;
301 if (message_arena != submessage_arena) {
302 header = ::google::protobuf::internal::GetOwnedMessage(
303 message_arena,
header, submessage_arena);
315 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
319 return name_.GetNoArena();
323 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
330 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::move(value));
335 GOOGLE_DCHECK(value != NULL);
337 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
342 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
343 ::
std::string(
reinterpret_cast<const char*
>(value), size));
349 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
354 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
362 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
name);
384 inline const ::ignition::msgs::PID& JointCmd::_internal_position()
const {
388 const ::ignition::msgs::PID* p = position_;
402 if (position_ == NULL) {
403 auto* p = CreateMaybeMessage<::ignition::msgs::PID>(GetArenaNoVirtual());
410 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
411 if (message_arena == NULL) {
412 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(position_);
415 ::google::protobuf::Arena* submessage_arena = NULL;
416 if (message_arena != submessage_arena) {
417 position = ::google::protobuf::internal::GetOwnedMessage(
418 message_arena,
position, submessage_arena);
432 inline const ::ignition::msgs::PID& JointCmd::_internal_velocity()
const {
436 const ::ignition::msgs::PID* p = velocity_;
450 if (velocity_ == NULL) {
451 auto* p = CreateMaybeMessage<::ignition::msgs::PID>(GetArenaNoVirtual());
458 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
459 if (message_arena == NULL) {
460 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(velocity_);
463 ::google::protobuf::Arena* submessage_arena = NULL;
464 if (message_arena != submessage_arena) {
465 velocity = ::google::protobuf::internal::GetOwnedMessage(
466 message_arena,
velocity, submessage_arena);
494 inline const ::ignition::msgs::Double& JointCmd::_internal_force_optional()
const {
495 return *force_optional_;
498 const ::ignition::msgs::Double* p = force_optional_;
507 force_optional_ = NULL;
512 if (force_optional_ == NULL) {
513 auto* p = CreateMaybeMessage<::ignition::msgs::Double>(GetArenaNoVirtual());
517 return force_optional_;
520 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
521 if (message_arena == NULL) {
522 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(force_optional_);
525 ::google::protobuf::Arena* submessage_arena = NULL;
526 if (message_arena != submessage_arena) {
539 #pragma GCC diagnostic pop
556 #endif // PROTOBUF_INCLUDED_ignition_2fmsgs_2fjoint_5fcmd_2eproto