Gazebo Msgs

API Reference

9.5.1
log_control.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: gz/msgs/log_control.proto
3 
4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2flog_5fcontrol_2eproto
5 #define PROTOBUF_INCLUDED_gz_2fmsgs_2flog_5fcontrol_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 // @@protoc_insertion_point(includes)
35 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2flog_5fcontrol_2eproto GZ_MSGS_VISIBLE
36 
38 // Internal implementation detail -- do not use these members.
39 struct GZ_MSGS_VISIBLE TableStruct {
40  static const ::google::protobuf::internal::ParseTableField entries[];
41  static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
42  static const ::google::protobuf::internal::ParseTable schema[1];
43  static const ::google::protobuf::internal::FieldMetadata field_metadata[];
44  static const ::google::protobuf::internal::SerializationTable serialization_table[];
45  static const ::google::protobuf::uint32 offsets[];
46 };
47 void GZ_MSGS_VISIBLE AddDescriptors();
48 } // namespace protobuf_gz_2fmsgs_2flog_5fcontrol_2eproto
49 namespace gz {
50 namespace msgs {
51 class LogControl;
52 class LogControlDefaultTypeInternal;
53 GZ_MSGS_VISIBLE extern LogControlDefaultTypeInternal _LogControl_default_instance_;
54 } // namespace msgs
55 } // namespace gz
56 namespace google {
57 namespace protobuf {
58 template<> GZ_MSGS_VISIBLE ::gz::msgs::LogControl* Arena::CreateMaybeMessage<::gz::msgs::LogControl>(Arena*);
59 } // namespace protobuf
60 } // namespace google
61 namespace gz {
62 namespace msgs {
63 
64 // ===================================================================
65 
66 class GZ_MSGS_VISIBLE LogControl : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:gz.msgs.LogControl) */ {
67  public:
68  LogControl();
69  virtual ~LogControl();
70 
71  LogControl(const LogControl& from);
72 
73  inline LogControl& operator=(const LogControl& from) {
74  CopyFrom(from);
75  return *this;
76  }
77  #if LANG_CXX11
78  LogControl(LogControl&& from) noexcept
79  : LogControl() {
80  *this = ::std::move(from);
81  }
82 
83  inline LogControl& operator=(LogControl&& from) noexcept {
84  if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
85  if (this != &from) InternalSwap(&from);
86  } else {
87  CopyFrom(from);
88  }
89  return *this;
90  }
91  #endif
92  static const ::google::protobuf::Descriptor* descriptor();
93  static const LogControl& default_instance();
94 
95  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
96  static inline const LogControl* internal_default_instance() {
97  return reinterpret_cast<const LogControl*>(
99  }
100  static constexpr int kIndexInFileMessages =
101  0;
102 
103  void Swap(LogControl* other);
104  friend void swap(LogControl& a, LogControl& b) {
105  a.Swap(&b);
106  }
107 
108  // implements Message ----------------------------------------------
109 
110  inline LogControl* New() const final {
111  return CreateMaybeMessage<LogControl>(NULL);
112  }
113 
114  LogControl* New(::google::protobuf::Arena* arena) const final {
115  return CreateMaybeMessage<LogControl>(arena);
116  }
117  void CopyFrom(const ::google::protobuf::Message& from) final;
118  void MergeFrom(const ::google::protobuf::Message& from) final;
119  void CopyFrom(const LogControl& from);
120  void MergeFrom(const LogControl& from);
121  void Clear() final;
122  bool IsInitialized() const final;
123 
124  size_t ByteSizeLong() const final;
125  bool MergePartialFromCodedStream(
126  ::google::protobuf::io::CodedInputStream* input) final;
127  void SerializeWithCachedSizes(
128  ::google::protobuf::io::CodedOutputStream* output) const final;
129  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
130  bool deterministic, ::google::protobuf::uint8* target) const final;
131  int GetCachedSize() const final { return _cached_size_.Get(); }
132 
133  private:
134  void SharedCtor();
135  void SharedDtor();
136  void SetCachedSize(int size) const final;
137  void InternalSwap(LogControl* other);
138  private:
139  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
140  return NULL;
141  }
142  inline void* MaybeArenaPtr() const {
143  return NULL;
144  }
145  public:
146 
147  ::google::protobuf::Metadata GetMetadata() const final;
148 
149  // nested types ----------------------------------------------------
150 
151  // accessors -------------------------------------------------------
152 
153  // string base_path = 5;
154  void clear_base_path();
155  static const int kBasePathFieldNumber = 5;
156  const ::std::string& base_path() const;
157  void set_base_path(const ::std::string& value);
158  #if LANG_CXX11
159  void set_base_path(::std::string&& value);
160  #endif
161  void set_base_path(const char* value);
162  void set_base_path(const char* value, size_t size);
163  ::std::string* mutable_base_path();
164  ::std::string* release_base_path();
165  void set_allocated_base_path(::std::string* base_path);
166 
167  // string encoding = 6;
168  void clear_encoding();
169  static const int kEncodingFieldNumber = 6;
170  const ::std::string& encoding() const;
171  void set_encoding(const ::std::string& value);
172  #if LANG_CXX11
173  void set_encoding(::std::string&& value);
174  #endif
175  void set_encoding(const char* value);
176  void set_encoding(const char* value, size_t size);
177  ::std::string* mutable_encoding();
178  ::std::string* release_encoding();
179  void set_allocated_encoding(::std::string* encoding);
180 
181  // string record_resources = 7;
182  void clear_record_resources();
183  static const int kRecordResourcesFieldNumber = 7;
184  const ::std::string& record_resources() const;
185  void set_record_resources(const ::std::string& value);
186  #if LANG_CXX11
187  void set_record_resources(::std::string&& value);
188  #endif
189  void set_record_resources(const char* value);
190  void set_record_resources(const char* value, size_t size);
191  ::std::string* mutable_record_resources();
192  ::std::string* release_record_resources();
193  void set_allocated_record_resources(::std::string* record_resources);
194 
195  // .gz.msgs.Header header = 1;
196  bool has_header() const;
197  void clear_header();
198  static const int kHeaderFieldNumber = 1;
199  private:
200  const ::gz::msgs::Header& _internal_header() const;
201  public:
202  const ::gz::msgs::Header& header() const;
203  ::gz::msgs::Header* release_header();
204  ::gz::msgs::Header* mutable_header();
205  void set_allocated_header(::gz::msgs::Header* header);
206 
207  // bool start = 2;
208  void clear_start();
209  static const int kStartFieldNumber = 2;
210  bool start() const;
211  void set_start(bool value);
212 
213  // bool stop = 3;
214  void clear_stop();
215  static const int kStopFieldNumber = 3;
216  bool stop() const;
217  void set_stop(bool value);
218 
219  // bool paused = 4;
220  void clear_paused();
221  static const int kPausedFieldNumber = 4;
222  bool paused() const;
223  void set_paused(bool value);
224 
225  // @@protoc_insertion_point(class_scope:gz.msgs.LogControl)
226  private:
227 
228  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
229  ::google::protobuf::internal::ArenaStringPtr base_path_;
230  ::google::protobuf::internal::ArenaStringPtr encoding_;
231  ::google::protobuf::internal::ArenaStringPtr record_resources_;
232  ::gz::msgs::Header* header_;
233  bool start_;
234  bool stop_;
235  bool paused_;
236  mutable ::google::protobuf::internal::CachedSize _cached_size_;
237  friend struct ::protobuf_gz_2fmsgs_2flog_5fcontrol_2eproto::TableStruct;
238 };
239 // ===================================================================
240 
241 
242 // ===================================================================
243 
244 #ifdef __GNUC__
245  #pragma GCC diagnostic push
246  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
247 #endif // __GNUC__
248 // LogControl
249 
250 // .gz.msgs.Header header = 1;
251 inline bool LogControl::has_header() const {
252  return this != internal_default_instance() && header_ != NULL;
253 }
254 inline const ::gz::msgs::Header& LogControl::_internal_header() const {
255  return *header_;
256 }
257 inline const ::gz::msgs::Header& LogControl::header() const {
258  const ::gz::msgs::Header* p = header_;
259  // @@protoc_insertion_point(field_get:gz.msgs.LogControl.header)
260  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Header*>(
262 }
263 inline ::gz::msgs::Header* LogControl::release_header() {
264  // @@protoc_insertion_point(field_release:gz.msgs.LogControl.header)
265 
266  ::gz::msgs::Header* temp = header_;
267  header_ = NULL;
268  return temp;
269 }
270 inline ::gz::msgs::Header* LogControl::mutable_header() {
271 
272  if (header_ == NULL) {
273  auto* p = CreateMaybeMessage<::gz::msgs::Header>(GetArenaNoVirtual());
274  header_ = p;
275  }
276  // @@protoc_insertion_point(field_mutable:gz.msgs.LogControl.header)
277  return header_;
278 }
280  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
281  if (message_arena == NULL) {
282  delete reinterpret_cast< ::google::protobuf::MessageLite*>(header_);
283  }
284  if (header) {
285  ::google::protobuf::Arena* submessage_arena = NULL;
286  if (message_arena != submessage_arena) {
287  header = ::google::protobuf::internal::GetOwnedMessage(
288  message_arena, header, submessage_arena);
289  }
290 
291  } else {
292 
293  }
294  header_ = header;
295  // @@protoc_insertion_point(field_set_allocated:gz.msgs.LogControl.header)
296 }
297 
298 // bool start = 2;
299 inline void LogControl::clear_start() {
300  start_ = false;
301 }
302 inline bool LogControl::start() const {
303  // @@protoc_insertion_point(field_get:gz.msgs.LogControl.start)
304  return start_;
305 }
306 inline void LogControl::set_start(bool value) {
307 
308  start_ = value;
309  // @@protoc_insertion_point(field_set:gz.msgs.LogControl.start)
310 }
311 
312 // bool stop = 3;
313 inline void LogControl::clear_stop() {
314  stop_ = false;
315 }
316 inline bool LogControl::stop() const {
317  // @@protoc_insertion_point(field_get:gz.msgs.LogControl.stop)
318  return stop_;
319 }
320 inline void LogControl::set_stop(bool value) {
321 
322  stop_ = value;
323  // @@protoc_insertion_point(field_set:gz.msgs.LogControl.stop)
324 }
325 
326 // bool paused = 4;
328  paused_ = false;
329 }
330 inline bool LogControl::paused() const {
331  // @@protoc_insertion_point(field_get:gz.msgs.LogControl.paused)
332  return paused_;
333 }
334 inline void LogControl::set_paused(bool value) {
335 
336  paused_ = value;
337  // @@protoc_insertion_point(field_set:gz.msgs.LogControl.paused)
338 }
339 
340 // string base_path = 5;
342  base_path_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
343 }
344 inline const ::std::string& LogControl::base_path() const {
345  // @@protoc_insertion_point(field_get:gz.msgs.LogControl.base_path)
346  return base_path_.GetNoArena();
347 }
348 inline void LogControl::set_base_path(const ::std::string& value) {
349 
350  base_path_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
351  // @@protoc_insertion_point(field_set:gz.msgs.LogControl.base_path)
352 }
353 #if LANG_CXX11
354 inline void LogControl::set_base_path(::std::string&& value) {
355 
356  base_path_.SetNoArena(
357  &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
358  // @@protoc_insertion_point(field_set_rvalue:gz.msgs.LogControl.base_path)
359 }
360 #endif
361 inline void LogControl::set_base_path(const char* value) {
362  GOOGLE_DCHECK(value != NULL);
363 
364  base_path_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
365  // @@protoc_insertion_point(field_set_char:gz.msgs.LogControl.base_path)
366 }
367 inline void LogControl::set_base_path(const char* value, size_t size) {
368 
369  base_path_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
370  ::std::string(reinterpret_cast<const char*>(value), size));
371  // @@protoc_insertion_point(field_set_pointer:gz.msgs.LogControl.base_path)
372 }
373 inline ::std::string* LogControl::mutable_base_path() {
374 
375  // @@protoc_insertion_point(field_mutable:gz.msgs.LogControl.base_path)
376  return base_path_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
377 }
378 inline ::std::string* LogControl::release_base_path() {
379  // @@protoc_insertion_point(field_release:gz.msgs.LogControl.base_path)
380 
381  return base_path_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
382 }
384  if (base_path != NULL) {
385 
386  } else {
387 
388  }
389  base_path_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), base_path);
390  // @@protoc_insertion_point(field_set_allocated:gz.msgs.LogControl.base_path)
391 }
392 
393 // string encoding = 6;
395  encoding_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
396 }
397 inline const ::std::string& LogControl::encoding() const {
398  // @@protoc_insertion_point(field_get:gz.msgs.LogControl.encoding)
399  return encoding_.GetNoArena();
400 }
401 inline void LogControl::set_encoding(const ::std::string& value) {
402 
403  encoding_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
404  // @@protoc_insertion_point(field_set:gz.msgs.LogControl.encoding)
405 }
406 #if LANG_CXX11
407 inline void LogControl::set_encoding(::std::string&& value) {
408 
409  encoding_.SetNoArena(
410  &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
411  // @@protoc_insertion_point(field_set_rvalue:gz.msgs.LogControl.encoding)
412 }
413 #endif
414 inline void LogControl::set_encoding(const char* value) {
415  GOOGLE_DCHECK(value != NULL);
416 
417  encoding_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
418  // @@protoc_insertion_point(field_set_char:gz.msgs.LogControl.encoding)
419 }
420 inline void LogControl::set_encoding(const char* value, size_t size) {
421 
422  encoding_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
423  ::std::string(reinterpret_cast<const char*>(value), size));
424  // @@protoc_insertion_point(field_set_pointer:gz.msgs.LogControl.encoding)
425 }
426 inline ::std::string* LogControl::mutable_encoding() {
427 
428  // @@protoc_insertion_point(field_mutable:gz.msgs.LogControl.encoding)
429  return encoding_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
430 }
431 inline ::std::string* LogControl::release_encoding() {
432  // @@protoc_insertion_point(field_release:gz.msgs.LogControl.encoding)
433 
434  return encoding_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
435 }
437  if (encoding != NULL) {
438 
439  } else {
440 
441  }
442  encoding_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), encoding);
443  // @@protoc_insertion_point(field_set_allocated:gz.msgs.LogControl.encoding)
444 }
445 
446 // string record_resources = 7;
448  record_resources_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
449 }
450 inline const ::std::string& LogControl::record_resources() const {
451  // @@protoc_insertion_point(field_get:gz.msgs.LogControl.record_resources)
452  return record_resources_.GetNoArena();
453 }
454 inline void LogControl::set_record_resources(const ::std::string& value) {
455 
456  record_resources_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
457  // @@protoc_insertion_point(field_set:gz.msgs.LogControl.record_resources)
458 }
459 #if LANG_CXX11
460 inline void LogControl::set_record_resources(::std::string&& value) {
461 
462  record_resources_.SetNoArena(
463  &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
464  // @@protoc_insertion_point(field_set_rvalue:gz.msgs.LogControl.record_resources)
465 }
466 #endif
467 inline void LogControl::set_record_resources(const char* value) {
468  GOOGLE_DCHECK(value != NULL);
469 
470  record_resources_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
471  // @@protoc_insertion_point(field_set_char:gz.msgs.LogControl.record_resources)
472 }
473 inline void LogControl::set_record_resources(const char* value, size_t size) {
474 
475  record_resources_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
476  ::std::string(reinterpret_cast<const char*>(value), size));
477  // @@protoc_insertion_point(field_set_pointer:gz.msgs.LogControl.record_resources)
478 }
479 inline ::std::string* LogControl::mutable_record_resources() {
480 
481  // @@protoc_insertion_point(field_mutable:gz.msgs.LogControl.record_resources)
482  return record_resources_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
483 }
484 inline ::std::string* LogControl::release_record_resources() {
485  // @@protoc_insertion_point(field_release:gz.msgs.LogControl.record_resources)
486 
487  return record_resources_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
488 }
489 inline void LogControl::set_allocated_record_resources(::std::string* record_resources) {
490  if (record_resources != NULL) {
491 
492  } else {
493 
494  }
495  record_resources_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), record_resources);
496  // @@protoc_insertion_point(field_set_allocated:gz.msgs.LogControl.record_resources)
497 }
498 
499 #ifdef __GNUC__
500  #pragma GCC diagnostic pop
501 #endif // __GNUC__
502 
503 // @@protoc_insertion_point(namespace_scope)
504 
505 } // namespace msgs
506 } // namespace gz
507 
508 // @@protoc_insertion_point(global_scope)
509 
510 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2flog_5fcontrol_2eproto