123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822 |
- // Generated by the protocol buffer compiler. DO NOT EDIT!
- // source: Protos.proto
- #ifndef PROTOBUF_Protos_2eproto__INCLUDED
- #define PROTOBUF_Protos_2eproto__INCLUDED
- #include <string>
- #include <google/protobuf/stubs/common.h>
- #if GOOGLE_PROTOBUF_VERSION < 2005000
- #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 2005000 < 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/generated_message_util.h>
- #include <google/protobuf/message_lite.h>
- #include <google/protobuf/repeated_field.h>
- #include <google/protobuf/extension_set.h>
- // @@protoc_insertion_point(includes)
- namespace runtime {
- // Internal implementation detail -- do not call these.
- void protobuf_AddDesc_Protos_2eproto();
- void protobuf_AssignDesc_Protos_2eproto();
- void protobuf_ShutdownFile_Protos_2eproto();
- class FileSendProtos;
- class FileSendComplete;
- enum FileSendProtos_CompressType {
- FileSendProtos_CompressType_NO_COMPRESS = 0,
- FileSendProtos_CompressType_ZIP = 1
- };
- bool FileSendProtos_CompressType_IsValid(int value);
- const FileSendProtos_CompressType FileSendProtos_CompressType_CompressType_MIN = FileSendProtos_CompressType_NO_COMPRESS;
- const FileSendProtos_CompressType FileSendProtos_CompressType_CompressType_MAX = FileSendProtos_CompressType_ZIP;
- const int FileSendProtos_CompressType_CompressType_ARRAYSIZE = FileSendProtos_CompressType_CompressType_MAX + 1;
- enum FileSendProtos_VerifyMode {
- FileSendProtos_VerifyMode_NO_VERIFY = 0,
- FileSendProtos_VerifyMode_CRC = 1,
- FileSendProtos_VerifyMode_MD5 = 2
- };
- bool FileSendProtos_VerifyMode_IsValid(int value);
- const FileSendProtos_VerifyMode FileSendProtos_VerifyMode_VerifyMode_MIN = FileSendProtos_VerifyMode_NO_VERIFY;
- const FileSendProtos_VerifyMode FileSendProtos_VerifyMode_VerifyMode_MAX = FileSendProtos_VerifyMode_MD5;
- const int FileSendProtos_VerifyMode_VerifyMode_ARRAYSIZE = FileSendProtos_VerifyMode_VerifyMode_MAX + 1;
- enum FileSendComplete_RESULTTYPE {
- FileSendComplete_RESULTTYPE_SUCCESS = 0,
- FileSendComplete_RESULTTYPE_RECV_ERROR = 1,
- FileSendComplete_RESULTTYPE_UNCOMPRESS_ERROR = 2,
- FileSendComplete_RESULTTYPE_FOPEN_ERROR = 3,
- FileSendComplete_RESULTTYPE_FWRITE_ERROR = 4
- };
- bool FileSendComplete_RESULTTYPE_IsValid(int value);
- const FileSendComplete_RESULTTYPE FileSendComplete_RESULTTYPE_RESULTTYPE_MIN = FileSendComplete_RESULTTYPE_SUCCESS;
- const FileSendComplete_RESULTTYPE FileSendComplete_RESULTTYPE_RESULTTYPE_MAX = FileSendComplete_RESULTTYPE_FWRITE_ERROR;
- const int FileSendComplete_RESULTTYPE_RESULTTYPE_ARRAYSIZE = FileSendComplete_RESULTTYPE_RESULTTYPE_MAX + 1;
- // ===================================================================
- class FileSendProtos : public ::google::protobuf::MessageLite {
- public:
- FileSendProtos();
- virtual ~FileSendProtos();
- FileSendProtos(const FileSendProtos& from);
- inline FileSendProtos& operator=(const FileSendProtos& from) {
- CopyFrom(from);
- return *this;
- }
- static const FileSendProtos& default_instance();
- #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
- // Returns the internal default instance pointer. This function can
- // return NULL thus should not be used by the user. This is intended
- // for Protobuf internal code. Please use default_instance() declared
- // above instead.
- static inline const FileSendProtos* internal_default_instance() {
- return default_instance_;
- }
- #endif
- void Swap(FileSendProtos* other);
- // implements Message ----------------------------------------------
- FileSendProtos* New() const;
- void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from);
- void CopyFrom(const FileSendProtos& from);
- void MergeFrom(const FileSendProtos& from);
- void Clear();
- bool IsInitialized() const;
- int ByteSize() const;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input);
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const;
- int GetCachedSize() const { return _cached_size_; }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const;
- public:
- ::std::string GetTypeName() const;
- // nested types ----------------------------------------------------
- typedef FileSendProtos_CompressType CompressType;
- static const CompressType NO_COMPRESS = FileSendProtos_CompressType_NO_COMPRESS;
- static const CompressType ZIP = FileSendProtos_CompressType_ZIP;
- static inline bool CompressType_IsValid(int value) {
- return FileSendProtos_CompressType_IsValid(value);
- }
- static const CompressType CompressType_MIN =
- FileSendProtos_CompressType_CompressType_MIN;
- static const CompressType CompressType_MAX =
- FileSendProtos_CompressType_CompressType_MAX;
- static const int CompressType_ARRAYSIZE =
- FileSendProtos_CompressType_CompressType_ARRAYSIZE;
- typedef FileSendProtos_VerifyMode VerifyMode;
- static const VerifyMode NO_VERIFY = FileSendProtos_VerifyMode_NO_VERIFY;
- static const VerifyMode CRC = FileSendProtos_VerifyMode_CRC;
- static const VerifyMode MD5 = FileSendProtos_VerifyMode_MD5;
- static inline bool VerifyMode_IsValid(int value) {
- return FileSendProtos_VerifyMode_IsValid(value);
- }
- static const VerifyMode VerifyMode_MIN =
- FileSendProtos_VerifyMode_VerifyMode_MIN;
- static const VerifyMode VerifyMode_MAX =
- FileSendProtos_VerifyMode_VerifyMode_MAX;
- static const int VerifyMode_ARRAYSIZE =
- FileSendProtos_VerifyMode_VerifyMode_ARRAYSIZE;
- // accessors -------------------------------------------------------
- // required string file_name = 1;
- inline bool has_file_name() const;
- inline void clear_file_name();
- static const int kFileNameFieldNumber = 1;
- inline const ::std::string& file_name() const;
- inline void set_file_name(const ::std::string& value);
- inline void set_file_name(const char* value);
- inline void set_file_name(const char* value, size_t size);
- inline ::std::string* mutable_file_name();
- inline ::std::string* release_file_name();
- inline void set_allocated_file_name(::std::string* file_name);
- // required int32 package_seq = 2;
- inline bool has_package_seq() const;
- inline void clear_package_seq();
- static const int kPackageSeqFieldNumber = 2;
- inline ::google::protobuf::int32 package_seq() const;
- inline void set_package_seq(::google::protobuf::int32 value);
- // required int32 package_sum = 3;
- inline bool has_package_sum() const;
- inline void clear_package_sum();
- static const int kPackageSumFieldNumber = 3;
- inline ::google::protobuf::int32 package_sum() const;
- inline void set_package_sum(::google::protobuf::int32 value);
- // required uint64 content_size = 4;
- inline bool has_content_size() const;
- inline void clear_content_size();
- static const int kContentSizeFieldNumber = 4;
- inline ::google::protobuf::uint64 content_size() const;
- inline void set_content_size(::google::protobuf::uint64 value);
- // required .runtime.FileSendProtos.CompressType compress_type = 5;
- inline bool has_compress_type() const;
- inline void clear_compress_type();
- static const int kCompressTypeFieldNumber = 5;
- inline ::runtime::FileSendProtos_CompressType compress_type() const;
- inline void set_compress_type(::runtime::FileSendProtos_CompressType value);
- // optional uint64 modified_time = 6;
- inline bool has_modified_time() const;
- inline void clear_modified_time();
- static const int kModifiedTimeFieldNumber = 6;
- inline ::google::protobuf::uint64 modified_time() const;
- inline void set_modified_time(::google::protobuf::uint64 value);
- // optional .runtime.FileSendProtos.VerifyMode verify_mode = 7;
- inline bool has_verify_mode() const;
- inline void clear_verify_mode();
- static const int kVerifyModeFieldNumber = 7;
- inline ::runtime::FileSendProtos_VerifyMode verify_mode() const;
- inline void set_verify_mode(::runtime::FileSendProtos_VerifyMode value);
- // optional string verify_sign = 8;
- inline bool has_verify_sign() const;
- inline void clear_verify_sign();
- static const int kVerifySignFieldNumber = 8;
- inline const ::std::string& verify_sign() const;
- inline void set_verify_sign(const ::std::string& value);
- inline void set_verify_sign(const char* value);
- inline void set_verify_sign(const char* value, size_t size);
- inline ::std::string* mutable_verify_sign();
- inline ::std::string* release_verify_sign();
- inline void set_allocated_verify_sign(::std::string* verify_sign);
- // optional uint64 uncompress_size = 9;
- inline bool has_uncompress_size() const;
- inline void clear_uncompress_size();
- static const int kUncompressSizeFieldNumber = 9;
- inline ::google::protobuf::uint64 uncompress_size() const;
- inline void set_uncompress_size(::google::protobuf::uint64 value);
- // @@protoc_insertion_point(class_scope:runtime.FileSendProtos)
- private:
- inline void set_has_file_name();
- inline void clear_has_file_name();
- inline void set_has_package_seq();
- inline void clear_has_package_seq();
- inline void set_has_package_sum();
- inline void clear_has_package_sum();
- inline void set_has_content_size();
- inline void clear_has_content_size();
- inline void set_has_compress_type();
- inline void clear_has_compress_type();
- inline void set_has_modified_time();
- inline void clear_has_modified_time();
- inline void set_has_verify_mode();
- inline void clear_has_verify_mode();
- inline void set_has_verify_sign();
- inline void clear_has_verify_sign();
- inline void set_has_uncompress_size();
- inline void clear_has_uncompress_size();
- ::std::string* file_name_;
- ::google::protobuf::int32 package_seq_;
- ::google::protobuf::int32 package_sum_;
- ::google::protobuf::uint64 content_size_;
- ::google::protobuf::uint64 modified_time_;
- int compress_type_;
- int verify_mode_;
- ::std::string* verify_sign_;
- ::google::protobuf::uint64 uncompress_size_;
- mutable int _cached_size_;
- ::google::protobuf::uint32 _has_bits_[(9 + 31) / 32];
- #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
- friend void protobuf_AddDesc_Protos_2eproto_impl();
- #else
- friend void protobuf_AddDesc_Protos_2eproto();
- #endif
- friend void protobuf_AssignDesc_Protos_2eproto();
- friend void protobuf_ShutdownFile_Protos_2eproto();
- void InitAsDefaultInstance();
- static FileSendProtos* default_instance_;
- };
- // -------------------------------------------------------------------
- class FileSendComplete : public ::google::protobuf::MessageLite {
- public:
- FileSendComplete();
- virtual ~FileSendComplete();
- FileSendComplete(const FileSendComplete& from);
- inline FileSendComplete& operator=(const FileSendComplete& from) {
- CopyFrom(from);
- return *this;
- }
- static const FileSendComplete& default_instance();
- #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
- // Returns the internal default instance pointer. This function can
- // return NULL thus should not be used by the user. This is intended
- // for Protobuf internal code. Please use default_instance() declared
- // above instead.
- static inline const FileSendComplete* internal_default_instance() {
- return default_instance_;
- }
- #endif
- void Swap(FileSendComplete* other);
- // implements Message ----------------------------------------------
- FileSendComplete* New() const;
- void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from);
- void CopyFrom(const FileSendComplete& from);
- void MergeFrom(const FileSendComplete& from);
- void Clear();
- bool IsInitialized() const;
- int ByteSize() const;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input);
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const;
- int GetCachedSize() const { return _cached_size_; }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const;
- public:
- ::std::string GetTypeName() const;
- // nested types ----------------------------------------------------
- typedef FileSendComplete_RESULTTYPE RESULTTYPE;
- static const RESULTTYPE SUCCESS = FileSendComplete_RESULTTYPE_SUCCESS;
- static const RESULTTYPE RECV_ERROR = FileSendComplete_RESULTTYPE_RECV_ERROR;
- static const RESULTTYPE UNCOMPRESS_ERROR = FileSendComplete_RESULTTYPE_UNCOMPRESS_ERROR;
- static const RESULTTYPE FOPEN_ERROR = FileSendComplete_RESULTTYPE_FOPEN_ERROR;
- static const RESULTTYPE FWRITE_ERROR = FileSendComplete_RESULTTYPE_FWRITE_ERROR;
- static inline bool RESULTTYPE_IsValid(int value) {
- return FileSendComplete_RESULTTYPE_IsValid(value);
- }
- static const RESULTTYPE RESULTTYPE_MIN =
- FileSendComplete_RESULTTYPE_RESULTTYPE_MIN;
- static const RESULTTYPE RESULTTYPE_MAX =
- FileSendComplete_RESULTTYPE_RESULTTYPE_MAX;
- static const int RESULTTYPE_ARRAYSIZE =
- FileSendComplete_RESULTTYPE_RESULTTYPE_ARRAYSIZE;
- // accessors -------------------------------------------------------
- // required string file_name = 1;
- inline bool has_file_name() const;
- inline void clear_file_name();
- static const int kFileNameFieldNumber = 1;
- inline const ::std::string& file_name() const;
- inline void set_file_name(const ::std::string& value);
- inline void set_file_name(const char* value);
- inline void set_file_name(const char* value, size_t size);
- inline ::std::string* mutable_file_name();
- inline ::std::string* release_file_name();
- inline void set_allocated_file_name(::std::string* file_name);
- // required .runtime.FileSendComplete.RESULTTYPE result = 2;
- inline bool has_result() const;
- inline void clear_result();
- static const int kResultFieldNumber = 2;
- inline ::runtime::FileSendComplete_RESULTTYPE result() const;
- inline void set_result(::runtime::FileSendComplete_RESULTTYPE value);
- // required int32 error_num = 3;
- inline bool has_error_num() const;
- inline void clear_error_num();
- static const int kErrorNumFieldNumber = 3;
- inline ::google::protobuf::int32 error_num() const;
- inline void set_error_num(::google::protobuf::int32 value);
- // @@protoc_insertion_point(class_scope:runtime.FileSendComplete)
- private:
- inline void set_has_file_name();
- inline void clear_has_file_name();
- inline void set_has_result();
- inline void clear_has_result();
- inline void set_has_error_num();
- inline void clear_has_error_num();
- ::std::string* file_name_;
- int result_;
- ::google::protobuf::int32 error_num_;
- mutable int _cached_size_;
- ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32];
- #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
- friend void protobuf_AddDesc_Protos_2eproto_impl();
- #else
- friend void protobuf_AddDesc_Protos_2eproto();
- #endif
- friend void protobuf_AssignDesc_Protos_2eproto();
- friend void protobuf_ShutdownFile_Protos_2eproto();
- void InitAsDefaultInstance();
- static FileSendComplete* default_instance_;
- };
- // ===================================================================
- // ===================================================================
- // FileSendProtos
- // required string file_name = 1;
- inline bool FileSendProtos::has_file_name() const {
- return (_has_bits_[0] & 0x00000001u) != 0;
- }
- inline void FileSendProtos::set_has_file_name() {
- _has_bits_[0] |= 0x00000001u;
- }
- inline void FileSendProtos::clear_has_file_name() {
- _has_bits_[0] &= ~0x00000001u;
- }
- inline void FileSendProtos::clear_file_name() {
- if (file_name_ != &::google::protobuf::internal::kEmptyString) {
- file_name_->clear();
- }
- clear_has_file_name();
- }
- inline const ::std::string& FileSendProtos::file_name() const {
- return *file_name_;
- }
- inline void FileSendProtos::set_file_name(const ::std::string& value) {
- set_has_file_name();
- if (file_name_ == &::google::protobuf::internal::kEmptyString) {
- file_name_ = new ::std::string;
- }
- file_name_->assign(value);
- }
- inline void FileSendProtos::set_file_name(const char* value) {
- set_has_file_name();
- if (file_name_ == &::google::protobuf::internal::kEmptyString) {
- file_name_ = new ::std::string;
- }
- file_name_->assign(value);
- }
- inline void FileSendProtos::set_file_name(const char* value, size_t size) {
- set_has_file_name();
- if (file_name_ == &::google::protobuf::internal::kEmptyString) {
- file_name_ = new ::std::string;
- }
- file_name_->assign(reinterpret_cast<const char*>(value), size);
- }
- inline ::std::string* FileSendProtos::mutable_file_name() {
- set_has_file_name();
- if (file_name_ == &::google::protobuf::internal::kEmptyString) {
- file_name_ = new ::std::string;
- }
- return file_name_;
- }
- inline ::std::string* FileSendProtos::release_file_name() {
- clear_has_file_name();
- if (file_name_ == &::google::protobuf::internal::kEmptyString) {
- return NULL;
- } else {
- ::std::string* temp = file_name_;
- file_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- return temp;
- }
- }
- inline void FileSendProtos::set_allocated_file_name(::std::string* file_name) {
- if (file_name_ != &::google::protobuf::internal::kEmptyString) {
- delete file_name_;
- }
- if (file_name) {
- set_has_file_name();
- file_name_ = file_name;
- } else {
- clear_has_file_name();
- file_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- }
- }
- // required int32 package_seq = 2;
- inline bool FileSendProtos::has_package_seq() const {
- return (_has_bits_[0] & 0x00000002u) != 0;
- }
- inline void FileSendProtos::set_has_package_seq() {
- _has_bits_[0] |= 0x00000002u;
- }
- inline void FileSendProtos::clear_has_package_seq() {
- _has_bits_[0] &= ~0x00000002u;
- }
- inline void FileSendProtos::clear_package_seq() {
- package_seq_ = 0;
- clear_has_package_seq();
- }
- inline ::google::protobuf::int32 FileSendProtos::package_seq() const {
- return package_seq_;
- }
- inline void FileSendProtos::set_package_seq(::google::protobuf::int32 value) {
- set_has_package_seq();
- package_seq_ = value;
- }
- // required int32 package_sum = 3;
- inline bool FileSendProtos::has_package_sum() const {
- return (_has_bits_[0] & 0x00000004u) != 0;
- }
- inline void FileSendProtos::set_has_package_sum() {
- _has_bits_[0] |= 0x00000004u;
- }
- inline void FileSendProtos::clear_has_package_sum() {
- _has_bits_[0] &= ~0x00000004u;
- }
- inline void FileSendProtos::clear_package_sum() {
- package_sum_ = 0;
- clear_has_package_sum();
- }
- inline ::google::protobuf::int32 FileSendProtos::package_sum() const {
- return package_sum_;
- }
- inline void FileSendProtos::set_package_sum(::google::protobuf::int32 value) {
- set_has_package_sum();
- package_sum_ = value;
- }
- // required uint64 content_size = 4;
- inline bool FileSendProtos::has_content_size() const {
- return (_has_bits_[0] & 0x00000008u) != 0;
- }
- inline void FileSendProtos::set_has_content_size() {
- _has_bits_[0] |= 0x00000008u;
- }
- inline void FileSendProtos::clear_has_content_size() {
- _has_bits_[0] &= ~0x00000008u;
- }
- inline void FileSendProtos::clear_content_size() {
- content_size_ = GOOGLE_ULONGLONG(0);
- clear_has_content_size();
- }
- inline ::google::protobuf::uint64 FileSendProtos::content_size() const {
- return content_size_;
- }
- inline void FileSendProtos::set_content_size(::google::protobuf::uint64 value) {
- set_has_content_size();
- content_size_ = value;
- }
- // required .runtime.FileSendProtos.CompressType compress_type = 5;
- inline bool FileSendProtos::has_compress_type() const {
- return (_has_bits_[0] & 0x00000010u) != 0;
- }
- inline void FileSendProtos::set_has_compress_type() {
- _has_bits_[0] |= 0x00000010u;
- }
- inline void FileSendProtos::clear_has_compress_type() {
- _has_bits_[0] &= ~0x00000010u;
- }
- inline void FileSendProtos::clear_compress_type() {
- compress_type_ = 0;
- clear_has_compress_type();
- }
- inline ::runtime::FileSendProtos_CompressType FileSendProtos::compress_type() const {
- return static_cast< ::runtime::FileSendProtos_CompressType >(compress_type_);
- }
- inline void FileSendProtos::set_compress_type(::runtime::FileSendProtos_CompressType value) {
- assert(::runtime::FileSendProtos_CompressType_IsValid(value));
- set_has_compress_type();
- compress_type_ = value;
- }
- // optional uint64 modified_time = 6;
- inline bool FileSendProtos::has_modified_time() const {
- return (_has_bits_[0] & 0x00000020u) != 0;
- }
- inline void FileSendProtos::set_has_modified_time() {
- _has_bits_[0] |= 0x00000020u;
- }
- inline void FileSendProtos::clear_has_modified_time() {
- _has_bits_[0] &= ~0x00000020u;
- }
- inline void FileSendProtos::clear_modified_time() {
- modified_time_ = GOOGLE_ULONGLONG(0);
- clear_has_modified_time();
- }
- inline ::google::protobuf::uint64 FileSendProtos::modified_time() const {
- return modified_time_;
- }
- inline void FileSendProtos::set_modified_time(::google::protobuf::uint64 value) {
- set_has_modified_time();
- modified_time_ = value;
- }
- // optional .runtime.FileSendProtos.VerifyMode verify_mode = 7;
- inline bool FileSendProtos::has_verify_mode() const {
- return (_has_bits_[0] & 0x00000040u) != 0;
- }
- inline void FileSendProtos::set_has_verify_mode() {
- _has_bits_[0] |= 0x00000040u;
- }
- inline void FileSendProtos::clear_has_verify_mode() {
- _has_bits_[0] &= ~0x00000040u;
- }
- inline void FileSendProtos::clear_verify_mode() {
- verify_mode_ = 0;
- clear_has_verify_mode();
- }
- inline ::runtime::FileSendProtos_VerifyMode FileSendProtos::verify_mode() const {
- return static_cast< ::runtime::FileSendProtos_VerifyMode >(verify_mode_);
- }
- inline void FileSendProtos::set_verify_mode(::runtime::FileSendProtos_VerifyMode value) {
- assert(::runtime::FileSendProtos_VerifyMode_IsValid(value));
- set_has_verify_mode();
- verify_mode_ = value;
- }
- // optional string verify_sign = 8;
- inline bool FileSendProtos::has_verify_sign() const {
- return (_has_bits_[0] & 0x00000080u) != 0;
- }
- inline void FileSendProtos::set_has_verify_sign() {
- _has_bits_[0] |= 0x00000080u;
- }
- inline void FileSendProtos::clear_has_verify_sign() {
- _has_bits_[0] &= ~0x00000080u;
- }
- inline void FileSendProtos::clear_verify_sign() {
- if (verify_sign_ != &::google::protobuf::internal::kEmptyString) {
- verify_sign_->clear();
- }
- clear_has_verify_sign();
- }
- inline const ::std::string& FileSendProtos::verify_sign() const {
- return *verify_sign_;
- }
- inline void FileSendProtos::set_verify_sign(const ::std::string& value) {
- set_has_verify_sign();
- if (verify_sign_ == &::google::protobuf::internal::kEmptyString) {
- verify_sign_ = new ::std::string;
- }
- verify_sign_->assign(value);
- }
- inline void FileSendProtos::set_verify_sign(const char* value) {
- set_has_verify_sign();
- if (verify_sign_ == &::google::protobuf::internal::kEmptyString) {
- verify_sign_ = new ::std::string;
- }
- verify_sign_->assign(value);
- }
- inline void FileSendProtos::set_verify_sign(const char* value, size_t size) {
- set_has_verify_sign();
- if (verify_sign_ == &::google::protobuf::internal::kEmptyString) {
- verify_sign_ = new ::std::string;
- }
- verify_sign_->assign(reinterpret_cast<const char*>(value), size);
- }
- inline ::std::string* FileSendProtos::mutable_verify_sign() {
- set_has_verify_sign();
- if (verify_sign_ == &::google::protobuf::internal::kEmptyString) {
- verify_sign_ = new ::std::string;
- }
- return verify_sign_;
- }
- inline ::std::string* FileSendProtos::release_verify_sign() {
- clear_has_verify_sign();
- if (verify_sign_ == &::google::protobuf::internal::kEmptyString) {
- return NULL;
- } else {
- ::std::string* temp = verify_sign_;
- verify_sign_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- return temp;
- }
- }
- inline void FileSendProtos::set_allocated_verify_sign(::std::string* verify_sign) {
- if (verify_sign_ != &::google::protobuf::internal::kEmptyString) {
- delete verify_sign_;
- }
- if (verify_sign) {
- set_has_verify_sign();
- verify_sign_ = verify_sign;
- } else {
- clear_has_verify_sign();
- verify_sign_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- }
- }
- // optional uint64 uncompress_size = 9;
- inline bool FileSendProtos::has_uncompress_size() const {
- return (_has_bits_[0] & 0x00000100u) != 0;
- }
- inline void FileSendProtos::set_has_uncompress_size() {
- _has_bits_[0] |= 0x00000100u;
- }
- inline void FileSendProtos::clear_has_uncompress_size() {
- _has_bits_[0] &= ~0x00000100u;
- }
- inline void FileSendProtos::clear_uncompress_size() {
- uncompress_size_ = GOOGLE_ULONGLONG(0);
- clear_has_uncompress_size();
- }
- inline ::google::protobuf::uint64 FileSendProtos::uncompress_size() const {
- return uncompress_size_;
- }
- inline void FileSendProtos::set_uncompress_size(::google::protobuf::uint64 value) {
- set_has_uncompress_size();
- uncompress_size_ = value;
- }
- // -------------------------------------------------------------------
- // FileSendComplete
- // required string file_name = 1;
- inline bool FileSendComplete::has_file_name() const {
- return (_has_bits_[0] & 0x00000001u) != 0;
- }
- inline void FileSendComplete::set_has_file_name() {
- _has_bits_[0] |= 0x00000001u;
- }
- inline void FileSendComplete::clear_has_file_name() {
- _has_bits_[0] &= ~0x00000001u;
- }
- inline void FileSendComplete::clear_file_name() {
- if (file_name_ != &::google::protobuf::internal::kEmptyString) {
- file_name_->clear();
- }
- clear_has_file_name();
- }
- inline const ::std::string& FileSendComplete::file_name() const {
- return *file_name_;
- }
- inline void FileSendComplete::set_file_name(const ::std::string& value) {
- set_has_file_name();
- if (file_name_ == &::google::protobuf::internal::kEmptyString) {
- file_name_ = new ::std::string;
- }
- file_name_->assign(value);
- }
- inline void FileSendComplete::set_file_name(const char* value) {
- set_has_file_name();
- if (file_name_ == &::google::protobuf::internal::kEmptyString) {
- file_name_ = new ::std::string;
- }
- file_name_->assign(value);
- }
- inline void FileSendComplete::set_file_name(const char* value, size_t size) {
- set_has_file_name();
- if (file_name_ == &::google::protobuf::internal::kEmptyString) {
- file_name_ = new ::std::string;
- }
- file_name_->assign(reinterpret_cast<const char*>(value), size);
- }
- inline ::std::string* FileSendComplete::mutable_file_name() {
- set_has_file_name();
- if (file_name_ == &::google::protobuf::internal::kEmptyString) {
- file_name_ = new ::std::string;
- }
- return file_name_;
- }
- inline ::std::string* FileSendComplete::release_file_name() {
- clear_has_file_name();
- if (file_name_ == &::google::protobuf::internal::kEmptyString) {
- return NULL;
- } else {
- ::std::string* temp = file_name_;
- file_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- return temp;
- }
- }
- inline void FileSendComplete::set_allocated_file_name(::std::string* file_name) {
- if (file_name_ != &::google::protobuf::internal::kEmptyString) {
- delete file_name_;
- }
- if (file_name) {
- set_has_file_name();
- file_name_ = file_name;
- } else {
- clear_has_file_name();
- file_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
- }
- }
- // required .runtime.FileSendComplete.RESULTTYPE result = 2;
- inline bool FileSendComplete::has_result() const {
- return (_has_bits_[0] & 0x00000002u) != 0;
- }
- inline void FileSendComplete::set_has_result() {
- _has_bits_[0] |= 0x00000002u;
- }
- inline void FileSendComplete::clear_has_result() {
- _has_bits_[0] &= ~0x00000002u;
- }
- inline void FileSendComplete::clear_result() {
- result_ = 0;
- clear_has_result();
- }
- inline ::runtime::FileSendComplete_RESULTTYPE FileSendComplete::result() const {
- return static_cast< ::runtime::FileSendComplete_RESULTTYPE >(result_);
- }
- inline void FileSendComplete::set_result(::runtime::FileSendComplete_RESULTTYPE value) {
- assert(::runtime::FileSendComplete_RESULTTYPE_IsValid(value));
- set_has_result();
- result_ = value;
- }
- // required int32 error_num = 3;
- inline bool FileSendComplete::has_error_num() const {
- return (_has_bits_[0] & 0x00000004u) != 0;
- }
- inline void FileSendComplete::set_has_error_num() {
- _has_bits_[0] |= 0x00000004u;
- }
- inline void FileSendComplete::clear_has_error_num() {
- _has_bits_[0] &= ~0x00000004u;
- }
- inline void FileSendComplete::clear_error_num() {
- error_num_ = 0;
- clear_has_error_num();
- }
- inline ::google::protobuf::int32 FileSendComplete::error_num() const {
- return error_num_;
- }
- inline void FileSendComplete::set_error_num(::google::protobuf::int32 value) {
- set_has_error_num();
- error_num_ = value;
- }
- // @@protoc_insertion_point(namespace_scope)
- } // namespace runtime
- // @@protoc_insertion_point(global_scope)
- #endif // PROTOBUF_Protos_2eproto__INCLUDED
|