4 #ifndef PROTOBUF_ignition_2fmsgs_2fimage_2eproto__INCLUDED 5 #define PROTOBUF_ignition_2fmsgs_2fimage_2eproto__INCLUDED 9 #include <google/protobuf/stubs/common.h> 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 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. 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> 33 #pragma GCC system_header 36 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251) 39 #include <sys/sysmacros.h> 85 return ::google::protobuf::internal::NameOfEnum(
90 return ::google::protobuf::internal::ParseNamedEnum<PixelFormatType>(
95 class IGNITION_MSGS_VISIBLE
Image :
public ::google::protobuf::Message {
107 static const ::google::protobuf::Descriptor* descriptor();
108 static const Image& default_instance();
110 void Swap(
Image* other);
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);
122 bool IsInitialized()
const;
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;
132 return InternalSerializeWithCachedSizesToArray(
false, output);
138 void SetCachedSize(
int size)
const;
139 void InternalSwap(
Image* other);
141 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
142 return _internal_metadata_.arena();
144 inline void* MaybeArenaPtr()
const {
145 return _internal_metadata_.raw_arena_ptr();
149 ::google::protobuf::Metadata GetMetadata()
const;
156 bool has_header()
const;
158 static const int kHeaderFieldNumber = 1;
159 const ::ignition::msgs::Header& header()
const;
166 static const int kWidthFieldNumber = 2;
167 ::google::protobuf::uint32 width()
const;
168 void set_width(::google::protobuf::uint32 value);
172 static const int kHeightFieldNumber = 3;
173 ::google::protobuf::uint32 height()
const;
174 void set_height(::google::protobuf::uint32 value);
178 static const int kStepFieldNumber = 4;
179 ::google::protobuf::uint32 step()
const;
180 void set_step(::google::protobuf::uint32 value);
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);
194 void clear_pixel_format_type();
195 static const int kPixelFormatTypeFieldNumber = 6;
202 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
203 bool _is_default_instance_;
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_;
215 void InitAsDefaultInstance();
216 static Image* default_instance_;
223 #if !PROTOBUF_INLINE_NOT_IN_HEADERS 228 return !_is_default_instance_ && header_ != NULL;
231 if (GetArenaNoVirtual() == NULL && header_ != NULL)
delete header_;
236 return header_ != NULL ? *header_ : *default_instance_->header_;
240 if (header_ == NULL) {
241 header_ = new ::ignition::msgs::Header;
308 data_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
312 return data_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
316 data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
321 data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
326 data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
327 ::
std::string(reinterpret_cast<const char*>(value), size));
333 return data_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
338 return data_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
346 data_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), data);
352 pixel_format_type_ = 0;
360 pixel_format_type_ = value;
364 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS 381 inline const EnumDescriptor* GetEnumDescriptor< ::ignition::msgs::PixelFormatType>() {
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: 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
void set_allocated_data(::std::string *data)
Definition: image.pb.h:340
Definition: image.pb.h:76
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
Definition: image.pb.h:75
void set_allocated_header(::ignition::msgs::Header *header)
Definition: image.pb.h:253
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