4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2fmodel_5fconfiguration_2eproto
5 #define PROTOBUF_INCLUDED_gz_2fmsgs_2fmodel_5fconfiguration_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/time.pb.h"
34 #include "gz/msgs/pose.pb.h"
35 #include "gz/msgs/header.pb.h"
37 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2fmodel_5fconfiguration_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[];
53 class ModelConfiguration;
54 class ModelConfigurationDefaultTypeInternal;
60 template<> GZ_MSGS_VISIBLE ::gz::msgs::ModelConfiguration* Arena::CreateMaybeMessage<::gz::msgs::ModelConfiguration>(Arena*);
82 *
this = ::std::move(from);
85 inline ModelConfiguration& operator=(ModelConfiguration&& from) noexcept {
86 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
87 if (
this != &from) InternalSwap(&from);
94 static const ::google::protobuf::Descriptor* descriptor();
95 static const ModelConfiguration& default_instance();
97 static void InitAsDefaultInstance();
102 static constexpr
int kIndexInFileMessages =
113 return CreateMaybeMessage<ModelConfiguration>(NULL);
117 return CreateMaybeMessage<ModelConfiguration>(arena);
119 void CopyFrom(const ::google::protobuf::Message& from)
final;
120 void MergeFrom(const ::google::protobuf::Message& from)
final;
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;
156 int joint_names_size() const;
157 void clear_joint_names();
158 static const
int kJointNamesFieldNumber = 3;
159 const ::
std::
string& joint_names(
int index) const;
160 ::
std::
string* mutable_joint_names(
int index);
161 void set_joint_names(
int index, const ::
std::
string& value);
163 void set_joint_names(
int index, ::
std::string&& value);
165 void set_joint_names(
int index,
const char* value);
166 void set_joint_names(
int index,
const char* value,
size_t size);
168 void add_joint_names(const ::std::string& value);
172 void add_joint_names(
const char* value);
173 void add_joint_names(
const char* value,
size_t size);
174 const ::google::protobuf::RepeatedPtrField< ::std::string>& joint_names()
const;
175 ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_joint_names();
178 int joint_positions_size()
const;
179 void clear_joint_positions();
180 static const int kJointPositionsFieldNumber = 4;
181 double joint_positions(
int index)
const;
182 void set_joint_positions(
int index,
double value);
183 void add_joint_positions(
double value);
184 const ::google::protobuf::RepeatedField< double >&
185 joint_positions()
const;
186 ::google::protobuf::RepeatedField< double >*
187 mutable_joint_positions();
190 void clear_link_name();
191 static const int kLinkNameFieldNumber = 6;
192 const ::std::string& link_name()
const;
193 void set_link_name(const ::std::string& value);
197 void set_link_name(
const char* value);
198 void set_link_name(
const char* value,
size_t size);
201 void set_allocated_link_name(::
std::string* link_name);
204 bool has_header()
const;
206 static const int kHeaderFieldNumber = 1;
208 const ::gz::msgs::Header& _internal_header()
const;
210 const ::gz::msgs::Header& header()
const;
216 bool has_time()
const;
218 static const int kTimeFieldNumber = 2;
220 const ::gz::msgs::Time& _internal_time()
const;
222 const ::gz::msgs::Time& time()
const;
228 bool has_pose()
const;
230 static const int kPoseFieldNumber = 5;
232 const ::gz::msgs::Pose& _internal_pose()
const;
234 const ::gz::msgs::Pose& pose()
const;
242 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
243 ::google::protobuf::RepeatedPtrField< ::std::string> joint_names_;
244 ::google::protobuf::RepeatedField< double > joint_positions_;
245 mutable int _joint_positions_cached_byte_size_;
246 ::google::protobuf::internal::ArenaStringPtr link_name_;
250 mutable ::google::protobuf::internal::CachedSize _cached_size_;
251 friend struct ::protobuf_gz_2fmsgs_2fmodel_5fconfiguration_2eproto::TableStruct;
259 #pragma GCC diagnostic push
260 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
268 inline const ::gz::msgs::Header& ModelConfiguration::_internal_header()
const {
272 const ::gz::msgs::Header* p = header_;
286 if (header_ == NULL) {
287 auto* p = CreateMaybeMessage<::gz::msgs::Header>(GetArenaNoVirtual());
294 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
295 if (message_arena == NULL) {
296 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(header_);
299 ::google::protobuf::Arena* submessage_arena = NULL;
300 if (message_arena != submessage_arena) {
301 header = ::google::protobuf::internal::GetOwnedMessage(
302 message_arena,
header, submessage_arena);
316 inline const ::gz::msgs::Time& ModelConfiguration::_internal_time()
const {
320 const ::gz::msgs::Time* p = time_;
322 return p != NULL ? *p : *
reinterpret_cast<const ::
gz::msgs::Time*
>(
335 auto* p = CreateMaybeMessage<::gz::msgs::Time>(GetArenaNoVirtual());
342 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
343 if (message_arena == NULL) {
344 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(time_);
347 ::google::protobuf::Arena* submessage_arena = NULL;
348 if (message_arena != submessage_arena) {
349 time = ::google::protobuf::internal::GetOwnedMessage(
350 message_arena,
time, submessage_arena);
362 return joint_names_.size();
365 joint_names_.Clear();
369 return joint_names_.Get(index);
373 return joint_names_.Mutable(index);
377 joint_names_.Mutable(index)->assign(value);
382 joint_names_.Mutable(index)->assign(
std::move(value));
386 GOOGLE_DCHECK(value != NULL);
387 joint_names_.Mutable(index)->assign(value);
391 joint_names_.Mutable(index)->assign(
392 reinterpret_cast<const char*
>(value), size);
397 return joint_names_.Add();
400 joint_names_.Add()->assign(value);
410 GOOGLE_DCHECK(value != NULL);
411 joint_names_.Add()->assign(value);
415 joint_names_.Add()->assign(
reinterpret_cast<const char*
>(value), size);
418 inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
423 inline ::google::protobuf::RepeatedPtrField< ::std::string>*
426 return &joint_names_;
431 return joint_positions_.size();
434 joint_positions_.Clear();
438 return joint_positions_.Get(index);
441 joint_positions_.Set(index, value);
445 joint_positions_.Add(value);
448 inline const ::google::protobuf::RepeatedField< double >&
451 return joint_positions_;
453 inline ::google::protobuf::RepeatedField< double >*
456 return &joint_positions_;
463 inline const ::gz::msgs::Pose& ModelConfiguration::_internal_pose()
const {
467 const ::gz::msgs::Pose* p = pose_;
469 return p != NULL ? *p : *
reinterpret_cast<const ::
gz::msgs::Pose*
>(
482 auto* p = CreateMaybeMessage<::gz::msgs::Pose>(GetArenaNoVirtual());
489 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
490 if (message_arena == NULL) {
491 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(pose_);
494 ::google::protobuf::Arena* submessage_arena = NULL;
495 if (message_arena != submessage_arena) {
496 pose = ::google::protobuf::internal::GetOwnedMessage(
497 message_arena,
pose, submessage_arena);
509 link_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
513 return link_name_.GetNoArena();
517 link_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
523 link_name_.SetNoArena(
524 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::move(value));
529 GOOGLE_DCHECK(value != NULL);
531 link_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
536 link_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
537 ::
std::string(
reinterpret_cast<const char*
>(value), size));
543 return link_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
548 return link_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
556 link_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
link_name);
561 #pragma GCC diagnostic pop
571 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2fmodel_5fconfiguration_2eproto