HM-SPMS/product/src/idl_files/FileSyncBySvn.pb.h
2025-03-13 11:17:56 +08:00

835 lines
30 KiB
C++

// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: FileSyncBySvn.proto
#ifndef PROTOBUF_FileSyncBySvn_2eproto__INCLUDED
#define PROTOBUF_FileSyncBySvn_2eproto__INCLUDED
#include <string>
#include <google/protobuf/stubs/common.h>
#if GOOGLE_PROTOBUF_VERSION < 2006000
#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 2006001 < 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.h>
#include <google/protobuf/repeated_field.h>
#include <google/protobuf/extension_set.h>
#include <google/protobuf/generated_enum_reflection.h>
#include <google/protobuf/unknown_field_set.h>
// @@protoc_insertion_point(includes)
namespace iot_idl {
// Internal implementation detail -- do not call these.
void IDL_FILES_EXPORT protobuf_AddDesc_FileSyncBySvn_2eproto();
void protobuf_AssignDesc_FileSyncBySvn_2eproto();
void protobuf_ShutdownFile_FileSyncBySvn_2eproto();
class fileSyncNotice;
class messageFileInfo;
class updateSuccessNotice;
enum enFileSyncMsgType {
SVN_COMMIT_SUCCESS = 1,
SVN_UPDATE_SUCCESS = 2
};
IDL_FILES_EXPORT bool enFileSyncMsgType_IsValid(int value);
const enFileSyncMsgType enFileSyncMsgType_MIN = SVN_COMMIT_SUCCESS;
const enFileSyncMsgType enFileSyncMsgType_MAX = SVN_UPDATE_SUCCESS;
const int enFileSyncMsgType_ARRAYSIZE = enFileSyncMsgType_MAX + 1;
IDL_FILES_EXPORT const ::google::protobuf::EnumDescriptor* enFileSyncMsgType_descriptor();
inline const ::std::string& enFileSyncMsgType_Name(enFileSyncMsgType value) {
return ::google::protobuf::internal::NameOfEnum(
enFileSyncMsgType_descriptor(), value);
}
inline bool enFileSyncMsgType_Parse(
const ::std::string& name, enFileSyncMsgType* value) {
return ::google::protobuf::internal::ParseNamedEnum<enFileSyncMsgType>(
enFileSyncMsgType_descriptor(), name, value);
}
enum enUpdateType {
UPDATE_ADD = 1,
UPDATE_DELETE = 2,
UPDATE_UPDATE = 3,
UPDATE_CONFLICT = 4,
UPDATE_MERGE = 5
};
IDL_FILES_EXPORT bool enUpdateType_IsValid(int value);
const enUpdateType enUpdateType_MIN = UPDATE_ADD;
const enUpdateType enUpdateType_MAX = UPDATE_MERGE;
const int enUpdateType_ARRAYSIZE = enUpdateType_MAX + 1;
IDL_FILES_EXPORT const ::google::protobuf::EnumDescriptor* enUpdateType_descriptor();
inline const ::std::string& enUpdateType_Name(enUpdateType value) {
return ::google::protobuf::internal::NameOfEnum(
enUpdateType_descriptor(), value);
}
inline bool enUpdateType_Parse(
const ::std::string& name, enUpdateType* value) {
return ::google::protobuf::internal::ParseNamedEnum<enUpdateType>(
enUpdateType_descriptor(), name, value);
}
// ===================================================================
class IDL_FILES_EXPORT fileSyncNotice : public ::google::protobuf::Message {
public:
fileSyncNotice();
virtual ~fileSyncNotice();
fileSyncNotice(const fileSyncNotice& from);
inline fileSyncNotice& operator=(const fileSyncNotice& from) {
CopyFrom(from);
return *this;
}
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
return _unknown_fields_;
}
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
return &_unknown_fields_;
}
static const ::google::protobuf::Descriptor* descriptor();
static const fileSyncNotice& default_instance();
void Swap(fileSyncNotice* other);
// implements Message ----------------------------------------------
fileSyncNotice* New() const;
void CopyFrom(const ::google::protobuf::Message& from);
void MergeFrom(const ::google::protobuf::Message& from);
void CopyFrom(const fileSyncNotice& from);
void MergeFrom(const fileSyncNotice& 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* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
int GetCachedSize() const { return _cached_size_; }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const;
public:
::google::protobuf::Metadata GetMetadata() const;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// repeated string relativeFileName = 1;
inline int relativefilename_size() const;
inline void clear_relativefilename();
static const int kRelativeFileNameFieldNumber = 1;
inline const ::std::string& relativefilename(int index) const;
inline ::std::string* mutable_relativefilename(int index);
inline void set_relativefilename(int index, const ::std::string& value);
inline void set_relativefilename(int index, const char* value);
inline void set_relativefilename(int index, const char* value, size_t size);
inline ::std::string* add_relativefilename();
inline void add_relativefilename(const ::std::string& value);
inline void add_relativefilename(const char* value);
inline void add_relativefilename(const char* value, size_t size);
inline const ::google::protobuf::RepeatedPtrField< ::std::string>& relativefilename() const;
inline ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_relativefilename();
// required string hostName = 2;
inline bool has_hostname() const;
inline void clear_hostname();
static const int kHostNameFieldNumber = 2;
inline const ::std::string& hostname() const;
inline void set_hostname(const ::std::string& value);
inline void set_hostname(const char* value);
inline void set_hostname(const char* value, size_t size);
inline ::std::string* mutable_hostname();
inline ::std::string* release_hostname();
inline void set_allocated_hostname(::std::string* hostname);
// required int32 domainId = 3;
inline bool has_domainid() const;
inline void clear_domainid();
static const int kDomainIdFieldNumber = 3;
inline ::google::protobuf::int32 domainid() const;
inline void set_domainid(::google::protobuf::int32 value);
// required int32 locationId = 4;
inline bool has_locationid() const;
inline void clear_locationid();
static const int kLocationIdFieldNumber = 4;
inline ::google::protobuf::int32 locationid() const;
inline void set_locationid(::google::protobuf::int32 value);
// required int32 appId = 5;
inline bool has_appid() const;
inline void clear_appid();
static const int kAppIdFieldNumber = 5;
inline ::google::protobuf::int32 appid() const;
inline void set_appid(::google::protobuf::int32 value);
// repeated string others = 6;
inline int others_size() const;
inline void clear_others();
static const int kOthersFieldNumber = 6;
inline const ::std::string& others(int index) const;
inline ::std::string* mutable_others(int index);
inline void set_others(int index, const ::std::string& value);
inline void set_others(int index, const char* value);
inline void set_others(int index, const char* value, size_t size);
inline ::std::string* add_others();
inline void add_others(const ::std::string& value);
inline void add_others(const char* value);
inline void add_others(const char* value, size_t size);
inline const ::google::protobuf::RepeatedPtrField< ::std::string>& others() const;
inline ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_others();
// @@protoc_insertion_point(class_scope:iot_idl.fileSyncNotice)
private:
inline void set_has_hostname();
inline void clear_has_hostname();
inline void set_has_domainid();
inline void clear_has_domainid();
inline void set_has_locationid();
inline void clear_has_locationid();
inline void set_has_appid();
inline void clear_has_appid();
::google::protobuf::UnknownFieldSet _unknown_fields_;
::google::protobuf::uint32 _has_bits_[1];
mutable int _cached_size_;
::google::protobuf::RepeatedPtrField< ::std::string> relativefilename_;
::std::string* hostname_;
::google::protobuf::int32 domainid_;
::google::protobuf::int32 locationid_;
::google::protobuf::RepeatedPtrField< ::std::string> others_;
::google::protobuf::int32 appid_;
friend void IDL_FILES_EXPORT protobuf_AddDesc_FileSyncBySvn_2eproto();
friend void protobuf_AssignDesc_FileSyncBySvn_2eproto();
friend void protobuf_ShutdownFile_FileSyncBySvn_2eproto();
void InitAsDefaultInstance();
static fileSyncNotice* default_instance_;
};
// -------------------------------------------------------------------
class IDL_FILES_EXPORT messageFileInfo : public ::google::protobuf::Message {
public:
messageFileInfo();
virtual ~messageFileInfo();
messageFileInfo(const messageFileInfo& from);
inline messageFileInfo& operator=(const messageFileInfo& from) {
CopyFrom(from);
return *this;
}
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
return _unknown_fields_;
}
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
return &_unknown_fields_;
}
static const ::google::protobuf::Descriptor* descriptor();
static const messageFileInfo& default_instance();
void Swap(messageFileInfo* other);
// implements Message ----------------------------------------------
messageFileInfo* New() const;
void CopyFrom(const ::google::protobuf::Message& from);
void MergeFrom(const ::google::protobuf::Message& from);
void CopyFrom(const messageFileInfo& from);
void MergeFrom(const messageFileInfo& 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* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
int GetCachedSize() const { return _cached_size_; }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const;
public:
::google::protobuf::Metadata GetMetadata() const;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// required string fileName = 1;
inline bool has_filename() const;
inline void clear_filename();
static const int kFileNameFieldNumber = 1;
inline const ::std::string& filename() const;
inline void set_filename(const ::std::string& value);
inline void set_filename(const char* value);
inline void set_filename(const char* value, size_t size);
inline ::std::string* mutable_filename();
inline ::std::string* release_filename();
inline void set_allocated_filename(::std::string* filename);
// required .iot_idl.enUpdateType type = 2;
inline bool has_type() const;
inline void clear_type();
static const int kTypeFieldNumber = 2;
inline ::iot_idl::enUpdateType type() const;
inline void set_type(::iot_idl::enUpdateType value);
// @@protoc_insertion_point(class_scope:iot_idl.messageFileInfo)
private:
inline void set_has_filename();
inline void clear_has_filename();
inline void set_has_type();
inline void clear_has_type();
::google::protobuf::UnknownFieldSet _unknown_fields_;
::google::protobuf::uint32 _has_bits_[1];
mutable int _cached_size_;
::std::string* filename_;
int type_;
friend void IDL_FILES_EXPORT protobuf_AddDesc_FileSyncBySvn_2eproto();
friend void protobuf_AssignDesc_FileSyncBySvn_2eproto();
friend void protobuf_ShutdownFile_FileSyncBySvn_2eproto();
void InitAsDefaultInstance();
static messageFileInfo* default_instance_;
};
// -------------------------------------------------------------------
class IDL_FILES_EXPORT updateSuccessNotice : public ::google::protobuf::Message {
public:
updateSuccessNotice();
virtual ~updateSuccessNotice();
updateSuccessNotice(const updateSuccessNotice& from);
inline updateSuccessNotice& operator=(const updateSuccessNotice& from) {
CopyFrom(from);
return *this;
}
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
return _unknown_fields_;
}
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
return &_unknown_fields_;
}
static const ::google::protobuf::Descriptor* descriptor();
static const updateSuccessNotice& default_instance();
void Swap(updateSuccessNotice* other);
// implements Message ----------------------------------------------
updateSuccessNotice* New() const;
void CopyFrom(const ::google::protobuf::Message& from);
void MergeFrom(const ::google::protobuf::Message& from);
void CopyFrom(const updateSuccessNotice& from);
void MergeFrom(const updateSuccessNotice& 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* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
int GetCachedSize() const { return _cached_size_; }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const;
public:
::google::protobuf::Metadata GetMetadata() const;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// repeated .iot_idl.messageFileInfo fileInfo = 1;
inline int fileinfo_size() const;
inline void clear_fileinfo();
static const int kFileInfoFieldNumber = 1;
inline const ::iot_idl::messageFileInfo& fileinfo(int index) const;
inline ::iot_idl::messageFileInfo* mutable_fileinfo(int index);
inline ::iot_idl::messageFileInfo* add_fileinfo();
inline const ::google::protobuf::RepeatedPtrField< ::iot_idl::messageFileInfo >&
fileinfo() const;
inline ::google::protobuf::RepeatedPtrField< ::iot_idl::messageFileInfo >*
mutable_fileinfo();
// @@protoc_insertion_point(class_scope:iot_idl.updateSuccessNotice)
private:
::google::protobuf::UnknownFieldSet _unknown_fields_;
::google::protobuf::uint32 _has_bits_[1];
mutable int _cached_size_;
::google::protobuf::RepeatedPtrField< ::iot_idl::messageFileInfo > fileinfo_;
friend void IDL_FILES_EXPORT protobuf_AddDesc_FileSyncBySvn_2eproto();
friend void protobuf_AssignDesc_FileSyncBySvn_2eproto();
friend void protobuf_ShutdownFile_FileSyncBySvn_2eproto();
void InitAsDefaultInstance();
static updateSuccessNotice* default_instance_;
};
// ===================================================================
// ===================================================================
// fileSyncNotice
// repeated string relativeFileName = 1;
inline int fileSyncNotice::relativefilename_size() const {
return relativefilename_.size();
}
inline void fileSyncNotice::clear_relativefilename() {
relativefilename_.Clear();
}
inline const ::std::string& fileSyncNotice::relativefilename(int index) const {
// @@protoc_insertion_point(field_get:iot_idl.fileSyncNotice.relativeFileName)
return relativefilename_.Get(index);
}
inline ::std::string* fileSyncNotice::mutable_relativefilename(int index) {
// @@protoc_insertion_point(field_mutable:iot_idl.fileSyncNotice.relativeFileName)
return relativefilename_.Mutable(index);
}
inline void fileSyncNotice::set_relativefilename(int index, const ::std::string& value) {
// @@protoc_insertion_point(field_set:iot_idl.fileSyncNotice.relativeFileName)
relativefilename_.Mutable(index)->assign(value);
}
inline void fileSyncNotice::set_relativefilename(int index, const char* value) {
relativefilename_.Mutable(index)->assign(value);
// @@protoc_insertion_point(field_set_char:iot_idl.fileSyncNotice.relativeFileName)
}
inline void fileSyncNotice::set_relativefilename(int index, const char* value, size_t size) {
relativefilename_.Mutable(index)->assign(
reinterpret_cast<const char*>(value), size);
// @@protoc_insertion_point(field_set_pointer:iot_idl.fileSyncNotice.relativeFileName)
}
inline ::std::string* fileSyncNotice::add_relativefilename() {
return relativefilename_.Add();
}
inline void fileSyncNotice::add_relativefilename(const ::std::string& value) {
relativefilename_.Add()->assign(value);
// @@protoc_insertion_point(field_add:iot_idl.fileSyncNotice.relativeFileName)
}
inline void fileSyncNotice::add_relativefilename(const char* value) {
relativefilename_.Add()->assign(value);
// @@protoc_insertion_point(field_add_char:iot_idl.fileSyncNotice.relativeFileName)
}
inline void fileSyncNotice::add_relativefilename(const char* value, size_t size) {
relativefilename_.Add()->assign(reinterpret_cast<const char*>(value), size);
// @@protoc_insertion_point(field_add_pointer:iot_idl.fileSyncNotice.relativeFileName)
}
inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
fileSyncNotice::relativefilename() const {
// @@protoc_insertion_point(field_list:iot_idl.fileSyncNotice.relativeFileName)
return relativefilename_;
}
inline ::google::protobuf::RepeatedPtrField< ::std::string>*
fileSyncNotice::mutable_relativefilename() {
// @@protoc_insertion_point(field_mutable_list:iot_idl.fileSyncNotice.relativeFileName)
return &relativefilename_;
}
// required string hostName = 2;
inline bool fileSyncNotice::has_hostname() const {
return (_has_bits_[0] & 0x00000002u) != 0;
}
inline void fileSyncNotice::set_has_hostname() {
_has_bits_[0] |= 0x00000002u;
}
inline void fileSyncNotice::clear_has_hostname() {
_has_bits_[0] &= ~0x00000002u;
}
inline void fileSyncNotice::clear_hostname() {
if (hostname_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
hostname_->clear();
}
clear_has_hostname();
}
inline const ::std::string& fileSyncNotice::hostname() const {
// @@protoc_insertion_point(field_get:iot_idl.fileSyncNotice.hostName)
return *hostname_;
}
inline void fileSyncNotice::set_hostname(const ::std::string& value) {
set_has_hostname();
if (hostname_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
hostname_ = new ::std::string;
}
hostname_->assign(value);
// @@protoc_insertion_point(field_set:iot_idl.fileSyncNotice.hostName)
}
inline void fileSyncNotice::set_hostname(const char* value) {
set_has_hostname();
if (hostname_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
hostname_ = new ::std::string;
}
hostname_->assign(value);
// @@protoc_insertion_point(field_set_char:iot_idl.fileSyncNotice.hostName)
}
inline void fileSyncNotice::set_hostname(const char* value, size_t size) {
set_has_hostname();
if (hostname_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
hostname_ = new ::std::string;
}
hostname_->assign(reinterpret_cast<const char*>(value), size);
// @@protoc_insertion_point(field_set_pointer:iot_idl.fileSyncNotice.hostName)
}
inline ::std::string* fileSyncNotice::mutable_hostname() {
set_has_hostname();
if (hostname_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
hostname_ = new ::std::string;
}
// @@protoc_insertion_point(field_mutable:iot_idl.fileSyncNotice.hostName)
return hostname_;
}
inline ::std::string* fileSyncNotice::release_hostname() {
clear_has_hostname();
if (hostname_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
return NULL;
} else {
::std::string* temp = hostname_;
hostname_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
return temp;
}
}
inline void fileSyncNotice::set_allocated_hostname(::std::string* hostname) {
if (hostname_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
delete hostname_;
}
if (hostname) {
set_has_hostname();
hostname_ = hostname;
} else {
clear_has_hostname();
hostname_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
// @@protoc_insertion_point(field_set_allocated:iot_idl.fileSyncNotice.hostName)
}
// required int32 domainId = 3;
inline bool fileSyncNotice::has_domainid() const {
return (_has_bits_[0] & 0x00000004u) != 0;
}
inline void fileSyncNotice::set_has_domainid() {
_has_bits_[0] |= 0x00000004u;
}
inline void fileSyncNotice::clear_has_domainid() {
_has_bits_[0] &= ~0x00000004u;
}
inline void fileSyncNotice::clear_domainid() {
domainid_ = 0;
clear_has_domainid();
}
inline ::google::protobuf::int32 fileSyncNotice::domainid() const {
// @@protoc_insertion_point(field_get:iot_idl.fileSyncNotice.domainId)
return domainid_;
}
inline void fileSyncNotice::set_domainid(::google::protobuf::int32 value) {
set_has_domainid();
domainid_ = value;
// @@protoc_insertion_point(field_set:iot_idl.fileSyncNotice.domainId)
}
// required int32 locationId = 4;
inline bool fileSyncNotice::has_locationid() const {
return (_has_bits_[0] & 0x00000008u) != 0;
}
inline void fileSyncNotice::set_has_locationid() {
_has_bits_[0] |= 0x00000008u;
}
inline void fileSyncNotice::clear_has_locationid() {
_has_bits_[0] &= ~0x00000008u;
}
inline void fileSyncNotice::clear_locationid() {
locationid_ = 0;
clear_has_locationid();
}
inline ::google::protobuf::int32 fileSyncNotice::locationid() const {
// @@protoc_insertion_point(field_get:iot_idl.fileSyncNotice.locationId)
return locationid_;
}
inline void fileSyncNotice::set_locationid(::google::protobuf::int32 value) {
set_has_locationid();
locationid_ = value;
// @@protoc_insertion_point(field_set:iot_idl.fileSyncNotice.locationId)
}
// required int32 appId = 5;
inline bool fileSyncNotice::has_appid() const {
return (_has_bits_[0] & 0x00000010u) != 0;
}
inline void fileSyncNotice::set_has_appid() {
_has_bits_[0] |= 0x00000010u;
}
inline void fileSyncNotice::clear_has_appid() {
_has_bits_[0] &= ~0x00000010u;
}
inline void fileSyncNotice::clear_appid() {
appid_ = 0;
clear_has_appid();
}
inline ::google::protobuf::int32 fileSyncNotice::appid() const {
// @@protoc_insertion_point(field_get:iot_idl.fileSyncNotice.appId)
return appid_;
}
inline void fileSyncNotice::set_appid(::google::protobuf::int32 value) {
set_has_appid();
appid_ = value;
// @@protoc_insertion_point(field_set:iot_idl.fileSyncNotice.appId)
}
// repeated string others = 6;
inline int fileSyncNotice::others_size() const {
return others_.size();
}
inline void fileSyncNotice::clear_others() {
others_.Clear();
}
inline const ::std::string& fileSyncNotice::others(int index) const {
// @@protoc_insertion_point(field_get:iot_idl.fileSyncNotice.others)
return others_.Get(index);
}
inline ::std::string* fileSyncNotice::mutable_others(int index) {
// @@protoc_insertion_point(field_mutable:iot_idl.fileSyncNotice.others)
return others_.Mutable(index);
}
inline void fileSyncNotice::set_others(int index, const ::std::string& value) {
// @@protoc_insertion_point(field_set:iot_idl.fileSyncNotice.others)
others_.Mutable(index)->assign(value);
}
inline void fileSyncNotice::set_others(int index, const char* value) {
others_.Mutable(index)->assign(value);
// @@protoc_insertion_point(field_set_char:iot_idl.fileSyncNotice.others)
}
inline void fileSyncNotice::set_others(int index, const char* value, size_t size) {
others_.Mutable(index)->assign(
reinterpret_cast<const char*>(value), size);
// @@protoc_insertion_point(field_set_pointer:iot_idl.fileSyncNotice.others)
}
inline ::std::string* fileSyncNotice::add_others() {
return others_.Add();
}
inline void fileSyncNotice::add_others(const ::std::string& value) {
others_.Add()->assign(value);
// @@protoc_insertion_point(field_add:iot_idl.fileSyncNotice.others)
}
inline void fileSyncNotice::add_others(const char* value) {
others_.Add()->assign(value);
// @@protoc_insertion_point(field_add_char:iot_idl.fileSyncNotice.others)
}
inline void fileSyncNotice::add_others(const char* value, size_t size) {
others_.Add()->assign(reinterpret_cast<const char*>(value), size);
// @@protoc_insertion_point(field_add_pointer:iot_idl.fileSyncNotice.others)
}
inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
fileSyncNotice::others() const {
// @@protoc_insertion_point(field_list:iot_idl.fileSyncNotice.others)
return others_;
}
inline ::google::protobuf::RepeatedPtrField< ::std::string>*
fileSyncNotice::mutable_others() {
// @@protoc_insertion_point(field_mutable_list:iot_idl.fileSyncNotice.others)
return &others_;
}
// -------------------------------------------------------------------
// messageFileInfo
// required string fileName = 1;
inline bool messageFileInfo::has_filename() const {
return (_has_bits_[0] & 0x00000001u) != 0;
}
inline void messageFileInfo::set_has_filename() {
_has_bits_[0] |= 0x00000001u;
}
inline void messageFileInfo::clear_has_filename() {
_has_bits_[0] &= ~0x00000001u;
}
inline void messageFileInfo::clear_filename() {
if (filename_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
filename_->clear();
}
clear_has_filename();
}
inline const ::std::string& messageFileInfo::filename() const {
// @@protoc_insertion_point(field_get:iot_idl.messageFileInfo.fileName)
return *filename_;
}
inline void messageFileInfo::set_filename(const ::std::string& value) {
set_has_filename();
if (filename_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
filename_ = new ::std::string;
}
filename_->assign(value);
// @@protoc_insertion_point(field_set:iot_idl.messageFileInfo.fileName)
}
inline void messageFileInfo::set_filename(const char* value) {
set_has_filename();
if (filename_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
filename_ = new ::std::string;
}
filename_->assign(value);
// @@protoc_insertion_point(field_set_char:iot_idl.messageFileInfo.fileName)
}
inline void messageFileInfo::set_filename(const char* value, size_t size) {
set_has_filename();
if (filename_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
filename_ = new ::std::string;
}
filename_->assign(reinterpret_cast<const char*>(value), size);
// @@protoc_insertion_point(field_set_pointer:iot_idl.messageFileInfo.fileName)
}
inline ::std::string* messageFileInfo::mutable_filename() {
set_has_filename();
if (filename_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
filename_ = new ::std::string;
}
// @@protoc_insertion_point(field_mutable:iot_idl.messageFileInfo.fileName)
return filename_;
}
inline ::std::string* messageFileInfo::release_filename() {
clear_has_filename();
if (filename_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
return NULL;
} else {
::std::string* temp = filename_;
filename_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
return temp;
}
}
inline void messageFileInfo::set_allocated_filename(::std::string* filename) {
if (filename_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
delete filename_;
}
if (filename) {
set_has_filename();
filename_ = filename;
} else {
clear_has_filename();
filename_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
// @@protoc_insertion_point(field_set_allocated:iot_idl.messageFileInfo.fileName)
}
// required .iot_idl.enUpdateType type = 2;
inline bool messageFileInfo::has_type() const {
return (_has_bits_[0] & 0x00000002u) != 0;
}
inline void messageFileInfo::set_has_type() {
_has_bits_[0] |= 0x00000002u;
}
inline void messageFileInfo::clear_has_type() {
_has_bits_[0] &= ~0x00000002u;
}
inline void messageFileInfo::clear_type() {
type_ = 1;
clear_has_type();
}
inline ::iot_idl::enUpdateType messageFileInfo::type() const {
// @@protoc_insertion_point(field_get:iot_idl.messageFileInfo.type)
return static_cast< ::iot_idl::enUpdateType >(type_);
}
inline void messageFileInfo::set_type(::iot_idl::enUpdateType value) {
assert(::iot_idl::enUpdateType_IsValid(value));
set_has_type();
type_ = value;
// @@protoc_insertion_point(field_set:iot_idl.messageFileInfo.type)
}
// -------------------------------------------------------------------
// updateSuccessNotice
// repeated .iot_idl.messageFileInfo fileInfo = 1;
inline int updateSuccessNotice::fileinfo_size() const {
return fileinfo_.size();
}
inline void updateSuccessNotice::clear_fileinfo() {
fileinfo_.Clear();
}
inline const ::iot_idl::messageFileInfo& updateSuccessNotice::fileinfo(int index) const {
// @@protoc_insertion_point(field_get:iot_idl.updateSuccessNotice.fileInfo)
return fileinfo_.Get(index);
}
inline ::iot_idl::messageFileInfo* updateSuccessNotice::mutable_fileinfo(int index) {
// @@protoc_insertion_point(field_mutable:iot_idl.updateSuccessNotice.fileInfo)
return fileinfo_.Mutable(index);
}
inline ::iot_idl::messageFileInfo* updateSuccessNotice::add_fileinfo() {
// @@protoc_insertion_point(field_add:iot_idl.updateSuccessNotice.fileInfo)
return fileinfo_.Add();
}
inline const ::google::protobuf::RepeatedPtrField< ::iot_idl::messageFileInfo >&
updateSuccessNotice::fileinfo() const {
// @@protoc_insertion_point(field_list:iot_idl.updateSuccessNotice.fileInfo)
return fileinfo_;
}
inline ::google::protobuf::RepeatedPtrField< ::iot_idl::messageFileInfo >*
updateSuccessNotice::mutable_fileinfo() {
// @@protoc_insertion_point(field_mutable_list:iot_idl.updateSuccessNotice.fileInfo)
return &fileinfo_;
}
// @@protoc_insertion_point(namespace_scope)
} // namespace iot_idl
#ifndef SWIG
namespace google {
namespace protobuf {
template <> struct is_proto_enum< ::iot_idl::enFileSyncMsgType> : ::google::protobuf::internal::true_type {};
template <>
inline const EnumDescriptor* GetEnumDescriptor< ::iot_idl::enFileSyncMsgType>() {
return ::iot_idl::enFileSyncMsgType_descriptor();
}
template <> struct is_proto_enum< ::iot_idl::enUpdateType> : ::google::protobuf::internal::true_type {};
template <>
inline const EnumDescriptor* GetEnumDescriptor< ::iot_idl::enUpdateType>() {
return ::iot_idl::enUpdateType_descriptor();
}
} // namespace google
} // namespace protobuf
#endif // SWIG
// @@protoc_insertion_point(global_scope)
#endif // PROTOBUF_FileSyncBySvn_2eproto__INCLUDED