kylin-connectivity/connectmanage/messageserialize.pb.h

2197 lines
78 KiB
C++

// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: messageserialize.proto
#ifndef PROTOBUF_INCLUDED_messageserialize_2eproto
#define PROTOBUF_INCLUDED_messageserialize_2eproto
#include <string>
#include <google/protobuf/stubs/common.h>
#if GOOGLE_PROTOBUF_VERSION < 3006001
#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 3006001 < 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/io/coded_stream.h>
#include <google/protobuf/arena.h>
#include <google/protobuf/arenastring.h>
#include <google/protobuf/generated_message_table_driven.h>
#include <google/protobuf/generated_message_util.h>
#include <google/protobuf/inlined_string_field.h>
#include <google/protobuf/metadata.h>
#include <google/protobuf/message.h>
#include <google/protobuf/repeated_field.h> // IWYU pragma: export
#include <google/protobuf/extension_set.h> // IWYU pragma: export
#include <google/protobuf/generated_enum_reflection.h>
#include <google/protobuf/unknown_field_set.h>
// @@protoc_insertion_point(includes)
#define PROTOBUF_INTERNAL_EXPORT_protobuf_messageserialize_2eproto
namespace protobuf_messageserialize_2eproto {
// Internal implementation detail -- do not use these members.
struct TableStruct {
static const ::google::protobuf::internal::ParseTableField entries[];
static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
static const ::google::protobuf::internal::ParseTable schema[5];
static const ::google::protobuf::internal::FieldMetadata field_metadata[];
static const ::google::protobuf::internal::SerializationTable serialization_table[];
static const ::google::protobuf::uint32 offsets[];
};
void AddDescriptors();
} // namespace protobuf_messageserialize_2eproto
class DeviceInfo;
class DeviceInfoDefaultTypeInternal;
extern DeviceInfoDefaultTypeInternal _DeviceInfo_default_instance_;
class FtpUserPwd;
class FtpUserPwdDefaultTypeInternal;
extern FtpUserPwdDefaultTypeInternal _FtpUserPwd_default_instance_;
class ProtobufFileInfo;
class ProtobufFileInfoDefaultTypeInternal;
extern ProtobufFileInfoDefaultTypeInternal _ProtobufFileInfo_default_instance_;
class ProtobufFilesInfo;
class ProtobufFilesInfoDefaultTypeInternal;
extern ProtobufFilesInfoDefaultTypeInternal _ProtobufFilesInfo_default_instance_;
class ReplyMessage;
class ReplyMessageDefaultTypeInternal;
extern ReplyMessageDefaultTypeInternal _ReplyMessage_default_instance_;
namespace google {
namespace protobuf {
template<> ::DeviceInfo* Arena::CreateMaybeMessage<::DeviceInfo>(Arena*);
template<> ::FtpUserPwd* Arena::CreateMaybeMessage<::FtpUserPwd>(Arena*);
template<> ::ProtobufFileInfo* Arena::CreateMaybeMessage<::ProtobufFileInfo>(Arena*);
template<> ::ProtobufFilesInfo* Arena::CreateMaybeMessage<::ProtobufFilesInfo>(Arena*);
template<> ::ReplyMessage* Arena::CreateMaybeMessage<::ReplyMessage>(Arena*);
} // namespace protobuf
} // namespace google
enum DeviceInfo_DeviceType {
DeviceInfo_DeviceType_PC = 0,
DeviceInfo_DeviceType_ANDROID = 1,
DeviceInfo_DeviceType_UNKNOWN = 2
};
bool DeviceInfo_DeviceType_IsValid(int value);
const DeviceInfo_DeviceType DeviceInfo_DeviceType_DeviceType_MIN = DeviceInfo_DeviceType_PC;
const DeviceInfo_DeviceType DeviceInfo_DeviceType_DeviceType_MAX = DeviceInfo_DeviceType_UNKNOWN;
const int DeviceInfo_DeviceType_DeviceType_ARRAYSIZE = DeviceInfo_DeviceType_DeviceType_MAX + 1;
const ::google::protobuf::EnumDescriptor* DeviceInfo_DeviceType_descriptor();
inline const ::std::string& DeviceInfo_DeviceType_Name(DeviceInfo_DeviceType value) {
return ::google::protobuf::internal::NameOfEnum(
DeviceInfo_DeviceType_descriptor(), value);
}
inline bool DeviceInfo_DeviceType_Parse(
const ::std::string& name, DeviceInfo_DeviceType* value) {
return ::google::protobuf::internal::ParseNamedEnum<DeviceInfo_DeviceType>(
DeviceInfo_DeviceType_descriptor(), name, value);
}
enum DeviceInfo_DeviceRole {
DeviceInfo_DeviceRole_INITIATOR = 0,
DeviceInfo_DeviceRole_RECIPIENT = 1
};
bool DeviceInfo_DeviceRole_IsValid(int value);
const DeviceInfo_DeviceRole DeviceInfo_DeviceRole_DeviceRole_MIN = DeviceInfo_DeviceRole_INITIATOR;
const DeviceInfo_DeviceRole DeviceInfo_DeviceRole_DeviceRole_MAX = DeviceInfo_DeviceRole_RECIPIENT;
const int DeviceInfo_DeviceRole_DeviceRole_ARRAYSIZE = DeviceInfo_DeviceRole_DeviceRole_MAX + 1;
const ::google::protobuf::EnumDescriptor* DeviceInfo_DeviceRole_descriptor();
inline const ::std::string& DeviceInfo_DeviceRole_Name(DeviceInfo_DeviceRole value) {
return ::google::protobuf::internal::NameOfEnum(
DeviceInfo_DeviceRole_descriptor(), value);
}
inline bool DeviceInfo_DeviceRole_Parse(
const ::std::string& name, DeviceInfo_DeviceRole* value) {
return ::google::protobuf::internal::ParseNamedEnum<DeviceInfo_DeviceRole>(
DeviceInfo_DeviceRole_descriptor(), name, value);
}
enum ReplyMessage_StatusType {
ReplyMessage_StatusType_ERROR = 0,
ReplyMessage_StatusType_CONNECTED = 1,
ReplyMessage_StatusType_DISCONNECTED = 2,
ReplyMessage_StatusType_DEVICEINFO = 3,
ReplyMessage_StatusType_DATA = 4,
ReplyMessage_StatusType_DATAREADY = 5,
ReplyMessage_StatusType_FILEINFO = 6,
ReplyMessage_StatusType_FILEREADY = 7,
ReplyMessage_StatusType_STREAM = 8,
ReplyMessage_StatusType_STREAMREADY = 9,
ReplyMessage_StatusType_BUSY = 10,
ReplyMessage_StatusType_STARTAUDIOSERVER = 11,
ReplyMessage_StatusType_CANCELSCREEN = 12,
ReplyMessage_StatusType_URGENTCLIENT = 13,
ReplyMessage_StatusType_URGENTSERVER = 14,
ReplyMessage_StatusType_REFUSE = 15
};
bool ReplyMessage_StatusType_IsValid(int value);
const ReplyMessage_StatusType ReplyMessage_StatusType_StatusType_MIN = ReplyMessage_StatusType_ERROR;
const ReplyMessage_StatusType ReplyMessage_StatusType_StatusType_MAX = ReplyMessage_StatusType_REFUSE;
const int ReplyMessage_StatusType_StatusType_ARRAYSIZE = ReplyMessage_StatusType_StatusType_MAX + 1;
const ::google::protobuf::EnumDescriptor* ReplyMessage_StatusType_descriptor();
inline const ::std::string& ReplyMessage_StatusType_Name(ReplyMessage_StatusType value) {
return ::google::protobuf::internal::NameOfEnum(
ReplyMessage_StatusType_descriptor(), value);
}
inline bool ReplyMessage_StatusType_Parse(
const ::std::string& name, ReplyMessage_StatusType* value) {
return ::google::protobuf::internal::ParseNamedEnum<ReplyMessage_StatusType>(
ReplyMessage_StatusType_descriptor(), name, value);
}
enum ReplyMessage_ConnType {
ReplyMessage_ConnType_ADB = 0,
ReplyMessage_ConnType_WIFI = 1,
ReplyMessage_ConnType_WIFIADB = 2
};
bool ReplyMessage_ConnType_IsValid(int value);
const ReplyMessage_ConnType ReplyMessage_ConnType_ConnType_MIN = ReplyMessage_ConnType_ADB;
const ReplyMessage_ConnType ReplyMessage_ConnType_ConnType_MAX = ReplyMessage_ConnType_WIFIADB;
const int ReplyMessage_ConnType_ConnType_ARRAYSIZE = ReplyMessage_ConnType_ConnType_MAX + 1;
const ::google::protobuf::EnumDescriptor* ReplyMessage_ConnType_descriptor();
inline const ::std::string& ReplyMessage_ConnType_Name(ReplyMessage_ConnType value) {
return ::google::protobuf::internal::NameOfEnum(
ReplyMessage_ConnType_descriptor(), value);
}
inline bool ReplyMessage_ConnType_Parse(
const ::std::string& name, ReplyMessage_ConnType* value) {
return ::google::protobuf::internal::ParseNamedEnum<ReplyMessage_ConnType>(
ReplyMessage_ConnType_descriptor(), name, value);
}
// ===================================================================
class ProtobufFileInfo : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:ProtobufFileInfo) */ {
public:
ProtobufFileInfo();
virtual ~ProtobufFileInfo();
ProtobufFileInfo(const ProtobufFileInfo& from);
inline ProtobufFileInfo& operator=(const ProtobufFileInfo& from) {
CopyFrom(from);
return *this;
}
#if LANG_CXX11
ProtobufFileInfo(ProtobufFileInfo&& from) noexcept
: ProtobufFileInfo() {
*this = ::std::move(from);
}
inline ProtobufFileInfo& operator=(ProtobufFileInfo&& from) noexcept {
if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
if (this != &from) InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
#endif
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 ProtobufFileInfo& default_instance();
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
static inline const ProtobufFileInfo* internal_default_instance() {
return reinterpret_cast<const ProtobufFileInfo*>(
&_ProtobufFileInfo_default_instance_);
}
static constexpr int kIndexInFileMessages =
0;
void Swap(ProtobufFileInfo* other);
friend void swap(ProtobufFileInfo& a, ProtobufFileInfo& b) {
a.Swap(&b);
}
// implements Message ----------------------------------------------
inline ProtobufFileInfo* New() const final {
return CreateMaybeMessage<ProtobufFileInfo>(NULL);
}
ProtobufFileInfo* New(::google::protobuf::Arena* arena) const final {
return CreateMaybeMessage<ProtobufFileInfo>(arena);
}
void CopyFrom(const ::google::protobuf::Message& from) final;
void MergeFrom(const ::google::protobuf::Message& from) final;
void CopyFrom(const ProtobufFileInfo& from);
void MergeFrom(const ProtobufFileInfo& from);
void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const final;
::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const final;
int GetCachedSize() const final { return _cached_size_.Get(); }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const final;
void InternalSwap(ProtobufFileInfo* other);
private:
inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
return NULL;
}
inline void* MaybeArenaPtr() const {
return NULL;
}
public:
::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// required string name = 2;
bool has_name() const;
void clear_name();
static const int kNameFieldNumber = 2;
const ::std::string& name() const;
void set_name(const ::std::string& value);
#if LANG_CXX11
void set_name(::std::string&& value);
#endif
void set_name(const char* value);
void set_name(const char* value, size_t size);
::std::string* mutable_name();
::std::string* release_name();
void set_allocated_name(::std::string* name);
// required string path = 4;
bool has_path() const;
void clear_path();
static const int kPathFieldNumber = 4;
const ::std::string& path() const;
void set_path(const ::std::string& value);
#if LANG_CXX11
void set_path(::std::string&& value);
#endif
void set_path(const char* value);
void set_path(const char* value, size_t size);
::std::string* mutable_path();
::std::string* release_path();
void set_allocated_path(::std::string* path);
// required string date = 5;
bool has_date() const;
void clear_date();
static const int kDateFieldNumber = 5;
const ::std::string& date() const;
void set_date(const ::std::string& value);
#if LANG_CXX11
void set_date(::std::string&& value);
#endif
void set_date(const char* value);
void set_date(const char* value, size_t size);
::std::string* mutable_date();
::std::string* release_date();
void set_allocated_date(::std::string* date);
// optional string thumb_path = 7;
bool has_thumb_path() const;
void clear_thumb_path();
static const int kThumbPathFieldNumber = 7;
const ::std::string& thumb_path() const;
void set_thumb_path(const ::std::string& value);
#if LANG_CXX11
void set_thumb_path(::std::string&& value);
#endif
void set_thumb_path(const char* value);
void set_thumb_path(const char* value, size_t size);
::std::string* mutable_thumb_path();
::std::string* release_thumb_path();
void set_allocated_thumb_path(::std::string* thumb_path);
// required int64 id = 1;
bool has_id() const;
void clear_id();
static const int kIdFieldNumber = 1;
::google::protobuf::int64 id() const;
void set_id(::google::protobuf::int64 value);
// required int64 size = 3;
bool has_size() const;
void clear_size();
static const int kSizeFieldNumber = 3;
::google::protobuf::int64 size() const;
void set_size(::google::protobuf::int64 value);
// optional int64 duration = 6;
bool has_duration() const;
void clear_duration();
static const int kDurationFieldNumber = 6;
::google::protobuf::int64 duration() const;
void set_duration(::google::protobuf::int64 value);
// @@protoc_insertion_point(class_scope:ProtobufFileInfo)
private:
void set_has_id();
void clear_has_id();
void set_has_name();
void clear_has_name();
void set_has_size();
void clear_has_size();
void set_has_path();
void clear_has_path();
void set_has_date();
void clear_has_date();
void set_has_duration();
void clear_has_duration();
void set_has_thumb_path();
void clear_has_thumb_path();
// helper for ByteSizeLong()
size_t RequiredFieldsByteSizeFallback() const;
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
::google::protobuf::internal::HasBits<1> _has_bits_;
mutable ::google::protobuf::internal::CachedSize _cached_size_;
::google::protobuf::internal::ArenaStringPtr name_;
::google::protobuf::internal::ArenaStringPtr path_;
::google::protobuf::internal::ArenaStringPtr date_;
::google::protobuf::internal::ArenaStringPtr thumb_path_;
::google::protobuf::int64 id_;
::google::protobuf::int64 size_;
::google::protobuf::int64 duration_;
friend struct ::protobuf_messageserialize_2eproto::TableStruct;
};
// -------------------------------------------------------------------
class ProtobufFilesInfo : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:ProtobufFilesInfo) */ {
public:
ProtobufFilesInfo();
virtual ~ProtobufFilesInfo();
ProtobufFilesInfo(const ProtobufFilesInfo& from);
inline ProtobufFilesInfo& operator=(const ProtobufFilesInfo& from) {
CopyFrom(from);
return *this;
}
#if LANG_CXX11
ProtobufFilesInfo(ProtobufFilesInfo&& from) noexcept
: ProtobufFilesInfo() {
*this = ::std::move(from);
}
inline ProtobufFilesInfo& operator=(ProtobufFilesInfo&& from) noexcept {
if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
if (this != &from) InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
#endif
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 ProtobufFilesInfo& default_instance();
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
static inline const ProtobufFilesInfo* internal_default_instance() {
return reinterpret_cast<const ProtobufFilesInfo*>(
&_ProtobufFilesInfo_default_instance_);
}
static constexpr int kIndexInFileMessages =
1;
void Swap(ProtobufFilesInfo* other);
friend void swap(ProtobufFilesInfo& a, ProtobufFilesInfo& b) {
a.Swap(&b);
}
// implements Message ----------------------------------------------
inline ProtobufFilesInfo* New() const final {
return CreateMaybeMessage<ProtobufFilesInfo>(NULL);
}
ProtobufFilesInfo* New(::google::protobuf::Arena* arena) const final {
return CreateMaybeMessage<ProtobufFilesInfo>(arena);
}
void CopyFrom(const ::google::protobuf::Message& from) final;
void MergeFrom(const ::google::protobuf::Message& from) final;
void CopyFrom(const ProtobufFilesInfo& from);
void MergeFrom(const ProtobufFilesInfo& from);
void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const final;
::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const final;
int GetCachedSize() const final { return _cached_size_.Get(); }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const final;
void InternalSwap(ProtobufFilesInfo* other);
private:
inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
return NULL;
}
inline void* MaybeArenaPtr() const {
return NULL;
}
public:
::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// repeated .ProtobufFileInfo file_info = 1;
int file_info_size() const;
void clear_file_info();
static const int kFileInfoFieldNumber = 1;
::ProtobufFileInfo* mutable_file_info(int index);
::google::protobuf::RepeatedPtrField< ::ProtobufFileInfo >*
mutable_file_info();
const ::ProtobufFileInfo& file_info(int index) const;
::ProtobufFileInfo* add_file_info();
const ::google::protobuf::RepeatedPtrField< ::ProtobufFileInfo >&
file_info() const;
// @@protoc_insertion_point(class_scope:ProtobufFilesInfo)
private:
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
::google::protobuf::internal::HasBits<1> _has_bits_;
mutable ::google::protobuf::internal::CachedSize _cached_size_;
::google::protobuf::RepeatedPtrField< ::ProtobufFileInfo > file_info_;
friend struct ::protobuf_messageserialize_2eproto::TableStruct;
};
// -------------------------------------------------------------------
class FtpUserPwd : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:FtpUserPwd) */ {
public:
FtpUserPwd();
virtual ~FtpUserPwd();
FtpUserPwd(const FtpUserPwd& from);
inline FtpUserPwd& operator=(const FtpUserPwd& from) {
CopyFrom(from);
return *this;
}
#if LANG_CXX11
FtpUserPwd(FtpUserPwd&& from) noexcept
: FtpUserPwd() {
*this = ::std::move(from);
}
inline FtpUserPwd& operator=(FtpUserPwd&& from) noexcept {
if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
if (this != &from) InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
#endif
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 FtpUserPwd& default_instance();
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
static inline const FtpUserPwd* internal_default_instance() {
return reinterpret_cast<const FtpUserPwd*>(
&_FtpUserPwd_default_instance_);
}
static constexpr int kIndexInFileMessages =
2;
void Swap(FtpUserPwd* other);
friend void swap(FtpUserPwd& a, FtpUserPwd& b) {
a.Swap(&b);
}
// implements Message ----------------------------------------------
inline FtpUserPwd* New() const final {
return CreateMaybeMessage<FtpUserPwd>(NULL);
}
FtpUserPwd* New(::google::protobuf::Arena* arena) const final {
return CreateMaybeMessage<FtpUserPwd>(arena);
}
void CopyFrom(const ::google::protobuf::Message& from) final;
void MergeFrom(const ::google::protobuf::Message& from) final;
void CopyFrom(const FtpUserPwd& from);
void MergeFrom(const FtpUserPwd& from);
void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const final;
::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const final;
int GetCachedSize() const final { return _cached_size_.Get(); }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const final;
void InternalSwap(FtpUserPwd* other);
private:
inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
return NULL;
}
inline void* MaybeArenaPtr() const {
return NULL;
}
public:
::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// required string username = 1;
bool has_username() const;
void clear_username();
static const int kUsernameFieldNumber = 1;
const ::std::string& username() const;
void set_username(const ::std::string& value);
#if LANG_CXX11
void set_username(::std::string&& value);
#endif
void set_username(const char* value);
void set_username(const char* value, size_t size);
::std::string* mutable_username();
::std::string* release_username();
void set_allocated_username(::std::string* username);
// required string pwd = 2;
bool has_pwd() const;
void clear_pwd();
static const int kPwdFieldNumber = 2;
const ::std::string& pwd() const;
void set_pwd(const ::std::string& value);
#if LANG_CXX11
void set_pwd(::std::string&& value);
#endif
void set_pwd(const char* value);
void set_pwd(const char* value, size_t size);
::std::string* mutable_pwd();
::std::string* release_pwd();
void set_allocated_pwd(::std::string* pwd);
// @@protoc_insertion_point(class_scope:FtpUserPwd)
private:
void set_has_username();
void clear_has_username();
void set_has_pwd();
void clear_has_pwd();
// helper for ByteSizeLong()
size_t RequiredFieldsByteSizeFallback() const;
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
::google::protobuf::internal::HasBits<1> _has_bits_;
mutable ::google::protobuf::internal::CachedSize _cached_size_;
::google::protobuf::internal::ArenaStringPtr username_;
::google::protobuf::internal::ArenaStringPtr pwd_;
friend struct ::protobuf_messageserialize_2eproto::TableStruct;
};
// -------------------------------------------------------------------
class DeviceInfo : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:DeviceInfo) */ {
public:
DeviceInfo();
virtual ~DeviceInfo();
DeviceInfo(const DeviceInfo& from);
inline DeviceInfo& operator=(const DeviceInfo& from) {
CopyFrom(from);
return *this;
}
#if LANG_CXX11
DeviceInfo(DeviceInfo&& from) noexcept
: DeviceInfo() {
*this = ::std::move(from);
}
inline DeviceInfo& operator=(DeviceInfo&& from) noexcept {
if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
if (this != &from) InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
#endif
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 DeviceInfo& default_instance();
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
static inline const DeviceInfo* internal_default_instance() {
return reinterpret_cast<const DeviceInfo*>(
&_DeviceInfo_default_instance_);
}
static constexpr int kIndexInFileMessages =
3;
void Swap(DeviceInfo* other);
friend void swap(DeviceInfo& a, DeviceInfo& b) {
a.Swap(&b);
}
// implements Message ----------------------------------------------
inline DeviceInfo* New() const final {
return CreateMaybeMessage<DeviceInfo>(NULL);
}
DeviceInfo* New(::google::protobuf::Arena* arena) const final {
return CreateMaybeMessage<DeviceInfo>(arena);
}
void CopyFrom(const ::google::protobuf::Message& from) final;
void MergeFrom(const ::google::protobuf::Message& from) final;
void CopyFrom(const DeviceInfo& from);
void MergeFrom(const DeviceInfo& from);
void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const final;
::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const final;
int GetCachedSize() const final { return _cached_size_.Get(); }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const final;
void InternalSwap(DeviceInfo* other);
private:
inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
return NULL;
}
inline void* MaybeArenaPtr() const {
return NULL;
}
public:
::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
typedef DeviceInfo_DeviceType DeviceType;
static const DeviceType PC =
DeviceInfo_DeviceType_PC;
static const DeviceType ANDROID =
DeviceInfo_DeviceType_ANDROID;
static const DeviceType UNKNOWN =
DeviceInfo_DeviceType_UNKNOWN;
static inline bool DeviceType_IsValid(int value) {
return DeviceInfo_DeviceType_IsValid(value);
}
static const DeviceType DeviceType_MIN =
DeviceInfo_DeviceType_DeviceType_MIN;
static const DeviceType DeviceType_MAX =
DeviceInfo_DeviceType_DeviceType_MAX;
static const int DeviceType_ARRAYSIZE =
DeviceInfo_DeviceType_DeviceType_ARRAYSIZE;
static inline const ::google::protobuf::EnumDescriptor*
DeviceType_descriptor() {
return DeviceInfo_DeviceType_descriptor();
}
static inline const ::std::string& DeviceType_Name(DeviceType value) {
return DeviceInfo_DeviceType_Name(value);
}
static inline bool DeviceType_Parse(const ::std::string& name,
DeviceType* value) {
return DeviceInfo_DeviceType_Parse(name, value);
}
typedef DeviceInfo_DeviceRole DeviceRole;
static const DeviceRole INITIATOR =
DeviceInfo_DeviceRole_INITIATOR;
static const DeviceRole RECIPIENT =
DeviceInfo_DeviceRole_RECIPIENT;
static inline bool DeviceRole_IsValid(int value) {
return DeviceInfo_DeviceRole_IsValid(value);
}
static const DeviceRole DeviceRole_MIN =
DeviceInfo_DeviceRole_DeviceRole_MIN;
static const DeviceRole DeviceRole_MAX =
DeviceInfo_DeviceRole_DeviceRole_MAX;
static const int DeviceRole_ARRAYSIZE =
DeviceInfo_DeviceRole_DeviceRole_ARRAYSIZE;
static inline const ::google::protobuf::EnumDescriptor*
DeviceRole_descriptor() {
return DeviceInfo_DeviceRole_descriptor();
}
static inline const ::std::string& DeviceRole_Name(DeviceRole value) {
return DeviceInfo_DeviceRole_Name(value);
}
static inline bool DeviceRole_Parse(const ::std::string& name,
DeviceRole* value) {
return DeviceInfo_DeviceRole_Parse(name, value);
}
// accessors -------------------------------------------------------
// required string uuid = 1;
bool has_uuid() const;
void clear_uuid();
static const int kUuidFieldNumber = 1;
const ::std::string& uuid() const;
void set_uuid(const ::std::string& value);
#if LANG_CXX11
void set_uuid(::std::string&& value);
#endif
void set_uuid(const char* value);
void set_uuid(const char* value, size_t size);
::std::string* mutable_uuid();
::std::string* release_uuid();
void set_allocated_uuid(::std::string* uuid);
// required string device_name = 2;
bool has_device_name() const;
void clear_device_name();
static const int kDeviceNameFieldNumber = 2;
const ::std::string& device_name() const;
void set_device_name(const ::std::string& value);
#if LANG_CXX11
void set_device_name(::std::string&& value);
#endif
void set_device_name(const char* value);
void set_device_name(const char* value, size_t size);
::std::string* mutable_device_name();
::std::string* release_device_name();
void set_allocated_device_name(::std::string* device_name);
// optional .FtpUserPwd ftp_userpwd = 4;
bool has_ftp_userpwd() const;
void clear_ftp_userpwd();
static const int kFtpUserpwdFieldNumber = 4;
private:
const ::FtpUserPwd& _internal_ftp_userpwd() const;
public:
const ::FtpUserPwd& ftp_userpwd() const;
::FtpUserPwd* release_ftp_userpwd();
::FtpUserPwd* mutable_ftp_userpwd();
void set_allocated_ftp_userpwd(::FtpUserPwd* ftp_userpwd);
// required .DeviceInfo.DeviceType device_type = 3;
bool has_device_type() const;
void clear_device_type();
static const int kDeviceTypeFieldNumber = 3;
::DeviceInfo_DeviceType device_type() const;
void set_device_type(::DeviceInfo_DeviceType value);
// required .DeviceInfo.DeviceRole device_role = 5;
bool has_device_role() const;
void clear_device_role();
static const int kDeviceRoleFieldNumber = 5;
::DeviceInfo_DeviceRole device_role() const;
void set_device_role(::DeviceInfo_DeviceRole value);
// @@protoc_insertion_point(class_scope:DeviceInfo)
private:
void set_has_uuid();
void clear_has_uuid();
void set_has_device_name();
void clear_has_device_name();
void set_has_device_type();
void clear_has_device_type();
void set_has_ftp_userpwd();
void clear_has_ftp_userpwd();
void set_has_device_role();
void clear_has_device_role();
// helper for ByteSizeLong()
size_t RequiredFieldsByteSizeFallback() const;
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
::google::protobuf::internal::HasBits<1> _has_bits_;
mutable ::google::protobuf::internal::CachedSize _cached_size_;
::google::protobuf::internal::ArenaStringPtr uuid_;
::google::protobuf::internal::ArenaStringPtr device_name_;
::FtpUserPwd* ftp_userpwd_;
int device_type_;
int device_role_;
friend struct ::protobuf_messageserialize_2eproto::TableStruct;
};
// -------------------------------------------------------------------
class ReplyMessage : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:ReplyMessage) */ {
public:
ReplyMessage();
virtual ~ReplyMessage();
ReplyMessage(const ReplyMessage& from);
inline ReplyMessage& operator=(const ReplyMessage& from) {
CopyFrom(from);
return *this;
}
#if LANG_CXX11
ReplyMessage(ReplyMessage&& from) noexcept
: ReplyMessage() {
*this = ::std::move(from);
}
inline ReplyMessage& operator=(ReplyMessage&& from) noexcept {
if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
if (this != &from) InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
#endif
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 ReplyMessage& default_instance();
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
static inline const ReplyMessage* internal_default_instance() {
return reinterpret_cast<const ReplyMessage*>(
&_ReplyMessage_default_instance_);
}
static constexpr int kIndexInFileMessages =
4;
void Swap(ReplyMessage* other);
friend void swap(ReplyMessage& a, ReplyMessage& b) {
a.Swap(&b);
}
// implements Message ----------------------------------------------
inline ReplyMessage* New() const final {
return CreateMaybeMessage<ReplyMessage>(NULL);
}
ReplyMessage* New(::google::protobuf::Arena* arena) const final {
return CreateMaybeMessage<ReplyMessage>(arena);
}
void CopyFrom(const ::google::protobuf::Message& from) final;
void MergeFrom(const ::google::protobuf::Message& from) final;
void CopyFrom(const ReplyMessage& from);
void MergeFrom(const ReplyMessage& from);
void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const final;
::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const final;
int GetCachedSize() const final { return _cached_size_.Get(); }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const final;
void InternalSwap(ReplyMessage* other);
private:
inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
return NULL;
}
inline void* MaybeArenaPtr() const {
return NULL;
}
public:
::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
typedef ReplyMessage_StatusType StatusType;
static const StatusType ERROR =
ReplyMessage_StatusType_ERROR;
static const StatusType CONNECTED =
ReplyMessage_StatusType_CONNECTED;
static const StatusType DISCONNECTED =
ReplyMessage_StatusType_DISCONNECTED;
static const StatusType DEVICEINFO =
ReplyMessage_StatusType_DEVICEINFO;
static const StatusType DATA =
ReplyMessage_StatusType_DATA;
static const StatusType DATAREADY =
ReplyMessage_StatusType_DATAREADY;
static const StatusType FILEINFO =
ReplyMessage_StatusType_FILEINFO;
static const StatusType FILEREADY =
ReplyMessage_StatusType_FILEREADY;
static const StatusType STREAM =
ReplyMessage_StatusType_STREAM;
static const StatusType STREAMREADY =
ReplyMessage_StatusType_STREAMREADY;
static const StatusType BUSY =
ReplyMessage_StatusType_BUSY;
static const StatusType STARTAUDIOSERVER =
ReplyMessage_StatusType_STARTAUDIOSERVER;
static const StatusType CANCELSCREEN =
ReplyMessage_StatusType_CANCELSCREEN;
static const StatusType URGENTCLIENT =
ReplyMessage_StatusType_URGENTCLIENT;
static const StatusType URGENTSERVER =
ReplyMessage_StatusType_URGENTSERVER;
static const StatusType REFUSE =
ReplyMessage_StatusType_REFUSE;
static inline bool StatusType_IsValid(int value) {
return ReplyMessage_StatusType_IsValid(value);
}
static const StatusType StatusType_MIN =
ReplyMessage_StatusType_StatusType_MIN;
static const StatusType StatusType_MAX =
ReplyMessage_StatusType_StatusType_MAX;
static const int StatusType_ARRAYSIZE =
ReplyMessage_StatusType_StatusType_ARRAYSIZE;
static inline const ::google::protobuf::EnumDescriptor*
StatusType_descriptor() {
return ReplyMessage_StatusType_descriptor();
}
static inline const ::std::string& StatusType_Name(StatusType value) {
return ReplyMessage_StatusType_Name(value);
}
static inline bool StatusType_Parse(const ::std::string& name,
StatusType* value) {
return ReplyMessage_StatusType_Parse(name, value);
}
typedef ReplyMessage_ConnType ConnType;
static const ConnType ADB =
ReplyMessage_ConnType_ADB;
static const ConnType WIFI =
ReplyMessage_ConnType_WIFI;
static const ConnType WIFIADB =
ReplyMessage_ConnType_WIFIADB;
static inline bool ConnType_IsValid(int value) {
return ReplyMessage_ConnType_IsValid(value);
}
static const ConnType ConnType_MIN =
ReplyMessage_ConnType_ConnType_MIN;
static const ConnType ConnType_MAX =
ReplyMessage_ConnType_ConnType_MAX;
static const int ConnType_ARRAYSIZE =
ReplyMessage_ConnType_ConnType_ARRAYSIZE;
static inline const ::google::protobuf::EnumDescriptor*
ConnType_descriptor() {
return ReplyMessage_ConnType_descriptor();
}
static inline const ::std::string& ConnType_Name(ConnType value) {
return ReplyMessage_ConnType_Name(value);
}
static inline bool ConnType_Parse(const ::std::string& name,
ConnType* value) {
return ReplyMessage_ConnType_Parse(name, value);
}
// accessors -------------------------------------------------------
// optional string error_string = 6;
bool has_error_string() const;
void clear_error_string();
static const int kErrorStringFieldNumber = 6;
const ::std::string& error_string() const;
void set_error_string(const ::std::string& value);
#if LANG_CXX11
void set_error_string(::std::string&& value);
#endif
void set_error_string(const char* value);
void set_error_string(const char* value, size_t size);
::std::string* mutable_error_string();
::std::string* release_error_string();
void set_allocated_error_string(::std::string* error_string);
// optional .DeviceInfo device_info = 3;
bool has_device_info() const;
void clear_device_info();
static const int kDeviceInfoFieldNumber = 3;
private:
const ::DeviceInfo& _internal_device_info() const;
public:
const ::DeviceInfo& device_info() const;
::DeviceInfo* release_device_info();
::DeviceInfo* mutable_device_info();
void set_allocated_device_info(::DeviceInfo* device_info);
// optional .ProtobufFilesInfo files_info = 4;
bool has_files_info() const;
void clear_files_info();
static const int kFilesInfoFieldNumber = 4;
private:
const ::ProtobufFilesInfo& _internal_files_info() const;
public:
const ::ProtobufFilesInfo& files_info() const;
::ProtobufFilesInfo* release_files_info();
::ProtobufFilesInfo* mutable_files_info();
void set_allocated_files_info(::ProtobufFilesInfo* files_info);
// optional int64 dataSize = 2;
bool has_datasize() const;
void clear_datasize();
static const int kDataSizeFieldNumber = 2;
::google::protobuf::int64 datasize() const;
void set_datasize(::google::protobuf::int64 value);
// required .ReplyMessage.StatusType status = 1;
bool has_status() const;
void clear_status();
static const int kStatusFieldNumber = 1;
::ReplyMessage_StatusType status() const;
void set_status(::ReplyMessage_StatusType value);
// optional .ReplyMessage.ConnType conn_type = 5;
bool has_conn_type() const;
void clear_conn_type();
static const int kConnTypeFieldNumber = 5;
::ReplyMessage_ConnType conn_type() const;
void set_conn_type(::ReplyMessage_ConnType value);
// @@protoc_insertion_point(class_scope:ReplyMessage)
private:
void set_has_status();
void clear_has_status();
void set_has_datasize();
void clear_has_datasize();
void set_has_device_info();
void clear_has_device_info();
void set_has_files_info();
void clear_has_files_info();
void set_has_conn_type();
void clear_has_conn_type();
void set_has_error_string();
void clear_has_error_string();
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
::google::protobuf::internal::HasBits<1> _has_bits_;
mutable ::google::protobuf::internal::CachedSize _cached_size_;
::google::protobuf::internal::ArenaStringPtr error_string_;
::DeviceInfo* device_info_;
::ProtobufFilesInfo* files_info_;
::google::protobuf::int64 datasize_;
int status_;
int conn_type_;
friend struct ::protobuf_messageserialize_2eproto::TableStruct;
};
// ===================================================================
// ===================================================================
#ifdef __GNUC__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
#endif // __GNUC__
// ProtobufFileInfo
// required int64 id = 1;
inline bool ProtobufFileInfo::has_id() const {
return (_has_bits_[0] & 0x00000010u) != 0;
}
inline void ProtobufFileInfo::set_has_id() {
_has_bits_[0] |= 0x00000010u;
}
inline void ProtobufFileInfo::clear_has_id() {
_has_bits_[0] &= ~0x00000010u;
}
inline void ProtobufFileInfo::clear_id() {
id_ = GOOGLE_LONGLONG(0);
clear_has_id();
}
inline ::google::protobuf::int64 ProtobufFileInfo::id() const {
// @@protoc_insertion_point(field_get:ProtobufFileInfo.id)
return id_;
}
inline void ProtobufFileInfo::set_id(::google::protobuf::int64 value) {
set_has_id();
id_ = value;
// @@protoc_insertion_point(field_set:ProtobufFileInfo.id)
}
// required string name = 2;
inline bool ProtobufFileInfo::has_name() const {
return (_has_bits_[0] & 0x00000001u) != 0;
}
inline void ProtobufFileInfo::set_has_name() {
_has_bits_[0] |= 0x00000001u;
}
inline void ProtobufFileInfo::clear_has_name() {
_has_bits_[0] &= ~0x00000001u;
}
inline void ProtobufFileInfo::clear_name() {
name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
clear_has_name();
}
inline const ::std::string& ProtobufFileInfo::name() const {
// @@protoc_insertion_point(field_get:ProtobufFileInfo.name)
return name_.GetNoArena();
}
inline void ProtobufFileInfo::set_name(const ::std::string& value) {
set_has_name();
name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
// @@protoc_insertion_point(field_set:ProtobufFileInfo.name)
}
#if LANG_CXX11
inline void ProtobufFileInfo::set_name(::std::string&& value) {
set_has_name();
name_.SetNoArena(
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
// @@protoc_insertion_point(field_set_rvalue:ProtobufFileInfo.name)
}
#endif
inline void ProtobufFileInfo::set_name(const char* value) {
GOOGLE_DCHECK(value != NULL);
set_has_name();
name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
// @@protoc_insertion_point(field_set_char:ProtobufFileInfo.name)
}
inline void ProtobufFileInfo::set_name(const char* value, size_t size) {
set_has_name();
name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(reinterpret_cast<const char*>(value), size));
// @@protoc_insertion_point(field_set_pointer:ProtobufFileInfo.name)
}
inline ::std::string* ProtobufFileInfo::mutable_name() {
set_has_name();
// @@protoc_insertion_point(field_mutable:ProtobufFileInfo.name)
return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* ProtobufFileInfo::release_name() {
// @@protoc_insertion_point(field_release:ProtobufFileInfo.name)
if (!has_name()) {
return NULL;
}
clear_has_name();
return name_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void ProtobufFileInfo::set_allocated_name(::std::string* name) {
if (name != NULL) {
set_has_name();
} else {
clear_has_name();
}
name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
// @@protoc_insertion_point(field_set_allocated:ProtobufFileInfo.name)
}
// required int64 size = 3;
inline bool ProtobufFileInfo::has_size() const {
return (_has_bits_[0] & 0x00000020u) != 0;
}
inline void ProtobufFileInfo::set_has_size() {
_has_bits_[0] |= 0x00000020u;
}
inline void ProtobufFileInfo::clear_has_size() {
_has_bits_[0] &= ~0x00000020u;
}
inline void ProtobufFileInfo::clear_size() {
size_ = GOOGLE_LONGLONG(0);
clear_has_size();
}
inline ::google::protobuf::int64 ProtobufFileInfo::size() const {
// @@protoc_insertion_point(field_get:ProtobufFileInfo.size)
return size_;
}
inline void ProtobufFileInfo::set_size(::google::protobuf::int64 value) {
set_has_size();
size_ = value;
// @@protoc_insertion_point(field_set:ProtobufFileInfo.size)
}
// required string path = 4;
inline bool ProtobufFileInfo::has_path() const {
return (_has_bits_[0] & 0x00000002u) != 0;
}
inline void ProtobufFileInfo::set_has_path() {
_has_bits_[0] |= 0x00000002u;
}
inline void ProtobufFileInfo::clear_has_path() {
_has_bits_[0] &= ~0x00000002u;
}
inline void ProtobufFileInfo::clear_path() {
path_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
clear_has_path();
}
inline const ::std::string& ProtobufFileInfo::path() const {
// @@protoc_insertion_point(field_get:ProtobufFileInfo.path)
return path_.GetNoArena();
}
inline void ProtobufFileInfo::set_path(const ::std::string& value) {
set_has_path();
path_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
// @@protoc_insertion_point(field_set:ProtobufFileInfo.path)
}
#if LANG_CXX11
inline void ProtobufFileInfo::set_path(::std::string&& value) {
set_has_path();
path_.SetNoArena(
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
// @@protoc_insertion_point(field_set_rvalue:ProtobufFileInfo.path)
}
#endif
inline void ProtobufFileInfo::set_path(const char* value) {
GOOGLE_DCHECK(value != NULL);
set_has_path();
path_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
// @@protoc_insertion_point(field_set_char:ProtobufFileInfo.path)
}
inline void ProtobufFileInfo::set_path(const char* value, size_t size) {
set_has_path();
path_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(reinterpret_cast<const char*>(value), size));
// @@protoc_insertion_point(field_set_pointer:ProtobufFileInfo.path)
}
inline ::std::string* ProtobufFileInfo::mutable_path() {
set_has_path();
// @@protoc_insertion_point(field_mutable:ProtobufFileInfo.path)
return path_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* ProtobufFileInfo::release_path() {
// @@protoc_insertion_point(field_release:ProtobufFileInfo.path)
if (!has_path()) {
return NULL;
}
clear_has_path();
return path_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void ProtobufFileInfo::set_allocated_path(::std::string* path) {
if (path != NULL) {
set_has_path();
} else {
clear_has_path();
}
path_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), path);
// @@protoc_insertion_point(field_set_allocated:ProtobufFileInfo.path)
}
// required string date = 5;
inline bool ProtobufFileInfo::has_date() const {
return (_has_bits_[0] & 0x00000004u) != 0;
}
inline void ProtobufFileInfo::set_has_date() {
_has_bits_[0] |= 0x00000004u;
}
inline void ProtobufFileInfo::clear_has_date() {
_has_bits_[0] &= ~0x00000004u;
}
inline void ProtobufFileInfo::clear_date() {
date_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
clear_has_date();
}
inline const ::std::string& ProtobufFileInfo::date() const {
// @@protoc_insertion_point(field_get:ProtobufFileInfo.date)
return date_.GetNoArena();
}
inline void ProtobufFileInfo::set_date(const ::std::string& value) {
set_has_date();
date_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
// @@protoc_insertion_point(field_set:ProtobufFileInfo.date)
}
#if LANG_CXX11
inline void ProtobufFileInfo::set_date(::std::string&& value) {
set_has_date();
date_.SetNoArena(
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
// @@protoc_insertion_point(field_set_rvalue:ProtobufFileInfo.date)
}
#endif
inline void ProtobufFileInfo::set_date(const char* value) {
GOOGLE_DCHECK(value != NULL);
set_has_date();
date_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
// @@protoc_insertion_point(field_set_char:ProtobufFileInfo.date)
}
inline void ProtobufFileInfo::set_date(const char* value, size_t size) {
set_has_date();
date_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(reinterpret_cast<const char*>(value), size));
// @@protoc_insertion_point(field_set_pointer:ProtobufFileInfo.date)
}
inline ::std::string* ProtobufFileInfo::mutable_date() {
set_has_date();
// @@protoc_insertion_point(field_mutable:ProtobufFileInfo.date)
return date_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* ProtobufFileInfo::release_date() {
// @@protoc_insertion_point(field_release:ProtobufFileInfo.date)
if (!has_date()) {
return NULL;
}
clear_has_date();
return date_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void ProtobufFileInfo::set_allocated_date(::std::string* date) {
if (date != NULL) {
set_has_date();
} else {
clear_has_date();
}
date_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), date);
// @@protoc_insertion_point(field_set_allocated:ProtobufFileInfo.date)
}
// optional int64 duration = 6;
inline bool ProtobufFileInfo::has_duration() const {
return (_has_bits_[0] & 0x00000040u) != 0;
}
inline void ProtobufFileInfo::set_has_duration() {
_has_bits_[0] |= 0x00000040u;
}
inline void ProtobufFileInfo::clear_has_duration() {
_has_bits_[0] &= ~0x00000040u;
}
inline void ProtobufFileInfo::clear_duration() {
duration_ = GOOGLE_LONGLONG(0);
clear_has_duration();
}
inline ::google::protobuf::int64 ProtobufFileInfo::duration() const {
// @@protoc_insertion_point(field_get:ProtobufFileInfo.duration)
return duration_;
}
inline void ProtobufFileInfo::set_duration(::google::protobuf::int64 value) {
set_has_duration();
duration_ = value;
// @@protoc_insertion_point(field_set:ProtobufFileInfo.duration)
}
// optional string thumb_path = 7;
inline bool ProtobufFileInfo::has_thumb_path() const {
return (_has_bits_[0] & 0x00000008u) != 0;
}
inline void ProtobufFileInfo::set_has_thumb_path() {
_has_bits_[0] |= 0x00000008u;
}
inline void ProtobufFileInfo::clear_has_thumb_path() {
_has_bits_[0] &= ~0x00000008u;
}
inline void ProtobufFileInfo::clear_thumb_path() {
thumb_path_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
clear_has_thumb_path();
}
inline const ::std::string& ProtobufFileInfo::thumb_path() const {
// @@protoc_insertion_point(field_get:ProtobufFileInfo.thumb_path)
return thumb_path_.GetNoArena();
}
inline void ProtobufFileInfo::set_thumb_path(const ::std::string& value) {
set_has_thumb_path();
thumb_path_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
// @@protoc_insertion_point(field_set:ProtobufFileInfo.thumb_path)
}
#if LANG_CXX11
inline void ProtobufFileInfo::set_thumb_path(::std::string&& value) {
set_has_thumb_path();
thumb_path_.SetNoArena(
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
// @@protoc_insertion_point(field_set_rvalue:ProtobufFileInfo.thumb_path)
}
#endif
inline void ProtobufFileInfo::set_thumb_path(const char* value) {
GOOGLE_DCHECK(value != NULL);
set_has_thumb_path();
thumb_path_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
// @@protoc_insertion_point(field_set_char:ProtobufFileInfo.thumb_path)
}
inline void ProtobufFileInfo::set_thumb_path(const char* value, size_t size) {
set_has_thumb_path();
thumb_path_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(reinterpret_cast<const char*>(value), size));
// @@protoc_insertion_point(field_set_pointer:ProtobufFileInfo.thumb_path)
}
inline ::std::string* ProtobufFileInfo::mutable_thumb_path() {
set_has_thumb_path();
// @@protoc_insertion_point(field_mutable:ProtobufFileInfo.thumb_path)
return thumb_path_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* ProtobufFileInfo::release_thumb_path() {
// @@protoc_insertion_point(field_release:ProtobufFileInfo.thumb_path)
if (!has_thumb_path()) {
return NULL;
}
clear_has_thumb_path();
return thumb_path_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void ProtobufFileInfo::set_allocated_thumb_path(::std::string* thumb_path) {
if (thumb_path != NULL) {
set_has_thumb_path();
} else {
clear_has_thumb_path();
}
thumb_path_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), thumb_path);
// @@protoc_insertion_point(field_set_allocated:ProtobufFileInfo.thumb_path)
}
// -------------------------------------------------------------------
// ProtobufFilesInfo
// repeated .ProtobufFileInfo file_info = 1;
inline int ProtobufFilesInfo::file_info_size() const {
return file_info_.size();
}
inline void ProtobufFilesInfo::clear_file_info() {
file_info_.Clear();
}
inline ::ProtobufFileInfo* ProtobufFilesInfo::mutable_file_info(int index) {
// @@protoc_insertion_point(field_mutable:ProtobufFilesInfo.file_info)
return file_info_.Mutable(index);
}
inline ::google::protobuf::RepeatedPtrField< ::ProtobufFileInfo >*
ProtobufFilesInfo::mutable_file_info() {
// @@protoc_insertion_point(field_mutable_list:ProtobufFilesInfo.file_info)
return &file_info_;
}
inline const ::ProtobufFileInfo& ProtobufFilesInfo::file_info(int index) const {
// @@protoc_insertion_point(field_get:ProtobufFilesInfo.file_info)
return file_info_.Get(index);
}
inline ::ProtobufFileInfo* ProtobufFilesInfo::add_file_info() {
// @@protoc_insertion_point(field_add:ProtobufFilesInfo.file_info)
return file_info_.Add();
}
inline const ::google::protobuf::RepeatedPtrField< ::ProtobufFileInfo >&
ProtobufFilesInfo::file_info() const {
// @@protoc_insertion_point(field_list:ProtobufFilesInfo.file_info)
return file_info_;
}
// -------------------------------------------------------------------
// FtpUserPwd
// required string username = 1;
inline bool FtpUserPwd::has_username() const {
return (_has_bits_[0] & 0x00000001u) != 0;
}
inline void FtpUserPwd::set_has_username() {
_has_bits_[0] |= 0x00000001u;
}
inline void FtpUserPwd::clear_has_username() {
_has_bits_[0] &= ~0x00000001u;
}
inline void FtpUserPwd::clear_username() {
username_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
clear_has_username();
}
inline const ::std::string& FtpUserPwd::username() const {
// @@protoc_insertion_point(field_get:FtpUserPwd.username)
return username_.GetNoArena();
}
inline void FtpUserPwd::set_username(const ::std::string& value) {
set_has_username();
username_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
// @@protoc_insertion_point(field_set:FtpUserPwd.username)
}
#if LANG_CXX11
inline void FtpUserPwd::set_username(::std::string&& value) {
set_has_username();
username_.SetNoArena(
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
// @@protoc_insertion_point(field_set_rvalue:FtpUserPwd.username)
}
#endif
inline void FtpUserPwd::set_username(const char* value) {
GOOGLE_DCHECK(value != NULL);
set_has_username();
username_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
// @@protoc_insertion_point(field_set_char:FtpUserPwd.username)
}
inline void FtpUserPwd::set_username(const char* value, size_t size) {
set_has_username();
username_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(reinterpret_cast<const char*>(value), size));
// @@protoc_insertion_point(field_set_pointer:FtpUserPwd.username)
}
inline ::std::string* FtpUserPwd::mutable_username() {
set_has_username();
// @@protoc_insertion_point(field_mutable:FtpUserPwd.username)
return username_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* FtpUserPwd::release_username() {
// @@protoc_insertion_point(field_release:FtpUserPwd.username)
if (!has_username()) {
return NULL;
}
clear_has_username();
return username_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void FtpUserPwd::set_allocated_username(::std::string* username) {
if (username != NULL) {
set_has_username();
} else {
clear_has_username();
}
username_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), username);
// @@protoc_insertion_point(field_set_allocated:FtpUserPwd.username)
}
// required string pwd = 2;
inline bool FtpUserPwd::has_pwd() const {
return (_has_bits_[0] & 0x00000002u) != 0;
}
inline void FtpUserPwd::set_has_pwd() {
_has_bits_[0] |= 0x00000002u;
}
inline void FtpUserPwd::clear_has_pwd() {
_has_bits_[0] &= ~0x00000002u;
}
inline void FtpUserPwd::clear_pwd() {
pwd_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
clear_has_pwd();
}
inline const ::std::string& FtpUserPwd::pwd() const {
// @@protoc_insertion_point(field_get:FtpUserPwd.pwd)
return pwd_.GetNoArena();
}
inline void FtpUserPwd::set_pwd(const ::std::string& value) {
set_has_pwd();
pwd_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
// @@protoc_insertion_point(field_set:FtpUserPwd.pwd)
}
#if LANG_CXX11
inline void FtpUserPwd::set_pwd(::std::string&& value) {
set_has_pwd();
pwd_.SetNoArena(
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
// @@protoc_insertion_point(field_set_rvalue:FtpUserPwd.pwd)
}
#endif
inline void FtpUserPwd::set_pwd(const char* value) {
GOOGLE_DCHECK(value != NULL);
set_has_pwd();
pwd_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
// @@protoc_insertion_point(field_set_char:FtpUserPwd.pwd)
}
inline void FtpUserPwd::set_pwd(const char* value, size_t size) {
set_has_pwd();
pwd_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(reinterpret_cast<const char*>(value), size));
// @@protoc_insertion_point(field_set_pointer:FtpUserPwd.pwd)
}
inline ::std::string* FtpUserPwd::mutable_pwd() {
set_has_pwd();
// @@protoc_insertion_point(field_mutable:FtpUserPwd.pwd)
return pwd_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* FtpUserPwd::release_pwd() {
// @@protoc_insertion_point(field_release:FtpUserPwd.pwd)
if (!has_pwd()) {
return NULL;
}
clear_has_pwd();
return pwd_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void FtpUserPwd::set_allocated_pwd(::std::string* pwd) {
if (pwd != NULL) {
set_has_pwd();
} else {
clear_has_pwd();
}
pwd_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), pwd);
// @@protoc_insertion_point(field_set_allocated:FtpUserPwd.pwd)
}
// -------------------------------------------------------------------
// DeviceInfo
// required string uuid = 1;
inline bool DeviceInfo::has_uuid() const {
return (_has_bits_[0] & 0x00000001u) != 0;
}
inline void DeviceInfo::set_has_uuid() {
_has_bits_[0] |= 0x00000001u;
}
inline void DeviceInfo::clear_has_uuid() {
_has_bits_[0] &= ~0x00000001u;
}
inline void DeviceInfo::clear_uuid() {
uuid_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
clear_has_uuid();
}
inline const ::std::string& DeviceInfo::uuid() const {
// @@protoc_insertion_point(field_get:DeviceInfo.uuid)
return uuid_.GetNoArena();
}
inline void DeviceInfo::set_uuid(const ::std::string& value) {
set_has_uuid();
uuid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
// @@protoc_insertion_point(field_set:DeviceInfo.uuid)
}
#if LANG_CXX11
inline void DeviceInfo::set_uuid(::std::string&& value) {
set_has_uuid();
uuid_.SetNoArena(
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
// @@protoc_insertion_point(field_set_rvalue:DeviceInfo.uuid)
}
#endif
inline void DeviceInfo::set_uuid(const char* value) {
GOOGLE_DCHECK(value != NULL);
set_has_uuid();
uuid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
// @@protoc_insertion_point(field_set_char:DeviceInfo.uuid)
}
inline void DeviceInfo::set_uuid(const char* value, size_t size) {
set_has_uuid();
uuid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(reinterpret_cast<const char*>(value), size));
// @@protoc_insertion_point(field_set_pointer:DeviceInfo.uuid)
}
inline ::std::string* DeviceInfo::mutable_uuid() {
set_has_uuid();
// @@protoc_insertion_point(field_mutable:DeviceInfo.uuid)
return uuid_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* DeviceInfo::release_uuid() {
// @@protoc_insertion_point(field_release:DeviceInfo.uuid)
if (!has_uuid()) {
return NULL;
}
clear_has_uuid();
return uuid_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void DeviceInfo::set_allocated_uuid(::std::string* uuid) {
if (uuid != NULL) {
set_has_uuid();
} else {
clear_has_uuid();
}
uuid_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), uuid);
// @@protoc_insertion_point(field_set_allocated:DeviceInfo.uuid)
}
// required string device_name = 2;
inline bool DeviceInfo::has_device_name() const {
return (_has_bits_[0] & 0x00000002u) != 0;
}
inline void DeviceInfo::set_has_device_name() {
_has_bits_[0] |= 0x00000002u;
}
inline void DeviceInfo::clear_has_device_name() {
_has_bits_[0] &= ~0x00000002u;
}
inline void DeviceInfo::clear_device_name() {
device_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
clear_has_device_name();
}
inline const ::std::string& DeviceInfo::device_name() const {
// @@protoc_insertion_point(field_get:DeviceInfo.device_name)
return device_name_.GetNoArena();
}
inline void DeviceInfo::set_device_name(const ::std::string& value) {
set_has_device_name();
device_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
// @@protoc_insertion_point(field_set:DeviceInfo.device_name)
}
#if LANG_CXX11
inline void DeviceInfo::set_device_name(::std::string&& value) {
set_has_device_name();
device_name_.SetNoArena(
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
// @@protoc_insertion_point(field_set_rvalue:DeviceInfo.device_name)
}
#endif
inline void DeviceInfo::set_device_name(const char* value) {
GOOGLE_DCHECK(value != NULL);
set_has_device_name();
device_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
// @@protoc_insertion_point(field_set_char:DeviceInfo.device_name)
}
inline void DeviceInfo::set_device_name(const char* value, size_t size) {
set_has_device_name();
device_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(reinterpret_cast<const char*>(value), size));
// @@protoc_insertion_point(field_set_pointer:DeviceInfo.device_name)
}
inline ::std::string* DeviceInfo::mutable_device_name() {
set_has_device_name();
// @@protoc_insertion_point(field_mutable:DeviceInfo.device_name)
return device_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* DeviceInfo::release_device_name() {
// @@protoc_insertion_point(field_release:DeviceInfo.device_name)
if (!has_device_name()) {
return NULL;
}
clear_has_device_name();
return device_name_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void DeviceInfo::set_allocated_device_name(::std::string* device_name) {
if (device_name != NULL) {
set_has_device_name();
} else {
clear_has_device_name();
}
device_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), device_name);
// @@protoc_insertion_point(field_set_allocated:DeviceInfo.device_name)
}
// required .DeviceInfo.DeviceType device_type = 3;
inline bool DeviceInfo::has_device_type() const {
return (_has_bits_[0] & 0x00000008u) != 0;
}
inline void DeviceInfo::set_has_device_type() {
_has_bits_[0] |= 0x00000008u;
}
inline void DeviceInfo::clear_has_device_type() {
_has_bits_[0] &= ~0x00000008u;
}
inline void DeviceInfo::clear_device_type() {
device_type_ = 0;
clear_has_device_type();
}
inline ::DeviceInfo_DeviceType DeviceInfo::device_type() const {
// @@protoc_insertion_point(field_get:DeviceInfo.device_type)
return static_cast< ::DeviceInfo_DeviceType >(device_type_);
}
inline void DeviceInfo::set_device_type(::DeviceInfo_DeviceType value) {
assert(::DeviceInfo_DeviceType_IsValid(value));
set_has_device_type();
device_type_ = value;
// @@protoc_insertion_point(field_set:DeviceInfo.device_type)
}
// optional .FtpUserPwd ftp_userpwd = 4;
inline bool DeviceInfo::has_ftp_userpwd() const {
return (_has_bits_[0] & 0x00000004u) != 0;
}
inline void DeviceInfo::set_has_ftp_userpwd() {
_has_bits_[0] |= 0x00000004u;
}
inline void DeviceInfo::clear_has_ftp_userpwd() {
_has_bits_[0] &= ~0x00000004u;
}
inline void DeviceInfo::clear_ftp_userpwd() {
if (ftp_userpwd_ != NULL) ftp_userpwd_->Clear();
clear_has_ftp_userpwd();
}
inline const ::FtpUserPwd& DeviceInfo::_internal_ftp_userpwd() const {
return *ftp_userpwd_;
}
inline const ::FtpUserPwd& DeviceInfo::ftp_userpwd() const {
const ::FtpUserPwd* p = ftp_userpwd_;
// @@protoc_insertion_point(field_get:DeviceInfo.ftp_userpwd)
return p != NULL ? *p : *reinterpret_cast<const ::FtpUserPwd*>(
&::_FtpUserPwd_default_instance_);
}
inline ::FtpUserPwd* DeviceInfo::release_ftp_userpwd() {
// @@protoc_insertion_point(field_release:DeviceInfo.ftp_userpwd)
clear_has_ftp_userpwd();
::FtpUserPwd* temp = ftp_userpwd_;
ftp_userpwd_ = NULL;
return temp;
}
inline ::FtpUserPwd* DeviceInfo::mutable_ftp_userpwd() {
set_has_ftp_userpwd();
if (ftp_userpwd_ == NULL) {
auto* p = CreateMaybeMessage<::FtpUserPwd>(GetArenaNoVirtual());
ftp_userpwd_ = p;
}
// @@protoc_insertion_point(field_mutable:DeviceInfo.ftp_userpwd)
return ftp_userpwd_;
}
inline void DeviceInfo::set_allocated_ftp_userpwd(::FtpUserPwd* ftp_userpwd) {
::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
if (message_arena == NULL) {
delete ftp_userpwd_;
}
if (ftp_userpwd) {
::google::protobuf::Arena* submessage_arena = NULL;
if (message_arena != submessage_arena) {
ftp_userpwd = ::google::protobuf::internal::GetOwnedMessage(
message_arena, ftp_userpwd, submessage_arena);
}
set_has_ftp_userpwd();
} else {
clear_has_ftp_userpwd();
}
ftp_userpwd_ = ftp_userpwd;
// @@protoc_insertion_point(field_set_allocated:DeviceInfo.ftp_userpwd)
}
// required .DeviceInfo.DeviceRole device_role = 5;
inline bool DeviceInfo::has_device_role() const {
return (_has_bits_[0] & 0x00000010u) != 0;
}
inline void DeviceInfo::set_has_device_role() {
_has_bits_[0] |= 0x00000010u;
}
inline void DeviceInfo::clear_has_device_role() {
_has_bits_[0] &= ~0x00000010u;
}
inline void DeviceInfo::clear_device_role() {
device_role_ = 0;
clear_has_device_role();
}
inline ::DeviceInfo_DeviceRole DeviceInfo::device_role() const {
// @@protoc_insertion_point(field_get:DeviceInfo.device_role)
return static_cast< ::DeviceInfo_DeviceRole >(device_role_);
}
inline void DeviceInfo::set_device_role(::DeviceInfo_DeviceRole value) {
assert(::DeviceInfo_DeviceRole_IsValid(value));
set_has_device_role();
device_role_ = value;
// @@protoc_insertion_point(field_set:DeviceInfo.device_role)
}
// -------------------------------------------------------------------
// ReplyMessage
// required .ReplyMessage.StatusType status = 1;
inline bool ReplyMessage::has_status() const {
return (_has_bits_[0] & 0x00000010u) != 0;
}
inline void ReplyMessage::set_has_status() {
_has_bits_[0] |= 0x00000010u;
}
inline void ReplyMessage::clear_has_status() {
_has_bits_[0] &= ~0x00000010u;
}
inline void ReplyMessage::clear_status() {
status_ = 0;
clear_has_status();
}
inline ::ReplyMessage_StatusType ReplyMessage::status() const {
// @@protoc_insertion_point(field_get:ReplyMessage.status)
return static_cast< ::ReplyMessage_StatusType >(status_);
}
inline void ReplyMessage::set_status(::ReplyMessage_StatusType value) {
assert(::ReplyMessage_StatusType_IsValid(value));
set_has_status();
status_ = value;
// @@protoc_insertion_point(field_set:ReplyMessage.status)
}
// optional int64 dataSize = 2;
inline bool ReplyMessage::has_datasize() const {
return (_has_bits_[0] & 0x00000008u) != 0;
}
inline void ReplyMessage::set_has_datasize() {
_has_bits_[0] |= 0x00000008u;
}
inline void ReplyMessage::clear_has_datasize() {
_has_bits_[0] &= ~0x00000008u;
}
inline void ReplyMessage::clear_datasize() {
datasize_ = GOOGLE_LONGLONG(0);
clear_has_datasize();
}
inline ::google::protobuf::int64 ReplyMessage::datasize() const {
// @@protoc_insertion_point(field_get:ReplyMessage.dataSize)
return datasize_;
}
inline void ReplyMessage::set_datasize(::google::protobuf::int64 value) {
set_has_datasize();
datasize_ = value;
// @@protoc_insertion_point(field_set:ReplyMessage.dataSize)
}
// optional .DeviceInfo device_info = 3;
inline bool ReplyMessage::has_device_info() const {
return (_has_bits_[0] & 0x00000002u) != 0;
}
inline void ReplyMessage::set_has_device_info() {
_has_bits_[0] |= 0x00000002u;
}
inline void ReplyMessage::clear_has_device_info() {
_has_bits_[0] &= ~0x00000002u;
}
inline void ReplyMessage::clear_device_info() {
if (device_info_ != NULL) device_info_->Clear();
clear_has_device_info();
}
inline const ::DeviceInfo& ReplyMessage::_internal_device_info() const {
return *device_info_;
}
inline const ::DeviceInfo& ReplyMessage::device_info() const {
const ::DeviceInfo* p = device_info_;
// @@protoc_insertion_point(field_get:ReplyMessage.device_info)
return p != NULL ? *p : *reinterpret_cast<const ::DeviceInfo*>(
&::_DeviceInfo_default_instance_);
}
inline ::DeviceInfo* ReplyMessage::release_device_info() {
// @@protoc_insertion_point(field_release:ReplyMessage.device_info)
clear_has_device_info();
::DeviceInfo* temp = device_info_;
device_info_ = NULL;
return temp;
}
inline ::DeviceInfo* ReplyMessage::mutable_device_info() {
set_has_device_info();
if (device_info_ == NULL) {
auto* p = CreateMaybeMessage<::DeviceInfo>(GetArenaNoVirtual());
device_info_ = p;
}
// @@protoc_insertion_point(field_mutable:ReplyMessage.device_info)
return device_info_;
}
inline void ReplyMessage::set_allocated_device_info(::DeviceInfo* device_info) {
::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
if (message_arena == NULL) {
delete device_info_;
}
if (device_info) {
::google::protobuf::Arena* submessage_arena = NULL;
if (message_arena != submessage_arena) {
device_info = ::google::protobuf::internal::GetOwnedMessage(
message_arena, device_info, submessage_arena);
}
set_has_device_info();
} else {
clear_has_device_info();
}
device_info_ = device_info;
// @@protoc_insertion_point(field_set_allocated:ReplyMessage.device_info)
}
// optional .ProtobufFilesInfo files_info = 4;
inline bool ReplyMessage::has_files_info() const {
return (_has_bits_[0] & 0x00000004u) != 0;
}
inline void ReplyMessage::set_has_files_info() {
_has_bits_[0] |= 0x00000004u;
}
inline void ReplyMessage::clear_has_files_info() {
_has_bits_[0] &= ~0x00000004u;
}
inline void ReplyMessage::clear_files_info() {
if (files_info_ != NULL) files_info_->Clear();
clear_has_files_info();
}
inline const ::ProtobufFilesInfo& ReplyMessage::_internal_files_info() const {
return *files_info_;
}
inline const ::ProtobufFilesInfo& ReplyMessage::files_info() const {
const ::ProtobufFilesInfo* p = files_info_;
// @@protoc_insertion_point(field_get:ReplyMessage.files_info)
return p != NULL ? *p : *reinterpret_cast<const ::ProtobufFilesInfo*>(
&::_ProtobufFilesInfo_default_instance_);
}
inline ::ProtobufFilesInfo* ReplyMessage::release_files_info() {
// @@protoc_insertion_point(field_release:ReplyMessage.files_info)
clear_has_files_info();
::ProtobufFilesInfo* temp = files_info_;
files_info_ = NULL;
return temp;
}
inline ::ProtobufFilesInfo* ReplyMessage::mutable_files_info() {
set_has_files_info();
if (files_info_ == NULL) {
auto* p = CreateMaybeMessage<::ProtobufFilesInfo>(GetArenaNoVirtual());
files_info_ = p;
}
// @@protoc_insertion_point(field_mutable:ReplyMessage.files_info)
return files_info_;
}
inline void ReplyMessage::set_allocated_files_info(::ProtobufFilesInfo* files_info) {
::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
if (message_arena == NULL) {
delete files_info_;
}
if (files_info) {
::google::protobuf::Arena* submessage_arena = NULL;
if (message_arena != submessage_arena) {
files_info = ::google::protobuf::internal::GetOwnedMessage(
message_arena, files_info, submessage_arena);
}
set_has_files_info();
} else {
clear_has_files_info();
}
files_info_ = files_info;
// @@protoc_insertion_point(field_set_allocated:ReplyMessage.files_info)
}
// optional .ReplyMessage.ConnType conn_type = 5;
inline bool ReplyMessage::has_conn_type() const {
return (_has_bits_[0] & 0x00000020u) != 0;
}
inline void ReplyMessage::set_has_conn_type() {
_has_bits_[0] |= 0x00000020u;
}
inline void ReplyMessage::clear_has_conn_type() {
_has_bits_[0] &= ~0x00000020u;
}
inline void ReplyMessage::clear_conn_type() {
conn_type_ = 0;
clear_has_conn_type();
}
inline ::ReplyMessage_ConnType ReplyMessage::conn_type() const {
// @@protoc_insertion_point(field_get:ReplyMessage.conn_type)
return static_cast< ::ReplyMessage_ConnType >(conn_type_);
}
inline void ReplyMessage::set_conn_type(::ReplyMessage_ConnType value) {
assert(::ReplyMessage_ConnType_IsValid(value));
set_has_conn_type();
conn_type_ = value;
// @@protoc_insertion_point(field_set:ReplyMessage.conn_type)
}
// optional string error_string = 6;
inline bool ReplyMessage::has_error_string() const {
return (_has_bits_[0] & 0x00000001u) != 0;
}
inline void ReplyMessage::set_has_error_string() {
_has_bits_[0] |= 0x00000001u;
}
inline void ReplyMessage::clear_has_error_string() {
_has_bits_[0] &= ~0x00000001u;
}
inline void ReplyMessage::clear_error_string() {
error_string_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
clear_has_error_string();
}
inline const ::std::string& ReplyMessage::error_string() const {
// @@protoc_insertion_point(field_get:ReplyMessage.error_string)
return error_string_.GetNoArena();
}
inline void ReplyMessage::set_error_string(const ::std::string& value) {
set_has_error_string();
error_string_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
// @@protoc_insertion_point(field_set:ReplyMessage.error_string)
}
#if LANG_CXX11
inline void ReplyMessage::set_error_string(::std::string&& value) {
set_has_error_string();
error_string_.SetNoArena(
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
// @@protoc_insertion_point(field_set_rvalue:ReplyMessage.error_string)
}
#endif
inline void ReplyMessage::set_error_string(const char* value) {
GOOGLE_DCHECK(value != NULL);
set_has_error_string();
error_string_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
// @@protoc_insertion_point(field_set_char:ReplyMessage.error_string)
}
inline void ReplyMessage::set_error_string(const char* value, size_t size) {
set_has_error_string();
error_string_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(reinterpret_cast<const char*>(value), size));
// @@protoc_insertion_point(field_set_pointer:ReplyMessage.error_string)
}
inline ::std::string* ReplyMessage::mutable_error_string() {
set_has_error_string();
// @@protoc_insertion_point(field_mutable:ReplyMessage.error_string)
return error_string_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* ReplyMessage::release_error_string() {
// @@protoc_insertion_point(field_release:ReplyMessage.error_string)
if (!has_error_string()) {
return NULL;
}
clear_has_error_string();
return error_string_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void ReplyMessage::set_allocated_error_string(::std::string* error_string) {
if (error_string != NULL) {
set_has_error_string();
} else {
clear_has_error_string();
}
error_string_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), error_string);
// @@protoc_insertion_point(field_set_allocated:ReplyMessage.error_string)
}
#ifdef __GNUC__
#pragma GCC diagnostic pop
#endif // __GNUC__
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// @@protoc_insertion_point(namespace_scope)
namespace google {
namespace protobuf {
template <> struct is_proto_enum< ::DeviceInfo_DeviceType> : ::std::true_type {};
template <>
inline const EnumDescriptor* GetEnumDescriptor< ::DeviceInfo_DeviceType>() {
return ::DeviceInfo_DeviceType_descriptor();
}
template <> struct is_proto_enum< ::DeviceInfo_DeviceRole> : ::std::true_type {};
template <>
inline const EnumDescriptor* GetEnumDescriptor< ::DeviceInfo_DeviceRole>() {
return ::DeviceInfo_DeviceRole_descriptor();
}
template <> struct is_proto_enum< ::ReplyMessage_StatusType> : ::std::true_type {};
template <>
inline const EnumDescriptor* GetEnumDescriptor< ::ReplyMessage_StatusType>() {
return ::ReplyMessage_StatusType_descriptor();
}
template <> struct is_proto_enum< ::ReplyMessage_ConnType> : ::std::true_type {};
template <>
inline const EnumDescriptor* GetEnumDescriptor< ::ReplyMessage_ConnType>() {
return ::ReplyMessage_ConnType_descriptor();
}
} // namespace protobuf
} // namespace google
// @@protoc_insertion_point(global_scope)
#endif // PROTOBUF_INCLUDED_messageserialize_2eproto