Ignition Msgs

API Reference

5.8.1
world_reset.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: ignition/msgs/world_reset.proto
3 
4 #ifndef GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2fworld_5freset_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2fworld_5freset_2eproto
6 
7 #include <limits>
8 #include <string>
9 
10 #include <google/protobuf/port_def.inc>
11 #if PROTOBUF_VERSION < 3019000
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 3019000 < 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/port_undef.inc>
23 #include <google/protobuf/io/coded_stream.h>
24 #include <google/protobuf/arena.h>
25 #include <google/protobuf/arenastring.h>
26 #include <google/protobuf/generated_message_table_driven.h>
27 #include <google/protobuf/generated_message_util.h>
28 #include <google/protobuf/metadata_lite.h>
29 #include <google/protobuf/generated_message_reflection.h>
30 #include <google/protobuf/message.h>
31 #include <google/protobuf/repeated_field.h> // IWYU pragma: export
32 #include <google/protobuf/extension_set.h> // IWYU pragma: export
33 #include <google/protobuf/unknown_field_set.h>
35 #ifndef _MSC_VER
36 #pragma GCC system_header
37 #else
38 #pragma warning(push)
39 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
40 #endif
41 #ifdef __linux__
42 #include <sys/sysmacros.h>
43 #endif
44 #include <memory>
45 #include <ignition/msgs/Export.hh>
46 // @@protoc_insertion_point(includes)
47 #include <google/protobuf/port_def.inc>
48 #define PROTOBUF_INTERNAL_EXPORT_ignition_2fmsgs_2fworld_5freset_2eproto IGNITION_MSGS_VISIBLE
49 PROTOBUF_NAMESPACE_OPEN
50 namespace internal {
51 class AnyMetadata;
52 } // namespace internal
53 PROTOBUF_NAMESPACE_CLOSE
54 
55 // Internal implementation detail -- do not use these members.
57  static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
58  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
59  static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[]
60  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
61  static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1]
62  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
63  static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
64  static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
65  static const uint32_t offsets[];
66 };
67 IGNITION_MSGS_VISIBLE extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_ignition_2fmsgs_2fworld_5freset_2eproto;
68 namespace ignition {
69 namespace msgs {
70 class WorldReset;
71 struct WorldResetDefaultTypeInternal;
72 IGNITION_MSGS_VISIBLE extern WorldResetDefaultTypeInternal _WorldReset_default_instance_;
73 } // namespace msgs
74 } // namespace ignition
75 PROTOBUF_NAMESPACE_OPEN
76 template<> IGNITION_MSGS_VISIBLE ::ignition::msgs::WorldReset* Arena::CreateMaybeMessage<::ignition::msgs::WorldReset>(Arena*);
77 PROTOBUF_NAMESPACE_CLOSE
78 namespace ignition {
79 namespace msgs {
80 
81 // ===================================================================
82 
83 class IGNITION_MSGS_VISIBLE WorldReset final :
84  public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.WorldReset) */ {
85  public:
86  inline WorldReset() : WorldReset(nullptr) {}
87  ~WorldReset() override;
88  explicit constexpr WorldReset(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
89 
90  WorldReset(const WorldReset& from);
91  WorldReset(WorldReset&& from) noexcept
92  : WorldReset() {
93  *this = ::std::move(from);
94  }
95 
96  inline WorldReset& operator=(const WorldReset& from) {
97  CopyFrom(from);
98  return *this;
99  }
100  inline WorldReset& operator=(WorldReset&& from) noexcept {
101  if (this == &from) return *this;
102  if (GetOwningArena() == from.GetOwningArena()
103  #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
104  && GetOwningArena() != nullptr
105  #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
106  ) {
107  InternalSwap(&from);
108  } else {
109  CopyFrom(from);
110  }
111  return *this;
112  }
113 
114  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
115  return GetDescriptor();
116  }
117  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
118  return default_instance().GetMetadata().descriptor;
119  }
120  static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
121  return default_instance().GetMetadata().reflection;
122  }
123  static const WorldReset& default_instance() {
124  return *internal_default_instance();
125  }
126  static inline const WorldReset* internal_default_instance() {
127  return reinterpret_cast<const WorldReset*>(
129  }
130  static constexpr int kIndexInFileMessages =
131  0;
132 
133  friend void swap(WorldReset& a, WorldReset& b) {
134  a.Swap(&b);
135  }
136  inline void Swap(WorldReset* other) {
137  if (other == this) return;
138  #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
139  if (GetOwningArena() != nullptr &&
140  GetOwningArena() == other->GetOwningArena()) {
141  #else // PROTOBUF_FORCE_COPY_IN_SWAP
142  if (GetOwningArena() == other->GetOwningArena()) {
143  #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
144  InternalSwap(other);
145  } else {
146  ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
147  }
148  }
150  if (other == this) return;
151  GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
152  InternalSwap(other);
153  }
154 
155  // implements Message ----------------------------------------------
156 
157  WorldReset* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
158  return CreateMaybeMessage<WorldReset>(arena);
159  }
160  using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
161  void CopyFrom(const WorldReset& from);
162  using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
163  void MergeFrom(const WorldReset& from);
164  private:
165  static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
166  public:
167  PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
168  bool IsInitialized() const final;
169 
170  size_t ByteSizeLong() const final;
171  const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
172  uint8_t* _InternalSerialize(
173  uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
174  int GetCachedSize() const final { return _cached_size_.Get(); }
175 
176  private:
177  void SharedCtor();
178  void SharedDtor();
179  void SetCachedSize(int size) const final;
180  void InternalSwap(WorldReset* other);
181 
182  private:
183  friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
184  static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
185  return "ignition.msgs.WorldReset";
186  }
187  protected:
188  explicit WorldReset(::PROTOBUF_NAMESPACE_ID::Arena* arena,
189  bool is_message_owned = false);
190  private:
191  static void ArenaDtor(void* object);
192  inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
193  public:
194 
195  static const ClassData _class_data_;
196  const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
197 
198  ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
199 
200  // nested types ----------------------------------------------------
201 
202  // accessors -------------------------------------------------------
203 
204  enum : int {
205  kHeaderFieldNumber = 1,
206  kAllFieldNumber = 2,
207  kTimeOnlyFieldNumber = 3,
208  kModelOnlyFieldNumber = 4,
209  };
210  // .ignition.msgs.Header header = 1;
211  bool has_header() const;
212  private:
213  bool _internal_has_header() const;
214  public:
215  void clear_header();
216  const ::ignition::msgs::Header& header() const;
217  PROTOBUF_NODISCARD ::ignition::msgs::Header* release_header();
218  ::ignition::msgs::Header* mutable_header();
219  void set_allocated_header(::ignition::msgs::Header* header);
220  private:
221  const ::ignition::msgs::Header& _internal_header() const;
222  ::ignition::msgs::Header* _internal_mutable_header();
223  public:
224  void unsafe_arena_set_allocated_header(
225  ::ignition::msgs::Header* header);
226  ::ignition::msgs::Header* unsafe_arena_release_header();
227 
228  // bool all = 2;
229  void clear_all();
230  bool all() const;
231  void set_all(bool value);
232  private:
233  bool _internal_all() const;
234  void _internal_set_all(bool value);
235  public:
236 
237  // bool time_only = 3;
238  void clear_time_only();
239  bool time_only() const;
240  void set_time_only(bool value);
241  private:
242  bool _internal_time_only() const;
243  void _internal_set_time_only(bool value);
244  public:
245 
246  // bool model_only = 4;
247  void clear_model_only();
248  bool model_only() const;
249  void set_model_only(bool value);
250  private:
251  bool _internal_model_only() const;
252  void _internal_set_model_only(bool value);
253  public:
254 
255  // @@protoc_insertion_point(class_scope:ignition.msgs.WorldReset)
256  private:
257  class _Internal;
258 
259  template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
260  typedef void InternalArenaConstructable_;
261  typedef void DestructorSkippable_;
262  ::ignition::msgs::Header* header_;
263  bool all_;
264  bool time_only_;
265  bool model_only_;
266  mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
267  friend struct ::TableStruct_ignition_2fmsgs_2fworld_5freset_2eproto;
268 };
269 // ===================================================================
270 
271 
272 // ===================================================================
273 
274 #ifdef __GNUC__
275  #pragma GCC diagnostic push
276  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
277 #endif // __GNUC__
278 // WorldReset
279 
280 // .ignition.msgs.Header header = 1;
281 inline bool WorldReset::_internal_has_header() const {
282  return this != internal_default_instance() && header_ != nullptr;
283 }
284 inline bool WorldReset::has_header() const {
285  return _internal_has_header();
286 }
287 inline const ::ignition::msgs::Header& WorldReset::_internal_header() const {
288  const ::ignition::msgs::Header* p = header_;
289  return p != nullptr ? *p : reinterpret_cast<const ::ignition::msgs::Header&>(
291 }
292 inline const ::ignition::msgs::Header& WorldReset::header() const {
293  // @@protoc_insertion_point(field_get:ignition.msgs.WorldReset.header)
294  return _internal_header();
295 }
297  ::ignition::msgs::Header* header) {
298  if (GetArenaForAllocation() == nullptr) {
299  delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(header_);
300  }
301  header_ = header;
302  if (header) {
303 
304  } else {
305 
306  }
307  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:ignition.msgs.WorldReset.header)
308 }
309 inline ::ignition::msgs::Header* WorldReset::release_header() {
310 
311  ::ignition::msgs::Header* temp = header_;
312  header_ = nullptr;
313 #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
314  auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
315  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
316  if (GetArenaForAllocation() == nullptr) { delete old; }
317 #else // PROTOBUF_FORCE_COPY_IN_RELEASE
318  if (GetArenaForAllocation() != nullptr) {
319  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
320  }
321 #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
322  return temp;
323 }
324 inline ::ignition::msgs::Header* WorldReset::unsafe_arena_release_header() {
325  // @@protoc_insertion_point(field_release:ignition.msgs.WorldReset.header)
326 
327  ::ignition::msgs::Header* temp = header_;
328  header_ = nullptr;
329  return temp;
330 }
331 inline ::ignition::msgs::Header* WorldReset::_internal_mutable_header() {
332 
333  if (header_ == nullptr) {
334  auto* p = CreateMaybeMessage<::ignition::msgs::Header>(GetArenaForAllocation());
335  header_ = p;
336  }
337  return header_;
338 }
339 inline ::ignition::msgs::Header* WorldReset::mutable_header() {
340  ::ignition::msgs::Header* _msg = _internal_mutable_header();
341  // @@protoc_insertion_point(field_mutable:ignition.msgs.WorldReset.header)
342  return _msg;
343 }
345  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
346  if (message_arena == nullptr) {
347  delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(header_);
348  }
349  if (header) {
350  ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
351  ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<
352  ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena(
353  reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(header));
354  if (message_arena != submessage_arena) {
355  header = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
356  message_arena, header, submessage_arena);
357  }
358 
359  } else {
360 
361  }
362  header_ = header;
363  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.WorldReset.header)
364 }
365 
366 // bool all = 2;
367 inline void WorldReset::clear_all() {
368  all_ = false;
369 }
370 inline bool WorldReset::_internal_all() const {
371  return all_;
372 }
373 inline bool WorldReset::all() const {
374  // @@protoc_insertion_point(field_get:ignition.msgs.WorldReset.all)
375  return _internal_all();
376 }
377 inline void WorldReset::_internal_set_all(bool value) {
378 
379  all_ = value;
380 }
381 inline void WorldReset::set_all(bool value) {
382  _internal_set_all(value);
383  // @@protoc_insertion_point(field_set:ignition.msgs.WorldReset.all)
384 }
385 
386 // bool time_only = 3;
388  time_only_ = false;
389 }
390 inline bool WorldReset::_internal_time_only() const {
391  return time_only_;
392 }
393 inline bool WorldReset::time_only() const {
394  // @@protoc_insertion_point(field_get:ignition.msgs.WorldReset.time_only)
395  return _internal_time_only();
396 }
397 inline void WorldReset::_internal_set_time_only(bool value) {
398 
399  time_only_ = value;
400 }
401 inline void WorldReset::set_time_only(bool value) {
402  _internal_set_time_only(value);
403  // @@protoc_insertion_point(field_set:ignition.msgs.WorldReset.time_only)
404 }
405 
406 // bool model_only = 4;
408  model_only_ = false;
409 }
410 inline bool WorldReset::_internal_model_only() const {
411  return model_only_;
412 }
413 inline bool WorldReset::model_only() const {
414  // @@protoc_insertion_point(field_get:ignition.msgs.WorldReset.model_only)
415  return _internal_model_only();
416 }
417 inline void WorldReset::_internal_set_model_only(bool value) {
418 
419  model_only_ = value;
420 }
421 inline void WorldReset::set_model_only(bool value) {
422  _internal_set_model_only(value);
423  // @@protoc_insertion_point(field_set:ignition.msgs.WorldReset.model_only)
424 }
425 
426 #ifdef __GNUC__
427  #pragma GCC diagnostic pop
428 #endif // __GNUC__
429 
434 // @@protoc_insertion_point(namespace_scope)
435 
436 } // namespace msgs
437 } // namespace ignition
438 
439 #ifdef _MSC_VER
440 #pragma warning(pop)
441 #endif
442 // @@protoc_insertion_point(global_scope)
443 
444 #include <google/protobuf/port_undef.inc>
445 #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2fworld_5freset_2eproto
Definition: header.pb.h:265
Definition: world_reset.pb.h:84
void set_all(bool value)
Definition: world_reset.pb.h:381
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition: world_reset.pb.h:120
bool has_header() const
Definition: world_reset.pb.h:284
::ignition::msgs::Header * mutable_header()
Definition: world_reset.pb.h:339
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
void UnsafeArenaSwap(WorldReset *other)
Definition: world_reset.pb.h:149
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition: world_reset.pb.h:114
static const WorldReset * internal_default_instance()
Definition: world_reset.pb.h:126
static const WorldReset & default_instance()
Definition: world_reset.pb.h:123
void Swap(WorldReset *other)
Definition: world_reset.pb.h:136
void unsafe_arena_set_allocated_header(::ignition::msgs::Header *header)
Definition: world_reset.pb.h:296
WorldReset & operator=(const WorldReset &from)
Definition: world_reset.pb.h:96
void clear_time_only()
Definition: world_reset.pb.h:387
void CopyFrom(const WorldReset &from)
void MergeFrom(const WorldReset &from)
bool all() const
Definition: world_reset.pb.h:373
void set_model_only(bool value)
Definition: world_reset.pb.h:421
void clear_model_only()
Definition: world_reset.pb.h:407
WorldReset(WorldReset &&from) noexcept
Definition: world_reset.pb.h:91
void set_allocated_header(::ignition::msgs::Header *header)
Definition: world_reset.pb.h:344
bool time_only() const
Definition: world_reset.pb.h:393
PROTOBUF_NODISCARD ::ignition::msgs::Header * release_header()
Definition: world_reset.pb.h:309
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
WorldReset(const WorldReset &from)
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition: world_reset.pb.h:117
const ::ignition::msgs::Header & header() const
Definition: world_reset.pb.h:292
static const ClassData _class_data_
Definition: world_reset.pb.h:195
::ignition::msgs::Header * unsafe_arena_release_header()
Definition: world_reset.pb.h:324
WorldReset(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
constexpr WorldReset(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
void set_time_only(bool value)
Definition: world_reset.pb.h:401
void clear_all()
Definition: world_reset.pb.h:367
WorldReset()
Definition: world_reset.pb.h:86
bool model_only() const
Definition: world_reset.pb.h:413
WorldReset * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
Definition: world_reset.pb.h:157
friend void swap(WorldReset &a, WorldReset &b)
Definition: world_reset.pb.h:133
WorldReset & operator=(WorldReset &&from) noexcept
Definition: world_reset.pb.h:100
std::shared_ptr< const WorldReset > ConstWorldResetSharedPtr
Definition: world_reset.pb.h:433
std::shared_ptr< WorldReset > WorldResetSharedPtr
Definition: world_reset.pb.h:432
IGNITION_MSGS_VISIBLE WorldResetDefaultTypeInternal _WorldReset_default_instance_
std::unique_ptr< WorldReset > WorldResetUniquePtr
Definition: world_reset.pb.h:430
IGNITION_MSGS_VISIBLE HeaderDefaultTypeInternal _Header_default_instance_
std::unique_ptr< const WorldReset > ConstWorldResetUniquePtr
Definition: world_reset.pb.h:431
Definition: actor.pb.h:52
static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
IGNITION_MSGS_VISIBLEconst ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_ignition_2fmsgs_2fworld_5freset_2eproto