4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2fimage_2eproto
5 #define PROTOBUF_INCLUDED_gz_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>
34 #include "gz/msgs/header.pb.h"
36 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2fimage_2eproto GZ_MSGS_VISIBLE
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[];
53 class ImageDefaultTypeInternal;
59 template<> GZ_MSGS_VISIBLE ::gz::msgs::Image* Arena::CreateMaybeMessage<::gz::msgs::Image>(Arena*);
95 return ::google::protobuf::internal::NameOfEnum(
100 return ::google::protobuf::internal::ParseNamedEnum<PixelFormatType>(
105 class GZ_MSGS_VISIBLE
Image :
public ::google::protobuf::Message {
119 *
this = ::std::move(from);
122 inline Image& operator=(Image&& from) noexcept {
123 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
124 if (
this != &from) InternalSwap(&from);
131 static const ::google::protobuf::Descriptor* descriptor();
132 static const Image& default_instance();
134 static void InitAsDefaultInstance();
136 return reinterpret_cast<const Image*
>(
139 static constexpr
int kIndexInFileMessages =
142 void Swap(
Image* other);
150 return CreateMaybeMessage<Image>(NULL);
153 Image*
New(::google::protobuf::Arena* arena)
const final {
154 return CreateMaybeMessage<Image>(arena);
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);
161 bool IsInitialized() const final;
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(); }
175 void SetCachedSize(
int size)
const final;
176 void InternalSwap(
Image* other);
178 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
181 inline void* MaybeArenaPtr()
const {
186 ::google::protobuf::Metadata GetMetadata() const final;
194 static const
int kDataFieldNumber = 5;
195 const ::
std::
string& data() const;
196 void set_data(const ::
std::
string& value);
200 void set_data(
const char* value);
201 void set_data(
const void* value,
size_t size);
207 bool has_header()
const;
209 static const int kHeaderFieldNumber = 1;
211 const ::gz::msgs::Header& _internal_header()
const;
213 const ::gz::msgs::Header& header()
const;
220 static const int kWidthFieldNumber = 2;
221 ::google::protobuf::uint32 width()
const;
222 void set_width(::google::protobuf::uint32 value);
226 static const int kHeightFieldNumber = 3;
227 ::google::protobuf::uint32 height()
const;
228 void set_height(::google::protobuf::uint32 value);
232 static const int kStepFieldNumber = 4;
233 ::google::protobuf::uint32 step()
const;
234 void set_step(::google::protobuf::uint32 value);
237 void clear_pixel_format_type();
238 static const int kPixelFormatTypeFieldNumber = 6;
245 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
246 ::google::protobuf::internal::ArenaStringPtr data_;
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;
261 #pragma GCC diagnostic push
262 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
270 inline const ::gz::msgs::Header& Image::_internal_header()
const {
274 const ::gz::msgs::Header* p = header_;
288 if (header_ == NULL) {
289 auto* p = CreateMaybeMessage<::gz::msgs::Header>(GetArenaNoVirtual());
296 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
297 if (message_arena == NULL) {
298 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(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);
358 data_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
362 return data_.GetNoArena();
366 data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
373 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::move(value));
378 GOOGLE_DCHECK(value != NULL);
380 data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
385 data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
386 ::
std::string(
reinterpret_cast<const char*
>(value), size));
392 return data_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
397 return data_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
405 data_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
data);
411 pixel_format_type_ = 0;
419 pixel_format_type_ = value;
424 #pragma GCC diagnostic pop
437 inline const EnumDescriptor* GetEnumDescriptor< ::gz::msgs::PixelFormatType>() {
446 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2fimage_2eproto