4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2faxis_2eproto
5 #define PROTOBUF_INCLUDED_gz_2fmsgs_2faxis_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/vector3d.pb.h"
34 #include "gz/msgs/header.pb.h"
36 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2faxis_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 AxisDefaultTypeInternal;
59 template<> GZ_MSGS_VISIBLE ::gz::msgs::Axis* Arena::CreateMaybeMessage<::gz::msgs::Axis>(Arena*);
67 class GZ_MSGS_VISIBLE
Axis :
public ::google::protobuf::Message {
81 *
this = ::std::move(from);
84 inline Axis& operator=(Axis&& from) noexcept {
85 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
86 if (
this != &from) InternalSwap(&from);
93 static const ::google::protobuf::Descriptor* descriptor();
94 static const Axis& default_instance();
96 static void InitAsDefaultInstance();
98 return reinterpret_cast<const Axis*
>(
101 static constexpr
int kIndexInFileMessages =
104 void Swap(
Axis* other);
112 return CreateMaybeMessage<Axis>(NULL);
115 Axis*
New(::google::protobuf::Arena* arena)
const final {
116 return CreateMaybeMessage<Axis>(arena);
118 void CopyFrom(const ::google::protobuf::Message& from)
final;
119 void MergeFrom(const ::google::protobuf::Message& from)
final;
120 void CopyFrom(
const Axis& from);
121 void MergeFrom(
const Axis& 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(
Axis* other);
140 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
143 inline void* MaybeArenaPtr()
const {
148 ::google::protobuf::Metadata GetMetadata() const final;
155 void clear_xyz_expressed_in();
156 static const
int kXyzExpressedInFieldNumber = 14;
157 const ::
std::
string& xyz_expressed_in() const;
158 void set_xyz_expressed_in(const ::
std::
string& value);
162 void set_xyz_expressed_in(
const char* value);
163 void set_xyz_expressed_in(
const char* value,
size_t size);
166 void set_allocated_xyz_expressed_in(::
std::string* xyz_expressed_in);
169 bool has_header()
const;
171 static const int kHeaderFieldNumber = 1;
173 const ::gz::msgs::Header& _internal_header()
const;
175 const ::gz::msgs::Header& header()
const;
181 bool has_xyz()
const;
183 static const int kXyzFieldNumber = 2;
185 const ::gz::msgs::Vector3d& _internal_xyz()
const;
187 const ::gz::msgs::Vector3d& xyz()
const;
193 void clear_limit_lower();
194 static const int kLimitLowerFieldNumber = 3;
195 double limit_lower()
const;
196 void set_limit_lower(
double value);
199 void clear_limit_upper();
200 static const int kLimitUpperFieldNumber = 4;
201 double limit_upper()
const;
202 void set_limit_upper(
double value);
205 void clear_limit_effort();
206 static const int kLimitEffortFieldNumber = 5;
207 double limit_effort()
const;
208 void set_limit_effort(
double value);
211 void clear_limit_velocity();
212 static const int kLimitVelocityFieldNumber = 6;
213 double limit_velocity()
const;
214 void set_limit_velocity(
double value);
217 void clear_damping();
218 static const int kDampingFieldNumber = 7;
219 double damping()
const;
220 void set_damping(
double value);
223 void clear_friction();
224 static const int kFrictionFieldNumber = 8;
225 double friction()
const;
226 void set_friction(
double value);
229 void clear_position();
230 static const int kPositionFieldNumber = 10;
231 double position()
const;
232 void set_position(
double value);
235 void clear_velocity();
236 static const int kVelocityFieldNumber = 11;
237 double velocity()
const;
238 void set_velocity(
double value);
242 static const int kForceFieldNumber = 12;
243 double force()
const;
244 void set_force(
double value);
247 void clear_acceleration();
248 static const int kAccelerationFieldNumber = 13;
249 double acceleration()
const;
250 void set_acceleration(
double value);
255 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
256 ::google::protobuf::internal::ArenaStringPtr xyz_expressed_in_;
261 double limit_effort_;
262 double limit_velocity_;
268 double acceleration_;
269 mutable ::google::protobuf::internal::CachedSize _cached_size_;
270 friend struct ::protobuf_gz_2fmsgs_2faxis_2eproto::TableStruct;
278 #pragma GCC diagnostic push
279 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
287 inline const ::gz::msgs::Header& Axis::_internal_header()
const {
291 const ::gz::msgs::Header* p = header_;
305 if (header_ == NULL) {
306 auto* p = CreateMaybeMessage<::gz::msgs::Header>(GetArenaNoVirtual());
313 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
314 if (message_arena == NULL) {
315 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(header_);
318 ::google::protobuf::Arena* submessage_arena = NULL;
319 if (message_arena != submessage_arena) {
320 header = ::google::protobuf::internal::GetOwnedMessage(
321 message_arena,
header, submessage_arena);
335 inline const ::gz::msgs::Vector3d& Axis::_internal_xyz()
const {
339 const ::gz::msgs::Vector3d* p = xyz_;
354 auto* p = CreateMaybeMessage<::gz::msgs::Vector3d>(GetArenaNoVirtual());
361 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
362 if (message_arena == NULL) {
363 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(xyz_);
366 ::google::protobuf::Arena* submessage_arena = NULL;
367 if (message_arena != submessage_arena) {
368 xyz = ::google::protobuf::internal::GetOwnedMessage(
369 message_arena,
xyz, submessage_arena);
389 limit_lower_ = value;
403 limit_upper_ = value;
413 return limit_effort_;
417 limit_effort_ = value;
427 return limit_velocity_;
431 limit_velocity_ = value;
511 return acceleration_;
515 acceleration_ = value;
521 xyz_expressed_in_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
525 return xyz_expressed_in_.GetNoArena();
529 xyz_expressed_in_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
535 xyz_expressed_in_.SetNoArena(
536 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::move(value));
541 GOOGLE_DCHECK(value != NULL);
543 xyz_expressed_in_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
548 xyz_expressed_in_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
549 ::
std::string(
reinterpret_cast<const char*
>(value), size));
555 return xyz_expressed_in_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
560 return xyz_expressed_in_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
568 xyz_expressed_in_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
xyz_expressed_in);
573 #pragma GCC diagnostic pop
583 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2faxis_2eproto