| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449 |
- // Generated by the protocol buffer compiler. DO NOT EDIT!
- // source: rawpic.proto
- #ifndef PROTOBUF_rawpic_2eproto__INCLUDED
- #define PROTOBUF_rawpic_2eproto__INCLUDED
- #include <string>
- #include <google/protobuf/stubs/common.h>
- #if GOOGLE_PROTOBUF_VERSION < 3000000
- #error This file was generated by a newer version of protoc which is
- #error incompatible with your Protocol Buffer headers. Please update
- #error your headers.
- #endif
- #if 3000000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
- #error This file was generated by an older version of protoc which is
- #error incompatible with your Protocol Buffer headers. Please
- #error regenerate this file with a newer version of protoc.
- #endif
- #include <google/protobuf/arena.h>
- #include <google/protobuf/arenastring.h>
- #include <google/protobuf/generated_message_util.h>
- #include <google/protobuf/metadata.h>
- #include <google/protobuf/message.h>
- #include <google/protobuf/repeated_field.h>
- #include <google/protobuf/extension_set.h>
- #include <google/protobuf/unknown_field_set.h>
- // @@protoc_insertion_point(includes)
- namespace iv {
- namespace vision {
- // Internal implementation detail -- do not call these.
- void protobuf_AddDesc_rawpic_2eproto();
- void protobuf_AssignDesc_rawpic_2eproto();
- void protobuf_ShutdownFile_rawpic_2eproto();
- class rawpic;
- // ===================================================================
- class rawpic : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:iv.vision.rawpic) */ {
- public:
- rawpic();
- virtual ~rawpic();
- rawpic(const rawpic& from);
- inline rawpic& operator=(const rawpic& from) {
- CopyFrom(from);
- return *this;
- }
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _internal_metadata_.unknown_fields();
- }
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return _internal_metadata_.mutable_unknown_fields();
- }
- static const ::google::protobuf::Descriptor* descriptor();
- static const rawpic& default_instance();
- void Swap(rawpic* other);
- // implements Message ----------------------------------------------
- inline rawpic* New() const { return New(NULL); }
- rawpic* New(::google::protobuf::Arena* arena) const;
- void CopyFrom(const ::google::protobuf::Message& from);
- void MergeFrom(const ::google::protobuf::Message& from);
- void CopyFrom(const rawpic& from);
- void MergeFrom(const rawpic& from);
- void Clear();
- bool IsInitialized() const;
- int ByteSize() const;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input);
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const;
- ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* output) const;
- ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const {
- return InternalSerializeWithCachedSizesToArray(false, output);
- }
- int GetCachedSize() const { return _cached_size_; }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const;
- void InternalSwap(rawpic* other);
- private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return _internal_metadata_.arena();
- }
- inline void* MaybeArenaPtr() const {
- return _internal_metadata_.raw_arena_ptr();
- }
- public:
- ::google::protobuf::Metadata GetMetadata() const;
- // nested types ----------------------------------------------------
- // accessors -------------------------------------------------------
- // optional int64 time = 1;
- bool has_time() const;
- void clear_time();
- static const int kTimeFieldNumber = 1;
- ::google::protobuf::int64 time() const;
- void set_time(::google::protobuf::int64 value);
- // optional int32 index = 2;
- bool has_index() const;
- void clear_index();
- static const int kIndexFieldNumber = 2;
- ::google::protobuf::int32 index() const;
- void set_index(::google::protobuf::int32 value);
- // optional int32 type = 3;
- bool has_type() const;
- void clear_type();
- static const int kTypeFieldNumber = 3;
- ::google::protobuf::int32 type() const;
- void set_type(::google::protobuf::int32 value);
- // optional int32 width = 4;
- bool has_width() const;
- void clear_width();
- static const int kWidthFieldNumber = 4;
- ::google::protobuf::int32 width() const;
- void set_width(::google::protobuf::int32 value);
- // optional int32 height = 5;
- bool has_height() const;
- void clear_height();
- static const int kHeightFieldNumber = 5;
- ::google::protobuf::int32 height() const;
- void set_height(::google::protobuf::int32 value);
- // optional int32 elemsize = 6;
- bool has_elemsize() const;
- void clear_elemsize();
- static const int kElemsizeFieldNumber = 6;
- ::google::protobuf::int32 elemsize() const;
- void set_elemsize(::google::protobuf::int32 value);
- // optional int32 mattype = 7;
- bool has_mattype() const;
- void clear_mattype();
- static const int kMattypeFieldNumber = 7;
- ::google::protobuf::int32 mattype() const;
- void set_mattype(::google::protobuf::int32 value);
- // optional bytes picdata = 8;
- bool has_picdata() const;
- void clear_picdata();
- static const int kPicdataFieldNumber = 8;
- const ::std::string& picdata() const;
- void set_picdata(const ::std::string& value);
- void set_picdata(const char* value);
- void set_picdata(const void* value, size_t size);
- ::std::string* mutable_picdata();
- ::std::string* release_picdata();
- void set_allocated_picdata(::std::string* picdata);
- // @@protoc_insertion_point(class_scope:iv.vision.rawpic)
- private:
- inline void set_has_time();
- inline void clear_has_time();
- inline void set_has_index();
- inline void clear_has_index();
- inline void set_has_type();
- inline void clear_has_type();
- inline void set_has_width();
- inline void clear_has_width();
- inline void set_has_height();
- inline void clear_has_height();
- inline void set_has_elemsize();
- inline void clear_has_elemsize();
- inline void set_has_mattype();
- inline void clear_has_mattype();
- inline void set_has_picdata();
- inline void clear_has_picdata();
- ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
- ::google::protobuf::uint32 _has_bits_[1];
- mutable int _cached_size_;
- ::google::protobuf::int64 time_;
- ::google::protobuf::int32 index_;
- ::google::protobuf::int32 type_;
- ::google::protobuf::int32 width_;
- ::google::protobuf::int32 height_;
- ::google::protobuf::int32 elemsize_;
- ::google::protobuf::int32 mattype_;
- ::google::protobuf::internal::ArenaStringPtr picdata_;
- friend void protobuf_AddDesc_rawpic_2eproto();
- friend void protobuf_AssignDesc_rawpic_2eproto();
- friend void protobuf_ShutdownFile_rawpic_2eproto();
- void InitAsDefaultInstance();
- static rawpic* default_instance_;
- };
- // ===================================================================
- // ===================================================================
- #if !PROTOBUF_INLINE_NOT_IN_HEADERS
- // rawpic
- // optional int64 time = 1;
- inline bool rawpic::has_time() const {
- return (_has_bits_[0] & 0x00000001u) != 0;
- }
- inline void rawpic::set_has_time() {
- _has_bits_[0] |= 0x00000001u;
- }
- inline void rawpic::clear_has_time() {
- _has_bits_[0] &= ~0x00000001u;
- }
- inline void rawpic::clear_time() {
- time_ = GOOGLE_LONGLONG(0);
- clear_has_time();
- }
- inline ::google::protobuf::int64 rawpic::time() const {
- // @@protoc_insertion_point(field_get:iv.vision.rawpic.time)
- return time_;
- }
- inline void rawpic::set_time(::google::protobuf::int64 value) {
- set_has_time();
- time_ = value;
- // @@protoc_insertion_point(field_set:iv.vision.rawpic.time)
- }
- // optional int32 index = 2;
- inline bool rawpic::has_index() const {
- return (_has_bits_[0] & 0x00000002u) != 0;
- }
- inline void rawpic::set_has_index() {
- _has_bits_[0] |= 0x00000002u;
- }
- inline void rawpic::clear_has_index() {
- _has_bits_[0] &= ~0x00000002u;
- }
- inline void rawpic::clear_index() {
- index_ = 0;
- clear_has_index();
- }
- inline ::google::protobuf::int32 rawpic::index() const {
- // @@protoc_insertion_point(field_get:iv.vision.rawpic.index)
- return index_;
- }
- inline void rawpic::set_index(::google::protobuf::int32 value) {
- set_has_index();
- index_ = value;
- // @@protoc_insertion_point(field_set:iv.vision.rawpic.index)
- }
- // optional int32 type = 3;
- inline bool rawpic::has_type() const {
- return (_has_bits_[0] & 0x00000004u) != 0;
- }
- inline void rawpic::set_has_type() {
- _has_bits_[0] |= 0x00000004u;
- }
- inline void rawpic::clear_has_type() {
- _has_bits_[0] &= ~0x00000004u;
- }
- inline void rawpic::clear_type() {
- type_ = 0;
- clear_has_type();
- }
- inline ::google::protobuf::int32 rawpic::type() const {
- // @@protoc_insertion_point(field_get:iv.vision.rawpic.type)
- return type_;
- }
- inline void rawpic::set_type(::google::protobuf::int32 value) {
- set_has_type();
- type_ = value;
- // @@protoc_insertion_point(field_set:iv.vision.rawpic.type)
- }
- // optional int32 width = 4;
- inline bool rawpic::has_width() const {
- return (_has_bits_[0] & 0x00000008u) != 0;
- }
- inline void rawpic::set_has_width() {
- _has_bits_[0] |= 0x00000008u;
- }
- inline void rawpic::clear_has_width() {
- _has_bits_[0] &= ~0x00000008u;
- }
- inline void rawpic::clear_width() {
- width_ = 0;
- clear_has_width();
- }
- inline ::google::protobuf::int32 rawpic::width() const {
- // @@protoc_insertion_point(field_get:iv.vision.rawpic.width)
- return width_;
- }
- inline void rawpic::set_width(::google::protobuf::int32 value) {
- set_has_width();
- width_ = value;
- // @@protoc_insertion_point(field_set:iv.vision.rawpic.width)
- }
- // optional int32 height = 5;
- inline bool rawpic::has_height() const {
- return (_has_bits_[0] & 0x00000010u) != 0;
- }
- inline void rawpic::set_has_height() {
- _has_bits_[0] |= 0x00000010u;
- }
- inline void rawpic::clear_has_height() {
- _has_bits_[0] &= ~0x00000010u;
- }
- inline void rawpic::clear_height() {
- height_ = 0;
- clear_has_height();
- }
- inline ::google::protobuf::int32 rawpic::height() const {
- // @@protoc_insertion_point(field_get:iv.vision.rawpic.height)
- return height_;
- }
- inline void rawpic::set_height(::google::protobuf::int32 value) {
- set_has_height();
- height_ = value;
- // @@protoc_insertion_point(field_set:iv.vision.rawpic.height)
- }
- // optional int32 elemsize = 6;
- inline bool rawpic::has_elemsize() const {
- return (_has_bits_[0] & 0x00000020u) != 0;
- }
- inline void rawpic::set_has_elemsize() {
- _has_bits_[0] |= 0x00000020u;
- }
- inline void rawpic::clear_has_elemsize() {
- _has_bits_[0] &= ~0x00000020u;
- }
- inline void rawpic::clear_elemsize() {
- elemsize_ = 0;
- clear_has_elemsize();
- }
- inline ::google::protobuf::int32 rawpic::elemsize() const {
- // @@protoc_insertion_point(field_get:iv.vision.rawpic.elemsize)
- return elemsize_;
- }
- inline void rawpic::set_elemsize(::google::protobuf::int32 value) {
- set_has_elemsize();
- elemsize_ = value;
- // @@protoc_insertion_point(field_set:iv.vision.rawpic.elemsize)
- }
- // optional int32 mattype = 7;
- inline bool rawpic::has_mattype() const {
- return (_has_bits_[0] & 0x00000040u) != 0;
- }
- inline void rawpic::set_has_mattype() {
- _has_bits_[0] |= 0x00000040u;
- }
- inline void rawpic::clear_has_mattype() {
- _has_bits_[0] &= ~0x00000040u;
- }
- inline void rawpic::clear_mattype() {
- mattype_ = 0;
- clear_has_mattype();
- }
- inline ::google::protobuf::int32 rawpic::mattype() const {
- // @@protoc_insertion_point(field_get:iv.vision.rawpic.mattype)
- return mattype_;
- }
- inline void rawpic::set_mattype(::google::protobuf::int32 value) {
- set_has_mattype();
- mattype_ = value;
- // @@protoc_insertion_point(field_set:iv.vision.rawpic.mattype)
- }
- // optional bytes picdata = 8;
- inline bool rawpic::has_picdata() const {
- return (_has_bits_[0] & 0x00000080u) != 0;
- }
- inline void rawpic::set_has_picdata() {
- _has_bits_[0] |= 0x00000080u;
- }
- inline void rawpic::clear_has_picdata() {
- _has_bits_[0] &= ~0x00000080u;
- }
- inline void rawpic::clear_picdata() {
- picdata_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- clear_has_picdata();
- }
- inline const ::std::string& rawpic::picdata() const {
- // @@protoc_insertion_point(field_get:iv.vision.rawpic.picdata)
- return picdata_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- inline void rawpic::set_picdata(const ::std::string& value) {
- set_has_picdata();
- picdata_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
- // @@protoc_insertion_point(field_set:iv.vision.rawpic.picdata)
- }
- inline void rawpic::set_picdata(const char* value) {
- set_has_picdata();
- picdata_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
- // @@protoc_insertion_point(field_set_char:iv.vision.rawpic.picdata)
- }
- inline void rawpic::set_picdata(const void* value, size_t size) {
- set_has_picdata();
- picdata_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- ::std::string(reinterpret_cast<const char*>(value), size));
- // @@protoc_insertion_point(field_set_pointer:iv.vision.rawpic.picdata)
- }
- inline ::std::string* rawpic::mutable_picdata() {
- set_has_picdata();
- // @@protoc_insertion_point(field_mutable:iv.vision.rawpic.picdata)
- return picdata_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- inline ::std::string* rawpic::release_picdata() {
- // @@protoc_insertion_point(field_release:iv.vision.rawpic.picdata)
- clear_has_picdata();
- return picdata_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- inline void rawpic::set_allocated_picdata(::std::string* picdata) {
- if (picdata != NULL) {
- set_has_picdata();
- } else {
- clear_has_picdata();
- }
- picdata_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), picdata);
- // @@protoc_insertion_point(field_set_allocated:iv.vision.rawpic.picdata)
- }
- #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS
- // @@protoc_insertion_point(namespace_scope)
- } // namespace vision
- } // namespace iv
- // @@protoc_insertion_point(global_scope)
- #endif // PROTOBUF_rawpic_2eproto__INCLUDED
|