Gazebo Msgs

API Reference

9.5.1
param.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: gz/msgs/param.proto
3 
4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2fparam_2eproto
5 #define PROTOBUF_INCLUDED_gz_2fmsgs_2fparam_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/map.h> // IWYU pragma: export
33 #include <google/protobuf/map_entry.h>
34 #include <google/protobuf/map_field_inl.h>
35 #include <google/protobuf/unknown_field_set.h>
36 #include "gz/msgs/any.pb.h"
37 #include "gz/msgs/header.pb.h"
38 // @@protoc_insertion_point(includes)
39 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2fparam_2eproto GZ_MSGS_VISIBLE
40 
42 // Internal implementation detail -- do not use these members.
43 struct GZ_MSGS_VISIBLE TableStruct {
44  static const ::google::protobuf::internal::ParseTableField entries[];
45  static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
46  static const ::google::protobuf::internal::ParseTable schema[2];
47  static const ::google::protobuf::internal::FieldMetadata field_metadata[];
48  static const ::google::protobuf::internal::SerializationTable serialization_table[];
49  static const ::google::protobuf::uint32 offsets[];
50 };
51 void GZ_MSGS_VISIBLE AddDescriptors();
52 } // namespace protobuf_gz_2fmsgs_2fparam_2eproto
53 namespace gz {
54 namespace msgs {
55 class Param;
56 class ParamDefaultTypeInternal;
57 GZ_MSGS_VISIBLE extern ParamDefaultTypeInternal _Param_default_instance_;
58 class Param_ParamsEntry_DoNotUse;
59 class Param_ParamsEntry_DoNotUseDefaultTypeInternal;
60 GZ_MSGS_VISIBLE extern Param_ParamsEntry_DoNotUseDefaultTypeInternal _Param_ParamsEntry_DoNotUse_default_instance_;
61 } // namespace msgs
62 } // namespace gz
63 namespace google {
64 namespace protobuf {
65 template<> GZ_MSGS_VISIBLE ::gz::msgs::Param* Arena::CreateMaybeMessage<::gz::msgs::Param>(Arena*);
66 template<> GZ_MSGS_VISIBLE ::gz::msgs::Param_ParamsEntry_DoNotUse* Arena::CreateMaybeMessage<::gz::msgs::Param_ParamsEntry_DoNotUse>(Arena*);
67 } // namespace protobuf
68 } // namespace google
69 namespace gz {
70 namespace msgs {
71 
72 // ===================================================================
73 
74 class Param_ParamsEntry_DoNotUse : public ::google::protobuf::internal::MapEntry<Param_ParamsEntry_DoNotUse,
75  ::std::string, ::gz::msgs::Any,
76  ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
77  ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
78  0 > {
79 public:
80  typedef ::google::protobuf::internal::MapEntry<Param_ParamsEntry_DoNotUse,
82  ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
83  ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
84  0 > SuperType;
86  Param_ParamsEntry_DoNotUse(::google::protobuf::Arena* arena);
87  void MergeFrom(const Param_ParamsEntry_DoNotUse& other);
89  void MergeFrom(const ::google::protobuf::Message& other) final;
90  ::google::protobuf::Metadata GetMetadata() const;
91 };
92 
93 // -------------------------------------------------------------------
94 
95 class GZ_MSGS_VISIBLE Param : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:gz.msgs.Param) */ {
96  public:
97  Param();
98  virtual ~Param();
99 
100  Param(const Param& from);
101 
102  inline Param& operator=(const Param& from) {
103  CopyFrom(from);
104  return *this;
105  }
106  #if LANG_CXX11
107  Param(Param&& from) noexcept
108  : Param() {
109  *this = ::std::move(from);
110  }
111 
112  inline Param& operator=(Param&& from) noexcept {
113  if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
114  if (this != &from) InternalSwap(&from);
115  } else {
116  CopyFrom(from);
117  }
118  return *this;
119  }
120  #endif
121  static const ::google::protobuf::Descriptor* descriptor();
122  static const Param& default_instance();
123 
124  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
125  static inline const Param* internal_default_instance() {
126  return reinterpret_cast<const Param*>(
128  }
129  static constexpr int kIndexInFileMessages =
130  1;
131 
132  void Swap(Param* other);
133  friend void swap(Param& a, Param& b) {
134  a.Swap(&b);
135  }
136 
137  // implements Message ----------------------------------------------
138 
139  inline Param* New() const final {
140  return CreateMaybeMessage<Param>(NULL);
141  }
142 
143  Param* New(::google::protobuf::Arena* arena) const final {
144  return CreateMaybeMessage<Param>(arena);
145  }
146  void CopyFrom(const ::google::protobuf::Message& from) final;
147  void MergeFrom(const ::google::protobuf::Message& from) final;
148  void CopyFrom(const Param& from);
149  void MergeFrom(const Param& from);
150  void Clear() final;
151  bool IsInitialized() const final;
152 
153  size_t ByteSizeLong() const final;
154  bool MergePartialFromCodedStream(
155  ::google::protobuf::io::CodedInputStream* input) final;
156  void SerializeWithCachedSizes(
157  ::google::protobuf::io::CodedOutputStream* output) const final;
158  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
159  bool deterministic, ::google::protobuf::uint8* target) const final;
160  int GetCachedSize() const final { return _cached_size_.Get(); }
161 
162  private:
163  void SharedCtor();
164  void SharedDtor();
165  void SetCachedSize(int size) const final;
166  void InternalSwap(Param* other);
167  private:
168  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
169  return NULL;
170  }
171  inline void* MaybeArenaPtr() const {
172  return NULL;
173  }
174  public:
175 
176  ::google::protobuf::Metadata GetMetadata() const final;
177 
178  // nested types ----------------------------------------------------
179 
180 
181  // accessors -------------------------------------------------------
182 
183  // map<string, .gz.msgs.Any> params = 2;
184  int params_size() const;
185  void clear_params();
186  static const int kParamsFieldNumber = 2;
187  const ::google::protobuf::Map< ::std::string, ::gz::msgs::Any >&
188  params() const;
189  ::google::protobuf::Map< ::std::string, ::gz::msgs::Any >*
190  mutable_params();
191 
192  // repeated .gz.msgs.Param children = 3;
193  int children_size() const;
194  void clear_children();
195  static const int kChildrenFieldNumber = 3;
196  ::gz::msgs::Param* mutable_children(int index);
197  ::google::protobuf::RepeatedPtrField< ::gz::msgs::Param >*
198  mutable_children();
199  const ::gz::msgs::Param& children(int index) const;
200  ::gz::msgs::Param* add_children();
201  const ::google::protobuf::RepeatedPtrField< ::gz::msgs::Param >&
202  children() const;
203 
204  // .gz.msgs.Header header = 1;
205  bool has_header() const;
206  void clear_header();
207  static const int kHeaderFieldNumber = 1;
208  private:
209  const ::gz::msgs::Header& _internal_header() const;
210  public:
211  const ::gz::msgs::Header& header() const;
212  ::gz::msgs::Header* release_header();
213  ::gz::msgs::Header* mutable_header();
214  void set_allocated_header(::gz::msgs::Header* header);
215 
216  // @@protoc_insertion_point(class_scope:gz.msgs.Param)
217  private:
218 
219  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
220  ::google::protobuf::internal::MapField<
222  ::std::string, ::gz::msgs::Any,
223  ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
224  ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
225  0 > params_;
226  ::google::protobuf::RepeatedPtrField< ::gz::msgs::Param > children_;
227  ::gz::msgs::Header* header_;
228  mutable ::google::protobuf::internal::CachedSize _cached_size_;
229  friend struct ::protobuf_gz_2fmsgs_2fparam_2eproto::TableStruct;
230 };
231 // ===================================================================
232 
233 
234 // ===================================================================
235 
236 #ifdef __GNUC__
237  #pragma GCC diagnostic push
238  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
239 #endif // __GNUC__
240 // -------------------------------------------------------------------
241 
242 // Param
243 
244 // .gz.msgs.Header header = 1;
245 inline bool Param::has_header() const {
246  return this != internal_default_instance() && header_ != NULL;
247 }
248 inline const ::gz::msgs::Header& Param::_internal_header() const {
249  return *header_;
250 }
251 inline const ::gz::msgs::Header& Param::header() const {
252  const ::gz::msgs::Header* p = header_;
253  // @@protoc_insertion_point(field_get:gz.msgs.Param.header)
254  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Header*>(
256 }
257 inline ::gz::msgs::Header* Param::release_header() {
258  // @@protoc_insertion_point(field_release:gz.msgs.Param.header)
259 
260  ::gz::msgs::Header* temp = header_;
261  header_ = NULL;
262  return temp;
263 }
264 inline ::gz::msgs::Header* Param::mutable_header() {
265 
266  if (header_ == NULL) {
267  auto* p = CreateMaybeMessage<::gz::msgs::Header>(GetArenaNoVirtual());
268  header_ = p;
269  }
270  // @@protoc_insertion_point(field_mutable:gz.msgs.Param.header)
271  return header_;
272 }
274  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
275  if (message_arena == NULL) {
276  delete reinterpret_cast< ::google::protobuf::MessageLite*>(header_);
277  }
278  if (header) {
279  ::google::protobuf::Arena* submessage_arena = NULL;
280  if (message_arena != submessage_arena) {
281  header = ::google::protobuf::internal::GetOwnedMessage(
282  message_arena, header, submessage_arena);
283  }
284 
285  } else {
286 
287  }
288  header_ = header;
289  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Param.header)
290 }
291 
292 // map<string, .gz.msgs.Any> params = 2;
293 inline int Param::params_size() const {
294  return params_.size();
295 }
296 inline const ::google::protobuf::Map< ::std::string, ::gz::msgs::Any >&
297 Param::params() const {
298  // @@protoc_insertion_point(field_map:gz.msgs.Param.params)
299  return params_.GetMap();
300 }
301 inline ::google::protobuf::Map< ::std::string, ::gz::msgs::Any >*
303  // @@protoc_insertion_point(field_mutable_map:gz.msgs.Param.params)
304  return params_.MutableMap();
305 }
306 
307 // repeated .gz.msgs.Param children = 3;
308 inline int Param::children_size() const {
309  return children_.size();
310 }
311 inline void Param::clear_children() {
312  children_.Clear();
313 }
314 inline ::gz::msgs::Param* Param::mutable_children(int index) {
315  // @@protoc_insertion_point(field_mutable:gz.msgs.Param.children)
316  return children_.Mutable(index);
317 }
318 inline ::google::protobuf::RepeatedPtrField< ::gz::msgs::Param >*
320  // @@protoc_insertion_point(field_mutable_list:gz.msgs.Param.children)
321  return &children_;
322 }
323 inline const ::gz::msgs::Param& Param::children(int index) const {
324  // @@protoc_insertion_point(field_get:gz.msgs.Param.children)
325  return children_.Get(index);
326 }
327 inline ::gz::msgs::Param* Param::add_children() {
328  // @@protoc_insertion_point(field_add:gz.msgs.Param.children)
329  return children_.Add();
330 }
331 inline const ::google::protobuf::RepeatedPtrField< ::gz::msgs::Param >&
333  // @@protoc_insertion_point(field_list:gz.msgs.Param.children)
334  return children_;
335 }
336 
337 #ifdef __GNUC__
338  #pragma GCC diagnostic pop
339 #endif // __GNUC__
340 // -------------------------------------------------------------------
341 
342 
343 // @@protoc_insertion_point(namespace_scope)
344 
345 } // namespace msgs
346 } // namespace gz
347 
348 // @@protoc_insertion_point(global_scope)
349 
350 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2fparam_2eproto