Go to the documentation of this file.
4 #ifndef PROTOBUF_INCLUDED_ignition_2fmsgs_2fimage_2eproto
5 #define PROTOBUF_INCLUDED_ignition_2fmsgs_2fimage_2eproto
9 #include <google/protobuf/stubs/common.h>
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
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.
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>
31 #include <google/protobuf/extension_set.h>
32 #include <google/protobuf/generated_enum_reflection.h>
33 #include <google/protobuf/unknown_field_set.h>
36 #pragma GCC system_header
39 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
42 #include <sys/sysmacros.h>
47 #define PROTOBUF_INTERNAL_EXPORT_protobuf_ignition_2fmsgs_2fimage_2eproto IGNITION_MSGS_VISIBLE
52 static const ::google::protobuf::internal::ParseTableField entries[];
53 static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
54 static const ::google::protobuf::internal::ParseTable schema[1];
55 static const ::google::protobuf::internal::FieldMetadata field_metadata[];
56 static const ::google::protobuf::internal::SerializationTable serialization_table[];
57 static const ::google::protobuf::uint32 offsets[];
64 class ImageDefaultTypeInternal;
70 template<> IGNITION_MSGS_VISIBLE ::ignition::msgs::Image* Arena::CreateMaybeMessage<::ignition::msgs::Image>(Arena*);
106 return ::google::protobuf::internal::NameOfEnum(
111 return ::google::protobuf::internal::ParseNamedEnum<PixelFormatType>(
116 class IGNITION_MSGS_VISIBLE
Image :
public ::google::protobuf::Message {
130 *
this = ::std::move(from);
133 inline Image& operator=(Image&& from) noexcept {
134 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
135 if (
this != &from) InternalSwap(&from);
142 static const ::google::protobuf::Descriptor* descriptor();
143 static const Image& default_instance();
145 static void InitAsDefaultInstance();
147 return reinterpret_cast<const Image*
>(
150 static constexpr
int kIndexInFileMessages =
153 void Swap(
Image* other);
161 return CreateMaybeMessage<Image>(NULL);
164 Image*
New(::google::protobuf::Arena* arena)
const final {
165 return CreateMaybeMessage<Image>(arena);
167 void CopyFrom(const ::google::protobuf::Message& from)
final;
168 void MergeFrom(const ::google::protobuf::Message& from)
final;
169 void CopyFrom(
const Image& from);
170 void MergeFrom(
const Image& from);
172 bool IsInitialized() const final;
174 size_t ByteSizeLong() const final;
175 bool MergePartialFromCodedStream(
176 ::
google::protobuf::io::CodedInputStream* input) final;
177 void SerializeWithCachedSizes(
178 ::
google::protobuf::io::CodedOutputStream* output) const final;
179 ::
google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
180 bool deterministic, ::
google::protobuf::uint8* target) const final;
181 int GetCachedSize() const final {
return _cached_size_.Get(); }
186 void SetCachedSize(
int size)
const final;
187 void InternalSwap(
Image* other);
189 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
192 inline void* MaybeArenaPtr()
const {
197 ::google::protobuf::Metadata GetMetadata() const final;
205 static const
int kDataFieldNumber = 5;
206 const ::
std::
string& data() const;
207 void set_data(const ::
std::
string& value);
211 void set_data(
const char* value);
212 void set_data(
const void* value,
size_t size);
218 bool has_header()
const;
220 static const int kHeaderFieldNumber = 1;
222 const ::ignition::msgs::Header& _internal_header()
const;
224 const ::ignition::msgs::Header& header()
const;
231 static const int kWidthFieldNumber = 2;
232 ::google::protobuf::uint32 width()
const;
233 void set_width(::google::protobuf::uint32 value);
237 static const int kHeightFieldNumber = 3;
238 ::google::protobuf::uint32 height()
const;
239 void set_height(::google::protobuf::uint32 value);
243 static const int kStepFieldNumber = 4;
244 ::google::protobuf::uint32 step()
const;
245 void set_step(::google::protobuf::uint32 value);
248 void clear_pixel_format_type();
249 static const int kPixelFormatTypeFieldNumber = 6;
256 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
257 ::google::protobuf::internal::ArenaStringPtr data_;
259 ::google::protobuf::uint32 width_;
260 ::google::protobuf::uint32 height_;
261 ::google::protobuf::uint32 step_;
262 int pixel_format_type_;
263 mutable ::google::protobuf::internal::CachedSize _cached_size_;
264 friend struct ::protobuf_ignition_2fmsgs_2fimage_2eproto::TableStruct;
272 #pragma GCC diagnostic push
273 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
281 inline const ::ignition::msgs::Header& Image::_internal_header()
const {
285 const ::ignition::msgs::Header* p = header_;
299 if (header_ == NULL) {
300 auto* p = CreateMaybeMessage<::ignition::msgs::Header>(GetArenaNoVirtual());
307 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
308 if (message_arena == NULL) {
309 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(header_);
312 ::google::protobuf::Arena* submessage_arena = NULL;
313 if (message_arena != submessage_arena) {
314 header = ::google::protobuf::internal::GetOwnedMessage(
315 message_arena,
header, submessage_arena);
369 data_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
373 return data_.GetNoArena();
377 data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
384 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::move(value));
389 GOOGLE_DCHECK(value != NULL);
391 data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
396 data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
397 ::
std::string(
reinterpret_cast<const char*
>(value), size));
403 return data_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
408 return data_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
416 data_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
data);
422 pixel_format_type_ = 0;
430 pixel_format_type_ = value;
435 #pragma GCC diagnostic pop
452 inline const EnumDescriptor* GetEnumDescriptor< ::ignition::msgs::PixelFormatType>() {
464 #endif // PROTOBUF_INCLUDED_ignition_2fmsgs_2fimage_2eproto
void set_allocated_data(::std::string *data)
Definition: image.pb.h:410
@ RGB_INT32
Definition: image.pb.h:84
void set_height(::google::protobuf::uint32 value)
Definition: image.pb.h:347
bool PixelFormatType_Parse(const ::std::string &name, PixelFormatType *value)
Definition: image.pb.h:109
@ BAYER_BGGR8
Definition: image.pb.h:93
@ BAYER_GRBG8
Definition: image.pb.h:95
void clear_height()
Definition: image.pb.h:340
IGNITION_MSGS_VISIBLE bool PixelFormatType_IsValid(int value)
@ BGR_INT32
Definition: image.pb.h:87
void set_pixel_format_type(::ignition::msgs::PixelFormatType value)
Definition: image.pb.h:428
bool has_header() const
Definition: image.pb.h:278
void IGNITION_MSGS_VISIBLE AddDescriptors()
const IGNITION_MSGS_VISIBLE ::google::protobuf::EnumDescriptor * PixelFormatType_descriptor()
Definition: image.pb.h:49
::std::string * mutable_data()
Definition: image.pb.h:400
friend void swap(Image &a, Image &b)
Definition: image.pb.h:154
static const Image * internal_default_instance()
Definition: image.pb.h:146
::google::protobuf::uint32 width() const
Definition: image.pb.h:329
@ RGB_INT8
Definition: image.pb.h:80
::google::protobuf::uint32 height() const
Definition: image.pb.h:343
::google::protobuf::uint32 step() const
Definition: image.pb.h:357
const ::std::string & PixelFormatType_Name(PixelFormatType value)
Definition: image.pb.h:105
Image * New() const final
Definition: image.pb.h:160
::ignition::msgs::Header * mutable_header()
Definition: image.pb.h:297
@ L_INT16
Definition: image.pb.h:79
Definition: image.pb.h:116
@ R_FLOAT16
Definition: image.pb.h:88
@ BGR_INT16
Definition: image.pb.h:86
@ RGB_INT16
Definition: image.pb.h:83
@ UNKNOWN_PIXEL_FORMAT
Definition: image.pb.h:77
::std::string * release_data()
Definition: image.pb.h:405
@ BAYER_GBRG8
Definition: image.pb.h:94
const int PixelFormatType_ARRAYSIZE
Definition: image.pb.h:102
std::shared_ptr< const Image > ConstImageSharedPtr
Definition: image.pb.h:441
@ PixelFormatType_INT_MAX_SENTINEL_DO_NOT_USE_
Definition: image.pb.h:97
Image * New(::google::protobuf::Arena *arena) const final
Definition: image.pb.h:164
@ BGRA_INT8
Definition: image.pb.h:82
std::unique_ptr< Image > ImageUniquePtr
Definition: image.pb.h:438
PixelFormatType
Definition: image.pb.h:76
@ L_INT8
Definition: image.pb.h:78
@ PixelFormatType_INT_MIN_SENTINEL_DO_NOT_USE_
Definition: image.pb.h:96
void set_data(const ::std::string &value)
Definition: image.pb.h:375
const PixelFormatType PixelFormatType_MAX
Definition: image.pb.h:101
@ BGR_INT8
Definition: image.pb.h:85
IGNITION_MSGS_VISIBLE ImageDefaultTypeInternal _Image_default_instance_
@ R_FLOAT32
Definition: image.pb.h:90
IGNITION_MSGS_VISIBLE HeaderDefaultTypeInternal _Header_default_instance_
void clear_step()
Definition: image.pb.h:354
void set_step(::google::protobuf::uint32 value)
Definition: image.pb.h:361
Definition: image.pb.h:51
Image & operator=(const Image &from)
Definition: image.pb.h:123
@ RGB_FLOAT32
Definition: image.pb.h:91
void clear_pixel_format_type()
Definition: image.pb.h:421
const ::std::string & data() const
Definition: image.pb.h:371
const ::ignition::msgs::Header & header() const
Definition: image.pb.h:284
::ignition::msgs::Header * release_header()
Definition: image.pb.h:290
::ignition::msgs::PixelFormatType pixel_format_type() const
Definition: image.pb.h:424
void clear_width()
Definition: image.pb.h:326
@ RGBA_INT8
Definition: image.pb.h:81
const PixelFormatType PixelFormatType_MIN
Definition: image.pb.h:100
std::shared_ptr< Image > ImageSharedPtr
Definition: image.pb.h:440
@ BAYER_RGGB8
Definition: image.pb.h:92
void set_allocated_header(::ignition::msgs::Header *header)
Definition: image.pb.h:306
Definition: actor.pb.h:78
void clear_data()
Definition: image.pb.h:368
std::unique_ptr< const Image > ConstImageUniquePtr
Definition: image.pb.h:439
@ RGB_FLOAT16
Definition: image.pb.h:89
void set_width(::google::protobuf::uint32 value)
Definition: image.pb.h:333