Ignition Msgs

API Reference

8.0.0~pre1
video_record.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: ignition/msgs/video_record.proto
3 
4 #ifndef PROTOBUF_ignition_2fmsgs_2fvideo_5frecord_2eproto__INCLUDED
5 #define PROTOBUF_ignition_2fmsgs_2fvideo_5frecord_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 VideoRecord;
53 
54 // ===================================================================
55 
56 class IGNITION_MSGS_VISIBLE VideoRecord : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.VideoRecord) */ {
57  public:
58  VideoRecord();
59  virtual ~VideoRecord();
60 
61  VideoRecord(const VideoRecord& from);
62 
63  inline VideoRecord& operator=(const VideoRecord& from) {
64  CopyFrom(from);
65  return *this;
66  }
67 
68  static const ::google::protobuf::Descriptor* descriptor();
69  static const VideoRecord& default_instance();
70 
71  void Swap(VideoRecord* other);
72 
73  // implements Message ----------------------------------------------
74 
75  inline VideoRecord* New() const { return New(NULL); }
76 
77  VideoRecord* 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 VideoRecord& from);
81  void MergeFrom(const VideoRecord& 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(VideoRecord* 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 string format = 4;
138  void clear_format();
139  static const int kFormatFieldNumber = 4;
140  const ::std::string& format() const;
141  void set_format(const ::std::string& value);
142  void set_format(const char* value);
143  void set_format(const char* value, size_t size);
144  ::std::string* mutable_format();
145  ::std::string* release_format();
146  void set_allocated_format(::std::string* format);
147 
148  // optional string save_filename = 5;
149  void clear_save_filename();
150  static const int kSaveFilenameFieldNumber = 5;
151  const ::std::string& save_filename() const;
152  void set_save_filename(const ::std::string& value);
153  void set_save_filename(const char* value);
154  void set_save_filename(const char* value, size_t size);
155  ::std::string* mutable_save_filename();
156  ::std::string* release_save_filename();
157  void set_allocated_save_filename(::std::string* save_filename);
158 
159  // @@protoc_insertion_point(class_scope:ignition.msgs.VideoRecord)
160  private:
161 
162  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
163  bool _is_default_instance_;
164  ::ignition::msgs::Header* header_;
165  ::google::protobuf::internal::ArenaStringPtr format_;
166  ::google::protobuf::internal::ArenaStringPtr save_filename_;
167  bool start_;
168  bool stop_;
169  mutable int _cached_size_;
170  friend void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fvideo_5frecord_2eproto();
173 
174  void InitAsDefaultInstance();
175  static VideoRecord* default_instance_;
176 };
177 // ===================================================================
178 
179 
180 // ===================================================================
181 
182 #if !PROTOBUF_INLINE_NOT_IN_HEADERS
183 // VideoRecord
184 
185 // optional .ignition.msgs.Header header = 1;
186 inline bool VideoRecord::has_header() const {
187  return !_is_default_instance_ && header_ != NULL;
188 }
190  if (GetArenaNoVirtual() == NULL && header_ != NULL) delete header_;
191  header_ = NULL;
192 }
193 inline const ::ignition::msgs::Header& VideoRecord::header() const {
194  // @@protoc_insertion_point(field_get:ignition.msgs.VideoRecord.header)
195  return header_ != NULL ? *header_ : *default_instance_->header_;
196 }
197 inline ::ignition::msgs::Header* VideoRecord::mutable_header() {
198 
199  if (header_ == NULL) {
200  header_ = new ::ignition::msgs::Header;
201  }
202  // @@protoc_insertion_point(field_mutable:ignition.msgs.VideoRecord.header)
203  return header_;
204 }
205 inline ::ignition::msgs::Header* VideoRecord::release_header() {
206  // @@protoc_insertion_point(field_release:ignition.msgs.VideoRecord.header)
207 
208  ::ignition::msgs::Header* temp = header_;
209  header_ = NULL;
210  return temp;
211 }
213  delete header_;
214  header_ = header;
215  if (header) {
216 
217  } else {
218 
219  }
220  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.VideoRecord.header)
221 }
222 
223 // optional bool start = 2;
225  start_ = false;
226 }
227 inline bool VideoRecord::start() const {
228  // @@protoc_insertion_point(field_get:ignition.msgs.VideoRecord.start)
229  return start_;
230 }
231 inline void VideoRecord::set_start(bool value) {
232 
233  start_ = value;
234  // @@protoc_insertion_point(field_set:ignition.msgs.VideoRecord.start)
235 }
236 
237 // optional bool stop = 3;
238 inline void VideoRecord::clear_stop() {
239  stop_ = false;
240 }
241 inline bool VideoRecord::stop() const {
242  // @@protoc_insertion_point(field_get:ignition.msgs.VideoRecord.stop)
243  return stop_;
244 }
245 inline void VideoRecord::set_stop(bool value) {
246 
247  stop_ = value;
248  // @@protoc_insertion_point(field_set:ignition.msgs.VideoRecord.stop)
249 }
250 
251 // optional string format = 4;
253  format_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
254 }
255 inline const ::std::string& VideoRecord::format() const {
256  // @@protoc_insertion_point(field_get:ignition.msgs.VideoRecord.format)
257  return format_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
258 }
259 inline void VideoRecord::set_format(const ::std::string& value) {
260 
261  format_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
262  // @@protoc_insertion_point(field_set:ignition.msgs.VideoRecord.format)
263 }
264 inline void VideoRecord::set_format(const char* value) {
265 
266  format_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
267  // @@protoc_insertion_point(field_set_char:ignition.msgs.VideoRecord.format)
268 }
269 inline void VideoRecord::set_format(const char* value, size_t size) {
270 
271  format_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
272  ::std::string(reinterpret_cast<const char*>(value), size));
273  // @@protoc_insertion_point(field_set_pointer:ignition.msgs.VideoRecord.format)
274 }
275 inline ::std::string* VideoRecord::mutable_format() {
276 
277  // @@protoc_insertion_point(field_mutable:ignition.msgs.VideoRecord.format)
278  return format_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
279 }
280 inline ::std::string* VideoRecord::release_format() {
281  // @@protoc_insertion_point(field_release:ignition.msgs.VideoRecord.format)
282 
283  return format_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
284 }
286  if (format != NULL) {
287 
288  } else {
289 
290  }
291  format_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), format);
292  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.VideoRecord.format)
293 }
294 
295 // optional string save_filename = 5;
297  save_filename_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
298 }
299 inline const ::std::string& VideoRecord::save_filename() const {
300  // @@protoc_insertion_point(field_get:ignition.msgs.VideoRecord.save_filename)
301  return save_filename_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
302 }
303 inline void VideoRecord::set_save_filename(const ::std::string& value) {
304 
305  save_filename_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
306  // @@protoc_insertion_point(field_set:ignition.msgs.VideoRecord.save_filename)
307 }
308 inline void VideoRecord::set_save_filename(const char* value) {
309 
310  save_filename_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
311  // @@protoc_insertion_point(field_set_char:ignition.msgs.VideoRecord.save_filename)
312 }
313 inline void VideoRecord::set_save_filename(const char* value, size_t size) {
314 
315  save_filename_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
316  ::std::string(reinterpret_cast<const char*>(value), size));
317  // @@protoc_insertion_point(field_set_pointer:ignition.msgs.VideoRecord.save_filename)
318 }
319 inline ::std::string* VideoRecord::mutable_save_filename() {
320 
321  // @@protoc_insertion_point(field_mutable:ignition.msgs.VideoRecord.save_filename)
322  return save_filename_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
323 }
324 inline ::std::string* VideoRecord::release_save_filename() {
325  // @@protoc_insertion_point(field_release:ignition.msgs.VideoRecord.save_filename)
326 
327  return save_filename_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
328 }
330  if (save_filename != NULL) {
331 
332  } else {
333 
334  }
335  save_filename_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), save_filename);
336  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.VideoRecord.save_filename)
337 }
338 
339 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS
340 
345 // @@protoc_insertion_point(namespace_scope)
346 
347 } // namespace msgs
348 } // namespace ignition
349 
350 #ifdef _MSC_VER
351 #pragma warning(pop)
352 #endif
353 // @@protoc_insertion_point(global_scope)
354 
355 #endif // PROTOBUF_ignition_2fmsgs_2fvideo_5frecord_2eproto__INCLUDED
std::shared_ptr< VideoRecord > VideoRecordSharedPtr
Definition: video_record.pb.h:343
::ignition::msgs::Header * mutable_header()
Definition: video_record.pb.h:197
const ::ignition::msgs::Header & header() const
Definition: video_record.pb.h:193
void clear_format()
Definition: video_record.pb.h:252
::ignition::msgs::Header * release_header()
Definition: video_record.pb.h:205
const ::std::string & format() const
Definition: video_record.pb.h:255
void set_format(const ::std::string &value)
Definition: video_record.pb.h:259
void clear_stop()
Definition: video_record.pb.h:238
::std::string * release_format()
Definition: video_record.pb.h:280
Definition: video_record.pb.h:56
void clear_start()
Definition: video_record.pb.h:224
::std::string * mutable_save_filename()
Definition: video_record.pb.h:319
std::unique_ptr< const VideoRecord > ConstVideoRecordUniquePtr
Definition: video_record.pb.h:342
VideoRecord * New() const
Definition: video_record.pb.h:75
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: video_record.pb.h:92
void clear_save_filename()
Definition: video_record.pb.h:296
void protobuf_ShutdownFile_ignition_2fmsgs_2fvideo_5frecord_2eproto()
Definition: header.pb.h:161
STL class.
bool start() const
Definition: video_record.pb.h:227
VideoRecord & operator=(const VideoRecord &from)
Definition: video_record.pb.h:63
std::shared_ptr< const VideoRecord > ConstVideoRecordSharedPtr
Definition: video_record.pb.h:344
void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fvideo_5frecord_2eproto()
void set_stop(bool value)
Definition: video_record.pb.h:245
int GetCachedSize() const
Definition: video_record.pb.h:95
void set_save_filename(const ::std::string &value)
Definition: video_record.pb.h:303
void set_allocated_save_filename(::std::string *save_filename)
Definition: video_record.pb.h:329
::std::string * mutable_format()
Definition: video_record.pb.h:275
void set_allocated_format(::std::string *format)
Definition: video_record.pb.h:285
void set_allocated_header(::ignition::msgs::Header *header)
Definition: video_record.pb.h:212
STL class.
bool has_header() const
Definition: video_record.pb.h:186
const ::std::string & save_filename() const
Definition: video_record.pb.h:299
void clear_header()
Definition: video_record.pb.h:189
::std::string * release_save_filename()
Definition: video_record.pb.h:324
std::unique_ptr< VideoRecord > VideoRecordUniquePtr
Definition: video_record.pb.h:341
void protobuf_AssignDesc_ignition_2fmsgs_2fvideo_5frecord_2eproto()
bool stop() const
Definition: video_record.pb.h:241
void set_start(bool value)
Definition: video_record.pb.h:231