Gazebo Msgs

API Reference

9.5.1
image.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: gz/msgs/image.proto
3 
4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2fimage_2eproto
5 #define PROTOBUF_INCLUDED_gz_2fmsgs_2fimage_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/generated_enum_reflection.h>
33 #include <google/protobuf/unknown_field_set.h>
34 #include "gz/msgs/header.pb.h"
35 // @@protoc_insertion_point(includes)
36 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2fimage_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_2fimage_2eproto
50 namespace gz {
51 namespace msgs {
52 class Image;
53 class ImageDefaultTypeInternal;
54 GZ_MSGS_VISIBLE extern ImageDefaultTypeInternal _Image_default_instance_;
55 } // namespace msgs
56 } // namespace gz
57 namespace google {
58 namespace protobuf {
59 template<> GZ_MSGS_VISIBLE ::gz::msgs::Image* Arena::CreateMaybeMessage<::gz::msgs::Image>(Arena*);
60 } // namespace protobuf
61 } // namespace google
62 namespace gz {
63 namespace msgs {
64 
67  L_INT8 = 1,
68  L_INT16 = 2,
69  RGB_INT8 = 3,
70  RGBA_INT8 = 4,
71  BGRA_INT8 = 5,
72  RGB_INT16 = 6,
73  RGB_INT32 = 7,
74  BGR_INT8 = 8,
75  BGR_INT16 = 9,
76  BGR_INT32 = 10,
77  R_FLOAT16 = 11,
79  R_FLOAT32 = 13,
85  PixelFormatType_INT_MIN_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32min,
86  PixelFormatType_INT_MAX_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32max
87 };
88 GZ_MSGS_VISIBLE bool PixelFormatType_IsValid(int value);
92 
93 GZ_MSGS_VISIBLE const ::google::protobuf::EnumDescriptor* PixelFormatType_descriptor();
94 inline const ::std::string& PixelFormatType_Name(PixelFormatType value) {
95  return ::google::protobuf::internal::NameOfEnum(
97 }
99  const ::std::string& name, PixelFormatType* value) {
100  return ::google::protobuf::internal::ParseNamedEnum<PixelFormatType>(
101  PixelFormatType_descriptor(), name, value);
102 }
103 // ===================================================================
104 
105 class GZ_MSGS_VISIBLE Image : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:gz.msgs.Image) */ {
106  public:
107  Image();
108  virtual ~Image();
109 
110  Image(const Image& from);
111 
112  inline Image& operator=(const Image& from) {
113  CopyFrom(from);
114  return *this;
115  }
116  #if LANG_CXX11
117  Image(Image&& from) noexcept
118  : Image() {
119  *this = ::std::move(from);
120  }
121 
122  inline Image& operator=(Image&& from) noexcept {
123  if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
124  if (this != &from) InternalSwap(&from);
125  } else {
126  CopyFrom(from);
127  }
128  return *this;
129  }
130  #endif
131  static const ::google::protobuf::Descriptor* descriptor();
132  static const Image& default_instance();
133 
134  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
135  static inline const Image* internal_default_instance() {
136  return reinterpret_cast<const Image*>(
138  }
139  static constexpr int kIndexInFileMessages =
140  0;
141 
142  void Swap(Image* other);
143  friend void swap(Image& a, Image& b) {
144  a.Swap(&b);
145  }
146 
147  // implements Message ----------------------------------------------
148 
149  inline Image* New() const final {
150  return CreateMaybeMessage<Image>(NULL);
151  }
152 
153  Image* New(::google::protobuf::Arena* arena) const final {
154  return CreateMaybeMessage<Image>(arena);
155  }
156  void CopyFrom(const ::google::protobuf::Message& from) final;
157  void MergeFrom(const ::google::protobuf::Message& from) final;
158  void CopyFrom(const Image& from);
159  void MergeFrom(const Image& from);
160  void Clear() final;
161  bool IsInitialized() const final;
162 
163  size_t ByteSizeLong() const final;
164  bool MergePartialFromCodedStream(
165  ::google::protobuf::io::CodedInputStream* input) final;
166  void SerializeWithCachedSizes(
167  ::google::protobuf::io::CodedOutputStream* output) const final;
168  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
169  bool deterministic, ::google::protobuf::uint8* target) const final;
170  int GetCachedSize() const final { return _cached_size_.Get(); }
171 
172  private:
173  void SharedCtor();
174  void SharedDtor();
175  void SetCachedSize(int size) const final;
176  void InternalSwap(Image* other);
177  private:
178  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
179  return NULL;
180  }
181  inline void* MaybeArenaPtr() const {
182  return NULL;
183  }
184  public:
185 
186  ::google::protobuf::Metadata GetMetadata() const final;
187 
188  // nested types ----------------------------------------------------
189 
190  // accessors -------------------------------------------------------
191 
192  // bytes data = 5;
193  void clear_data();
194  static const int kDataFieldNumber = 5;
195  const ::std::string& data() const;
196  void set_data(const ::std::string& value);
197  #if LANG_CXX11
198  void set_data(::std::string&& value);
199  #endif
200  void set_data(const char* value);
201  void set_data(const void* value, size_t size);
202  ::std::string* mutable_data();
203  ::std::string* release_data();
204  void set_allocated_data(::std::string* data);
205 
206  // .gz.msgs.Header header = 1;
207  bool has_header() const;
208  void clear_header();
209  static const int kHeaderFieldNumber = 1;
210  private:
211  const ::gz::msgs::Header& _internal_header() const;
212  public:
213  const ::gz::msgs::Header& header() const;
214  ::gz::msgs::Header* release_header();
215  ::gz::msgs::Header* mutable_header();
216  void set_allocated_header(::gz::msgs::Header* header);
217 
218  // uint32 width = 2;
219  void clear_width();
220  static const int kWidthFieldNumber = 2;
221  ::google::protobuf::uint32 width() const;
222  void set_width(::google::protobuf::uint32 value);
223 
224  // uint32 height = 3;
225  void clear_height();
226  static const int kHeightFieldNumber = 3;
227  ::google::protobuf::uint32 height() const;
228  void set_height(::google::protobuf::uint32 value);
229 
230  // uint32 step = 4;
231  void clear_step();
232  static const int kStepFieldNumber = 4;
233  ::google::protobuf::uint32 step() const;
234  void set_step(::google::protobuf::uint32 value);
235 
236  // .gz.msgs.PixelFormatType pixel_format_type = 6;
237  void clear_pixel_format_type();
238  static const int kPixelFormatTypeFieldNumber = 6;
239  ::gz::msgs::PixelFormatType pixel_format_type() const;
240  void set_pixel_format_type(::gz::msgs::PixelFormatType value);
241 
242  // @@protoc_insertion_point(class_scope:gz.msgs.Image)
243  private:
244 
245  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
246  ::google::protobuf::internal::ArenaStringPtr data_;
247  ::gz::msgs::Header* header_;
248  ::google::protobuf::uint32 width_;
249  ::google::protobuf::uint32 height_;
250  ::google::protobuf::uint32 step_;
251  int pixel_format_type_;
252  mutable ::google::protobuf::internal::CachedSize _cached_size_;
253  friend struct ::protobuf_gz_2fmsgs_2fimage_2eproto::TableStruct;
254 };
255 // ===================================================================
256 
257 
258 // ===================================================================
259 
260 #ifdef __GNUC__
261  #pragma GCC diagnostic push
262  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
263 #endif // __GNUC__
264 // Image
265 
266 // .gz.msgs.Header header = 1;
267 inline bool Image::has_header() const {
268  return this != internal_default_instance() && header_ != NULL;
269 }
270 inline const ::gz::msgs::Header& Image::_internal_header() const {
271  return *header_;
272 }
273 inline const ::gz::msgs::Header& Image::header() const {
274  const ::gz::msgs::Header* p = header_;
275  // @@protoc_insertion_point(field_get:gz.msgs.Image.header)
276  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Header*>(
278 }
279 inline ::gz::msgs::Header* Image::release_header() {
280  // @@protoc_insertion_point(field_release:gz.msgs.Image.header)
281 
282  ::gz::msgs::Header* temp = header_;
283  header_ = NULL;
284  return temp;
285 }
286 inline ::gz::msgs::Header* Image::mutable_header() {
287 
288  if (header_ == NULL) {
289  auto* p = CreateMaybeMessage<::gz::msgs::Header>(GetArenaNoVirtual());
290  header_ = p;
291  }
292  // @@protoc_insertion_point(field_mutable:gz.msgs.Image.header)
293  return header_;
294 }
296  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
297  if (message_arena == NULL) {
298  delete reinterpret_cast< ::google::protobuf::MessageLite*>(header_);
299  }
300  if (header) {
301  ::google::protobuf::Arena* submessage_arena = NULL;
302  if (message_arena != submessage_arena) {
303  header = ::google::protobuf::internal::GetOwnedMessage(
304  message_arena, header, submessage_arena);
305  }
306 
307  } else {
308 
309  }
310  header_ = header;
311  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Image.header)
312 }
313 
314 // uint32 width = 2;
315 inline void Image::clear_width() {
316  width_ = 0u;
317 }
318 inline ::google::protobuf::uint32 Image::width() const {
319  // @@protoc_insertion_point(field_get:gz.msgs.Image.width)
320  return width_;
321 }
322 inline void Image::set_width(::google::protobuf::uint32 value) {
323 
324  width_ = value;
325  // @@protoc_insertion_point(field_set:gz.msgs.Image.width)
326 }
327 
328 // uint32 height = 3;
329 inline void Image::clear_height() {
330  height_ = 0u;
331 }
332 inline ::google::protobuf::uint32 Image::height() const {
333  // @@protoc_insertion_point(field_get:gz.msgs.Image.height)
334  return height_;
335 }
336 inline void Image::set_height(::google::protobuf::uint32 value) {
337 
338  height_ = value;
339  // @@protoc_insertion_point(field_set:gz.msgs.Image.height)
340 }
341 
342 // uint32 step = 4;
343 inline void Image::clear_step() {
344  step_ = 0u;
345 }
346 inline ::google::protobuf::uint32 Image::step() const {
347  // @@protoc_insertion_point(field_get:gz.msgs.Image.step)
348  return step_;
349 }
350 inline void Image::set_step(::google::protobuf::uint32 value) {
351 
352  step_ = value;
353  // @@protoc_insertion_point(field_set:gz.msgs.Image.step)
354 }
355 
356 // bytes data = 5;
357 inline void Image::clear_data() {
358  data_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
359 }
360 inline const ::std::string& Image::data() const {
361  // @@protoc_insertion_point(field_get:gz.msgs.Image.data)
362  return data_.GetNoArena();
363 }
364 inline void Image::set_data(const ::std::string& value) {
365 
366  data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
367  // @@protoc_insertion_point(field_set:gz.msgs.Image.data)
368 }
369 #if LANG_CXX11
370 inline void Image::set_data(::std::string&& value) {
371 
372  data_.SetNoArena(
373  &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
374  // @@protoc_insertion_point(field_set_rvalue:gz.msgs.Image.data)
375 }
376 #endif
377 inline void Image::set_data(const char* value) {
378  GOOGLE_DCHECK(value != NULL);
379 
380  data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
381  // @@protoc_insertion_point(field_set_char:gz.msgs.Image.data)
382 }
383 inline void Image::set_data(const void* value, size_t size) {
384 
385  data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
386  ::std::string(reinterpret_cast<const char*>(value), size));
387  // @@protoc_insertion_point(field_set_pointer:gz.msgs.Image.data)
388 }
389 inline ::std::string* Image::mutable_data() {
390 
391  // @@protoc_insertion_point(field_mutable:gz.msgs.Image.data)
392  return data_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
393 }
394 inline ::std::string* Image::release_data() {
395  // @@protoc_insertion_point(field_release:gz.msgs.Image.data)
396 
397  return data_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
398 }
400  if (data != NULL) {
401 
402  } else {
403 
404  }
405  data_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), data);
406  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Image.data)
407 }
408 
409 // .gz.msgs.PixelFormatType pixel_format_type = 6;
411  pixel_format_type_ = 0;
412 }
414  // @@protoc_insertion_point(field_get:gz.msgs.Image.pixel_format_type)
415  return static_cast< ::gz::msgs::PixelFormatType >(pixel_format_type_);
416 }
418 
419  pixel_format_type_ = value;
420  // @@protoc_insertion_point(field_set:gz.msgs.Image.pixel_format_type)
421 }
422 
423 #ifdef __GNUC__
424  #pragma GCC diagnostic pop
425 #endif // __GNUC__
426 
427 // @@protoc_insertion_point(namespace_scope)
428 
429 } // namespace msgs
430 } // namespace gz
431 
432 namespace google {
433 namespace protobuf {
434 
435 template <> struct is_proto_enum< ::gz::msgs::PixelFormatType> : ::std::true_type {};
436 template <>
437 inline const EnumDescriptor* GetEnumDescriptor< ::gz::msgs::PixelFormatType>() {
439 }
440 
441 } // namespace protobuf
442 } // namespace google
443 
444 // @@protoc_insertion_point(global_scope)
445 
446 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2fimage_2eproto