Ignition Msgs

API Reference

8.2.0
log_control.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: ignition/msgs/log_control.proto
3 
4 #ifndef PROTOBUF_ignition_2fmsgs_2flog_5fcontrol_2eproto__INCLUDED
5 #define PROTOBUF_ignition_2fmsgs_2flog_5fcontrol_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>
31 #ifndef _MSC_VER
32 #pragma GCC system_header
33 #else
34 #pragma warning(push)
35 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
36 #endif
37 #ifdef __linux__
38 #include <sys/sysmacros.h>
39 #endif
40 #include <memory>
41 #include <ignition/msgs/Export.hh>
42 // @@protoc_insertion_point(includes)
43 
44 namespace ignition {
45 namespace msgs {
46 
47 // Internal implementation detail -- do not call these.
51 
52 class LogControl;
53 
54 // ===================================================================
55 
56 class IGNITION_MSGS_VISIBLE LogControl : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.LogControl) */ {
57  public:
58  LogControl();
59  virtual ~LogControl();
60 
61  LogControl(const LogControl& from);
62 
63  inline LogControl& operator=(const LogControl& from) {
64  CopyFrom(from);
65  return *this;
66  }
67 
68  static const ::google::protobuf::Descriptor* descriptor();
69  static const LogControl& default_instance();
70 
71  void Swap(LogControl* other);
72 
73  // implements Message ----------------------------------------------
74 
75  inline LogControl* New() const { return New(NULL); }
76 
77  LogControl* New(::google::protobuf::Arena* arena) const;
78  void CopyFrom(const ::google::protobuf::Message& from);
79  void MergeFrom(const ::google::protobuf::Message& from);
80  void CopyFrom(const LogControl& from);
81  void MergeFrom(const LogControl& from);
82  void Clear();
83  bool IsInitialized() const;
84 
85  int ByteSize() const;
86  bool MergePartialFromCodedStream(
87  ::google::protobuf::io::CodedInputStream* input);
88  void SerializeWithCachedSizes(
89  ::google::protobuf::io::CodedOutputStream* output) const;
90  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
91  bool deterministic, ::google::protobuf::uint8* output) const;
92  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const {
93  return InternalSerializeWithCachedSizesToArray(false, output);
94  }
95  int GetCachedSize() const { return _cached_size_; }
96  private:
97  void SharedCtor();
98  void SharedDtor();
99  void SetCachedSize(int size) const;
100  void InternalSwap(LogControl* other);
101  private:
102  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
103  return _internal_metadata_.arena();
104  }
105  inline void* MaybeArenaPtr() const {
106  return _internal_metadata_.raw_arena_ptr();
107  }
108  public:
109 
110  ::google::protobuf::Metadata GetMetadata() const;
111 
112  // nested types ----------------------------------------------------
113 
114  // accessors -------------------------------------------------------
115 
116  // optional .ignition.msgs.Header header = 1;
117  bool has_header() const;
118  void clear_header();
119  static const int kHeaderFieldNumber = 1;
120  const ::ignition::msgs::Header& header() const;
121  ::ignition::msgs::Header* mutable_header();
122  ::ignition::msgs::Header* release_header();
123  void set_allocated_header(::ignition::msgs::Header* header);
124 
125  // optional bool start = 2;
126  void clear_start();
127  static const int kStartFieldNumber = 2;
128  bool start() const;
129  void set_start(bool value);
130 
131  // optional bool stop = 3;
132  void clear_stop();
133  static const int kStopFieldNumber = 3;
134  bool stop() const;
135  void set_stop(bool value);
136 
137  // optional bool paused = 4;
138  void clear_paused();
139  static const int kPausedFieldNumber = 4;
140  bool paused() const;
141  void set_paused(bool value);
142 
143  // optional string base_path = 5;
144  void clear_base_path();
145  static const int kBasePathFieldNumber = 5;
146  const ::std::string& base_path() const;
147  void set_base_path(const ::std::string& value);
148  void set_base_path(const char* value);
149  void set_base_path(const char* value, size_t size);
150  ::std::string* mutable_base_path();
151  ::std::string* release_base_path();
152  void set_allocated_base_path(::std::string* base_path);
153 
154  // optional string encoding = 6;
155  void clear_encoding();
156  static const int kEncodingFieldNumber = 6;
157  const ::std::string& encoding() const;
158  void set_encoding(const ::std::string& value);
159  void set_encoding(const char* value);
160  void set_encoding(const char* value, size_t size);
161  ::std::string* mutable_encoding();
162  ::std::string* release_encoding();
163  void set_allocated_encoding(::std::string* encoding);
164 
165  // optional string record_resources = 7;
166  void clear_record_resources();
167  static const int kRecordResourcesFieldNumber = 7;
168  const ::std::string& record_resources() const;
169  void set_record_resources(const ::std::string& value);
170  void set_record_resources(const char* value);
171  void set_record_resources(const char* value, size_t size);
172  ::std::string* mutable_record_resources();
173  ::std::string* release_record_resources();
174  void set_allocated_record_resources(::std::string* record_resources);
175 
176  // @@protoc_insertion_point(class_scope:ignition.msgs.LogControl)
177  private:
178 
179  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
180  bool _is_default_instance_;
181  ::ignition::msgs::Header* header_;
182  ::google::protobuf::internal::ArenaStringPtr base_path_;
183  ::google::protobuf::internal::ArenaStringPtr encoding_;
184  ::google::protobuf::internal::ArenaStringPtr record_resources_;
185  bool start_;
186  bool stop_;
187  bool paused_;
188  mutable int _cached_size_;
189  friend void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2flog_5fcontrol_2eproto();
192 
193  void InitAsDefaultInstance();
194  static LogControl* default_instance_;
195 };
196 // ===================================================================
197 
198 
199 // ===================================================================
200 
201 #if !PROTOBUF_INLINE_NOT_IN_HEADERS
202 // LogControl
203 
204 // optional .ignition.msgs.Header header = 1;
205 inline bool LogControl::has_header() const {
206  return !_is_default_instance_ && header_ != NULL;
207 }
209  if (GetArenaNoVirtual() == NULL && header_ != NULL) delete header_;
210  header_ = NULL;
211 }
212 inline const ::ignition::msgs::Header& LogControl::header() const {
213  // @@protoc_insertion_point(field_get:ignition.msgs.LogControl.header)
214  return header_ != NULL ? *header_ : *default_instance_->header_;
215 }
216 inline ::ignition::msgs::Header* LogControl::mutable_header() {
217 
218  if (header_ == NULL) {
219  header_ = new ::ignition::msgs::Header;
220  }
221  // @@protoc_insertion_point(field_mutable:ignition.msgs.LogControl.header)
222  return header_;
223 }
224 inline ::ignition::msgs::Header* LogControl::release_header() {
225  // @@protoc_insertion_point(field_release:ignition.msgs.LogControl.header)
226 
227  ::ignition::msgs::Header* temp = header_;
228  header_ = NULL;
229  return temp;
230 }
232  delete header_;
233  header_ = header;
234  if (header) {
235 
236  } else {
237 
238  }
239  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.LogControl.header)
240 }
241 
242 // optional bool start = 2;
243 inline void LogControl::clear_start() {
244  start_ = false;
245 }
246 inline bool LogControl::start() const {
247  // @@protoc_insertion_point(field_get:ignition.msgs.LogControl.start)
248  return start_;
249 }
250 inline void LogControl::set_start(bool value) {
251 
252  start_ = value;
253  // @@protoc_insertion_point(field_set:ignition.msgs.LogControl.start)
254 }
255 
256 // optional bool stop = 3;
257 inline void LogControl::clear_stop() {
258  stop_ = false;
259 }
260 inline bool LogControl::stop() const {
261  // @@protoc_insertion_point(field_get:ignition.msgs.LogControl.stop)
262  return stop_;
263 }
264 inline void LogControl::set_stop(bool value) {
265 
266  stop_ = value;
267  // @@protoc_insertion_point(field_set:ignition.msgs.LogControl.stop)
268 }
269 
270 // optional bool paused = 4;
272  paused_ = false;
273 }
274 inline bool LogControl::paused() const {
275  // @@protoc_insertion_point(field_get:ignition.msgs.LogControl.paused)
276  return paused_;
277 }
278 inline void LogControl::set_paused(bool value) {
279 
280  paused_ = value;
281  // @@protoc_insertion_point(field_set:ignition.msgs.LogControl.paused)
282 }
283 
284 // optional string base_path = 5;
286  base_path_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
287 }
288 inline const ::std::string& LogControl::base_path() const {
289  // @@protoc_insertion_point(field_get:ignition.msgs.LogControl.base_path)
290  return base_path_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
291 }
292 inline void LogControl::set_base_path(const ::std::string& value) {
293 
294  base_path_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
295  // @@protoc_insertion_point(field_set:ignition.msgs.LogControl.base_path)
296 }
297 inline void LogControl::set_base_path(const char* value) {
298 
299  base_path_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
300  // @@protoc_insertion_point(field_set_char:ignition.msgs.LogControl.base_path)
301 }
302 inline void LogControl::set_base_path(const char* value, size_t size) {
303 
304  base_path_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
305  ::std::string(reinterpret_cast<const char*>(value), size));
306  // @@protoc_insertion_point(field_set_pointer:ignition.msgs.LogControl.base_path)
307 }
308 inline ::std::string* LogControl::mutable_base_path() {
309 
310  // @@protoc_insertion_point(field_mutable:ignition.msgs.LogControl.base_path)
311  return base_path_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
312 }
313 inline ::std::string* LogControl::release_base_path() {
314  // @@protoc_insertion_point(field_release:ignition.msgs.LogControl.base_path)
315 
316  return base_path_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
317 }
319  if (base_path != NULL) {
320 
321  } else {
322 
323  }
324  base_path_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), base_path);
325  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.LogControl.base_path)
326 }
327 
328 // optional string encoding = 6;
330  encoding_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
331 }
332 inline const ::std::string& LogControl::encoding() const {
333  // @@protoc_insertion_point(field_get:ignition.msgs.LogControl.encoding)
334  return encoding_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
335 }
336 inline void LogControl::set_encoding(const ::std::string& value) {
337 
338  encoding_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
339  // @@protoc_insertion_point(field_set:ignition.msgs.LogControl.encoding)
340 }
341 inline void LogControl::set_encoding(const char* value) {
342 
343  encoding_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
344  // @@protoc_insertion_point(field_set_char:ignition.msgs.LogControl.encoding)
345 }
346 inline void LogControl::set_encoding(const char* value, size_t size) {
347 
348  encoding_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
349  ::std::string(reinterpret_cast<const char*>(value), size));
350  // @@protoc_insertion_point(field_set_pointer:ignition.msgs.LogControl.encoding)
351 }
352 inline ::std::string* LogControl::mutable_encoding() {
353 
354  // @@protoc_insertion_point(field_mutable:ignition.msgs.LogControl.encoding)
355  return encoding_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
356 }
357 inline ::std::string* LogControl::release_encoding() {
358  // @@protoc_insertion_point(field_release:ignition.msgs.LogControl.encoding)
359 
360  return encoding_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
361 }
363  if (encoding != NULL) {
364 
365  } else {
366 
367  }
368  encoding_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), encoding);
369  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.LogControl.encoding)
370 }
371 
372 // optional string record_resources = 7;
374  record_resources_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
375 }
376 inline const ::std::string& LogControl::record_resources() const {
377  // @@protoc_insertion_point(field_get:ignition.msgs.LogControl.record_resources)
378  return record_resources_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
379 }
380 inline void LogControl::set_record_resources(const ::std::string& value) {
381 
382  record_resources_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
383  // @@protoc_insertion_point(field_set:ignition.msgs.LogControl.record_resources)
384 }
385 inline void LogControl::set_record_resources(const char* value) {
386 
387  record_resources_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
388  // @@protoc_insertion_point(field_set_char:ignition.msgs.LogControl.record_resources)
389 }
390 inline void LogControl::set_record_resources(const char* value, size_t size) {
391 
392  record_resources_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
393  ::std::string(reinterpret_cast<const char*>(value), size));
394  // @@protoc_insertion_point(field_set_pointer:ignition.msgs.LogControl.record_resources)
395 }
396 inline ::std::string* LogControl::mutable_record_resources() {
397 
398  // @@protoc_insertion_point(field_mutable:ignition.msgs.LogControl.record_resources)
399  return record_resources_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
400 }
401 inline ::std::string* LogControl::release_record_resources() {
402  // @@protoc_insertion_point(field_release:ignition.msgs.LogControl.record_resources)
403 
404  return record_resources_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
405 }
406 inline void LogControl::set_allocated_record_resources(::std::string* record_resources) {
407  if (record_resources != NULL) {
408 
409  } else {
410 
411  }
412  record_resources_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), record_resources);
413  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.LogControl.record_resources)
414 }
415 
416 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS
417 
422 // @@protoc_insertion_point(namespace_scope)
423 
424 } // namespace msgs
425 } // namespace ignition
426 
427 #ifdef _MSC_VER
428 #pragma warning(pop)
429 #endif
430 // @@protoc_insertion_point(global_scope)
431 
432 #endif // PROTOBUF_ignition_2fmsgs_2flog_5fcontrol_2eproto__INCLUDED
std::shared_ptr< const LogControl > ConstLogControlSharedPtr
Definition: log_control.pb.h:421
void protobuf_ShutdownFile_ignition_2fmsgs_2flog_5fcontrol_2eproto()
void set_base_path(const ::std::string &value)
Definition: log_control.pb.h:292
void set_allocated_encoding(::std::string *encoding)
Definition: log_control.pb.h:362
bool paused() const
Definition: log_control.pb.h:274
LogControl * New() const
Definition: log_control.pb.h:75
int GetCachedSize() const
Definition: log_control.pb.h:95
void clear_encoding()
Definition: log_control.pb.h:329
void clear_base_path()
Definition: log_control.pb.h:285
void clear_start()
Definition: log_control.pb.h:243
bool has_header() const
Definition: log_control.pb.h:205
std::shared_ptr< LogControl > LogControlSharedPtr
Definition: log_control.pb.h:420
::std::string * mutable_encoding()
Definition: log_control.pb.h:352
void set_allocated_header(::ignition::msgs::Header *header)
Definition: log_control.pb.h:231
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: log_control.pb.h:92
const ::std::string & base_path() const
Definition: log_control.pb.h:288
std::unique_ptr< const LogControl > ConstLogControlUniquePtr
Definition: log_control.pb.h:419
::std::string * mutable_record_resources()
Definition: log_control.pb.h:396
const ::std::string & encoding() const
Definition: log_control.pb.h:332
LogControl & operator=(const LogControl &from)
Definition: log_control.pb.h:63
void set_record_resources(const ::std::string &value)
Definition: log_control.pb.h:380
::std::string * release_record_resources()
Definition: log_control.pb.h:401
bool stop() const
Definition: log_control.pb.h:260
void clear_paused()
Definition: log_control.pb.h:271
const ::ignition::msgs::Header & header() const
Definition: log_control.pb.h:212
void clear_header()
Definition: log_control.pb.h:208
Definition: header.pb.h:161
STL class.
void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2flog_5fcontrol_2eproto()
const ::std::string & record_resources() const
Definition: log_control.pb.h:376
::std::string * release_encoding()
Definition: log_control.pb.h:357
void set_encoding(const ::std::string &value)
Definition: log_control.pb.h:336
void protobuf_AssignDesc_ignition_2fmsgs_2flog_5fcontrol_2eproto()
bool start() const
Definition: log_control.pb.h:246
void set_start(bool value)
Definition: log_control.pb.h:250
void set_paused(bool value)
Definition: log_control.pb.h:278
void set_stop(bool value)
Definition: log_control.pb.h:264
void set_allocated_base_path(::std::string *base_path)
Definition: log_control.pb.h:318
void set_allocated_record_resources(::std::string *record_resources)
Definition: log_control.pb.h:406
::ignition::msgs::Header * mutable_header()
Definition: log_control.pb.h:216
Definition: log_control.pb.h:56
STL class.
::std::string * release_base_path()
Definition: log_control.pb.h:313
::std::string * mutable_base_path()
Definition: log_control.pb.h:308
std::unique_ptr< LogControl > LogControlUniquePtr
Definition: log_control.pb.h:418
void clear_record_resources()
Definition: log_control.pb.h:373
void clear_stop()
Definition: log_control.pb.h:257
::ignition::msgs::Header * release_header()
Definition: log_control.pb.h:224