Gazebo Msgs

API Reference

9.5.1
gui.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: gz/msgs/gui.proto
3 
4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2fgui_2eproto
5 #define PROTOBUF_INCLUDED_gz_2fmsgs_2fgui_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/gui_camera.pb.h"
34 #include "gz/msgs/plugin.pb.h"
35 #include "gz/msgs/header.pb.h"
36 // @@protoc_insertion_point(includes)
37 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2fgui_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_2fgui_2eproto
51 namespace gz {
52 namespace msgs {
53 class GUI;
54 class GUIDefaultTypeInternal;
55 GZ_MSGS_VISIBLE extern GUIDefaultTypeInternal _GUI_default_instance_;
56 } // namespace msgs
57 } // namespace gz
58 namespace google {
59 namespace protobuf {
60 template<> GZ_MSGS_VISIBLE ::gz::msgs::GUI* Arena::CreateMaybeMessage<::gz::msgs::GUI>(Arena*);
61 } // namespace protobuf
62 } // namespace google
63 namespace gz {
64 namespace msgs {
65 
66 // ===================================================================
67 
68 class GZ_MSGS_VISIBLE GUI : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:gz.msgs.GUI) */ {
69  public:
70  GUI();
71  virtual ~GUI();
72 
73  GUI(const GUI& from);
74 
75  inline GUI& operator=(const GUI& from) {
76  CopyFrom(from);
77  return *this;
78  }
79  #if LANG_CXX11
80  GUI(GUI&& from) noexcept
81  : GUI() {
82  *this = ::std::move(from);
83  }
84 
85  inline GUI& operator=(GUI&& 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 GUI& default_instance();
96 
97  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
98  static inline const GUI* internal_default_instance() {
99  return reinterpret_cast<const GUI*>(
101  }
102  static constexpr int kIndexInFileMessages =
103  0;
104 
105  void Swap(GUI* other);
106  friend void swap(GUI& a, GUI& b) {
107  a.Swap(&b);
108  }
109 
110  // implements Message ----------------------------------------------
111 
112  inline GUI* New() const final {
113  return CreateMaybeMessage<GUI>(NULL);
114  }
115 
116  GUI* New(::google::protobuf::Arena* arena) const final {
117  return CreateMaybeMessage<GUI>(arena);
118  }
119  void CopyFrom(const ::google::protobuf::Message& from) final;
120  void MergeFrom(const ::google::protobuf::Message& from) final;
121  void CopyFrom(const GUI& from);
122  void MergeFrom(const GUI& 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(GUI* 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  // repeated .gz.msgs.Plugin plugin = 4;
156  int plugin_size() const;
157  void clear_plugin();
158  static const int kPluginFieldNumber = 4;
159  ::gz::msgs::Plugin* mutable_plugin(int index);
160  ::google::protobuf::RepeatedPtrField< ::gz::msgs::Plugin >*
161  mutable_plugin();
162  const ::gz::msgs::Plugin& plugin(int index) const;
163  ::gz::msgs::Plugin* add_plugin();
164  const ::google::protobuf::RepeatedPtrField< ::gz::msgs::Plugin >&
165  plugin() const;
166 
167  // .gz.msgs.Header header = 1;
168  bool has_header() const;
169  void clear_header();
170  static const int kHeaderFieldNumber = 1;
171  private:
172  const ::gz::msgs::Header& _internal_header() const;
173  public:
174  const ::gz::msgs::Header& header() const;
175  ::gz::msgs::Header* release_header();
176  ::gz::msgs::Header* mutable_header();
177  void set_allocated_header(::gz::msgs::Header* header);
178 
179  // .gz.msgs.GUICamera camera = 3;
180  bool has_camera() const;
181  void clear_camera();
182  static const int kCameraFieldNumber = 3;
183  private:
184  const ::gz::msgs::GUICamera& _internal_camera() const;
185  public:
186  const ::gz::msgs::GUICamera& camera() const;
187  ::gz::msgs::GUICamera* release_camera();
188  ::gz::msgs::GUICamera* mutable_camera();
189  void set_allocated_camera(::gz::msgs::GUICamera* camera);
190 
191  // bool fullscreen = 2;
192  void clear_fullscreen();
193  static const int kFullscreenFieldNumber = 2;
194  bool fullscreen() const;
195  void set_fullscreen(bool value);
196 
197  // @@protoc_insertion_point(class_scope:gz.msgs.GUI)
198  private:
199 
200  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
201  ::google::protobuf::RepeatedPtrField< ::gz::msgs::Plugin > plugin_;
202  ::gz::msgs::Header* header_;
203  ::gz::msgs::GUICamera* camera_;
204  bool fullscreen_;
205  mutable ::google::protobuf::internal::CachedSize _cached_size_;
206  friend struct ::protobuf_gz_2fmsgs_2fgui_2eproto::TableStruct;
207 };
208 // ===================================================================
209 
210 
211 // ===================================================================
212 
213 #ifdef __GNUC__
214  #pragma GCC diagnostic push
215  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
216 #endif // __GNUC__
217 // GUI
218 
219 // .gz.msgs.Header header = 1;
220 inline bool GUI::has_header() const {
221  return this != internal_default_instance() && header_ != NULL;
222 }
223 inline const ::gz::msgs::Header& GUI::_internal_header() const {
224  return *header_;
225 }
226 inline const ::gz::msgs::Header& GUI::header() const {
227  const ::gz::msgs::Header* p = header_;
228  // @@protoc_insertion_point(field_get:gz.msgs.GUI.header)
229  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Header*>(
231 }
232 inline ::gz::msgs::Header* GUI::release_header() {
233  // @@protoc_insertion_point(field_release:gz.msgs.GUI.header)
234 
235  ::gz::msgs::Header* temp = header_;
236  header_ = NULL;
237  return temp;
238 }
239 inline ::gz::msgs::Header* GUI::mutable_header() {
240 
241  if (header_ == NULL) {
242  auto* p = CreateMaybeMessage<::gz::msgs::Header>(GetArenaNoVirtual());
243  header_ = p;
244  }
245  // @@protoc_insertion_point(field_mutable:gz.msgs.GUI.header)
246  return header_;
247 }
249  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
250  if (message_arena == NULL) {
251  delete reinterpret_cast< ::google::protobuf::MessageLite*>(header_);
252  }
253  if (header) {
254  ::google::protobuf::Arena* submessage_arena = NULL;
255  if (message_arena != submessage_arena) {
256  header = ::google::protobuf::internal::GetOwnedMessage(
257  message_arena, header, submessage_arena);
258  }
259 
260  } else {
261 
262  }
263  header_ = header;
264  // @@protoc_insertion_point(field_set_allocated:gz.msgs.GUI.header)
265 }
266 
267 // bool fullscreen = 2;
268 inline void GUI::clear_fullscreen() {
269  fullscreen_ = false;
270 }
271 inline bool GUI::fullscreen() const {
272  // @@protoc_insertion_point(field_get:gz.msgs.GUI.fullscreen)
273  return fullscreen_;
274 }
275 inline void GUI::set_fullscreen(bool value) {
276 
277  fullscreen_ = value;
278  // @@protoc_insertion_point(field_set:gz.msgs.GUI.fullscreen)
279 }
280 
281 // .gz.msgs.GUICamera camera = 3;
282 inline bool GUI::has_camera() const {
283  return this != internal_default_instance() && camera_ != NULL;
284 }
285 inline const ::gz::msgs::GUICamera& GUI::_internal_camera() const {
286  return *camera_;
287 }
288 inline const ::gz::msgs::GUICamera& GUI::camera() const {
289  const ::gz::msgs::GUICamera* p = camera_;
290  // @@protoc_insertion_point(field_get:gz.msgs.GUI.camera)
291  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::GUICamera*>(
293 }
294 inline ::gz::msgs::GUICamera* GUI::release_camera() {
295  // @@protoc_insertion_point(field_release:gz.msgs.GUI.camera)
296 
297  ::gz::msgs::GUICamera* temp = camera_;
298  camera_ = NULL;
299  return temp;
300 }
301 inline ::gz::msgs::GUICamera* GUI::mutable_camera() {
302 
303  if (camera_ == NULL) {
304  auto* p = CreateMaybeMessage<::gz::msgs::GUICamera>(GetArenaNoVirtual());
305  camera_ = p;
306  }
307  // @@protoc_insertion_point(field_mutable:gz.msgs.GUI.camera)
308  return camera_;
309 }
311  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
312  if (message_arena == NULL) {
313  delete reinterpret_cast< ::google::protobuf::MessageLite*>(camera_);
314  }
315  if (camera) {
316  ::google::protobuf::Arena* submessage_arena = NULL;
317  if (message_arena != submessage_arena) {
318  camera = ::google::protobuf::internal::GetOwnedMessage(
319  message_arena, camera, submessage_arena);
320  }
321 
322  } else {
323 
324  }
325  camera_ = camera;
326  // @@protoc_insertion_point(field_set_allocated:gz.msgs.GUI.camera)
327 }
328 
329 // repeated .gz.msgs.Plugin plugin = 4;
330 inline int GUI::plugin_size() const {
331  return plugin_.size();
332 }
333 inline ::gz::msgs::Plugin* GUI::mutable_plugin(int index) {
334  // @@protoc_insertion_point(field_mutable:gz.msgs.GUI.plugin)
335  return plugin_.Mutable(index);
336 }
337 inline ::google::protobuf::RepeatedPtrField< ::gz::msgs::Plugin >*
339  // @@protoc_insertion_point(field_mutable_list:gz.msgs.GUI.plugin)
340  return &plugin_;
341 }
342 inline const ::gz::msgs::Plugin& GUI::plugin(int index) const {
343  // @@protoc_insertion_point(field_get:gz.msgs.GUI.plugin)
344  return plugin_.Get(index);
345 }
346 inline ::gz::msgs::Plugin* GUI::add_plugin() {
347  // @@protoc_insertion_point(field_add:gz.msgs.GUI.plugin)
348  return plugin_.Add();
349 }
350 inline const ::google::protobuf::RepeatedPtrField< ::gz::msgs::Plugin >&
351 GUI::plugin() const {
352  // @@protoc_insertion_point(field_list:gz.msgs.GUI.plugin)
353  return plugin_;
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_2fgui_2eproto