Ignition Msgs

API Reference

8.1.0
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_ignition_2fmsgs_2fworld_5fcontrol_5fstate_2eproto__INCLUDED
5 #define PROTOBUF_ignition_2fmsgs_2fworld_5fcontrol_5fstate_2eproto__INCLUDED
6 
7 #include <string>
8 
9 #include <google/protobuf/stubs/common.h>
10 
11 #if GOOGLE_PROTOBUF_VERSION < 3000000
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 3000000 < 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/arena.h>
23 #include <google/protobuf/arenastring.h>
24 #include <google/protobuf/generated_message_util.h>
25 #include <google/protobuf/metadata.h>
26 #include <google/protobuf/message.h>
27 #include <google/protobuf/repeated_field.h>
28 #include <google/protobuf/extension_set.h>
29 #include <google/protobuf/unknown_field_set.h>
33 #ifndef _MSC_VER
34 #pragma GCC system_header
35 #else
36 #pragma warning(push)
37 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
38 #endif
39 #ifdef __linux__
40 #include <sys/sysmacros.h>
41 #endif
42 #include <memory>
43 #include <ignition/msgs/Export.hh>
44 // @@protoc_insertion_point(includes)
45 
46 namespace ignition {
47 namespace msgs {
48 
49 // Internal implementation detail -- do not call these.
53 
54 class WorldControlState;
55 
56 // ===================================================================
57 
58 class IGNITION_MSGS_VISIBLE WorldControlState : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.WorldControlState) */ {
59  public:
61  virtual ~WorldControlState();
62 
64 
66  CopyFrom(from);
67  return *this;
68  }
69 
70  static const ::google::protobuf::Descriptor* descriptor();
71  static const WorldControlState& default_instance();
72 
73  void Swap(WorldControlState* other);
74 
75  // implements Message ----------------------------------------------
76 
77  inline WorldControlState* New() const { return New(NULL); }
78 
79  WorldControlState* New(::google::protobuf::Arena* arena) const;
80  void CopyFrom(const ::google::protobuf::Message& from);
81  void MergeFrom(const ::google::protobuf::Message& from);
82  void CopyFrom(const WorldControlState& from);
83  void MergeFrom(const WorldControlState& from);
84  void Clear();
85  bool IsInitialized() const;
86 
87  int ByteSize() const;
88  bool MergePartialFromCodedStream(
89  ::google::protobuf::io::CodedInputStream* input);
90  void SerializeWithCachedSizes(
91  ::google::protobuf::io::CodedOutputStream* output) const;
92  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
93  bool deterministic, ::google::protobuf::uint8* output) const;
94  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const {
95  return InternalSerializeWithCachedSizesToArray(false, output);
96  }
97  int GetCachedSize() const { return _cached_size_; }
98  private:
99  void SharedCtor();
100  void SharedDtor();
101  void SetCachedSize(int size) const;
102  void InternalSwap(WorldControlState* other);
103  private:
104  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
105  return _internal_metadata_.arena();
106  }
107  inline void* MaybeArenaPtr() const {
108  return _internal_metadata_.raw_arena_ptr();
109  }
110  public:
111 
112  ::google::protobuf::Metadata GetMetadata() const;
113 
114  // nested types ----------------------------------------------------
115 
116  // accessors -------------------------------------------------------
117 
118  // optional .ignition.msgs.Header header = 1;
119  bool has_header() const;
120  void clear_header();
121  static const int kHeaderFieldNumber = 1;
122  const ::ignition::msgs::Header& header() const;
123  ::ignition::msgs::Header* mutable_header();
124  ::ignition::msgs::Header* release_header();
125  void set_allocated_header(::ignition::msgs::Header* header);
126 
127  // optional .ignition.msgs.WorldControl world_control = 2;
128  bool has_world_control() const;
129  void clear_world_control();
130  static const int kWorldControlFieldNumber = 2;
131  const ::ignition::msgs::WorldControl& world_control() const;
132  ::ignition::msgs::WorldControl* mutable_world_control();
133  ::ignition::msgs::WorldControl* release_world_control();
134  void set_allocated_world_control(::ignition::msgs::WorldControl* world_control);
135 
136  // optional .ignition.msgs.SerializedState state = 3;
137  bool has_state() const;
138  void clear_state();
139  static const int kStateFieldNumber = 3;
140  const ::ignition::msgs::SerializedState& state() const;
141  ::ignition::msgs::SerializedState* mutable_state();
142  ::ignition::msgs::SerializedState* release_state();
143  void set_allocated_state(::ignition::msgs::SerializedState* state);
144 
145  // @@protoc_insertion_point(class_scope:ignition.msgs.WorldControlState)
146  private:
147 
148  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
149  bool _is_default_instance_;
150  ::ignition::msgs::Header* header_;
151  ::ignition::msgs::WorldControl* world_control_;
153  mutable int _cached_size_;
154  friend void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fworld_5fcontrol_5fstate_2eproto();
157 
158  void InitAsDefaultInstance();
159  static WorldControlState* default_instance_;
160 };
161 // ===================================================================
162 
163 
164 // ===================================================================
165 
166 #if !PROTOBUF_INLINE_NOT_IN_HEADERS
167 // WorldControlState
168 
169 // optional .ignition.msgs.Header header = 1;
170 inline bool WorldControlState::has_header() const {
171  return !_is_default_instance_ && header_ != NULL;
172 }
174  if (GetArenaNoVirtual() == NULL && header_ != NULL) delete header_;
175  header_ = NULL;
176 }
177 inline const ::ignition::msgs::Header& WorldControlState::header() const {
178  // @@protoc_insertion_point(field_get:ignition.msgs.WorldControlState.header)
179  return header_ != NULL ? *header_ : *default_instance_->header_;
180 }
181 inline ::ignition::msgs::Header* WorldControlState::mutable_header() {
182 
183  if (header_ == NULL) {
184  header_ = new ::ignition::msgs::Header;
185  }
186  // @@protoc_insertion_point(field_mutable:ignition.msgs.WorldControlState.header)
187  return header_;
188 }
189 inline ::ignition::msgs::Header* WorldControlState::release_header() {
190  // @@protoc_insertion_point(field_release:ignition.msgs.WorldControlState.header)
191 
192  ::ignition::msgs::Header* temp = header_;
193  header_ = NULL;
194  return temp;
195 }
197  delete header_;
198  header_ = header;
199  if (header) {
200 
201  } else {
202 
203  }
204  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.WorldControlState.header)
205 }
206 
207 // optional .ignition.msgs.WorldControl world_control = 2;
209  return !_is_default_instance_ && world_control_ != NULL;
210 }
212  if (GetArenaNoVirtual() == NULL && world_control_ != NULL) delete world_control_;
213  world_control_ = NULL;
214 }
215 inline const ::ignition::msgs::WorldControl& WorldControlState::world_control() const {
216  // @@protoc_insertion_point(field_get:ignition.msgs.WorldControlState.world_control)
217  return world_control_ != NULL ? *world_control_ : *default_instance_->world_control_;
218 }
219 inline ::ignition::msgs::WorldControl* WorldControlState::mutable_world_control() {
220 
221  if (world_control_ == NULL) {
222  world_control_ = new ::ignition::msgs::WorldControl;
223  }
224  // @@protoc_insertion_point(field_mutable:ignition.msgs.WorldControlState.world_control)
225  return world_control_;
226 }
227 inline ::ignition::msgs::WorldControl* WorldControlState::release_world_control() {
228  // @@protoc_insertion_point(field_release:ignition.msgs.WorldControlState.world_control)
229 
230  ::ignition::msgs::WorldControl* temp = world_control_;
231  world_control_ = NULL;
232  return temp;
233 }
235  delete world_control_;
236  world_control_ = world_control;
237  if (world_control) {
238 
239  } else {
240 
241  }
242  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.WorldControlState.world_control)
243 }
244 
245 // optional .ignition.msgs.SerializedState state = 3;
246 inline bool WorldControlState::has_state() const {
247  return !_is_default_instance_ && state_ != NULL;
248 }
250  if (GetArenaNoVirtual() == NULL && state_ != NULL) delete state_;
251  state_ = NULL;
252 }
253 inline const ::ignition::msgs::SerializedState& WorldControlState::state() const {
254  // @@protoc_insertion_point(field_get:ignition.msgs.WorldControlState.state)
255  return state_ != NULL ? *state_ : *default_instance_->state_;
256 }
257 inline ::ignition::msgs::SerializedState* WorldControlState::mutable_state() {
258 
259  if (state_ == NULL) {
260  state_ = new ::ignition::msgs::SerializedState;
261  }
262  // @@protoc_insertion_point(field_mutable:ignition.msgs.WorldControlState.state)
263  return state_;
264 }
265 inline ::ignition::msgs::SerializedState* WorldControlState::release_state() {
266  // @@protoc_insertion_point(field_release:ignition.msgs.WorldControlState.state)
267 
268  ::ignition::msgs::SerializedState* temp = state_;
269  state_ = NULL;
270  return temp;
271 }
273  delete state_;
274  state_ = state;
275  if (state) {
276 
277  } else {
278 
279  }
280  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.WorldControlState.state)
281 }
282 
283 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS
284 
289 // @@protoc_insertion_point(namespace_scope)
290 
291 } // namespace msgs
292 } // namespace ignition
293 
294 #ifdef _MSC_VER
295 #pragma warning(pop)
296 #endif
297 // @@protoc_insertion_point(global_scope)
298 
299 #endif // PROTOBUF_ignition_2fmsgs_2fworld_5fcontrol_5fstate_2eproto__INCLUDED
::ignition::msgs::SerializedState * mutable_state()
Definition: world_control_state.pb.h:257
void clear_world_control()
Definition: world_control_state.pb.h:211
const ::ignition::msgs::WorldControl & world_control() const
Definition: world_control_state.pb.h:215
void protobuf_AssignDesc_ignition_2fmsgs_2fworld_5fcontrol_5fstate_2eproto()
void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fworld_5fcontrol_5fstate_2eproto()
void clear_header()
Definition: world_control_state.pb.h:173
::ignition::msgs::Header * release_header()
Definition: world_control_state.pb.h:189
std::unique_ptr< const WorldControlState > ConstWorldControlStateUniquePtr
Definition: world_control_state.pb.h:286
void clear_state()
Definition: world_control_state.pb.h:249
void set_allocated_header(::ignition::msgs::Header *header)
Definition: world_control_state.pb.h:196
::ignition::msgs::SerializedState * release_state()
Definition: world_control_state.pb.h:265
std::unique_ptr< WorldControlState > WorldControlStateUniquePtr
Definition: world_control_state.pb.h:285
Definition: header.pb.h:161
std::shared_ptr< WorldControlState > WorldControlStateSharedPtr
Definition: world_control_state.pb.h:287
void protobuf_ShutdownFile_ignition_2fmsgs_2fworld_5fcontrol_5fstate_2eproto()
bool has_state() const
Definition: world_control_state.pb.h:246
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: world_control_state.pb.h:94
const ::ignition::msgs::SerializedState & state() const
Definition: world_control_state.pb.h:253
void set_allocated_world_control(::ignition::msgs::WorldControl *world_control)
Definition: world_control_state.pb.h:234
Definition: world_control.pb.h:58
void set_allocated_state(::ignition::msgs::SerializedState *state)
Definition: world_control_state.pb.h:272
const ::ignition::msgs::Header & header() const
Definition: world_control_state.pb.h:177
STL class.
int GetCachedSize() const
Definition: world_control_state.pb.h:97
WorldControlState & operator=(const WorldControlState &from)
Definition: world_control_state.pb.h:65
::ignition::msgs::Header * mutable_header()
Definition: world_control_state.pb.h:181
::ignition::msgs::WorldControl * release_world_control()
Definition: world_control_state.pb.h:227
Definition: serialized.pb.h:263
std::shared_ptr< const WorldControlState > ConstWorldControlStateSharedPtr
Definition: world_control_state.pb.h:288
Definition: world_control_state.pb.h:58
bool has_header() const
Definition: world_control_state.pb.h:170
::ignition::msgs::WorldControl * mutable_world_control()
Definition: world_control_state.pb.h:219
WorldControlState * New() const
Definition: world_control_state.pb.h:77
bool has_world_control() const
Definition: world_control_state.pb.h:208