Gazebo Msgs

API Reference

8.7.0
build/ignition-msgs8/include/ignition/msgs/world_control_state.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: ignition/msgs/world_control_state.proto
3 
4 #ifndef PROTOBUF_INCLUDED_ignition_2fmsgs_2fworld_5fcontrol_5fstate_2eproto
5 #define PROTOBUF_INCLUDED_ignition_2fmsgs_2fworld_5fcontrol_5fstate_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>
36 #ifndef _MSC_VER
37 #pragma GCC system_header
38 #else
39 #pragma warning(push)
40 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
41 #endif
42 #ifdef __linux__
43 #include <sys/sysmacros.h>
44 #endif
45 #include <memory>
46 #include <ignition/msgs/Export.hh>
47 // @@protoc_insertion_point(includes)
48 #define PROTOBUF_INTERNAL_EXPORT_protobuf_ignition_2fmsgs_2fworld_5fcontrol_5fstate_2eproto IGNITION_MSGS_VISIBLE
49 
51 // Internal implementation detail -- do not use these members.
52 struct IGNITION_MSGS_VISIBLE TableStruct {
53  static const ::google::protobuf::internal::ParseTableField entries[];
54  static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
55  static const ::google::protobuf::internal::ParseTable schema[1];
56  static const ::google::protobuf::internal::FieldMetadata field_metadata[];
57  static const ::google::protobuf::internal::SerializationTable serialization_table[];
58  static const ::google::protobuf::uint32 offsets[];
59 };
60 void IGNITION_MSGS_VISIBLE AddDescriptors();
61 } // namespace protobuf_ignition_2fmsgs_2fworld_5fcontrol_5fstate_2eproto
62 namespace ignition {
63 namespace msgs {
64 class WorldControlState;
65 class WorldControlStateDefaultTypeInternal;
66 IGNITION_MSGS_VISIBLE extern WorldControlStateDefaultTypeInternal _WorldControlState_default_instance_;
67 } // namespace msgs
68 } // namespace ignition
69 namespace google {
70 namespace protobuf {
71 template<> IGNITION_MSGS_VISIBLE ::ignition::msgs::WorldControlState* Arena::CreateMaybeMessage<::ignition::msgs::WorldControlState>(Arena*);
72 } // namespace protobuf
73 } // namespace google
74 namespace ignition {
75 namespace msgs {
76 
77 // ===================================================================
78 
79 class IGNITION_MSGS_VISIBLE WorldControlState : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.WorldControlState) */ {
80  public:
82  virtual ~WorldControlState();
83 
85 
87  CopyFrom(from);
88  return *this;
89  }
90  #if LANG_CXX11
91  WorldControlState(WorldControlState&& from) noexcept
92  : WorldControlState() {
93  *this = ::std::move(from);
94  }
95 
96  inline WorldControlState& operator=(WorldControlState&& from) noexcept {
97  if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
98  if (this != &from) InternalSwap(&from);
99  } else {
100  CopyFrom(from);
101  }
102  return *this;
103  }
104  #endif
105  static const ::google::protobuf::Descriptor* descriptor();
106  static const WorldControlState& default_instance();
107 
108  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
110  return reinterpret_cast<const WorldControlState*>(
112  }
113  static constexpr int kIndexInFileMessages =
114  0;
115 
116  void Swap(WorldControlState* other);
118  a.Swap(&b);
119  }
120 
121  // implements Message ----------------------------------------------
122 
123  inline WorldControlState* New() const final {
124  return CreateMaybeMessage<WorldControlState>(NULL);
125  }
126 
127  WorldControlState* New(::google::protobuf::Arena* arena) const final {
128  return CreateMaybeMessage<WorldControlState>(arena);
129  }
130  void CopyFrom(const ::google::protobuf::Message& from) final;
131  void MergeFrom(const ::google::protobuf::Message& from) final;
132  void CopyFrom(const WorldControlState& from);
133  void MergeFrom(const WorldControlState& from);
134  void Clear() final;
135  bool IsInitialized() const final;
136 
137  size_t ByteSizeLong() const final;
138  bool MergePartialFromCodedStream(
139  ::google::protobuf::io::CodedInputStream* input) final;
140  void SerializeWithCachedSizes(
141  ::google::protobuf::io::CodedOutputStream* output) const final;
142  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
143  bool deterministic, ::google::protobuf::uint8* target) const final;
144  int GetCachedSize() const final { return _cached_size_.Get(); }
145 
146  private:
147  void SharedCtor();
148  void SharedDtor();
149  void SetCachedSize(int size) const final;
150  void InternalSwap(WorldControlState* other);
151  private:
152  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
153  return NULL;
154  }
155  inline void* MaybeArenaPtr() const {
156  return NULL;
157  }
158  public:
159 
160  ::google::protobuf::Metadata GetMetadata() const final;
161 
162  // nested types ----------------------------------------------------
163 
164  // accessors -------------------------------------------------------
165 
166  // .ignition.msgs.Header header = 1;
167  bool has_header() const;
168  void clear_header();
169  static const int kHeaderFieldNumber = 1;
170  private:
171  const ::ignition::msgs::Header& _internal_header() const;
172  public:
173  const ::ignition::msgs::Header& header() const;
174  ::ignition::msgs::Header* release_header();
175  ::ignition::msgs::Header* mutable_header();
176  void set_allocated_header(::ignition::msgs::Header* header);
177 
178  // .ignition.msgs.WorldControl world_control = 2;
179  bool has_world_control() const;
180  void clear_world_control();
181  static const int kWorldControlFieldNumber = 2;
182  private:
183  const ::ignition::msgs::WorldControl& _internal_world_control() const;
184  public:
185  const ::ignition::msgs::WorldControl& world_control() const;
186  ::ignition::msgs::WorldControl* release_world_control();
187  ::ignition::msgs::WorldControl* mutable_world_control();
188  void set_allocated_world_control(::ignition::msgs::WorldControl* world_control);
189 
190  // .ignition.msgs.SerializedState state = 3;
191  bool has_state() const;
192  void clear_state();
193  static const int kStateFieldNumber = 3;
194  private:
195  const ::ignition::msgs::SerializedState& _internal_state() const;
196  public:
197  const ::ignition::msgs::SerializedState& state() const;
198  ::ignition::msgs::SerializedState* release_state();
199  ::ignition::msgs::SerializedState* mutable_state();
200  void set_allocated_state(::ignition::msgs::SerializedState* state);
201 
202  // @@protoc_insertion_point(class_scope:ignition.msgs.WorldControlState)
203  private:
204 
205  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
206  ::ignition::msgs::Header* header_;
207  ::ignition::msgs::WorldControl* world_control_;
208  ::ignition::msgs::SerializedState* state_;
209  mutable ::google::protobuf::internal::CachedSize _cached_size_;
211 };
212 // ===================================================================
213 
214 
215 // ===================================================================
216 
217 #ifdef __GNUC__
218  #pragma GCC diagnostic push
219  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
220 #endif // __GNUC__
221 // WorldControlState
222 
223 // .ignition.msgs.Header header = 1;
224 inline bool WorldControlState::has_header() const {
225  return this != internal_default_instance() && header_ != NULL;
226 }
227 inline const ::ignition::msgs::Header& WorldControlState::_internal_header() const {
228  return *header_;
229 }
230 inline const ::ignition::msgs::Header& WorldControlState::header() const {
231  const ::ignition::msgs::Header* p = header_;
232  // @@protoc_insertion_point(field_get:ignition.msgs.WorldControlState.header)
233  return p != NULL ? *p : *reinterpret_cast<const ::ignition::msgs::Header*>(
235 }
236 inline ::ignition::msgs::Header* WorldControlState::release_header() {
237  // @@protoc_insertion_point(field_release:ignition.msgs.WorldControlState.header)
238 
239  ::ignition::msgs::Header* temp = header_;
240  header_ = NULL;
241  return temp;
242 }
243 inline ::ignition::msgs::Header* WorldControlState::mutable_header() {
244 
245  if (header_ == NULL) {
246  auto* p = CreateMaybeMessage<::ignition::msgs::Header>(GetArenaNoVirtual());
247  header_ = p;
248  }
249  // @@protoc_insertion_point(field_mutable:ignition.msgs.WorldControlState.header)
250  return header_;
251 }
253  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
254  if (message_arena == NULL) {
255  delete reinterpret_cast< ::google::protobuf::MessageLite*>(header_);
256  }
257  if (header) {
258  ::google::protobuf::Arena* submessage_arena = NULL;
259  if (message_arena != submessage_arena) {
260  header = ::google::protobuf::internal::GetOwnedMessage(
261  message_arena, header, submessage_arena);
262  }
263 
264  } else {
265 
266  }
267  header_ = header;
268  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.WorldControlState.header)
269 }
270 
271 // .ignition.msgs.WorldControl world_control = 2;
273  return this != internal_default_instance() && world_control_ != NULL;
274 }
275 inline const ::ignition::msgs::WorldControl& WorldControlState::_internal_world_control() const {
276  return *world_control_;
277 }
278 inline const ::ignition::msgs::WorldControl& WorldControlState::world_control() const {
279  const ::ignition::msgs::WorldControl* p = world_control_;
280  // @@protoc_insertion_point(field_get:ignition.msgs.WorldControlState.world_control)
281  return p != NULL ? *p : *reinterpret_cast<const ::ignition::msgs::WorldControl*>(
283 }
284 inline ::ignition::msgs::WorldControl* WorldControlState::release_world_control() {
285  // @@protoc_insertion_point(field_release:ignition.msgs.WorldControlState.world_control)
286 
287  ::ignition::msgs::WorldControl* temp = world_control_;
288  world_control_ = NULL;
289  return temp;
290 }
291 inline ::ignition::msgs::WorldControl* WorldControlState::mutable_world_control() {
292 
293  if (world_control_ == NULL) {
294  auto* p = CreateMaybeMessage<::ignition::msgs::WorldControl>(GetArenaNoVirtual());
295  world_control_ = p;
296  }
297  // @@protoc_insertion_point(field_mutable:ignition.msgs.WorldControlState.world_control)
298  return world_control_;
299 }
301  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
302  if (message_arena == NULL) {
303  delete reinterpret_cast< ::google::protobuf::MessageLite*>(world_control_);
304  }
305  if (world_control) {
306  ::google::protobuf::Arena* submessage_arena = NULL;
307  if (message_arena != submessage_arena) {
308  world_control = ::google::protobuf::internal::GetOwnedMessage(
309  message_arena, world_control, submessage_arena);
310  }
311 
312  } else {
313 
314  }
315  world_control_ = world_control;
316  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.WorldControlState.world_control)
317 }
318 
319 // .ignition.msgs.SerializedState state = 3;
320 inline bool WorldControlState::has_state() const {
321  return this != internal_default_instance() && state_ != NULL;
322 }
323 inline const ::ignition::msgs::SerializedState& WorldControlState::_internal_state() const {
324  return *state_;
325 }
326 inline const ::ignition::msgs::SerializedState& WorldControlState::state() const {
327  const ::ignition::msgs::SerializedState* p = state_;
328  // @@protoc_insertion_point(field_get:ignition.msgs.WorldControlState.state)
329  return p != NULL ? *p : *reinterpret_cast<const ::ignition::msgs::SerializedState*>(
331 }
332 inline ::ignition::msgs::SerializedState* WorldControlState::release_state() {
333  // @@protoc_insertion_point(field_release:ignition.msgs.WorldControlState.state)
334 
335  ::ignition::msgs::SerializedState* temp = state_;
336  state_ = NULL;
337  return temp;
338 }
339 inline ::ignition::msgs::SerializedState* WorldControlState::mutable_state() {
340 
341  if (state_ == NULL) {
342  auto* p = CreateMaybeMessage<::ignition::msgs::SerializedState>(GetArenaNoVirtual());
343  state_ = p;
344  }
345  // @@protoc_insertion_point(field_mutable:ignition.msgs.WorldControlState.state)
346  return state_;
347 }
349  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
350  if (message_arena == NULL) {
351  delete reinterpret_cast< ::google::protobuf::MessageLite*>(state_);
352  }
353  if (state) {
354  ::google::protobuf::Arena* submessage_arena = NULL;
355  if (message_arena != submessage_arena) {
356  state = ::google::protobuf::internal::GetOwnedMessage(
357  message_arena, state, submessage_arena);
358  }
359 
360  } else {
361 
362  }
363  state_ = state;
364  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.WorldControlState.state)
365 }
366 
367 #ifdef __GNUC__
368  #pragma GCC diagnostic pop
369 #endif // __GNUC__
370 
375 // @@protoc_insertion_point(namespace_scope)
376 
377 } // namespace msgs
378 } // namespace ignition
379 
380 #ifdef _MSC_VER
381 #pragma warning(pop)
382 #endif
383 // @@protoc_insertion_point(global_scope)
384 
385 #endif // PROTOBUF_INCLUDED_ignition_2fmsgs_2fworld_5fcontrol_5fstate_2eproto
STL class.
Definition: build/ignition-msgs8/include/ignition/msgs/world_control.pb.h:79
const ::ignition::msgs::SerializedState & state() const
Definition: build/ignition-msgs8/include/ignition/msgs/world_control_state.pb.h:326
static const WorldControlState * internal_default_instance()
Definition: build/ignition-msgs8/include/ignition/msgs/world_control_state.pb.h:109
::ignition::msgs::SerializedState * mutable_state()
Definition: build/ignition-msgs8/include/ignition/msgs/world_control_state.pb.h:339
WorldControlState * New() const final
Definition: build/ignition-msgs8/include/ignition/msgs/world_control_state.pb.h:123
IGNITION_MSGS_VISIBLE WorldControlStateDefaultTypeInternal _WorldControlState_default_instance_
::ignition::msgs::SerializedState * release_state()
Definition: build/ignition-msgs8/include/ignition/msgs/world_control_state.pb.h:332
bool has_header() const
Definition: build/ignition-msgs8/include/ignition/msgs/world_control_state.pb.h:224
Definition: build/ignition-msgs8/include/ignition/msgs/world_control_state.pb.h:52
::ignition::msgs::Header * release_header()
Definition: build/ignition-msgs8/include/ignition/msgs/world_control_state.pb.h:236
std::shared_ptr< const WorldControlState > ConstWorldControlStateSharedPtr
Definition: build/ignition-msgs8/include/ignition/msgs/world_control_state.pb.h:374
void set_allocated_header(::ignition::msgs::Header *header)
Definition: build/ignition-msgs8/include/ignition/msgs/world_control_state.pb.h:252
IGNITION_MSGS_VISIBLE WorldControlDefaultTypeInternal _WorldControl_default_instance_
std::unique_ptr< WorldControlState > WorldControlStateUniquePtr
Definition: build/ignition-msgs8/include/ignition/msgs/world_control_state.pb.h:371
void set_allocated_world_control(::ignition::msgs::WorldControl *world_control)
Definition: build/ignition-msgs8/include/ignition/msgs/world_control_state.pb.h:300
friend void swap(WorldControlState &a, WorldControlState &b)
Definition: build/ignition-msgs8/include/ignition/msgs/world_control_state.pb.h:117
const ::ignition::msgs::Header & header() const
Definition: build/ignition-msgs8/include/ignition/msgs/world_control_state.pb.h:230
bool has_state() const
Definition: build/ignition-msgs8/include/ignition/msgs/world_control_state.pb.h:320
const ::ignition::msgs::WorldControl & world_control() const
Definition: build/ignition-msgs8/include/ignition/msgs/world_control_state.pb.h:278
Definition: build/ignition-msgs8/include/ignition/msgs/world_control_state.pb.h:50
std::shared_ptr< WorldControlState > WorldControlStateSharedPtr
Definition: build/ignition-msgs8/include/ignition/msgs/world_control_state.pb.h:373
::ignition::msgs::WorldControl * release_world_control()
Definition: build/ignition-msgs8/include/ignition/msgs/world_control_state.pb.h:284
IGNITION_MSGS_VISIBLE HeaderDefaultTypeInternal _Header_default_instance_
bool has_world_control() const
Definition: build/ignition-msgs8/include/ignition/msgs/world_control_state.pb.h:272
void set_allocated_state(::ignition::msgs::SerializedState *state)
Definition: build/ignition-msgs8/include/ignition/msgs/world_control_state.pb.h:348
IGNITION_MSGS_VISIBLE SerializedStateDefaultTypeInternal _SerializedState_default_instance_
Definition: build/ignition-msgs8/include/ignition/msgs/serialized.pb.h:338
Definition: build/ignition-msgs8/include/ignition/msgs/header.pb.h:215
::ignition::msgs::Header * mutable_header()
Definition: build/ignition-msgs8/include/ignition/msgs/world_control_state.pb.h:243
std::unique_ptr< const WorldControlState > ConstWorldControlStateUniquePtr
Definition: build/ignition-msgs8/include/ignition/msgs/world_control_state.pb.h:372
Definition: build/ignition-msgs8/include/ignition/msgs/world_control_state.pb.h:79
WorldControlState * New(::google::protobuf::Arena *arena) const final
Definition: build/ignition-msgs8/include/ignition/msgs/world_control_state.pb.h:127
WorldControlState & operator=(const WorldControlState &from)
Definition: build/ignition-msgs8/include/ignition/msgs/world_control_state.pb.h:86
::ignition::msgs::WorldControl * mutable_world_control()
Definition: build/ignition-msgs8/include/ignition/msgs/world_control_state.pb.h:291
void Swap(WorldControlState *other)
STL class.
Definition: build/ignition-msgs8/include/ignition/msgs/actor.pb.h:78