Gazebo Msgs

API Reference

9.5.1
world_control_state.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: gz/msgs/world_control_state.proto
3 
4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2fworld_5fcontrol_5fstate_2eproto
5 #define PROTOBUF_INCLUDED_gz_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>
33 #include "gz/msgs/header.pb.h"
34 #include "gz/msgs/serialized.pb.h"
35 #include "gz/msgs/world_control.pb.h"
36 // @@protoc_insertion_point(includes)
37 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2fworld_5fcontrol_5fstate_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_2fworld_5fcontrol_5fstate_2eproto
51 namespace gz {
52 namespace msgs {
53 class WorldControlState;
54 class WorldControlStateDefaultTypeInternal;
55 GZ_MSGS_VISIBLE extern WorldControlStateDefaultTypeInternal _WorldControlState_default_instance_;
56 } // namespace msgs
57 } // namespace gz
58 namespace google {
59 namespace protobuf {
60 template<> GZ_MSGS_VISIBLE ::gz::msgs::WorldControlState* Arena::CreateMaybeMessage<::gz::msgs::WorldControlState>(Arena*);
61 } // namespace protobuf
62 } // namespace google
63 namespace gz {
64 namespace msgs {
65 
66 // ===================================================================
67 
68 class GZ_MSGS_VISIBLE WorldControlState : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:gz.msgs.WorldControlState) */ {
69  public:
71  virtual ~WorldControlState();
72 
74 
76  CopyFrom(from);
77  return *this;
78  }
79  #if LANG_CXX11
80  WorldControlState(WorldControlState&& from) noexcept
81  : WorldControlState() {
82  *this = ::std::move(from);
83  }
84 
85  inline WorldControlState& operator=(WorldControlState&& 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 WorldControlState& default_instance();
96 
97  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
99  return reinterpret_cast<const WorldControlState*>(
101  }
102  static constexpr int kIndexInFileMessages =
103  0;
104 
105  void Swap(WorldControlState* other);
107  a.Swap(&b);
108  }
109 
110  // implements Message ----------------------------------------------
111 
112  inline WorldControlState* New() const final {
113  return CreateMaybeMessage<WorldControlState>(NULL);
114  }
115 
116  WorldControlState* New(::google::protobuf::Arena* arena) const final {
117  return CreateMaybeMessage<WorldControlState>(arena);
118  }
119  void CopyFrom(const ::google::protobuf::Message& from) final;
120  void MergeFrom(const ::google::protobuf::Message& from) final;
121  void CopyFrom(const WorldControlState& from);
122  void MergeFrom(const WorldControlState& 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(WorldControlState* 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  // .gz.msgs.Header header = 1;
156  bool has_header() const;
157  void clear_header();
158  static const int kHeaderFieldNumber = 1;
159  private:
160  const ::gz::msgs::Header& _internal_header() const;
161  public:
162  const ::gz::msgs::Header& header() const;
163  ::gz::msgs::Header* release_header();
164  ::gz::msgs::Header* mutable_header();
165  void set_allocated_header(::gz::msgs::Header* header);
166 
167  // .gz.msgs.WorldControl world_control = 2;
168  bool has_world_control() const;
169  void clear_world_control();
170  static const int kWorldControlFieldNumber = 2;
171  private:
172  const ::gz::msgs::WorldControl& _internal_world_control() const;
173  public:
174  const ::gz::msgs::WorldControl& world_control() const;
175  ::gz::msgs::WorldControl* release_world_control();
176  ::gz::msgs::WorldControl* mutable_world_control();
177  void set_allocated_world_control(::gz::msgs::WorldControl* world_control);
178 
179  // .gz.msgs.SerializedState state = 3;
180  bool has_state() const;
181  void clear_state();
182  static const int kStateFieldNumber = 3;
183  private:
184  const ::gz::msgs::SerializedState& _internal_state() const;
185  public:
186  const ::gz::msgs::SerializedState& state() const;
187  ::gz::msgs::SerializedState* release_state();
188  ::gz::msgs::SerializedState* mutable_state();
189  void set_allocated_state(::gz::msgs::SerializedState* state);
190 
191  // @@protoc_insertion_point(class_scope:gz.msgs.WorldControlState)
192  private:
193 
194  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
195  ::gz::msgs::Header* header_;
196  ::gz::msgs::WorldControl* world_control_;
197  ::gz::msgs::SerializedState* state_;
198  mutable ::google::protobuf::internal::CachedSize _cached_size_;
200 };
201 // ===================================================================
202 
203 
204 // ===================================================================
205 
206 #ifdef __GNUC__
207  #pragma GCC diagnostic push
208  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
209 #endif // __GNUC__
210 // WorldControlState
211 
212 // .gz.msgs.Header header = 1;
213 inline bool WorldControlState::has_header() const {
214  return this != internal_default_instance() && header_ != NULL;
215 }
216 inline const ::gz::msgs::Header& WorldControlState::_internal_header() const {
217  return *header_;
218 }
219 inline const ::gz::msgs::Header& WorldControlState::header() const {
220  const ::gz::msgs::Header* p = header_;
221  // @@protoc_insertion_point(field_get:gz.msgs.WorldControlState.header)
222  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Header*>(
224 }
225 inline ::gz::msgs::Header* WorldControlState::release_header() {
226  // @@protoc_insertion_point(field_release:gz.msgs.WorldControlState.header)
227 
228  ::gz::msgs::Header* temp = header_;
229  header_ = NULL;
230  return temp;
231 }
232 inline ::gz::msgs::Header* WorldControlState::mutable_header() {
233 
234  if (header_ == NULL) {
235  auto* p = CreateMaybeMessage<::gz::msgs::Header>(GetArenaNoVirtual());
236  header_ = p;
237  }
238  // @@protoc_insertion_point(field_mutable:gz.msgs.WorldControlState.header)
239  return header_;
240 }
242  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
243  if (message_arena == NULL) {
244  delete reinterpret_cast< ::google::protobuf::MessageLite*>(header_);
245  }
246  if (header) {
247  ::google::protobuf::Arena* submessage_arena = NULL;
248  if (message_arena != submessage_arena) {
249  header = ::google::protobuf::internal::GetOwnedMessage(
250  message_arena, header, submessage_arena);
251  }
252 
253  } else {
254 
255  }
256  header_ = header;
257  // @@protoc_insertion_point(field_set_allocated:gz.msgs.WorldControlState.header)
258 }
259 
260 // .gz.msgs.WorldControl world_control = 2;
262  return this != internal_default_instance() && world_control_ != NULL;
263 }
264 inline const ::gz::msgs::WorldControl& WorldControlState::_internal_world_control() const {
265  return *world_control_;
266 }
267 inline const ::gz::msgs::WorldControl& WorldControlState::world_control() const {
268  const ::gz::msgs::WorldControl* p = world_control_;
269  // @@protoc_insertion_point(field_get:gz.msgs.WorldControlState.world_control)
270  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::WorldControl*>(
272 }
273 inline ::gz::msgs::WorldControl* WorldControlState::release_world_control() {
274  // @@protoc_insertion_point(field_release:gz.msgs.WorldControlState.world_control)
275 
276  ::gz::msgs::WorldControl* temp = world_control_;
277  world_control_ = NULL;
278  return temp;
279 }
280 inline ::gz::msgs::WorldControl* WorldControlState::mutable_world_control() {
281 
282  if (world_control_ == NULL) {
283  auto* p = CreateMaybeMessage<::gz::msgs::WorldControl>(GetArenaNoVirtual());
284  world_control_ = p;
285  }
286  // @@protoc_insertion_point(field_mutable:gz.msgs.WorldControlState.world_control)
287  return world_control_;
288 }
290  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
291  if (message_arena == NULL) {
292  delete reinterpret_cast< ::google::protobuf::MessageLite*>(world_control_);
293  }
294  if (world_control) {
295  ::google::protobuf::Arena* submessage_arena = NULL;
296  if (message_arena != submessage_arena) {
297  world_control = ::google::protobuf::internal::GetOwnedMessage(
298  message_arena, world_control, submessage_arena);
299  }
300 
301  } else {
302 
303  }
304  world_control_ = world_control;
305  // @@protoc_insertion_point(field_set_allocated:gz.msgs.WorldControlState.world_control)
306 }
307 
308 // .gz.msgs.SerializedState state = 3;
309 inline bool WorldControlState::has_state() const {
310  return this != internal_default_instance() && state_ != NULL;
311 }
312 inline const ::gz::msgs::SerializedState& WorldControlState::_internal_state() const {
313  return *state_;
314 }
315 inline const ::gz::msgs::SerializedState& WorldControlState::state() const {
316  const ::gz::msgs::SerializedState* p = state_;
317  // @@protoc_insertion_point(field_get:gz.msgs.WorldControlState.state)
318  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::SerializedState*>(
320 }
321 inline ::gz::msgs::SerializedState* WorldControlState::release_state() {
322  // @@protoc_insertion_point(field_release:gz.msgs.WorldControlState.state)
323 
324  ::gz::msgs::SerializedState* temp = state_;
325  state_ = NULL;
326  return temp;
327 }
328 inline ::gz::msgs::SerializedState* WorldControlState::mutable_state() {
329 
330  if (state_ == NULL) {
331  auto* p = CreateMaybeMessage<::gz::msgs::SerializedState>(GetArenaNoVirtual());
332  state_ = p;
333  }
334  // @@protoc_insertion_point(field_mutable:gz.msgs.WorldControlState.state)
335  return state_;
336 }
338  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
339  if (message_arena == NULL) {
340  delete reinterpret_cast< ::google::protobuf::MessageLite*>(state_);
341  }
342  if (state) {
343  ::google::protobuf::Arena* submessage_arena = NULL;
344  if (message_arena != submessage_arena) {
345  state = ::google::protobuf::internal::GetOwnedMessage(
346  message_arena, state, submessage_arena);
347  }
348 
349  } else {
350 
351  }
352  state_ = state;
353  // @@protoc_insertion_point(field_set_allocated:gz.msgs.WorldControlState.state)
354 }
355 
356 #ifdef __GNUC__
357  #pragma GCC diagnostic pop
358 #endif // __GNUC__
359 
360 // @@protoc_insertion_point(namespace_scope)
361 
362 } // namespace msgs
363 } // namespace gz
364 
365 // @@protoc_insertion_point(global_scope)
366 
367 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2fworld_5fcontrol_5fstate_2eproto