Ignition Msgs

API Reference

8.4.0
dataframe.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: ignition/msgs/dataframe.proto
3 
4 #ifndef PROTOBUF_ignition_2fmsgs_2fdataframe_2eproto__INCLUDED
5 #define PROTOBUF_ignition_2fmsgs_2fdataframe_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.
48 void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fdataframe_2eproto();
51 
52 class Dataframe;
53 
54 // ===================================================================
55 
56 class IGNITION_MSGS_VISIBLE Dataframe : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.Dataframe) */ {
57  public:
58  Dataframe();
59  virtual ~Dataframe();
60 
61  Dataframe(const Dataframe& from);
62 
63  inline Dataframe& operator=(const Dataframe& from) {
64  CopyFrom(from);
65  return *this;
66  }
67 
68  static const ::google::protobuf::Descriptor* descriptor();
69  static const Dataframe& default_instance();
70 
71  void Swap(Dataframe* other);
72 
73  // implements Message ----------------------------------------------
74 
75  inline Dataframe* New() const { return New(NULL); }
76 
77  Dataframe* 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 Dataframe& from);
81  void MergeFrom(const Dataframe& 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(Dataframe* 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 string src_address = 2;
126  void clear_src_address();
127  static const int kSrcAddressFieldNumber = 2;
128  const ::std::string& src_address() const;
129  void set_src_address(const ::std::string& value);
130  void set_src_address(const char* value);
131  void set_src_address(const char* value, size_t size);
132  ::std::string* mutable_src_address();
133  ::std::string* release_src_address();
134  void set_allocated_src_address(::std::string* src_address);
135 
136  // optional string dst_address = 3;
137  void clear_dst_address();
138  static const int kDstAddressFieldNumber = 3;
139  const ::std::string& dst_address() const;
140  void set_dst_address(const ::std::string& value);
141  void set_dst_address(const char* value);
142  void set_dst_address(const char* value, size_t size);
143  ::std::string* mutable_dst_address();
144  ::std::string* release_dst_address();
145  void set_allocated_dst_address(::std::string* dst_address);
146 
147  // optional bytes data = 4;
148  void clear_data();
149  static const int kDataFieldNumber = 4;
150  const ::std::string& data() const;
151  void set_data(const ::std::string& value);
152  void set_data(const char* value);
153  void set_data(const void* value, size_t size);
154  ::std::string* mutable_data();
155  ::std::string* release_data();
156  void set_allocated_data(::std::string* data);
157 
158  // @@protoc_insertion_point(class_scope:ignition.msgs.Dataframe)
159  private:
160 
161  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
162  bool _is_default_instance_;
163  ::ignition::msgs::Header* header_;
164  ::google::protobuf::internal::ArenaStringPtr src_address_;
165  ::google::protobuf::internal::ArenaStringPtr dst_address_;
166  ::google::protobuf::internal::ArenaStringPtr data_;
167  mutable int _cached_size_;
168  friend void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fdataframe_2eproto();
171 
172  void InitAsDefaultInstance();
173  static Dataframe* default_instance_;
174 };
175 // ===================================================================
176 
177 
178 // ===================================================================
179 
180 #if !PROTOBUF_INLINE_NOT_IN_HEADERS
181 // Dataframe
182 
183 // optional .ignition.msgs.Header header = 1;
184 inline bool Dataframe::has_header() const {
185  return !_is_default_instance_ && header_ != NULL;
186 }
187 inline void Dataframe::clear_header() {
188  if (GetArenaNoVirtual() == NULL && header_ != NULL) delete header_;
189  header_ = NULL;
190 }
191 inline const ::ignition::msgs::Header& Dataframe::header() const {
192  // @@protoc_insertion_point(field_get:ignition.msgs.Dataframe.header)
193  return header_ != NULL ? *header_ : *default_instance_->header_;
194 }
195 inline ::ignition::msgs::Header* Dataframe::mutable_header() {
196 
197  if (header_ == NULL) {
198  header_ = new ::ignition::msgs::Header;
199  }
200  // @@protoc_insertion_point(field_mutable:ignition.msgs.Dataframe.header)
201  return header_;
202 }
203 inline ::ignition::msgs::Header* Dataframe::release_header() {
204  // @@protoc_insertion_point(field_release:ignition.msgs.Dataframe.header)
205 
206  ::ignition::msgs::Header* temp = header_;
207  header_ = NULL;
208  return temp;
209 }
211  delete header_;
212  header_ = header;
213  if (header) {
214 
215  } else {
216 
217  }
218  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Dataframe.header)
219 }
220 
221 // optional string src_address = 2;
223  src_address_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
224 }
225 inline const ::std::string& Dataframe::src_address() const {
226  // @@protoc_insertion_point(field_get:ignition.msgs.Dataframe.src_address)
227  return src_address_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
228 }
229 inline void Dataframe::set_src_address(const ::std::string& value) {
230 
231  src_address_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
232  // @@protoc_insertion_point(field_set:ignition.msgs.Dataframe.src_address)
233 }
234 inline void Dataframe::set_src_address(const char* value) {
235 
236  src_address_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
237  // @@protoc_insertion_point(field_set_char:ignition.msgs.Dataframe.src_address)
238 }
239 inline void Dataframe::set_src_address(const char* value, size_t size) {
240 
241  src_address_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
242  ::std::string(reinterpret_cast<const char*>(value), size));
243  // @@protoc_insertion_point(field_set_pointer:ignition.msgs.Dataframe.src_address)
244 }
245 inline ::std::string* Dataframe::mutable_src_address() {
246 
247  // @@protoc_insertion_point(field_mutable:ignition.msgs.Dataframe.src_address)
248  return src_address_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
249 }
250 inline ::std::string* Dataframe::release_src_address() {
251  // @@protoc_insertion_point(field_release:ignition.msgs.Dataframe.src_address)
252 
253  return src_address_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
254 }
256  if (src_address != NULL) {
257 
258  } else {
259 
260  }
261  src_address_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), src_address);
262  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Dataframe.src_address)
263 }
264 
265 // optional string dst_address = 3;
267  dst_address_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
268 }
269 inline const ::std::string& Dataframe::dst_address() const {
270  // @@protoc_insertion_point(field_get:ignition.msgs.Dataframe.dst_address)
271  return dst_address_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
272 }
273 inline void Dataframe::set_dst_address(const ::std::string& value) {
274 
275  dst_address_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
276  // @@protoc_insertion_point(field_set:ignition.msgs.Dataframe.dst_address)
277 }
278 inline void Dataframe::set_dst_address(const char* value) {
279 
280  dst_address_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
281  // @@protoc_insertion_point(field_set_char:ignition.msgs.Dataframe.dst_address)
282 }
283 inline void Dataframe::set_dst_address(const char* value, size_t size) {
284 
285  dst_address_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
286  ::std::string(reinterpret_cast<const char*>(value), size));
287  // @@protoc_insertion_point(field_set_pointer:ignition.msgs.Dataframe.dst_address)
288 }
289 inline ::std::string* Dataframe::mutable_dst_address() {
290 
291  // @@protoc_insertion_point(field_mutable:ignition.msgs.Dataframe.dst_address)
292  return dst_address_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
293 }
294 inline ::std::string* Dataframe::release_dst_address() {
295  // @@protoc_insertion_point(field_release:ignition.msgs.Dataframe.dst_address)
296 
297  return dst_address_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
298 }
300  if (dst_address != NULL) {
301 
302  } else {
303 
304  }
305  dst_address_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), dst_address);
306  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Dataframe.dst_address)
307 }
308 
309 // optional bytes data = 4;
310 inline void Dataframe::clear_data() {
311  data_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
312 }
313 inline const ::std::string& Dataframe::data() const {
314  // @@protoc_insertion_point(field_get:ignition.msgs.Dataframe.data)
315  return data_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
316 }
317 inline void Dataframe::set_data(const ::std::string& value) {
318 
319  data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
320  // @@protoc_insertion_point(field_set:ignition.msgs.Dataframe.data)
321 }
322 inline void Dataframe::set_data(const char* value) {
323 
324  data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
325  // @@protoc_insertion_point(field_set_char:ignition.msgs.Dataframe.data)
326 }
327 inline void Dataframe::set_data(const void* value, size_t size) {
328 
329  data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
330  ::std::string(reinterpret_cast<const char*>(value), size));
331  // @@protoc_insertion_point(field_set_pointer:ignition.msgs.Dataframe.data)
332 }
333 inline ::std::string* Dataframe::mutable_data() {
334 
335  // @@protoc_insertion_point(field_mutable:ignition.msgs.Dataframe.data)
336  return data_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
337 }
338 inline ::std::string* Dataframe::release_data() {
339  // @@protoc_insertion_point(field_release:ignition.msgs.Dataframe.data)
340 
341  return data_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
342 }
344  if (data != NULL) {
345 
346  } else {
347 
348  }
349  data_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), data);
350  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Dataframe.data)
351 }
352 
353 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS
354 
359 // @@protoc_insertion_point(namespace_scope)
360 
361 } // namespace msgs
362 } // namespace ignition
363 
364 #ifdef _MSC_VER
365 #pragma warning(pop)
366 #endif
367 // @@protoc_insertion_point(global_scope)
368 
369 #endif // PROTOBUF_ignition_2fmsgs_2fdataframe_2eproto__INCLUDED
void protobuf_ShutdownFile_ignition_2fmsgs_2fdataframe_2eproto()
void protobuf_AssignDesc_ignition_2fmsgs_2fdataframe_2eproto()
void clear_header()
Definition: dataframe.pb.h:187
Dataframe * New() const
Definition: dataframe.pb.h:75
std::unique_ptr< const Dataframe > ConstDataframeUniquePtr
Definition: dataframe.pb.h:356
void set_allocated_src_address(::std::string *src_address)
Definition: dataframe.pb.h:255
std::shared_ptr< Dataframe > DataframeSharedPtr
Definition: dataframe.pb.h:357
void set_dst_address(const ::std::string &value)
Definition: dataframe.pb.h:273
::ignition::msgs::Header * mutable_header()
Definition: dataframe.pb.h:195
const ::std::string & data() const
Definition: dataframe.pb.h:313
void set_allocated_header(::ignition::msgs::Header *header)
Definition: dataframe.pb.h:210
void set_src_address(const ::std::string &value)
Definition: dataframe.pb.h:229
::std::string * release_dst_address()
Definition: dataframe.pb.h:294
Definition: header.pb.h:161
STL class.
::std::string * mutable_src_address()
Definition: dataframe.pb.h:245
void set_allocated_data(::std::string *data)
Definition: dataframe.pb.h:343
void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fdataframe_2eproto()
::std::string * mutable_dst_address()
Definition: dataframe.pb.h:289
::std::string * release_src_address()
Definition: dataframe.pb.h:250
const ::std::string & dst_address() const
Definition: dataframe.pb.h:269
int GetCachedSize() const
Definition: dataframe.pb.h:95
std::unique_ptr< Dataframe > DataframeUniquePtr
Definition: dataframe.pb.h:355
void clear_dst_address()
Definition: dataframe.pb.h:266
::std::string * release_data()
Definition: dataframe.pb.h:338
void clear_src_address()
Definition: dataframe.pb.h:222
::ignition::msgs::Header * release_header()
Definition: dataframe.pb.h:203
const ::std::string & src_address() const
Definition: dataframe.pb.h:225
bool has_header() const
Definition: dataframe.pb.h:184
void clear_data()
Definition: dataframe.pb.h:310
const ::ignition::msgs::Header & header() const
Definition: dataframe.pb.h:191
Definition: dataframe.pb.h:56
STL class.
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: dataframe.pb.h:92
void set_data(const ::std::string &value)
Definition: dataframe.pb.h:317
Dataframe & operator=(const Dataframe &from)
Definition: dataframe.pb.h:63
void set_allocated_dst_address(::std::string *dst_address)
Definition: dataframe.pb.h:299
std::shared_ptr< const Dataframe > ConstDataframeSharedPtr
Definition: dataframe.pb.h:358
::std::string * mutable_data()
Definition: dataframe.pb.h:333