Ignition Msgs

API Reference

8.4.0
log_playback_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_playback_control.proto
3 
4 #ifndef PROTOBUF_ignition_2fmsgs_2flog_5fplayback_5fcontrol_2eproto__INCLUDED
5 #define PROTOBUF_ignition_2fmsgs_2flog_5fplayback_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>
30 #include "ignition/msgs/time.pb.h"
32 #ifndef _MSC_VER
33 #pragma GCC system_header
34 #else
35 #pragma warning(push)
36 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
37 #endif
38 #ifdef __linux__
39 #include <sys/sysmacros.h>
40 #endif
41 #include <memory>
42 #include <ignition/msgs/Export.hh>
43 // @@protoc_insertion_point(includes)
44 
45 namespace ignition {
46 namespace msgs {
47 
48 // Internal implementation detail -- do not call these.
52 
53 class LogPlaybackControl;
54 
55 // ===================================================================
56 
57 class IGNITION_MSGS_VISIBLE LogPlaybackControl : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.LogPlaybackControl) */ {
58  public:
60  virtual ~LogPlaybackControl();
61 
63 
65  CopyFrom(from);
66  return *this;
67  }
68 
69  static const ::google::protobuf::Descriptor* descriptor();
70  static const LogPlaybackControl& default_instance();
71 
72  void Swap(LogPlaybackControl* other);
73 
74  // implements Message ----------------------------------------------
75 
76  inline LogPlaybackControl* New() const { return New(NULL); }
77 
78  LogPlaybackControl* New(::google::protobuf::Arena* arena) const;
79  void CopyFrom(const ::google::protobuf::Message& from);
80  void MergeFrom(const ::google::protobuf::Message& from);
81  void CopyFrom(const LogPlaybackControl& from);
82  void MergeFrom(const LogPlaybackControl& from);
83  void Clear();
84  bool IsInitialized() const;
85 
86  int ByteSize() const;
87  bool MergePartialFromCodedStream(
88  ::google::protobuf::io::CodedInputStream* input);
89  void SerializeWithCachedSizes(
90  ::google::protobuf::io::CodedOutputStream* output) const;
91  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
92  bool deterministic, ::google::protobuf::uint8* output) const;
93  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const {
94  return InternalSerializeWithCachedSizesToArray(false, output);
95  }
96  int GetCachedSize() const { return _cached_size_; }
97  private:
98  void SharedCtor();
99  void SharedDtor();
100  void SetCachedSize(int size) const;
101  void InternalSwap(LogPlaybackControl* other);
102  private:
103  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
104  return _internal_metadata_.arena();
105  }
106  inline void* MaybeArenaPtr() const {
107  return _internal_metadata_.raw_arena_ptr();
108  }
109  public:
110 
111  ::google::protobuf::Metadata GetMetadata() const;
112 
113  // nested types ----------------------------------------------------
114 
115  // accessors -------------------------------------------------------
116 
117  // optional .ignition.msgs.Header header = 1;
118  bool has_header() const;
119  void clear_header();
120  static const int kHeaderFieldNumber = 1;
121  const ::ignition::msgs::Header& header() const;
122  ::ignition::msgs::Header* mutable_header();
123  ::ignition::msgs::Header* release_header();
124  void set_allocated_header(::ignition::msgs::Header* header);
125 
126  // optional bool pause = 2;
127  void clear_pause();
128  static const int kPauseFieldNumber = 2;
129  bool pause() const;
130  void set_pause(bool value);
131 
132  // optional sint32 multi_step = 3;
133  void clear_multi_step();
134  static const int kMultiStepFieldNumber = 3;
135  ::google::protobuf::int32 multi_step() const;
136  void set_multi_step(::google::protobuf::int32 value);
137 
138  // optional bool rewind = 4;
139  void clear_rewind();
140  static const int kRewindFieldNumber = 4;
141  bool rewind() const;
142  void set_rewind(bool value);
143 
144  // optional bool forward = 5;
145  void clear_forward();
146  static const int kForwardFieldNumber = 5;
147  bool forward() const;
148  void set_forward(bool value);
149 
150  // optional .ignition.msgs.Time seek = 6;
151  bool has_seek() const;
152  void clear_seek();
153  static const int kSeekFieldNumber = 6;
154  const ::ignition::msgs::Time& seek() const;
155  ::ignition::msgs::Time* mutable_seek();
156  ::ignition::msgs::Time* release_seek();
157  void set_allocated_seek(::ignition::msgs::Time* seek);
158 
159  // @@protoc_insertion_point(class_scope:ignition.msgs.LogPlaybackControl)
160  private:
161 
162  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
163  bool _is_default_instance_;
164  ::ignition::msgs::Header* header_;
165  ::google::protobuf::int32 multi_step_;
166  bool pause_;
167  bool rewind_;
168  bool forward_;
169  ::ignition::msgs::Time* seek_;
170  mutable int _cached_size_;
174 
175  void InitAsDefaultInstance();
176  static LogPlaybackControl* default_instance_;
177 };
178 // ===================================================================
179 
180 
181 // ===================================================================
182 
183 #if !PROTOBUF_INLINE_NOT_IN_HEADERS
184 // LogPlaybackControl
185 
186 // optional .ignition.msgs.Header header = 1;
187 inline bool LogPlaybackControl::has_header() const {
188  return !_is_default_instance_ && header_ != NULL;
189 }
191  if (GetArenaNoVirtual() == NULL && header_ != NULL) delete header_;
192  header_ = NULL;
193 }
194 inline const ::ignition::msgs::Header& LogPlaybackControl::header() const {
195  // @@protoc_insertion_point(field_get:ignition.msgs.LogPlaybackControl.header)
196  return header_ != NULL ? *header_ : *default_instance_->header_;
197 }
198 inline ::ignition::msgs::Header* LogPlaybackControl::mutable_header() {
199 
200  if (header_ == NULL) {
201  header_ = new ::ignition::msgs::Header;
202  }
203  // @@protoc_insertion_point(field_mutable:ignition.msgs.LogPlaybackControl.header)
204  return header_;
205 }
206 inline ::ignition::msgs::Header* LogPlaybackControl::release_header() {
207  // @@protoc_insertion_point(field_release:ignition.msgs.LogPlaybackControl.header)
208 
209  ::ignition::msgs::Header* temp = header_;
210  header_ = NULL;
211  return temp;
212 }
214  delete header_;
215  header_ = header;
216  if (header) {
217 
218  } else {
219 
220  }
221  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.LogPlaybackControl.header)
222 }
223 
224 // optional bool pause = 2;
226  pause_ = false;
227 }
228 inline bool LogPlaybackControl::pause() const {
229  // @@protoc_insertion_point(field_get:ignition.msgs.LogPlaybackControl.pause)
230  return pause_;
231 }
232 inline void LogPlaybackControl::set_pause(bool value) {
233 
234  pause_ = value;
235  // @@protoc_insertion_point(field_set:ignition.msgs.LogPlaybackControl.pause)
236 }
237 
238 // optional sint32 multi_step = 3;
240  multi_step_ = 0;
241 }
242 inline ::google::protobuf::int32 LogPlaybackControl::multi_step() const {
243  // @@protoc_insertion_point(field_get:ignition.msgs.LogPlaybackControl.multi_step)
244  return multi_step_;
245 }
246 inline void LogPlaybackControl::set_multi_step(::google::protobuf::int32 value) {
247 
248  multi_step_ = value;
249  // @@protoc_insertion_point(field_set:ignition.msgs.LogPlaybackControl.multi_step)
250 }
251 
252 // optional bool rewind = 4;
254  rewind_ = false;
255 }
256 inline bool LogPlaybackControl::rewind() const {
257  // @@protoc_insertion_point(field_get:ignition.msgs.LogPlaybackControl.rewind)
258  return rewind_;
259 }
260 inline void LogPlaybackControl::set_rewind(bool value) {
261 
262  rewind_ = value;
263  // @@protoc_insertion_point(field_set:ignition.msgs.LogPlaybackControl.rewind)
264 }
265 
266 // optional bool forward = 5;
268  forward_ = false;
269 }
270 inline bool LogPlaybackControl::forward() const {
271  // @@protoc_insertion_point(field_get:ignition.msgs.LogPlaybackControl.forward)
272  return forward_;
273 }
274 inline void LogPlaybackControl::set_forward(bool value) {
275 
276  forward_ = value;
277  // @@protoc_insertion_point(field_set:ignition.msgs.LogPlaybackControl.forward)
278 }
279 
280 // optional .ignition.msgs.Time seek = 6;
281 inline bool LogPlaybackControl::has_seek() const {
282  return !_is_default_instance_ && seek_ != NULL;
283 }
285  if (GetArenaNoVirtual() == NULL && seek_ != NULL) delete seek_;
286  seek_ = NULL;
287 }
288 inline const ::ignition::msgs::Time& LogPlaybackControl::seek() const {
289  // @@protoc_insertion_point(field_get:ignition.msgs.LogPlaybackControl.seek)
290  return seek_ != NULL ? *seek_ : *default_instance_->seek_;
291 }
292 inline ::ignition::msgs::Time* LogPlaybackControl::mutable_seek() {
293 
294  if (seek_ == NULL) {
295  seek_ = new ::ignition::msgs::Time;
296  }
297  // @@protoc_insertion_point(field_mutable:ignition.msgs.LogPlaybackControl.seek)
298  return seek_;
299 }
300 inline ::ignition::msgs::Time* LogPlaybackControl::release_seek() {
301  // @@protoc_insertion_point(field_release:ignition.msgs.LogPlaybackControl.seek)
302 
303  ::ignition::msgs::Time* temp = seek_;
304  seek_ = NULL;
305  return temp;
306 }
308  delete seek_;
309  seek_ = seek;
310  if (seek) {
311 
312  } else {
313 
314  }
315  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.LogPlaybackControl.seek)
316 }
317 
318 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS
319 
324 // @@protoc_insertion_point(namespace_scope)
325 
326 } // namespace msgs
327 } // namespace ignition
328 
329 #ifdef _MSC_VER
330 #pragma warning(pop)
331 #endif
332 // @@protoc_insertion_point(global_scope)
333 
334 #endif // PROTOBUF_ignition_2fmsgs_2flog_5fplayback_5fcontrol_2eproto__INCLUDED
std::shared_ptr< LogPlaybackControl > LogPlaybackControlSharedPtr
Definition: log_playback_control.pb.h:322
int GetCachedSize() const
Definition: log_playback_control.pb.h:96
std::shared_ptr< const LogPlaybackControl > ConstLogPlaybackControlSharedPtr
Definition: log_playback_control.pb.h:323
void clear_rewind()
Definition: log_playback_control.pb.h:253
void set_rewind(bool value)
Definition: log_playback_control.pb.h:260
std::unique_ptr< LogPlaybackControl > LogPlaybackControlUniquePtr
Definition: log_playback_control.pb.h:320
LogPlaybackControl * New() const
Definition: log_playback_control.pb.h:76
void clear_multi_step()
Definition: log_playback_control.pb.h:239
::google::protobuf::int32 multi_step() const
Definition: log_playback_control.pb.h:242
const ::ignition::msgs::Header & header() const
Definition: log_playback_control.pb.h:194
void set_forward(bool value)
Definition: log_playback_control.pb.h:274
void set_allocated_seek(::ignition::msgs::Time *seek)
Definition: log_playback_control.pb.h:307
Definition: header.pb.h:161
std::unique_ptr< const LogPlaybackControl > ConstLogPlaybackControlUniquePtr
Definition: log_playback_control.pb.h:321
void clear_pause()
Definition: log_playback_control.pb.h:225
void protobuf_AssignDesc_ignition_2fmsgs_2flog_5fplayback_5fcontrol_2eproto()
bool forward() const
Definition: log_playback_control.pb.h:270
bool has_header() const
Definition: log_playback_control.pb.h:187
void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2flog_5fplayback_5fcontrol_2eproto()
::ignition::msgs::Header * release_header()
Definition: log_playback_control.pb.h:206
void clear_header()
Definition: log_playback_control.pb.h:190
void clear_forward()
Definition: log_playback_control.pb.h:267
::ignition::msgs::Time * mutable_seek()
Definition: log_playback_control.pb.h:292
Definition: log_playback_control.pb.h:57
void set_pause(bool value)
Definition: log_playback_control.pb.h:232
bool has_seek() const
Definition: log_playback_control.pb.h:281
STL class.
::ignition::msgs::Header * mutable_header()
Definition: log_playback_control.pb.h:198
LogPlaybackControl & operator=(const LogPlaybackControl &from)
Definition: log_playback_control.pb.h:64
::ignition::msgs::Time * release_seek()
Definition: log_playback_control.pb.h:300
const ::ignition::msgs::Time & seek() const
Definition: log_playback_control.pb.h:288
void set_multi_step(::google::protobuf::int32 value)
Definition: log_playback_control.pb.h:246
void protobuf_ShutdownFile_ignition_2fmsgs_2flog_5fplayback_5fcontrol_2eproto()
bool rewind() const
Definition: log_playback_control.pb.h:256
void set_allocated_header(::ignition::msgs::Header *header)
Definition: log_playback_control.pb.h:213
Definition: time.pb.h:55
bool pause() const
Definition: log_playback_control.pb.h:228
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: log_playback_control.pb.h:93
void clear_seek()
Definition: log_playback_control.pb.h:284