Gazebo Msgs

API Reference

9.5.1
log_playback_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_playback_control.proto
3 
4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2flog_5fplayback_5fcontrol_2eproto
5 #define PROTOBUF_INCLUDED_gz_2fmsgs_2flog_5fplayback_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/time.pb.h"
34 #include "gz/msgs/header.pb.h"
35 // @@protoc_insertion_point(includes)
36 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2flog_5fplayback_5fcontrol_2eproto GZ_MSGS_VISIBLE
37 
39 // Internal implementation detail -- do not use these members.
40 struct GZ_MSGS_VISIBLE TableStruct {
41  static const ::google::protobuf::internal::ParseTableField entries[];
42  static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
43  static const ::google::protobuf::internal::ParseTable schema[1];
44  static const ::google::protobuf::internal::FieldMetadata field_metadata[];
45  static const ::google::protobuf::internal::SerializationTable serialization_table[];
46  static const ::google::protobuf::uint32 offsets[];
47 };
48 void GZ_MSGS_VISIBLE AddDescriptors();
49 } // namespace protobuf_gz_2fmsgs_2flog_5fplayback_5fcontrol_2eproto
50 namespace gz {
51 namespace msgs {
52 class LogPlaybackControl;
53 class LogPlaybackControlDefaultTypeInternal;
54 GZ_MSGS_VISIBLE extern LogPlaybackControlDefaultTypeInternal _LogPlaybackControl_default_instance_;
55 } // namespace msgs
56 } // namespace gz
57 namespace google {
58 namespace protobuf {
59 template<> GZ_MSGS_VISIBLE ::gz::msgs::LogPlaybackControl* Arena::CreateMaybeMessage<::gz::msgs::LogPlaybackControl>(Arena*);
60 } // namespace protobuf
61 } // namespace google
62 namespace gz {
63 namespace msgs {
64 
65 // ===================================================================
66 
67 class GZ_MSGS_VISIBLE LogPlaybackControl : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:gz.msgs.LogPlaybackControl) */ {
68  public:
70  virtual ~LogPlaybackControl();
71 
73 
75  CopyFrom(from);
76  return *this;
77  }
78  #if LANG_CXX11
79  LogPlaybackControl(LogPlaybackControl&& from) noexcept
80  : LogPlaybackControl() {
81  *this = ::std::move(from);
82  }
83 
84  inline LogPlaybackControl& operator=(LogPlaybackControl&& from) noexcept {
85  if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
86  if (this != &from) InternalSwap(&from);
87  } else {
88  CopyFrom(from);
89  }
90  return *this;
91  }
92  #endif
93  static const ::google::protobuf::Descriptor* descriptor();
94  static const LogPlaybackControl& default_instance();
95 
96  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
98  return reinterpret_cast<const LogPlaybackControl*>(
100  }
101  static constexpr int kIndexInFileMessages =
102  0;
103 
104  void Swap(LogPlaybackControl* other);
106  a.Swap(&b);
107  }
108 
109  // implements Message ----------------------------------------------
110 
111  inline LogPlaybackControl* New() const final {
112  return CreateMaybeMessage<LogPlaybackControl>(NULL);
113  }
114 
115  LogPlaybackControl* New(::google::protobuf::Arena* arena) const final {
116  return CreateMaybeMessage<LogPlaybackControl>(arena);
117  }
118  void CopyFrom(const ::google::protobuf::Message& from) final;
119  void MergeFrom(const ::google::protobuf::Message& from) final;
120  void CopyFrom(const LogPlaybackControl& from);
121  void MergeFrom(const LogPlaybackControl& from);
122  void Clear() final;
123  bool IsInitialized() const final;
124 
125  size_t ByteSizeLong() const final;
126  bool MergePartialFromCodedStream(
127  ::google::protobuf::io::CodedInputStream* input) final;
128  void SerializeWithCachedSizes(
129  ::google::protobuf::io::CodedOutputStream* output) const final;
130  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
131  bool deterministic, ::google::protobuf::uint8* target) const final;
132  int GetCachedSize() const final { return _cached_size_.Get(); }
133 
134  private:
135  void SharedCtor();
136  void SharedDtor();
137  void SetCachedSize(int size) const final;
138  void InternalSwap(LogPlaybackControl* other);
139  private:
140  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
141  return NULL;
142  }
143  inline void* MaybeArenaPtr() const {
144  return NULL;
145  }
146  public:
147 
148  ::google::protobuf::Metadata GetMetadata() const final;
149 
150  // nested types ----------------------------------------------------
151 
152  // accessors -------------------------------------------------------
153 
154  // .gz.msgs.Header header = 1;
155  bool has_header() const;
156  void clear_header();
157  static const int kHeaderFieldNumber = 1;
158  private:
159  const ::gz::msgs::Header& _internal_header() const;
160  public:
161  const ::gz::msgs::Header& header() const;
162  ::gz::msgs::Header* release_header();
163  ::gz::msgs::Header* mutable_header();
164  void set_allocated_header(::gz::msgs::Header* header);
165 
166  // .gz.msgs.Time seek = 6;
167  bool has_seek() const;
168  void clear_seek();
169  static const int kSeekFieldNumber = 6;
170  private:
171  const ::gz::msgs::Time& _internal_seek() const;
172  public:
173  const ::gz::msgs::Time& seek() const;
174  ::gz::msgs::Time* release_seek();
175  ::gz::msgs::Time* mutable_seek();
176  void set_allocated_seek(::gz::msgs::Time* seek);
177 
178  // sint32 multi_step = 3;
179  void clear_multi_step();
180  static const int kMultiStepFieldNumber = 3;
181  ::google::protobuf::int32 multi_step() const;
182  void set_multi_step(::google::protobuf::int32 value);
183 
184  // bool pause = 2;
185  void clear_pause();
186  static const int kPauseFieldNumber = 2;
187  bool pause() const;
188  void set_pause(bool value);
189 
190  // bool rewind = 4;
191  void clear_rewind();
192  static const int kRewindFieldNumber = 4;
193  bool rewind() const;
194  void set_rewind(bool value);
195 
196  // bool forward = 5;
197  void clear_forward();
198  static const int kForwardFieldNumber = 5;
199  bool forward() const;
200  void set_forward(bool value);
201 
202  // @@protoc_insertion_point(class_scope:gz.msgs.LogPlaybackControl)
203  private:
204 
205  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
206  ::gz::msgs::Header* header_;
207  ::gz::msgs::Time* seek_;
208  ::google::protobuf::int32 multi_step_;
209  bool pause_;
210  bool rewind_;
211  bool forward_;
212  mutable ::google::protobuf::internal::CachedSize _cached_size_;
214 };
215 // ===================================================================
216 
217 
218 // ===================================================================
219 
220 #ifdef __GNUC__
221  #pragma GCC diagnostic push
222  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
223 #endif // __GNUC__
224 // LogPlaybackControl
225 
226 // .gz.msgs.Header header = 1;
227 inline bool LogPlaybackControl::has_header() const {
228  return this != internal_default_instance() && header_ != NULL;
229 }
230 inline const ::gz::msgs::Header& LogPlaybackControl::_internal_header() const {
231  return *header_;
232 }
233 inline const ::gz::msgs::Header& LogPlaybackControl::header() const {
234  const ::gz::msgs::Header* p = header_;
235  // @@protoc_insertion_point(field_get:gz.msgs.LogPlaybackControl.header)
236  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Header*>(
238 }
239 inline ::gz::msgs::Header* LogPlaybackControl::release_header() {
240  // @@protoc_insertion_point(field_release:gz.msgs.LogPlaybackControl.header)
241 
242  ::gz::msgs::Header* temp = header_;
243  header_ = NULL;
244  return temp;
245 }
246 inline ::gz::msgs::Header* LogPlaybackControl::mutable_header() {
247 
248  if (header_ == NULL) {
249  auto* p = CreateMaybeMessage<::gz::msgs::Header>(GetArenaNoVirtual());
250  header_ = p;
251  }
252  // @@protoc_insertion_point(field_mutable:gz.msgs.LogPlaybackControl.header)
253  return header_;
254 }
256  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
257  if (message_arena == NULL) {
258  delete reinterpret_cast< ::google::protobuf::MessageLite*>(header_);
259  }
260  if (header) {
261  ::google::protobuf::Arena* submessage_arena = NULL;
262  if (message_arena != submessage_arena) {
263  header = ::google::protobuf::internal::GetOwnedMessage(
264  message_arena, header, submessage_arena);
265  }
266 
267  } else {
268 
269  }
270  header_ = header;
271  // @@protoc_insertion_point(field_set_allocated:gz.msgs.LogPlaybackControl.header)
272 }
273 
274 // bool pause = 2;
276  pause_ = false;
277 }
278 inline bool LogPlaybackControl::pause() const {
279  // @@protoc_insertion_point(field_get:gz.msgs.LogPlaybackControl.pause)
280  return pause_;
281 }
282 inline void LogPlaybackControl::set_pause(bool value) {
283 
284  pause_ = value;
285  // @@protoc_insertion_point(field_set:gz.msgs.LogPlaybackControl.pause)
286 }
287 
288 // sint32 multi_step = 3;
290  multi_step_ = 0;
291 }
292 inline ::google::protobuf::int32 LogPlaybackControl::multi_step() const {
293  // @@protoc_insertion_point(field_get:gz.msgs.LogPlaybackControl.multi_step)
294  return multi_step_;
295 }
296 inline void LogPlaybackControl::set_multi_step(::google::protobuf::int32 value) {
297 
298  multi_step_ = value;
299  // @@protoc_insertion_point(field_set:gz.msgs.LogPlaybackControl.multi_step)
300 }
301 
302 // bool rewind = 4;
304  rewind_ = false;
305 }
306 inline bool LogPlaybackControl::rewind() const {
307  // @@protoc_insertion_point(field_get:gz.msgs.LogPlaybackControl.rewind)
308  return rewind_;
309 }
310 inline void LogPlaybackControl::set_rewind(bool value) {
311 
312  rewind_ = value;
313  // @@protoc_insertion_point(field_set:gz.msgs.LogPlaybackControl.rewind)
314 }
315 
316 // bool forward = 5;
318  forward_ = false;
319 }
320 inline bool LogPlaybackControl::forward() const {
321  // @@protoc_insertion_point(field_get:gz.msgs.LogPlaybackControl.forward)
322  return forward_;
323 }
324 inline void LogPlaybackControl::set_forward(bool value) {
325 
326  forward_ = value;
327  // @@protoc_insertion_point(field_set:gz.msgs.LogPlaybackControl.forward)
328 }
329 
330 // .gz.msgs.Time seek = 6;
331 inline bool LogPlaybackControl::has_seek() const {
332  return this != internal_default_instance() && seek_ != NULL;
333 }
334 inline const ::gz::msgs::Time& LogPlaybackControl::_internal_seek() const {
335  return *seek_;
336 }
337 inline const ::gz::msgs::Time& LogPlaybackControl::seek() const {
338  const ::gz::msgs::Time* p = seek_;
339  // @@protoc_insertion_point(field_get:gz.msgs.LogPlaybackControl.seek)
340  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Time*>(
342 }
343 inline ::gz::msgs::Time* LogPlaybackControl::release_seek() {
344  // @@protoc_insertion_point(field_release:gz.msgs.LogPlaybackControl.seek)
345 
346  ::gz::msgs::Time* temp = seek_;
347  seek_ = NULL;
348  return temp;
349 }
350 inline ::gz::msgs::Time* LogPlaybackControl::mutable_seek() {
351 
352  if (seek_ == NULL) {
353  auto* p = CreateMaybeMessage<::gz::msgs::Time>(GetArenaNoVirtual());
354  seek_ = p;
355  }
356  // @@protoc_insertion_point(field_mutable:gz.msgs.LogPlaybackControl.seek)
357  return seek_;
358 }
360  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
361  if (message_arena == NULL) {
362  delete reinterpret_cast< ::google::protobuf::MessageLite*>(seek_);
363  }
364  if (seek) {
365  ::google::protobuf::Arena* submessage_arena = NULL;
366  if (message_arena != submessage_arena) {
367  seek = ::google::protobuf::internal::GetOwnedMessage(
368  message_arena, seek, submessage_arena);
369  }
370 
371  } else {
372 
373  }
374  seek_ = seek;
375  // @@protoc_insertion_point(field_set_allocated:gz.msgs.LogPlaybackControl.seek)
376 }
377 
378 #ifdef __GNUC__
379  #pragma GCC diagnostic pop
380 #endif // __GNUC__
381 
382 // @@protoc_insertion_point(namespace_scope)
383 
384 } // namespace msgs
385 } // namespace gz
386 
387 // @@protoc_insertion_point(global_scope)
388 
389 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2flog_5fplayback_5fcontrol_2eproto