Ignition Msgs

API Reference

7.1.0
image.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: ignition/msgs/image.proto
3 
4 #ifndef PROTOBUF_ignition_2fmsgs_2fimage_2eproto__INCLUDED
5 #define PROTOBUF_ignition_2fmsgs_2fimage_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/generated_enum_reflection.h>
30 #include <google/protobuf/unknown_field_set.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.
49 void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fimage_2eproto();
52 
53 class Image;
54 
57  L_INT8 = 1,
58  L_INT16 = 2,
59  RGB_INT8 = 3,
60  RGBA_INT8 = 4,
61  BGRA_INT8 = 5,
62  RGB_INT16 = 6,
63  RGB_INT32 = 7,
64  BGR_INT8 = 8,
65  BGR_INT16 = 9,
66  BGR_INT32 = 10,
67  R_FLOAT16 = 11,
69  R_FLOAT32 = 13,
75  PixelFormatType_INT_MIN_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32min,
76  PixelFormatType_INT_MAX_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32max
77 };
78 IGNITION_MSGS_VISIBLE bool PixelFormatType_IsValid(int value);
81 const int PixelFormatType_ARRAYSIZE = PixelFormatType_MAX + 1;
82 
83 IGNITION_MSGS_VISIBLE const ::google::protobuf::EnumDescriptor* PixelFormatType_descriptor();
84 inline const ::std::string& PixelFormatType_Name(PixelFormatType value) {
85  return ::google::protobuf::internal::NameOfEnum(
87 }
89  const ::std::string& name, PixelFormatType* value) {
90  return ::google::protobuf::internal::ParseNamedEnum<PixelFormatType>(
91  PixelFormatType_descriptor(), name, value);
92 }
93 // ===================================================================
94 
95 class IGNITION_MSGS_VISIBLE Image : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.Image) */ {
96  public:
97  Image();
98  virtual ~Image();
99 
100  Image(const Image& from);
101 
102  inline Image& operator=(const Image& from) {
103  CopyFrom(from);
104  return *this;
105  }
106 
107  static const ::google::protobuf::Descriptor* descriptor();
108  static const Image& default_instance();
109 
110  void Swap(Image* other);
111 
112  // implements Message ----------------------------------------------
113 
114  inline Image* New() const { return New(NULL); }
115 
116  Image* New(::google::protobuf::Arena* arena) const;
117  void CopyFrom(const ::google::protobuf::Message& from);
118  void MergeFrom(const ::google::protobuf::Message& from);
119  void CopyFrom(const Image& from);
120  void MergeFrom(const Image& from);
121  void Clear();
122  bool IsInitialized() const;
123 
124  int ByteSize() const;
125  bool MergePartialFromCodedStream(
126  ::google::protobuf::io::CodedInputStream* input);
127  void SerializeWithCachedSizes(
128  ::google::protobuf::io::CodedOutputStream* output) const;
129  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
130  bool deterministic, ::google::protobuf::uint8* output) const;
131  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const {
132  return InternalSerializeWithCachedSizesToArray(false, output);
133  }
134  int GetCachedSize() const { return _cached_size_; }
135  private:
136  void SharedCtor();
137  void SharedDtor();
138  void SetCachedSize(int size) const;
139  void InternalSwap(Image* other);
140  private:
141  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
142  return _internal_metadata_.arena();
143  }
144  inline void* MaybeArenaPtr() const {
145  return _internal_metadata_.raw_arena_ptr();
146  }
147  public:
148 
149  ::google::protobuf::Metadata GetMetadata() const;
150 
151  // nested types ----------------------------------------------------
152 
153  // accessors -------------------------------------------------------
154 
155  // optional .ignition.msgs.Header header = 1;
156  bool has_header() const;
157  void clear_header();
158  static const int kHeaderFieldNumber = 1;
159  const ::ignition::msgs::Header& header() const;
160  ::ignition::msgs::Header* mutable_header();
161  ::ignition::msgs::Header* release_header();
162  void set_allocated_header(::ignition::msgs::Header* header);
163 
164  // optional uint32 width = 2;
165  void clear_width();
166  static const int kWidthFieldNumber = 2;
167  ::google::protobuf::uint32 width() const;
168  void set_width(::google::protobuf::uint32 value);
169 
170  // optional uint32 height = 3;
171  void clear_height();
172  static const int kHeightFieldNumber = 3;
173  ::google::protobuf::uint32 height() const;
174  void set_height(::google::protobuf::uint32 value);
175 
176  // optional uint32 step = 4;
177  void clear_step();
178  static const int kStepFieldNumber = 4;
179  ::google::protobuf::uint32 step() const;
180  void set_step(::google::protobuf::uint32 value);
181 
182  // optional bytes data = 5;
183  void clear_data();
184  static const int kDataFieldNumber = 5;
185  const ::std::string& data() const;
186  void set_data(const ::std::string& value);
187  void set_data(const char* value);
188  void set_data(const void* value, size_t size);
189  ::std::string* mutable_data();
190  ::std::string* release_data();
191  void set_allocated_data(::std::string* data);
192 
193  // optional .ignition.msgs.PixelFormatType pixel_format_type = 6;
194  void clear_pixel_format_type();
195  static const int kPixelFormatTypeFieldNumber = 6;
196  ::ignition::msgs::PixelFormatType pixel_format_type() const;
197  void set_pixel_format_type(::ignition::msgs::PixelFormatType value);
198 
199  // @@protoc_insertion_point(class_scope:ignition.msgs.Image)
200  private:
201 
202  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
203  bool _is_default_instance_;
204  ::ignition::msgs::Header* header_;
205  ::google::protobuf::uint32 width_;
206  ::google::protobuf::uint32 height_;
207  ::google::protobuf::internal::ArenaStringPtr data_;
208  ::google::protobuf::uint32 step_;
209  int pixel_format_type_;
210  mutable int _cached_size_;
211  friend void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fimage_2eproto();
214 
215  void InitAsDefaultInstance();
216  static Image* default_instance_;
217 };
218 // ===================================================================
219 
220 
221 // ===================================================================
222 
223 #if !PROTOBUF_INLINE_NOT_IN_HEADERS
224 // Image
225 
226 // optional .ignition.msgs.Header header = 1;
227 inline bool Image::has_header() const {
228  return !_is_default_instance_ && header_ != NULL;
229 }
230 inline void Image::clear_header() {
231  if (GetArenaNoVirtual() == NULL && header_ != NULL) delete header_;
232  header_ = NULL;
233 }
234 inline const ::ignition::msgs::Header& Image::header() const {
235  // @@protoc_insertion_point(field_get:ignition.msgs.Image.header)
236  return header_ != NULL ? *header_ : *default_instance_->header_;
237 }
238 inline ::ignition::msgs::Header* Image::mutable_header() {
239 
240  if (header_ == NULL) {
241  header_ = new ::ignition::msgs::Header;
242  }
243  // @@protoc_insertion_point(field_mutable:ignition.msgs.Image.header)
244  return header_;
245 }
246 inline ::ignition::msgs::Header* Image::release_header() {
247  // @@protoc_insertion_point(field_release:ignition.msgs.Image.header)
248 
249  ::ignition::msgs::Header* temp = header_;
250  header_ = NULL;
251  return temp;
252 }
254  delete header_;
255  header_ = header;
256  if (header) {
257 
258  } else {
259 
260  }
261  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Image.header)
262 }
263 
264 // optional uint32 width = 2;
265 inline void Image::clear_width() {
266  width_ = 0u;
267 }
268 inline ::google::protobuf::uint32 Image::width() const {
269  // @@protoc_insertion_point(field_get:ignition.msgs.Image.width)
270  return width_;
271 }
272 inline void Image::set_width(::google::protobuf::uint32 value) {
273 
274  width_ = value;
275  // @@protoc_insertion_point(field_set:ignition.msgs.Image.width)
276 }
277 
278 // optional uint32 height = 3;
279 inline void Image::clear_height() {
280  height_ = 0u;
281 }
282 inline ::google::protobuf::uint32 Image::height() const {
283  // @@protoc_insertion_point(field_get:ignition.msgs.Image.height)
284  return height_;
285 }
286 inline void Image::set_height(::google::protobuf::uint32 value) {
287 
288  height_ = value;
289  // @@protoc_insertion_point(field_set:ignition.msgs.Image.height)
290 }
291 
292 // optional uint32 step = 4;
293 inline void Image::clear_step() {
294  step_ = 0u;
295 }
296 inline ::google::protobuf::uint32 Image::step() const {
297  // @@protoc_insertion_point(field_get:ignition.msgs.Image.step)
298  return step_;
299 }
300 inline void Image::set_step(::google::protobuf::uint32 value) {
301 
302  step_ = value;
303  // @@protoc_insertion_point(field_set:ignition.msgs.Image.step)
304 }
305 
306 // optional bytes data = 5;
307 inline void Image::clear_data() {
308  data_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
309 }
310 inline const ::std::string& Image::data() const {
311  // @@protoc_insertion_point(field_get:ignition.msgs.Image.data)
312  return data_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
313 }
314 inline void Image::set_data(const ::std::string& value) {
315 
316  data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
317  // @@protoc_insertion_point(field_set:ignition.msgs.Image.data)
318 }
319 inline void Image::set_data(const char* value) {
320 
321  data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
322  // @@protoc_insertion_point(field_set_char:ignition.msgs.Image.data)
323 }
324 inline void Image::set_data(const void* value, size_t size) {
325 
326  data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
327  ::std::string(reinterpret_cast<const char*>(value), size));
328  // @@protoc_insertion_point(field_set_pointer:ignition.msgs.Image.data)
329 }
330 inline ::std::string* Image::mutable_data() {
331 
332  // @@protoc_insertion_point(field_mutable:ignition.msgs.Image.data)
333  return data_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
334 }
335 inline ::std::string* Image::release_data() {
336  // @@protoc_insertion_point(field_release:ignition.msgs.Image.data)
337 
338  return data_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
339 }
341  if (data != NULL) {
342 
343  } else {
344 
345  }
346  data_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), data);
347  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Image.data)
348 }
349 
350 // optional .ignition.msgs.PixelFormatType pixel_format_type = 6;
352  pixel_format_type_ = 0;
353 }
355  // @@protoc_insertion_point(field_get:ignition.msgs.Image.pixel_format_type)
356  return static_cast< ::ignition::msgs::PixelFormatType >(pixel_format_type_);
357 }
359 
360  pixel_format_type_ = value;
361  // @@protoc_insertion_point(field_set:ignition.msgs.Image.pixel_format_type)
362 }
363 
364 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS
365 
370 // @@protoc_insertion_point(namespace_scope)
371 
372 } // namespace msgs
373 } // namespace ignition
374 
375 #ifndef SWIG
376 namespace google {
377 namespace protobuf {
378 
379 template <> struct is_proto_enum< ::ignition::msgs::PixelFormatType> : ::google::protobuf::internal::true_type {};
380 template <>
381 inline const EnumDescriptor* GetEnumDescriptor< ::ignition::msgs::PixelFormatType>() {
383 }
384 
385 } // namespace protobuf
386 } // namespace google
387 #endif // SWIG
388 
389 #ifdef _MSC_VER
390 #pragma warning(pop)
391 #endif
392 // @@protoc_insertion_point(global_scope)
393 
394 #endif // PROTOBUF_ignition_2fmsgs_2fimage_2eproto__INCLUDED
void protobuf_AssignDesc_ignition_2fmsgs_2fimage_2eproto()
void set_step(::google::protobuf::uint32 value)
Definition: image.pb.h:300
Definition: image.pb.h:57
Image & operator=(const Image &from)
Definition: image.pb.h:102
void set_width(::google::protobuf::uint32 value)
Definition: image.pb.h:272
Definition: image.pb.h:63
::std::string * mutable_data()
Definition: image.pb.h:330
void set_height(::google::protobuf::uint32 value)
Definition: image.pb.h:286
Definition: image.pb.h:71
::google::protobuf::uint32 height() const
Definition: image.pb.h:282
const ::std::string & PixelFormatType_Name(PixelFormatType value)
Definition: image.pb.h:84
Definition: image.pb.h:59
PixelFormatType
Definition: image.pb.h:55
Definition: image.pb.h:95
const PixelFormatType PixelFormatType_MAX
Definition: image.pb.h:80
void clear_header()
Definition: image.pb.h:230
void clear_height()
Definition: image.pb.h:279
Image * New() const
Definition: image.pb.h:114
void set_pixel_format_type(::ignition::msgs::PixelFormatType value)
Definition: image.pb.h:358
Definition: image.pb.h:72
IGNITION_MSGS_VISIBLEconst ::google::protobuf::EnumDescriptor * PixelFormatType_descriptor()
Definition: image.pb.h:74
void set_data(const ::std::string &value)
Definition: image.pb.h:314
Definition: header.pb.h:161
STL class.
Definition: image.pb.h:58
void clear_step()
Definition: image.pb.h:293
Definition: image.pb.h:65
Definition: image.pb.h:67
Definition: image.pb.h:56
::ignition::msgs::Header * mutable_header()
Definition: image.pb.h:238
Definition: image.pb.h:70
Definition: image.pb.h:64
::ignition::msgs::PixelFormatType pixel_format_type() const
Definition: image.pb.h:354
void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fimage_2eproto()
Definition: image.pb.h:73
::google::protobuf::uint32 step() const
Definition: image.pb.h:296
const int PixelFormatType_ARRAYSIZE
Definition: image.pb.h:81
std::shared_ptr< const Image > ConstImageSharedPtr
Definition: image.pb.h:369
void clear_data()
Definition: image.pb.h:307
bool PixelFormatType_Parse(const ::std::string &name, PixelFormatType *value)
Definition: image.pb.h:88
void clear_pixel_format_type()
Definition: image.pb.h:351
STL class.
void set_allocated_data(::std::string *data)
Definition: image.pb.h:340
const ::std::string & data() const
Definition: image.pb.h:310
Definition: image.pb.h:62
::ignition::msgs::Header * release_header()
Definition: image.pb.h:246
void protobuf_ShutdownFile_ignition_2fmsgs_2fimage_2eproto()
std::unique_ptr< const Image > ConstImageUniquePtr
Definition: image.pb.h:367
const PixelFormatType PixelFormatType_MIN
Definition: image.pb.h:79
IGNITION_MSGS_VISIBLE bool PixelFormatType_IsValid(int value)
std::shared_ptr< Image > ImageSharedPtr
Definition: image.pb.h:368
void clear_width()
Definition: image.pb.h:265
::std::string * release_data()
Definition: image.pb.h:335
void set_allocated_header(::ignition::msgs::Header *header)
Definition: image.pb.h:253
Definition: any.pb.h:839
Definition: image.pb.h:66
std::unique_ptr< Image > ImageUniquePtr
Definition: image.pb.h:366
bool has_header() const
Definition: image.pb.h:227
const ::ignition::msgs::Header & header() const
Definition: image.pb.h:234
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: image.pb.h:131
::google::protobuf::uint32 width() const
Definition: image.pb.h:268
Definition: image.pb.h:68
Definition: image.pb.h:61
Definition: image.pb.h:60
Definition: image.pb.h:69
int GetCachedSize() const
Definition: image.pb.h:134