Gazebo Msgs

API Reference

9.5.0
model_configuration.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: gz/msgs/model_configuration.proto
3 
4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2fmodel_5fconfiguration_2eproto
5 #define PROTOBUF_INCLUDED_gz_2fmsgs_2fmodel_5fconfiguration_2eproto
6 
7 #include <string>
8 
9 #include <google/protobuf/stubs/common.h>
10 
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
14 #error your headers.
15 #endif
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.
20 #endif
21 
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> // IWYU pragma: export
31 #include <google/protobuf/extension_set.h> // IWYU pragma: export
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"
36 // @@protoc_insertion_point(includes)
37 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2fmodel_5fconfiguration_2eproto GZ_MSGS_VISIBLE
38 
40 // Internal implementation detail -- do not use these members.
41 struct GZ_MSGS_VISIBLE TableStruct {
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[];
48 };
49 void GZ_MSGS_VISIBLE AddDescriptors();
50 } // namespace protobuf_gz_2fmsgs_2fmodel_5fconfiguration_2eproto
51 namespace gz {
52 namespace msgs {
53 class ModelConfiguration;
54 class ModelConfigurationDefaultTypeInternal;
55 GZ_MSGS_VISIBLE extern ModelConfigurationDefaultTypeInternal _ModelConfiguration_default_instance_;
56 } // namespace msgs
57 } // namespace gz
58 namespace google {
59 namespace protobuf {
60 template<> GZ_MSGS_VISIBLE ::gz::msgs::ModelConfiguration* Arena::CreateMaybeMessage<::gz::msgs::ModelConfiguration>(Arena*);
61 } // namespace protobuf
62 } // namespace google
63 namespace gz {
64 namespace msgs {
65 
66 // ===================================================================
67 
68 class GZ_MSGS_VISIBLE ModelConfiguration : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:gz.msgs.ModelConfiguration) */ {
69  public:
71  virtual ~ModelConfiguration();
72 
74 
76  CopyFrom(from);
77  return *this;
78  }
79  #if LANG_CXX11
80  ModelConfiguration(ModelConfiguration&& from) noexcept
81  : ModelConfiguration() {
82  *this = ::std::move(from);
83  }
84 
85  inline ModelConfiguration& operator=(ModelConfiguration&& from) noexcept {
86  if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
87  if (this != &from) InternalSwap(&from);
88  } else {
89  CopyFrom(from);
90  }
91  return *this;
92  }
93  #endif
94  static const ::google::protobuf::Descriptor* descriptor();
95  static const ModelConfiguration& default_instance();
96 
97  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
99  return reinterpret_cast<const ModelConfiguration*>(
101  }
102  static constexpr int kIndexInFileMessages =
103  0;
104 
105  void Swap(ModelConfiguration* other);
107  a.Swap(&b);
108  }
109 
110  // implements Message ----------------------------------------------
111 
112  inline ModelConfiguration* New() const final {
113  return CreateMaybeMessage<ModelConfiguration>(NULL);
114  }
115 
116  ModelConfiguration* New(::google::protobuf::Arena* arena) const final {
117  return CreateMaybeMessage<ModelConfiguration>(arena);
118  }
119  void CopyFrom(const ::google::protobuf::Message& from) final;
120  void MergeFrom(const ::google::protobuf::Message& from) final;
121  void CopyFrom(const ModelConfiguration& from);
122  void MergeFrom(const ModelConfiguration& from);
123  void Clear() final;
124  bool IsInitialized() const final;
125 
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(); }
134 
135  private:
136  void SharedCtor();
137  void SharedDtor();
138  void SetCachedSize(int size) const final;
139  void InternalSwap(ModelConfiguration* other);
140  private:
141  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
142  return NULL;
143  }
144  inline void* MaybeArenaPtr() const {
145  return NULL;
146  }
147  public:
148 
149  ::google::protobuf::Metadata GetMetadata() const final;
150 
151  // nested types ----------------------------------------------------
152 
153  // accessors -------------------------------------------------------
154 
155  // repeated string joint_names = 3;
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);
162  #if LANG_CXX11
163  void set_joint_names(int index, ::std::string&& value);
164  #endif
165  void set_joint_names(int index, const char* value);
166  void set_joint_names(int index, const char* value, size_t size);
167  ::std::string* add_joint_names();
168  void add_joint_names(const ::std::string& value);
169  #if LANG_CXX11
170  void add_joint_names(::std::string&& value);
171  #endif
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();
176 
177  // repeated double joint_positions = 4;
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();
188 
189  // string link_name = 6;
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);
194  #if LANG_CXX11
195  void set_link_name(::std::string&& value);
196  #endif
197  void set_link_name(const char* value);
198  void set_link_name(const char* value, size_t size);
199  ::std::string* mutable_link_name();
200  ::std::string* release_link_name();
201  void set_allocated_link_name(::std::string* link_name);
202 
203  // .gz.msgs.Header header = 1;
204  bool has_header() const;
205  void clear_header();
206  static const int kHeaderFieldNumber = 1;
207  private:
208  const ::gz::msgs::Header& _internal_header() const;
209  public:
210  const ::gz::msgs::Header& header() const;
211  ::gz::msgs::Header* release_header();
212  ::gz::msgs::Header* mutable_header();
213  void set_allocated_header(::gz::msgs::Header* header);
214 
215  // .gz.msgs.Time time = 2;
216  bool has_time() const;
217  void clear_time();
218  static const int kTimeFieldNumber = 2;
219  private:
220  const ::gz::msgs::Time& _internal_time() const;
221  public:
222  const ::gz::msgs::Time& time() const;
223  ::gz::msgs::Time* release_time();
224  ::gz::msgs::Time* mutable_time();
225  void set_allocated_time(::gz::msgs::Time* time);
226 
227  // .gz.msgs.Pose pose = 5;
228  bool has_pose() const;
229  void clear_pose();
230  static const int kPoseFieldNumber = 5;
231  private:
232  const ::gz::msgs::Pose& _internal_pose() const;
233  public:
234  const ::gz::msgs::Pose& pose() const;
235  ::gz::msgs::Pose* release_pose();
236  ::gz::msgs::Pose* mutable_pose();
237  void set_allocated_pose(::gz::msgs::Pose* pose);
238 
239  // @@protoc_insertion_point(class_scope:gz.msgs.ModelConfiguration)
240  private:
241 
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_;
247  ::gz::msgs::Header* header_;
248  ::gz::msgs::Time* time_;
249  ::gz::msgs::Pose* pose_;
250  mutable ::google::protobuf::internal::CachedSize _cached_size_;
251  friend struct ::protobuf_gz_2fmsgs_2fmodel_5fconfiguration_2eproto::TableStruct;
252 };
253 // ===================================================================
254 
255 
256 // ===================================================================
257 
258 #ifdef __GNUC__
259  #pragma GCC diagnostic push
260  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
261 #endif // __GNUC__
262 // ModelConfiguration
263 
264 // .gz.msgs.Header header = 1;
265 inline bool ModelConfiguration::has_header() const {
266  return this != internal_default_instance() && header_ != NULL;
267 }
268 inline const ::gz::msgs::Header& ModelConfiguration::_internal_header() const {
269  return *header_;
270 }
271 inline const ::gz::msgs::Header& ModelConfiguration::header() const {
272  const ::gz::msgs::Header* p = header_;
273  // @@protoc_insertion_point(field_get:gz.msgs.ModelConfiguration.header)
274  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Header*>(
276 }
277 inline ::gz::msgs::Header* ModelConfiguration::release_header() {
278  // @@protoc_insertion_point(field_release:gz.msgs.ModelConfiguration.header)
279 
280  ::gz::msgs::Header* temp = header_;
281  header_ = NULL;
282  return temp;
283 }
284 inline ::gz::msgs::Header* ModelConfiguration::mutable_header() {
285 
286  if (header_ == NULL) {
287  auto* p = CreateMaybeMessage<::gz::msgs::Header>(GetArenaNoVirtual());
288  header_ = p;
289  }
290  // @@protoc_insertion_point(field_mutable:gz.msgs.ModelConfiguration.header)
291  return header_;
292 }
294  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
295  if (message_arena == NULL) {
296  delete reinterpret_cast< ::google::protobuf::MessageLite*>(header_);
297  }
298  if (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);
303  }
304 
305  } else {
306 
307  }
308  header_ = header;
309  // @@protoc_insertion_point(field_set_allocated:gz.msgs.ModelConfiguration.header)
310 }
311 
312 // .gz.msgs.Time time = 2;
313 inline bool ModelConfiguration::has_time() const {
314  return this != internal_default_instance() && time_ != NULL;
315 }
316 inline const ::gz::msgs::Time& ModelConfiguration::_internal_time() const {
317  return *time_;
318 }
319 inline const ::gz::msgs::Time& ModelConfiguration::time() const {
320  const ::gz::msgs::Time* p = time_;
321  // @@protoc_insertion_point(field_get:gz.msgs.ModelConfiguration.time)
322  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Time*>(
324 }
325 inline ::gz::msgs::Time* ModelConfiguration::release_time() {
326  // @@protoc_insertion_point(field_release:gz.msgs.ModelConfiguration.time)
327 
328  ::gz::msgs::Time* temp = time_;
329  time_ = NULL;
330  return temp;
331 }
332 inline ::gz::msgs::Time* ModelConfiguration::mutable_time() {
333 
334  if (time_ == NULL) {
335  auto* p = CreateMaybeMessage<::gz::msgs::Time>(GetArenaNoVirtual());
336  time_ = p;
337  }
338  // @@protoc_insertion_point(field_mutable:gz.msgs.ModelConfiguration.time)
339  return time_;
340 }
342  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
343  if (message_arena == NULL) {
344  delete reinterpret_cast< ::google::protobuf::MessageLite*>(time_);
345  }
346  if (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);
351  }
352 
353  } else {
354 
355  }
356  time_ = time;
357  // @@protoc_insertion_point(field_set_allocated:gz.msgs.ModelConfiguration.time)
358 }
359 
360 // repeated string joint_names = 3;
362  return joint_names_.size();
363 }
365  joint_names_.Clear();
366 }
367 inline const ::std::string& ModelConfiguration::joint_names(int index) const {
368  // @@protoc_insertion_point(field_get:gz.msgs.ModelConfiguration.joint_names)
369  return joint_names_.Get(index);
370 }
371 inline ::std::string* ModelConfiguration::mutable_joint_names(int index) {
372  // @@protoc_insertion_point(field_mutable:gz.msgs.ModelConfiguration.joint_names)
373  return joint_names_.Mutable(index);
374 }
375 inline void ModelConfiguration::set_joint_names(int index, const ::std::string& value) {
376  // @@protoc_insertion_point(field_set:gz.msgs.ModelConfiguration.joint_names)
377  joint_names_.Mutable(index)->assign(value);
378 }
379 #if LANG_CXX11
380 inline void ModelConfiguration::set_joint_names(int index, ::std::string&& value) {
381  // @@protoc_insertion_point(field_set:gz.msgs.ModelConfiguration.joint_names)
382  joint_names_.Mutable(index)->assign(std::move(value));
383 }
384 #endif
385 inline void ModelConfiguration::set_joint_names(int index, const char* value) {
386  GOOGLE_DCHECK(value != NULL);
387  joint_names_.Mutable(index)->assign(value);
388  // @@protoc_insertion_point(field_set_char:gz.msgs.ModelConfiguration.joint_names)
389 }
390 inline void ModelConfiguration::set_joint_names(int index, const char* value, size_t size) {
391  joint_names_.Mutable(index)->assign(
392  reinterpret_cast<const char*>(value), size);
393  // @@protoc_insertion_point(field_set_pointer:gz.msgs.ModelConfiguration.joint_names)
394 }
395 inline ::std::string* ModelConfiguration::add_joint_names() {
396  // @@protoc_insertion_point(field_add_mutable:gz.msgs.ModelConfiguration.joint_names)
397  return joint_names_.Add();
398 }
399 inline void ModelConfiguration::add_joint_names(const ::std::string& value) {
400  joint_names_.Add()->assign(value);
401  // @@protoc_insertion_point(field_add:gz.msgs.ModelConfiguration.joint_names)
402 }
403 #if LANG_CXX11
404 inline void ModelConfiguration::add_joint_names(::std::string&& value) {
405  joint_names_.Add(std::move(value));
406  // @@protoc_insertion_point(field_add:gz.msgs.ModelConfiguration.joint_names)
407 }
408 #endif
409 inline void ModelConfiguration::add_joint_names(const char* value) {
410  GOOGLE_DCHECK(value != NULL);
411  joint_names_.Add()->assign(value);
412  // @@protoc_insertion_point(field_add_char:gz.msgs.ModelConfiguration.joint_names)
413 }
414 inline void ModelConfiguration::add_joint_names(const char* value, size_t size) {
415  joint_names_.Add()->assign(reinterpret_cast<const char*>(value), size);
416  // @@protoc_insertion_point(field_add_pointer:gz.msgs.ModelConfiguration.joint_names)
417 }
418 inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
420  // @@protoc_insertion_point(field_list:gz.msgs.ModelConfiguration.joint_names)
421  return joint_names_;
422 }
423 inline ::google::protobuf::RepeatedPtrField< ::std::string>*
425  // @@protoc_insertion_point(field_mutable_list:gz.msgs.ModelConfiguration.joint_names)
426  return &joint_names_;
427 }
428 
429 // repeated double joint_positions = 4;
431  return joint_positions_.size();
432 }
434  joint_positions_.Clear();
435 }
436 inline double ModelConfiguration::joint_positions(int index) const {
437  // @@protoc_insertion_point(field_get:gz.msgs.ModelConfiguration.joint_positions)
438  return joint_positions_.Get(index);
439 }
440 inline void ModelConfiguration::set_joint_positions(int index, double value) {
441  joint_positions_.Set(index, value);
442  // @@protoc_insertion_point(field_set:gz.msgs.ModelConfiguration.joint_positions)
443 }
444 inline void ModelConfiguration::add_joint_positions(double value) {
445  joint_positions_.Add(value);
446  // @@protoc_insertion_point(field_add:gz.msgs.ModelConfiguration.joint_positions)
447 }
448 inline const ::google::protobuf::RepeatedField< double >&
450  // @@protoc_insertion_point(field_list:gz.msgs.ModelConfiguration.joint_positions)
451  return joint_positions_;
452 }
453 inline ::google::protobuf::RepeatedField< double >*
455  // @@protoc_insertion_point(field_mutable_list:gz.msgs.ModelConfiguration.joint_positions)
456  return &joint_positions_;
457 }
458 
459 // .gz.msgs.Pose pose = 5;
460 inline bool ModelConfiguration::has_pose() const {
461  return this != internal_default_instance() && pose_ != NULL;
462 }
463 inline const ::gz::msgs::Pose& ModelConfiguration::_internal_pose() const {
464  return *pose_;
465 }
466 inline const ::gz::msgs::Pose& ModelConfiguration::pose() const {
467  const ::gz::msgs::Pose* p = pose_;
468  // @@protoc_insertion_point(field_get:gz.msgs.ModelConfiguration.pose)
469  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Pose*>(
471 }
472 inline ::gz::msgs::Pose* ModelConfiguration::release_pose() {
473  // @@protoc_insertion_point(field_release:gz.msgs.ModelConfiguration.pose)
474 
475  ::gz::msgs::Pose* temp = pose_;
476  pose_ = NULL;
477  return temp;
478 }
479 inline ::gz::msgs::Pose* ModelConfiguration::mutable_pose() {
480 
481  if (pose_ == NULL) {
482  auto* p = CreateMaybeMessage<::gz::msgs::Pose>(GetArenaNoVirtual());
483  pose_ = p;
484  }
485  // @@protoc_insertion_point(field_mutable:gz.msgs.ModelConfiguration.pose)
486  return pose_;
487 }
489  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
490  if (message_arena == NULL) {
491  delete reinterpret_cast< ::google::protobuf::MessageLite*>(pose_);
492  }
493  if (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);
498  }
499 
500  } else {
501 
502  }
503  pose_ = pose;
504  // @@protoc_insertion_point(field_set_allocated:gz.msgs.ModelConfiguration.pose)
505 }
506 
507 // string link_name = 6;
509  link_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
510 }
511 inline const ::std::string& ModelConfiguration::link_name() const {
512  // @@protoc_insertion_point(field_get:gz.msgs.ModelConfiguration.link_name)
513  return link_name_.GetNoArena();
514 }
515 inline void ModelConfiguration::set_link_name(const ::std::string& value) {
516 
517  link_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
518  // @@protoc_insertion_point(field_set:gz.msgs.ModelConfiguration.link_name)
519 }
520 #if LANG_CXX11
521 inline void ModelConfiguration::set_link_name(::std::string&& value) {
522 
523  link_name_.SetNoArena(
524  &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
525  // @@protoc_insertion_point(field_set_rvalue:gz.msgs.ModelConfiguration.link_name)
526 }
527 #endif
528 inline void ModelConfiguration::set_link_name(const char* value) {
529  GOOGLE_DCHECK(value != NULL);
530 
531  link_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
532  // @@protoc_insertion_point(field_set_char:gz.msgs.ModelConfiguration.link_name)
533 }
534 inline void ModelConfiguration::set_link_name(const char* value, size_t size) {
535 
536  link_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
537  ::std::string(reinterpret_cast<const char*>(value), size));
538  // @@protoc_insertion_point(field_set_pointer:gz.msgs.ModelConfiguration.link_name)
539 }
540 inline ::std::string* ModelConfiguration::mutable_link_name() {
541 
542  // @@protoc_insertion_point(field_mutable:gz.msgs.ModelConfiguration.link_name)
543  return link_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
544 }
545 inline ::std::string* ModelConfiguration::release_link_name() {
546  // @@protoc_insertion_point(field_release:gz.msgs.ModelConfiguration.link_name)
547 
548  return link_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
549 }
551  if (link_name != NULL) {
552 
553  } else {
554 
555  }
556  link_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), link_name);
557  // @@protoc_insertion_point(field_set_allocated:gz.msgs.ModelConfiguration.link_name)
558 }
559 
560 #ifdef __GNUC__
561  #pragma GCC diagnostic pop
562 #endif // __GNUC__
563 
564 // @@protoc_insertion_point(namespace_scope)
565 
566 } // namespace msgs
567 } // namespace gz
568 
569 // @@protoc_insertion_point(global_scope)
570 
571 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2fmodel_5fconfiguration_2eproto