4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2fjoint_5fcmd_2eproto
5 #define PROTOBUF_INCLUDED_gz_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>
33 #include "gz/msgs/double.pb.h"
34 #include "gz/msgs/pid.pb.h"
35 #include "gz/msgs/header.pb.h"
37 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2fjoint_5fcmd_2eproto GZ_MSGS_VISIBLE
42 static const ::google::protobuf::internal::ParseTableField entries[];
43 static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
44 static const ::google::protobuf::internal::ParseTable schema[1];
45 static const ::google::protobuf::internal::FieldMetadata field_metadata[];
46 static const ::google::protobuf::internal::SerializationTable serialization_table[];
47 static const ::google::protobuf::uint32 offsets[];
54 class JointCmdDefaultTypeInternal;
60 template<> GZ_MSGS_VISIBLE ::gz::msgs::JointCmd* Arena::CreateMaybeMessage<::gz::msgs::JointCmd>(Arena*);
68 class GZ_MSGS_VISIBLE
JointCmd :
public ::google::protobuf::Message {
82 *
this = ::std::move(from);
85 inline JointCmd& operator=(JointCmd&& from) noexcept {
86 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
87 if (
this != &from) InternalSwap(&from);
94 static const ::google::protobuf::Descriptor* descriptor();
95 static const JointCmd& default_instance();
97 static void InitAsDefaultInstance();
99 return reinterpret_cast<const JointCmd*
>(
102 static constexpr
int kIndexInFileMessages =
113 return CreateMaybeMessage<JointCmd>(NULL);
117 return CreateMaybeMessage<JointCmd>(arena);
119 void CopyFrom(const ::google::protobuf::Message& from)
final;
120 void MergeFrom(const ::google::protobuf::Message& from)
final;
121 void CopyFrom(
const JointCmd& from);
122 void MergeFrom(
const JointCmd& from);
124 bool IsInitialized() const final;
126 size_t ByteSizeLong() const final;
127 bool MergePartialFromCodedStream(
128 ::
google::protobuf::io::CodedInputStream* input) final;
129 void SerializeWithCachedSizes(
130 ::
google::protobuf::io::CodedOutputStream* output) const final;
131 ::
google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
132 bool deterministic, ::
google::protobuf::uint8* target) const final;
133 int GetCachedSize() const final {
return _cached_size_.Get(); }
138 void SetCachedSize(
int size)
const final;
141 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
144 inline void* MaybeArenaPtr()
const {
149 ::google::protobuf::Metadata GetMetadata() const final;
157 static const
int kNameFieldNumber = 2;
158 const ::
std::
string& name() const;
159 void set_name(const ::
std::
string& value);
163 void set_name(
const char* value);
164 void set_name(
const char* value,
size_t size);
170 bool has_header()
const;
172 static const int kHeaderFieldNumber = 1;
174 const ::gz::msgs::Header& _internal_header()
const;
176 const ::gz::msgs::Header& header()
const;
182 bool has_position()
const;
183 void clear_position();
184 static const int kPositionFieldNumber = 5;
186 const ::gz::msgs::PID& _internal_position()
const;
188 const ::gz::msgs::PID& position()
const;
194 bool has_velocity()
const;
195 void clear_velocity();
196 static const int kVelocityFieldNumber = 6;
198 const ::gz::msgs::PID& _internal_velocity()
const;
200 const ::gz::msgs::PID& velocity()
const;
206 bool has_force_optional()
const;
207 void clear_force_optional();
208 static const int kForceOptionalFieldNumber = 8;
210 const ::gz::msgs::Double& _internal_force_optional()
const;
212 const ::gz::msgs::Double& force_optional()
const;
219 static const int kAxisFieldNumber = 3;
220 ::google::protobuf::int32 axis()
const;
221 void set_axis(::google::protobuf::int32 value);
225 static const int kResetFieldNumber = 7;
227 void set_reset(
bool value);
232 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
233 ::google::protobuf::internal::ArenaStringPtr name_;
238 ::google::protobuf::int32 axis_;
240 mutable ::google::protobuf::internal::CachedSize _cached_size_;
241 friend struct ::protobuf_gz_2fmsgs_2fjoint_5fcmd_2eproto::TableStruct;
249 #pragma GCC diagnostic push
250 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
258 inline const ::gz::msgs::Header& JointCmd::_internal_header()
const {
262 const ::gz::msgs::Header* p = header_;
276 if (header_ == NULL) {
277 auto* p = CreateMaybeMessage<::gz::msgs::Header>(GetArenaNoVirtual());
284 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
285 if (message_arena == NULL) {
286 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(header_);
289 ::google::protobuf::Arena* submessage_arena = NULL;
290 if (message_arena != submessage_arena) {
291 header = ::google::protobuf::internal::GetOwnedMessage(
292 message_arena,
header, submessage_arena);
304 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
308 return name_.GetNoArena();
312 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
319 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::move(value));
324 GOOGLE_DCHECK(value != NULL);
326 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
331 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
332 ::
std::string(
reinterpret_cast<const char*
>(value), size));
338 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
343 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
351 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
name);
373 inline const ::gz::msgs::PID& JointCmd::_internal_position()
const {
377 const ::gz::msgs::PID* p = position_;
379 return p != NULL ? *p : *
reinterpret_cast<const ::
gz::msgs::PID*
>(
391 if (position_ == NULL) {
392 auto* p = CreateMaybeMessage<::gz::msgs::PID>(GetArenaNoVirtual());
399 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
400 if (message_arena == NULL) {
401 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(position_);
404 ::google::protobuf::Arena* submessage_arena = NULL;
405 if (message_arena != submessage_arena) {
406 position = ::google::protobuf::internal::GetOwnedMessage(
407 message_arena,
position, submessage_arena);
421 inline const ::gz::msgs::PID& JointCmd::_internal_velocity()
const {
425 const ::gz::msgs::PID* p = velocity_;
427 return p != NULL ? *p : *
reinterpret_cast<const ::
gz::msgs::PID*
>(
439 if (velocity_ == NULL) {
440 auto* p = CreateMaybeMessage<::gz::msgs::PID>(GetArenaNoVirtual());
447 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
448 if (message_arena == NULL) {
449 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(velocity_);
452 ::google::protobuf::Arena* submessage_arena = NULL;
453 if (message_arena != submessage_arena) {
454 velocity = ::google::protobuf::internal::GetOwnedMessage(
455 message_arena,
velocity, submessage_arena);
483 inline const ::gz::msgs::Double& JointCmd::_internal_force_optional()
const {
484 return *force_optional_;
487 const ::gz::msgs::Double* p = force_optional_;
496 force_optional_ = NULL;
501 if (force_optional_ == NULL) {
502 auto* p = CreateMaybeMessage<::gz::msgs::Double>(GetArenaNoVirtual());
506 return force_optional_;
509 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
510 if (message_arena == NULL) {
511 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(force_optional_);
514 ::google::protobuf::Arena* submessage_arena = NULL;
515 if (message_arena != submessage_arena) {
528 #pragma GCC diagnostic pop
538 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2fjoint_5fcmd_2eproto