4 #ifndef GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2fimage_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2fimage_2eproto
10 #include <google/protobuf/port_def.inc>
11 #if PROTOBUF_VERSION < 3014000
12 #error This file was generated by a newer version of protoc which is
13 #error incompatible with your Protocol Buffer headers. Please update
16 #if 3014000 < 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.
22 #include <google/protobuf/port_undef.inc>
23 #include <google/protobuf/io/coded_stream.h>
24 #include <google/protobuf/arena.h>
25 #include <google/protobuf/arenastring.h>
26 #include <google/protobuf/generated_message_table_driven.h>
27 #include <google/protobuf/generated_message_util.h>
28 #include <google/protobuf/metadata_lite.h>
29 #include <google/protobuf/generated_message_reflection.h>
30 #include <google/protobuf/message.h>
31 #include <google/protobuf/repeated_field.h>
32 #include <google/protobuf/extension_set.h>
33 #include <google/protobuf/generated_enum_reflection.h>
34 #include <google/protobuf/unknown_field_set.h>
37 #pragma GCC system_header
40 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
43 #include <sys/sysmacros.h>
48 #include <google/protobuf/port_def.inc>
49 #define PROTOBUF_INTERNAL_EXPORT_ignition_2fmsgs_2fimage_2eproto IGNITION_MSGS_VISIBLE
50 PROTOBUF_NAMESPACE_OPEN
54 PROTOBUF_NAMESPACE_CLOSE
58 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
60 static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[]
62 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1]
64 static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
65 static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
66 static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[];
72 class ImageDefaultTypeInternal;
76 PROTOBUF_NAMESPACE_OPEN
77 template<> IGNITION_MSGS_VISIBLE ::ignition::msgs::Image* Arena::CreateMaybeMessage<::ignition::msgs::Image>(Arena*);
78 PROTOBUF_NAMESPACE_CLOSE
115 "Incorrect type passed to function PixelFormatType_Name.");
116 return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
120 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
PixelFormatType* value) {
121 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<PixelFormatType>(
126 class IGNITION_MSGS_VISIBLE Image PROTOBUF_FINAL :
127 public ::PROTOBUF_NAMESPACE_ID::Message {
135 *
this = ::std::move(from);
143 if (GetArena() == from.GetArena()) {
144 if (
this != &from) InternalSwap(&from);
151 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
152 return GetDescriptor();
155 return GetMetadataStatic().descriptor;
158 return GetMetadataStatic().reflection;
163 return reinterpret_cast<const Image*
>(
166 static constexpr
int kIndexInFileMessages =
169 friend void swap(Image& a, Image& b) {
172 inline void Swap(Image* other) {
173 if (other ==
this)
return;
174 if (GetArena() == other->GetArena()) {
177 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
181 if (other ==
this)
return;
182 GOOGLE_DCHECK(GetArena() == other->GetArena());
188 inline Image*
New() const final {
189 return CreateMaybeMessage<Image>(
nullptr);
192 Image*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena)
const final {
193 return CreateMaybeMessage<Image>(arena);
195 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
196 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
199 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
200 bool IsInitialized() const final;
202 size_t ByteSizeLong() const final;
203 const
char* _InternalParse(const
char* ptr, ::PROTOBUF_NAMESPACE_ID::
internal::ParseContext* ctx) final;
204 ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
205 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
206 int GetCachedSize() const final {
return _cached_size_.Get(); }
209 inline void SharedCtor();
210 inline void SharedDtor();
211 void SetCachedSize(
int size)
const final;
212 void InternalSwap(Image* other);
213 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
214 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
215 return "ignition.msgs.Image";
218 explicit Image(::PROTOBUF_NAMESPACE_ID::Arena* arena);
220 static void ArenaDtor(
void*
object);
221 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
226 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
238 kDataFieldNumber = 5,
239 kHeaderFieldNumber = 1,
240 kWidthFieldNumber = 2,
241 kHeightFieldNumber = 3,
242 kStepFieldNumber = 4,
243 kPixelFormatTypeFieldNumber = 6,
264 bool _internal_has_header()
const;
267 const ::ignition::msgs::Header&
header()
const;
272 const ::ignition::msgs::Header& _internal_header()
const;
273 ::ignition::msgs::Header* _internal_mutable_header();
276 ::ignition::msgs::Header* header);
281 ::PROTOBUF_NAMESPACE_ID::uint32
width()
const;
284 ::PROTOBUF_NAMESPACE_ID::uint32 _internal_width()
const;
285 void _internal_set_width(::PROTOBUF_NAMESPACE_ID::uint32 value);
290 ::PROTOBUF_NAMESPACE_ID::uint32
height()
const;
293 ::PROTOBUF_NAMESPACE_ID::uint32 _internal_height()
const;
294 void _internal_set_height(::PROTOBUF_NAMESPACE_ID::uint32 value);
299 ::PROTOBUF_NAMESPACE_ID::uint32
step()
const;
300 void set_step(::PROTOBUF_NAMESPACE_ID::uint32 value);
302 ::PROTOBUF_NAMESPACE_ID::uint32 _internal_step()
const;
303 void _internal_set_step(::PROTOBUF_NAMESPACE_ID::uint32 value);
319 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
320 typedef void InternalArenaConstructable_;
321 typedef void DestructorSkippable_;
322 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr data_;
323 ::ignition::msgs::Header* header_;
324 ::PROTOBUF_NAMESPACE_ID::uint32 width_;
325 ::PROTOBUF_NAMESPACE_ID::uint32 height_;
326 ::PROTOBUF_NAMESPACE_ID::uint32 step_;
327 int pixel_format_type_;
328 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
329 friend struct ::TableStruct_ignition_2fmsgs_2fimage_2eproto;
337 #pragma GCC diagnostic push
338 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
343 inline bool Image::_internal_has_header()
const {
344 return this != internal_default_instance() && header_ !=
nullptr;
346 inline bool Image::has_header()
const {
347 return _internal_has_header();
349 inline const ::ignition::msgs::Header& Image::_internal_header()
const {
350 const ::ignition::msgs::Header* p = header_;
351 return p !=
nullptr ? *p :
reinterpret_cast<const ::ignition::msgs::Header&
>(
354 inline const ::ignition::msgs::Header& Image::header()
const {
356 return _internal_header();
358 inline void Image::unsafe_arena_set_allocated_header(
359 ::ignition::msgs::Header* header) {
360 if (GetArena() ==
nullptr) {
361 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header_);
371 inline ::ignition::msgs::Header* Image::release_header() {
373 ::ignition::msgs::Header* temp = header_;
375 if (GetArena() !=
nullptr) {
376 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
380 inline ::ignition::msgs::Header* Image::unsafe_arena_release_header() {
383 ::ignition::msgs::Header* temp = header_;
387 inline ::ignition::msgs::Header* Image::_internal_mutable_header() {
389 if (header_ ==
nullptr) {
390 auto* p = CreateMaybeMessage<::ignition::msgs::Header>(GetArena());
395 inline ::ignition::msgs::Header* Image::mutable_header() {
397 return _internal_mutable_header();
399 inline void Image::set_allocated_header(::ignition::msgs::Header* header) {
400 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
401 if (message_arena ==
nullptr) {
402 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header_);
405 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
406 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header)->GetArena();
407 if (message_arena != submessage_arena) {
408 header = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
409 message_arena, header, submessage_arena);
420 inline void Image::clear_width() {
423 inline ::PROTOBUF_NAMESPACE_ID::uint32 Image::_internal_width()
const {
426 inline ::PROTOBUF_NAMESPACE_ID::uint32 Image::width()
const {
428 return _internal_width();
430 inline void Image::_internal_set_width(::PROTOBUF_NAMESPACE_ID::uint32 value) {
434 inline void Image::set_width(::PROTOBUF_NAMESPACE_ID::uint32 value) {
435 _internal_set_width(value);
440 inline void Image::clear_height() {
443 inline ::PROTOBUF_NAMESPACE_ID::uint32 Image::_internal_height()
const {
446 inline ::PROTOBUF_NAMESPACE_ID::uint32 Image::height()
const {
448 return _internal_height();
450 inline void Image::_internal_set_height(::PROTOBUF_NAMESPACE_ID::uint32 value) {
454 inline void Image::set_height(::PROTOBUF_NAMESPACE_ID::uint32 value) {
455 _internal_set_height(value);
460 inline void Image::clear_step() {
463 inline ::PROTOBUF_NAMESPACE_ID::uint32 Image::_internal_step()
const {
466 inline ::PROTOBUF_NAMESPACE_ID::uint32 Image::step()
const {
468 return _internal_step();
470 inline void Image::_internal_set_step(::PROTOBUF_NAMESPACE_ID::uint32 value) {
474 inline void Image::set_step(::PROTOBUF_NAMESPACE_ID::uint32 value) {
475 _internal_set_step(value);
480 inline void Image::clear_data() {
481 data_.ClearToEmpty();
485 return _internal_data();
487 inline void Image::set_data(
const std::string& value) {
488 _internal_set_data(value);
493 return _internal_mutable_data();
495 inline const std::string& Image::_internal_data()
const {
498 inline void Image::_internal_set_data(
const std::string& value) {
500 data_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
505 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
508 inline void Image::set_data(
const char* value) {
509 GOOGLE_DCHECK(value !=
nullptr);
511 data_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{},
::std::string(value), GetArena());
514 inline void Image::set_data(
const void* value,
517 data_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{},
::std::string(
518 reinterpret_cast<const char*
>(value), size), GetArena());
521 inline std::string* Image::_internal_mutable_data() {
523 return data_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
527 return data_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
529 inline void Image::set_allocated_data(
std::string* data) {
530 if (data !=
nullptr) {
535 data_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), data,
541 inline void Image::clear_pixel_format_type() {
542 pixel_format_type_ = 0;
549 return _internal_pixel_format_type();
553 pixel_format_type_ = value;
556 _internal_set_pixel_format_type(value);
561 #pragma GCC diagnostic pop
573 PROTOBUF_NAMESPACE_OPEN
577 inline const EnumDescriptor* GetEnumDescriptor< ::ignition::msgs::PixelFormatType>() {
581 PROTOBUF_NAMESPACE_CLOSE
588 #include <google/protobuf/port_undef.inc>
Image * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
Definition: image.pb.h:192
void set_allocated_data(std::string *data)
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition: image.pb.h:157
void set_step(::PROTOBUF_NAMESPACE_ID::uint32 value)
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
::ignition::msgs::Header * release_header()
void set_data(const std::string &value)
::ignition::msgs::Header * mutable_header()
::PROTOBUF_NAMESPACE_ID::uint32 step() const
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition: image.pb.h:151
std::string * release_data()
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
void set_data(std::string &&value)
void set_width(::PROTOBUF_NAMESPACE_ID::uint32 value)
::ignition::msgs::PixelFormatType pixel_format_type() const
static const Image & default_instance()
const std::string & data() const
void UnsafeArenaSwap(Image *other)
Definition: image.pb.h:180
Image & operator=(const Image &from)
Definition: image.pb.h:138
void unsafe_arena_set_allocated_header(::ignition::msgs::Header *header)
Image()
Definition: image.pb.h:129
void clear_pixel_format_type()
void Swap(Image *other)
Definition: image.pb.h:172
Image * New() const final
Definition: image.pb.h:188
::ignition::msgs::Header * unsafe_arena_release_header()
::PROTOBUF_NAMESPACE_ID::uint32 height() const
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
Image & operator=(Image &&from) noexcept
Definition: image.pb.h:142
void set_pixel_format_type(::ignition::msgs::PixelFormatType value)
static const Image * internal_default_instance()
Definition: image.pb.h:162
Image(::PROTOBUF_NAMESPACE_ID::Arena *arena)
void set_allocated_header(::ignition::msgs::Header *header)
void set_data(const char *value)
Image(Image &&from) noexcept
Definition: image.pb.h:133
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition: image.pb.h:154
void set_height(::PROTOBUF_NAMESPACE_ID::uint32 value)
friend void swap(Image &a, Image &b)
Definition: image.pb.h:169
void set_data(const void *value, size_t size)
void MergeFrom(const Image &from)
void CopyFrom(const Image &from)
const ::ignition::msgs::Header & header() const
::PROTOBUF_NAMESPACE_ID::uint32 width() const
std::string * mutable_data()
IGNITION_MSGS_VISIBLEconst ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_ignition_2fmsgs_2fimage_2eproto
constexpr int PixelFormatType_ARRAYSIZE
Definition: image.pb.h:108
IGNITION_MSGS_VISIBLE ImageDefaultTypeInternal _Image_default_instance_
IGNITION_MSGS_VISIBLEconst ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * PixelFormatType_descriptor()
const std::string & PixelFormatType_Name(T enum_t_value)
Definition: image.pb.h:112
std::shared_ptr< Image > ImageSharedPtr
Definition: image.pb.h:566
IGNITION_MSGS_VISIBLE HeaderDefaultTypeInternal _Header_default_instance_
constexpr PixelFormatType PixelFormatType_MIN
Definition: image.pb.h:106
constexpr PixelFormatType PixelFormatType_MAX
Definition: image.pb.h:107
std::unique_ptr< Image > ImageUniquePtr
Definition: image.pb.h:564
IGNITION_MSGS_VISIBLE bool PixelFormatType_IsValid(int value)
std::unique_ptr< const Image > ConstImageUniquePtr
Definition: image.pb.h:565
bool PixelFormatType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, PixelFormatType *value)
Definition: image.pb.h:119
std::shared_ptr< const Image > ConstImageSharedPtr
Definition: image.pb.h:567
PixelFormatType
Definition: image.pb.h:82
@ BAYER_GRBG8
Definition: image.pb.h:101
@ RGB_FLOAT16
Definition: image.pb.h:95
@ RGB_INT8
Definition: image.pb.h:86
@ RGB_FLOAT32
Definition: image.pb.h:97
@ BAYER_GBRG8
Definition: image.pb.h:100
@ L_INT16
Definition: image.pb.h:85
@ BGR_INT8
Definition: image.pb.h:91
@ PixelFormatType_INT_MAX_SENTINEL_DO_NOT_USE_
Definition: image.pb.h:103
@ R_FLOAT32
Definition: image.pb.h:96
@ BAYER_RGGB8
Definition: image.pb.h:98
@ L_INT8
Definition: image.pb.h:84
@ BAYER_BGGR8
Definition: image.pb.h:99
@ RGB_INT32
Definition: image.pb.h:90
@ RGBA_INT8
Definition: image.pb.h:87
@ BGR_INT32
Definition: image.pb.h:93
@ UNKNOWN_PIXEL_FORMAT
Definition: image.pb.h:83
@ BGRA_INT8
Definition: image.pb.h:88
@ RGB_INT16
Definition: image.pb.h:89
@ PixelFormatType_INT_MIN_SENTINEL_DO_NOT_USE_
Definition: image.pb.h:102
@ BGR_INT16
Definition: image.pb.h:92
@ R_FLOAT16
Definition: image.pb.h:94
Definition: actor.pb.h:52
Definition: image.pb.h:57
static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1] PROTOBUF_SECTION_VARIABLE(protodesc_cold)