7024 lines
235 KiB
C++
7024 lines
235 KiB
C++
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
// source: AlarmMessage.proto
|
|
|
|
#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
|
|
#include "AlarmMessage.pb.h"
|
|
|
|
#include <algorithm>
|
|
|
|
#include <google/protobuf/stubs/common.h>
|
|
#include <google/protobuf/stubs/once.h>
|
|
#include <google/protobuf/io/coded_stream.h>
|
|
#include <google/protobuf/wire_format_lite_inl.h>
|
|
#include <google/protobuf/descriptor.h>
|
|
#include <google/protobuf/generated_message_reflection.h>
|
|
#include <google/protobuf/reflection_ops.h>
|
|
#include <google/protobuf/wire_format.h>
|
|
// @@protoc_insertion_point(includes)
|
|
|
|
namespace iot_idl {
|
|
|
|
namespace {
|
|
|
|
const ::google::protobuf::Descriptor* SAlmManner_descriptor_ = NULL;
|
|
const ::google::protobuf::internal::GeneratedMessageReflection*
|
|
SAlmManner_reflection_ = NULL;
|
|
const ::google::protobuf::Descriptor* SAlmKeyword_descriptor_ = NULL;
|
|
const ::google::protobuf::internal::GeneratedMessageReflection*
|
|
SAlmKeyword_reflection_ = NULL;
|
|
const ::google::protobuf::Descriptor* SAlmInfoFromApp_descriptor_ = NULL;
|
|
const ::google::protobuf::internal::GeneratedMessageReflection*
|
|
SAlmInfoFromApp_reflection_ = NULL;
|
|
const ::google::protobuf::Descriptor* SAppAddAlm_descriptor_ = NULL;
|
|
const ::google::protobuf::internal::GeneratedMessageReflection*
|
|
SAppAddAlm_reflection_ = NULL;
|
|
const ::google::protobuf::Descriptor* SAppAddWave_descriptor_ = NULL;
|
|
const ::google::protobuf::internal::GeneratedMessageReflection*
|
|
SAppAddWave_reflection_ = NULL;
|
|
const ::google::protobuf::Descriptor* SAlmInfoToAlmClt_descriptor_ = NULL;
|
|
const ::google::protobuf::internal::GeneratedMessageReflection*
|
|
SAlmInfoToAlmClt_reflection_ = NULL;
|
|
const ::google::protobuf::Descriptor* SAlmCltAddAlm_descriptor_ = NULL;
|
|
const ::google::protobuf::internal::GeneratedMessageReflection*
|
|
SAlmCltAddAlm_reflection_ = NULL;
|
|
const ::google::protobuf::Descriptor* SAlmCltCfmAlm_descriptor_ = NULL;
|
|
const ::google::protobuf::internal::GeneratedMessageReflection*
|
|
SAlmCltCfmAlm_reflection_ = NULL;
|
|
const ::google::protobuf::Descriptor* SAlmCltDelAlm_descriptor_ = NULL;
|
|
const ::google::protobuf::internal::GeneratedMessageReflection*
|
|
SAlmCltDelAlm_reflection_ = NULL;
|
|
const ::google::protobuf::Descriptor* SAlmCltReleaseAlm_descriptor_ = NULL;
|
|
const ::google::protobuf::internal::GeneratedMessageReflection*
|
|
SAlmCltReleaseAlm_reflection_ = NULL;
|
|
const ::google::protobuf::Descriptor* SAlmCltLinkWave2Alm_descriptor_ = NULL;
|
|
const ::google::protobuf::internal::GeneratedMessageReflection*
|
|
SAlmCltLinkWave2Alm_reflection_ = NULL;
|
|
const ::google::protobuf::Descriptor* SEvtInfoToEvtClt_descriptor_ = NULL;
|
|
const ::google::protobuf::internal::GeneratedMessageReflection*
|
|
SEvtInfoToEvtClt_reflection_ = NULL;
|
|
const ::google::protobuf::Descriptor* SEvtCltAddEvt_descriptor_ = NULL;
|
|
const ::google::protobuf::internal::GeneratedMessageReflection*
|
|
SEvtCltAddEvt_reflection_ = NULL;
|
|
const ::google::protobuf::EnumDescriptor* enAlmMsgType_descriptor_ = NULL;
|
|
const ::google::protobuf::EnumDescriptor* enAlmStyle_descriptor_ = NULL;
|
|
const ::google::protobuf::EnumDescriptor* enAlmLogicState_descriptor_ = NULL;
|
|
|
|
} // namespace
|
|
|
|
|
|
void protobuf_AssignDesc_AlarmMessage_2eproto() {
|
|
protobuf_AddDesc_AlarmMessage_2eproto();
|
|
const ::google::protobuf::FileDescriptor* file =
|
|
::google::protobuf::DescriptorPool::generated_pool()->FindFileByName(
|
|
"AlarmMessage.proto");
|
|
GOOGLE_CHECK(file != NULL);
|
|
SAlmManner_descriptor_ = file->message_type(0);
|
|
static const int SAlmManner_offsets_[5] = {
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SAlmManner, priority_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SAlmManner, if_ack_on_rtn_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SAlmManner, del_act_on_ack_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SAlmManner, if_never_alm_on_rtn_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SAlmManner, if_water_alm_),
|
|
};
|
|
SAlmManner_reflection_ =
|
|
new ::google::protobuf::internal::GeneratedMessageReflection(
|
|
SAlmManner_descriptor_,
|
|
SAlmManner::default_instance_,
|
|
SAlmManner_offsets_,
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SAlmManner, _has_bits_[0]),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SAlmManner, _unknown_fields_),
|
|
-1,
|
|
::google::protobuf::DescriptorPool::generated_pool(),
|
|
::google::protobuf::MessageFactory::generated_factory(),
|
|
sizeof(SAlmManner));
|
|
SAlmKeyword_descriptor_ = file->message_type(1);
|
|
static const int SAlmKeyword_offsets_[2] = {
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SAlmKeyword, id_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SAlmKeyword, value_),
|
|
};
|
|
SAlmKeyword_reflection_ =
|
|
new ::google::protobuf::internal::GeneratedMessageReflection(
|
|
SAlmKeyword_descriptor_,
|
|
SAlmKeyword::default_instance_,
|
|
SAlmKeyword_offsets_,
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SAlmKeyword, _has_bits_[0]),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SAlmKeyword, _unknown_fields_),
|
|
-1,
|
|
::google::protobuf::DescriptorPool::generated_pool(),
|
|
::google::protobuf::MessageFactory::generated_factory(),
|
|
sizeof(SAlmKeyword));
|
|
SAlmInfoFromApp_descriptor_ = file->message_type(2);
|
|
static const int SAlmInfoFromApp_offsets_[16] = {
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SAlmInfoFromApp, alm_type_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SAlmInfoFromApp, status_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SAlmInfoFromApp, time_stamp_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SAlmInfoFromApp, location_id_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SAlmInfoFromApp, alm_style_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SAlmInfoFromApp, alm_keyword_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SAlmInfoFromApp, sub_system_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SAlmInfoFromApp, dev_type_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SAlmInfoFromApp, region_id_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SAlmInfoFromApp, dev_group_tag_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SAlmInfoFromApp, key_id_tag_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SAlmInfoFromApp, graph_name_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SAlmInfoFromApp, sound_file_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SAlmInfoFromApp, alm_manner_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SAlmInfoFromApp, camera_tag_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SAlmInfoFromApp, camera_preset_),
|
|
};
|
|
SAlmInfoFromApp_reflection_ =
|
|
new ::google::protobuf::internal::GeneratedMessageReflection(
|
|
SAlmInfoFromApp_descriptor_,
|
|
SAlmInfoFromApp::default_instance_,
|
|
SAlmInfoFromApp_offsets_,
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SAlmInfoFromApp, _has_bits_[0]),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SAlmInfoFromApp, _unknown_fields_),
|
|
-1,
|
|
::google::protobuf::DescriptorPool::generated_pool(),
|
|
::google::protobuf::MessageFactory::generated_factory(),
|
|
sizeof(SAlmInfoFromApp));
|
|
SAppAddAlm_descriptor_ = file->message_type(3);
|
|
static const int SAppAddAlm_offsets_[3] = {
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SAppAddAlm, domain_id_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SAppAddAlm, app_id_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SAppAddAlm, alm_info_),
|
|
};
|
|
SAppAddAlm_reflection_ =
|
|
new ::google::protobuf::internal::GeneratedMessageReflection(
|
|
SAppAddAlm_descriptor_,
|
|
SAppAddAlm::default_instance_,
|
|
SAppAddAlm_offsets_,
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SAppAddAlm, _has_bits_[0]),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SAppAddAlm, _unknown_fields_),
|
|
-1,
|
|
::google::protobuf::DescriptorPool::generated_pool(),
|
|
::google::protobuf::MessageFactory::generated_factory(),
|
|
sizeof(SAppAddAlm));
|
|
SAppAddWave_descriptor_ = file->message_type(4);
|
|
static const int SAppAddWave_offsets_[4] = {
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SAppAddWave, start_time_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SAppAddWave, end_time_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SAppAddWave, dev_group_tag_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SAppAddWave, wave_file_),
|
|
};
|
|
SAppAddWave_reflection_ =
|
|
new ::google::protobuf::internal::GeneratedMessageReflection(
|
|
SAppAddWave_descriptor_,
|
|
SAppAddWave::default_instance_,
|
|
SAppAddWave_offsets_,
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SAppAddWave, _has_bits_[0]),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SAppAddWave, _unknown_fields_),
|
|
-1,
|
|
::google::protobuf::DescriptorPool::generated_pool(),
|
|
::google::protobuf::MessageFactory::generated_factory(),
|
|
sizeof(SAppAddWave));
|
|
SAlmInfoToAlmClt_descriptor_ = file->message_type(5);
|
|
static const int SAlmInfoToAlmClt_offsets_[24] = {
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SAlmInfoToAlmClt, alm_type_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SAlmInfoToAlmClt, alm_status_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SAlmInfoToAlmClt, logic_state_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SAlmInfoToAlmClt, time_stamp_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SAlmInfoToAlmClt, domain_id_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SAlmInfoToAlmClt, location_id_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SAlmInfoToAlmClt, app_id_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SAlmInfoToAlmClt, priority_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SAlmInfoToAlmClt, if_ack_on_rtn_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SAlmInfoToAlmClt, del_act_on_ack_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SAlmInfoToAlmClt, if_never_alm_on_rtn_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SAlmInfoToAlmClt, if_water_alm_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SAlmInfoToAlmClt, uuid_base64_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SAlmInfoToAlmClt, content_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SAlmInfoToAlmClt, sound_file_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SAlmInfoToAlmClt, sub_system_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SAlmInfoToAlmClt, dev_type_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SAlmInfoToAlmClt, region_id_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SAlmInfoToAlmClt, dev_group_tag_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SAlmInfoToAlmClt, key_id_tag_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SAlmInfoToAlmClt, graph_name_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SAlmInfoToAlmClt, wave_file_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SAlmInfoToAlmClt, camera_tag_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SAlmInfoToAlmClt, camera_preset_),
|
|
};
|
|
SAlmInfoToAlmClt_reflection_ =
|
|
new ::google::protobuf::internal::GeneratedMessageReflection(
|
|
SAlmInfoToAlmClt_descriptor_,
|
|
SAlmInfoToAlmClt::default_instance_,
|
|
SAlmInfoToAlmClt_offsets_,
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SAlmInfoToAlmClt, _has_bits_[0]),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SAlmInfoToAlmClt, _unknown_fields_),
|
|
-1,
|
|
::google::protobuf::DescriptorPool::generated_pool(),
|
|
::google::protobuf::MessageFactory::generated_factory(),
|
|
sizeof(SAlmInfoToAlmClt));
|
|
SAlmCltAddAlm_descriptor_ = file->message_type(6);
|
|
static const int SAlmCltAddAlm_offsets_[1] = {
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SAlmCltAddAlm, alm_info_),
|
|
};
|
|
SAlmCltAddAlm_reflection_ =
|
|
new ::google::protobuf::internal::GeneratedMessageReflection(
|
|
SAlmCltAddAlm_descriptor_,
|
|
SAlmCltAddAlm::default_instance_,
|
|
SAlmCltAddAlm_offsets_,
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SAlmCltAddAlm, _has_bits_[0]),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SAlmCltAddAlm, _unknown_fields_),
|
|
-1,
|
|
::google::protobuf::DescriptorPool::generated_pool(),
|
|
::google::protobuf::MessageFactory::generated_factory(),
|
|
sizeof(SAlmCltAddAlm));
|
|
SAlmCltCfmAlm_descriptor_ = file->message_type(7);
|
|
static const int SAlmCltCfmAlm_offsets_[9] = {
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SAlmCltCfmAlm, node_name_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SAlmCltCfmAlm, user_id_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SAlmCltCfmAlm, confirm_time_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SAlmCltCfmAlm, alm_type_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SAlmCltCfmAlm, domain_id_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SAlmCltCfmAlm, app_id_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SAlmCltCfmAlm, time_stamp_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SAlmCltCfmAlm, uuid_base64_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SAlmCltCfmAlm, key_id_tag_),
|
|
};
|
|
SAlmCltCfmAlm_reflection_ =
|
|
new ::google::protobuf::internal::GeneratedMessageReflection(
|
|
SAlmCltCfmAlm_descriptor_,
|
|
SAlmCltCfmAlm::default_instance_,
|
|
SAlmCltCfmAlm_offsets_,
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SAlmCltCfmAlm, _has_bits_[0]),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SAlmCltCfmAlm, _unknown_fields_),
|
|
-1,
|
|
::google::protobuf::DescriptorPool::generated_pool(),
|
|
::google::protobuf::MessageFactory::generated_factory(),
|
|
sizeof(SAlmCltCfmAlm));
|
|
SAlmCltDelAlm_descriptor_ = file->message_type(8);
|
|
static const int SAlmCltDelAlm_offsets_[2] = {
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SAlmCltDelAlm, domain_id_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SAlmCltDelAlm, uuid_base64_),
|
|
};
|
|
SAlmCltDelAlm_reflection_ =
|
|
new ::google::protobuf::internal::GeneratedMessageReflection(
|
|
SAlmCltDelAlm_descriptor_,
|
|
SAlmCltDelAlm::default_instance_,
|
|
SAlmCltDelAlm_offsets_,
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SAlmCltDelAlm, _has_bits_[0]),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SAlmCltDelAlm, _unknown_fields_),
|
|
-1,
|
|
::google::protobuf::DescriptorPool::generated_pool(),
|
|
::google::protobuf::MessageFactory::generated_factory(),
|
|
sizeof(SAlmCltDelAlm));
|
|
SAlmCltReleaseAlm_descriptor_ = file->message_type(9);
|
|
static const int SAlmCltReleaseAlm_offsets_[1] = {
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SAlmCltReleaseAlm, uuid_base64_),
|
|
};
|
|
SAlmCltReleaseAlm_reflection_ =
|
|
new ::google::protobuf::internal::GeneratedMessageReflection(
|
|
SAlmCltReleaseAlm_descriptor_,
|
|
SAlmCltReleaseAlm::default_instance_,
|
|
SAlmCltReleaseAlm_offsets_,
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SAlmCltReleaseAlm, _has_bits_[0]),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SAlmCltReleaseAlm, _unknown_fields_),
|
|
-1,
|
|
::google::protobuf::DescriptorPool::generated_pool(),
|
|
::google::protobuf::MessageFactory::generated_factory(),
|
|
sizeof(SAlmCltReleaseAlm));
|
|
SAlmCltLinkWave2Alm_descriptor_ = file->message_type(10);
|
|
static const int SAlmCltLinkWave2Alm_offsets_[2] = {
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SAlmCltLinkWave2Alm, wave_file_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SAlmCltLinkWave2Alm, uuid_base64_),
|
|
};
|
|
SAlmCltLinkWave2Alm_reflection_ =
|
|
new ::google::protobuf::internal::GeneratedMessageReflection(
|
|
SAlmCltLinkWave2Alm_descriptor_,
|
|
SAlmCltLinkWave2Alm::default_instance_,
|
|
SAlmCltLinkWave2Alm_offsets_,
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SAlmCltLinkWave2Alm, _has_bits_[0]),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SAlmCltLinkWave2Alm, _unknown_fields_),
|
|
-1,
|
|
::google::protobuf::DescriptorPool::generated_pool(),
|
|
::google::protobuf::MessageFactory::generated_factory(),
|
|
sizeof(SAlmCltLinkWave2Alm));
|
|
SEvtInfoToEvtClt_descriptor_ = file->message_type(11);
|
|
static const int SEvtInfoToEvtClt_offsets_[16] = {
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SEvtInfoToEvtClt, alm_type_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SEvtInfoToEvtClt, alm_status_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SEvtInfoToEvtClt, time_stamp_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SEvtInfoToEvtClt, domain_id_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SEvtInfoToEvtClt, location_id_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SEvtInfoToEvtClt, app_id_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SEvtInfoToEvtClt, priority_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SEvtInfoToEvtClt, uuid_base64_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SEvtInfoToEvtClt, content_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SEvtInfoToEvtClt, sub_system_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SEvtInfoToEvtClt, dev_type_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SEvtInfoToEvtClt, region_id_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SEvtInfoToEvtClt, logic_state_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SEvtInfoToEvtClt, dev_group_tag_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SEvtInfoToEvtClt, key_id_tag_),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SEvtInfoToEvtClt, wave_file_),
|
|
};
|
|
SEvtInfoToEvtClt_reflection_ =
|
|
new ::google::protobuf::internal::GeneratedMessageReflection(
|
|
SEvtInfoToEvtClt_descriptor_,
|
|
SEvtInfoToEvtClt::default_instance_,
|
|
SEvtInfoToEvtClt_offsets_,
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SEvtInfoToEvtClt, _has_bits_[0]),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SEvtInfoToEvtClt, _unknown_fields_),
|
|
-1,
|
|
::google::protobuf::DescriptorPool::generated_pool(),
|
|
::google::protobuf::MessageFactory::generated_factory(),
|
|
sizeof(SEvtInfoToEvtClt));
|
|
SEvtCltAddEvt_descriptor_ = file->message_type(12);
|
|
static const int SEvtCltAddEvt_offsets_[1] = {
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SEvtCltAddEvt, evt_info_),
|
|
};
|
|
SEvtCltAddEvt_reflection_ =
|
|
new ::google::protobuf::internal::GeneratedMessageReflection(
|
|
SEvtCltAddEvt_descriptor_,
|
|
SEvtCltAddEvt::default_instance_,
|
|
SEvtCltAddEvt_offsets_,
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SEvtCltAddEvt, _has_bits_[0]),
|
|
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SEvtCltAddEvt, _unknown_fields_),
|
|
-1,
|
|
::google::protobuf::DescriptorPool::generated_pool(),
|
|
::google::protobuf::MessageFactory::generated_factory(),
|
|
sizeof(SEvtCltAddEvt));
|
|
enAlmMsgType_descriptor_ = file->enum_type(0);
|
|
enAlmStyle_descriptor_ = file->enum_type(1);
|
|
enAlmLogicState_descriptor_ = file->enum_type(2);
|
|
}
|
|
|
|
namespace {
|
|
|
|
GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_);
|
|
inline void protobuf_AssignDescriptorsOnce() {
|
|
::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_,
|
|
&protobuf_AssignDesc_AlarmMessage_2eproto);
|
|
}
|
|
|
|
void protobuf_RegisterTypes(const ::std::string&) {
|
|
protobuf_AssignDescriptorsOnce();
|
|
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
|
|
SAlmManner_descriptor_, &SAlmManner::default_instance());
|
|
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
|
|
SAlmKeyword_descriptor_, &SAlmKeyword::default_instance());
|
|
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
|
|
SAlmInfoFromApp_descriptor_, &SAlmInfoFromApp::default_instance());
|
|
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
|
|
SAppAddAlm_descriptor_, &SAppAddAlm::default_instance());
|
|
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
|
|
SAppAddWave_descriptor_, &SAppAddWave::default_instance());
|
|
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
|
|
SAlmInfoToAlmClt_descriptor_, &SAlmInfoToAlmClt::default_instance());
|
|
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
|
|
SAlmCltAddAlm_descriptor_, &SAlmCltAddAlm::default_instance());
|
|
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
|
|
SAlmCltCfmAlm_descriptor_, &SAlmCltCfmAlm::default_instance());
|
|
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
|
|
SAlmCltDelAlm_descriptor_, &SAlmCltDelAlm::default_instance());
|
|
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
|
|
SAlmCltReleaseAlm_descriptor_, &SAlmCltReleaseAlm::default_instance());
|
|
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
|
|
SAlmCltLinkWave2Alm_descriptor_, &SAlmCltLinkWave2Alm::default_instance());
|
|
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
|
|
SEvtInfoToEvtClt_descriptor_, &SEvtInfoToEvtClt::default_instance());
|
|
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
|
|
SEvtCltAddEvt_descriptor_, &SEvtCltAddEvt::default_instance());
|
|
}
|
|
|
|
} // namespace
|
|
|
|
void protobuf_ShutdownFile_AlarmMessage_2eproto() {
|
|
delete SAlmManner::default_instance_;
|
|
delete SAlmManner_reflection_;
|
|
delete SAlmKeyword::default_instance_;
|
|
delete SAlmKeyword_reflection_;
|
|
delete SAlmInfoFromApp::default_instance_;
|
|
delete SAlmInfoFromApp_reflection_;
|
|
delete SAppAddAlm::default_instance_;
|
|
delete SAppAddAlm_reflection_;
|
|
delete SAppAddWave::default_instance_;
|
|
delete SAppAddWave_reflection_;
|
|
delete SAlmInfoToAlmClt::default_instance_;
|
|
delete SAlmInfoToAlmClt_reflection_;
|
|
delete SAlmCltAddAlm::default_instance_;
|
|
delete SAlmCltAddAlm_reflection_;
|
|
delete SAlmCltCfmAlm::default_instance_;
|
|
delete SAlmCltCfmAlm_reflection_;
|
|
delete SAlmCltDelAlm::default_instance_;
|
|
delete SAlmCltDelAlm_reflection_;
|
|
delete SAlmCltReleaseAlm::default_instance_;
|
|
delete SAlmCltReleaseAlm_reflection_;
|
|
delete SAlmCltLinkWave2Alm::default_instance_;
|
|
delete SAlmCltLinkWave2Alm_reflection_;
|
|
delete SEvtInfoToEvtClt::default_instance_;
|
|
delete SEvtInfoToEvtClt_reflection_;
|
|
delete SEvtCltAddEvt::default_instance_;
|
|
delete SEvtCltAddEvt_reflection_;
|
|
}
|
|
|
|
void protobuf_AddDesc_AlarmMessage_2eproto() {
|
|
static bool already_here = false;
|
|
if (already_here) return;
|
|
already_here = true;
|
|
GOOGLE_PROTOBUF_VERIFY_VERSION;
|
|
|
|
::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
|
|
"\n\022AlarmMessage.proto\022\013iot_idl\"\200\001\n\nSA"
|
|
"lmManner\022\020\n\010priority\030\001 \002(\005\022\025\n\rif_ack_on_"
|
|
"rtn\030\002 \002(\005\022\026\n\016del_act_on_ack\030\003 \002(\005\022\033\n\023if_"
|
|
"never_alm_on_rtn\030\004 \002(\005\022\024\n\014if_water_alm\030\005"
|
|
" \002(\005\"(\n\013SAlmKeyword\022\n\n\002id\030\001 \002(\005\022\r\n\005value"
|
|
"\030\002 \002(\t\"\233\003\n\017SAlmInfoFromApp\022\020\n\010alm_type\030\001"
|
|
" \002(\005\022\016\n\006status\030\002 \002(\005\022\022\n\ntime_stamp\030\003 \002(\003"
|
|
"\022\023\n\013location_id\030\004 \002(\005\022*\n\talm_style\030\005 \002(\016"
|
|
"2\027.iot_idl.enAlmStyle\022-\n\013alm_keyword"
|
|
"\030\006 \003(\0132\030.iot_idl.SAlmKeyword\022\022\n\nsub_"
|
|
"system\030\007 \001(\005\022\020\n\010dev_type\030\010 \001(\005\022\021\n\tregion"
|
|
"_id\030\t \001(\005\022\025\n\rdev_group_tag\030\n \001(\t\022\022\n\nkey_"
|
|
"id_tag\030\013 \001(\t\022\022\n\ngraph_name\030\014 \001(\t\022\022\n\nsoun"
|
|
"d_file\030\r \003(\t\022+\n\nalm_manner\030\016 \001(\0132\027.kbd_i"
|
|
"dlfile.SAlmManner\022\022\n\ncamera_tag\030\017 \001(\t\022\025\n"
|
|
"\rcamera_preset\030\020 \001(\t\"_\n\nSAppAddAlm\022\021\n\tdo"
|
|
"main_id\030\001 \001(\005\022\016\n\006app_id\030\002 \001(\005\022.\n\010alm_inf"
|
|
"o\030\003 \003(\0132\034.iot_idl.SAlmInfoFromApp\"]\n"
|
|
"\013SAppAddWave\022\022\n\nstart_time\030\001 \002(\003\022\020\n\010end_"
|
|
"time\030\002 \002(\003\022\025\n\rdev_group_tag\030\003 \002(\t\022\021\n\twav"
|
|
"e_file\030\004 \002(\t\"\233\004\n\020SAlmInfoToAlmClt\022\020\n\010alm"
|
|
"_type\030\001 \002(\005\022\022\n\nalm_status\030\002 \002(\005\0221\n\013logic"
|
|
"_state\030\003 \002(\0162\034.iot_idl.enAlmLogicSta"
|
|
"te\022\022\n\ntime_stamp\030\004 \002(\003\022\021\n\tdomain_id\030\005 \002("
|
|
"\005\022\023\n\013location_id\030\006 \002(\005\022\016\n\006app_id\030\007 \002(\005\022\020"
|
|
"\n\010priority\030\010 \002(\005\022\025\n\rif_ack_on_rtn\030\t \002(\005\022"
|
|
"\026\n\016del_act_on_ack\030\n \002(\005\022\033\n\023if_never_alm_"
|
|
"on_rtn\030\013 \002(\005\022\024\n\014if_water_alm\030\014 \002(\005\022\023\n\013uu"
|
|
"id_base64\030\r \002(\t\022\017\n\007content\030\016 \002(\t\022\022\n\nsoun"
|
|
"d_file\030\017 \003(\t\022\022\n\nsub_system\030\020 \001(\005\022\020\n\010dev_"
|
|
"type\030\021 \001(\005\022\021\n\tregion_id\030\022 \001(\005\022\025\n\rdev_gro"
|
|
"up_tag\030\023 \001(\t\022\022\n\nkey_id_tag\030\024 \001(\t\022\022\n\ngrap"
|
|
"h_name\030\025 \001(\t\022\021\n\twave_file\030\026 \001(\t\022\022\n\ncamer"
|
|
"a_tag\030\027 \001(\t\022\025\n\rcamera_preset\030\030 \001(\t\"@\n\rSA"
|
|
"lmCltAddAlm\022/\n\010alm_info\030\001 \003(\0132\035.kbd_idlf"
|
|
"ile.SAlmInfoToAlmClt\"\273\001\n\rSAlmCltCfmAlm\022\021"
|
|
"\n\tnode_name\030\001 \002(\t\022\017\n\007user_id\030\002 \002(\005\022\024\n\014co"
|
|
"nfirm_time\030\003 \002(\003\022\020\n\010alm_type\030\004 \002(\005\022\021\n\tdo"
|
|
"main_id\030\005 \002(\005\022\016\n\006app_id\030\006 \002(\005\022\022\n\ntime_st"
|
|
"amp\030\007 \003(\003\022\023\n\013uuid_base64\030\010 \003(\t\022\022\n\nkey_id"
|
|
"_tag\030\t \003(\t\"7\n\rSAlmCltDelAlm\022\021\n\tdomain_id"
|
|
"\030\001 \002(\005\022\023\n\013uuid_base64\030\002 \003(\t\"(\n\021SAlmCltRe"
|
|
"leaseAlm\022\023\n\013uuid_base64\030\001 \003(\t\"=\n\023SAlmClt"
|
|
"LinkWave2Alm\022\021\n\twave_file\030\001 \002(\t\022\023\n\013uuid_"
|
|
"base64\030\002 \003(\t\"\346\002\n\020SEvtInfoToEvtClt\022\020\n\010alm"
|
|
"_type\030\001 \002(\005\022\022\n\nalm_status\030\002 \002(\005\022\022\n\ntime_"
|
|
"stamp\030\003 \002(\003\022\021\n\tdomain_id\030\004 \002(\005\022\023\n\013locati"
|
|
"on_id\030\005 \002(\005\022\016\n\006app_id\030\006 \002(\005\022\020\n\010priority\030"
|
|
"\007 \002(\005\022\023\n\013uuid_base64\030\010 \002(\t\022\017\n\007content\030\t "
|
|
"\002(\t\022\022\n\nsub_system\030\n \001(\005\022\020\n\010dev_type\030\013 \001("
|
|
"\005\022\021\n\tregion_id\030\014 \001(\005\0221\n\013logic_state\030\r \001("
|
|
"\0162\034.iot_idl.enAlmLogicState\022\025\n\rdev_g"
|
|
"roup_tag\030\016 \001(\t\022\022\n\nkey_id_tag\030\017 \001(\t\022\021\n\twa"
|
|
"ve_file\030\020 \001(\t\"@\n\rSEvtCltAddEvt\022/\n\010evt_in"
|
|
"fo\030\001 \003(\0132\035.iot_idl.SEvtInfoToEvtClt*"
|
|
"\304\003\n\014enAlmMsgType\022\024\n\020MT_ALM_AP2AS_ADD\020\001\022\030"
|
|
"\n\024MT_ALM_AS2AP_ADD_ACK\020\002\022\025\n\021MT_ALM_AP2AS"
|
|
"_WAVE\020\003\022\031\n\025MT_ALM_AS2AP_WAVE_ACK\020\004\022\026\n\022MT"
|
|
"_ALM_AS2AC_SEQNO\020\013\022\032\n\026MT_ALM_AC2AS_SEQNO"
|
|
"_REQ\020\014\022\024\n\020MT_ALM_AS2AC_ALL\020\r\022\030\n\024MT_ALM_A"
|
|
"C2AS_ALL_REQ\020\016\022\027\n\023MT_ALM_AC2AS_RT_REQ\020\017\022"
|
|
"\024\n\020MT_ALM_AS2AC_ADD\020\020\022\024\n\020MT_ALM_AS2AC_CF"
|
|
"M\020\021\022\030\n\024MT_ALM_AC2AS_CFM_REQ\020\022\022\024\n\020MT_ALM_"
|
|
"AS2AC_DEL\020\023\022\030\n\024MT_ALM_AC2AS_DEL_REQ\020\024\022\030\n"
|
|
"\024MT_ALM_AS2AC_RELEASE\020\025\022\025\n\021MT_ALM_AS2AC_"
|
|
"WAVE\020\026\022\024\n\020MT_ALM_DP2AS_CFM\020Z\022\030\n\024MT_ALM_A"
|
|
"S2DP_CFM_REQ\020[*R\n\nenAlmStyle\022\014\n\010AS_ALARM"
|
|
"\020\000\022\020\n\014AS_ALARM_RTN\020\001\022\021\n\rAS_EVENT_ONLY\020\002\022"
|
|
"\021\n\rAS_DO_NOTHING\020\003*\277\001\n\017enAlmLogicState\022\r"
|
|
"\n\tALS_ALARM\020\000\022\021\n\rALS_ALARM_CFM\020\001\022\016\n\nALS_"
|
|
"RETURN\020\002\022\022\n\016ALS_RETURN_CFM\020\003\022\020\n\014ALS_EVT_"
|
|
"ONLY\020\004\022\021\n\rALS_ALARM_DEL\020\024\022\025\n\021ALS_ALARM_C"
|
|
"FM_DEL\020\025\022\022\n\016ALS_RETURN_DEL\020\026\022\026\n\022ALS_RETU"
|
|
"RN_CFM_DEL\020\027", 2932);
|
|
::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
|
|
"AlarmMessage.proto", &protobuf_RegisterTypes);
|
|
SAlmManner::default_instance_ = new SAlmManner();
|
|
SAlmKeyword::default_instance_ = new SAlmKeyword();
|
|
SAlmInfoFromApp::default_instance_ = new SAlmInfoFromApp();
|
|
SAppAddAlm::default_instance_ = new SAppAddAlm();
|
|
SAppAddWave::default_instance_ = new SAppAddWave();
|
|
SAlmInfoToAlmClt::default_instance_ = new SAlmInfoToAlmClt();
|
|
SAlmCltAddAlm::default_instance_ = new SAlmCltAddAlm();
|
|
SAlmCltCfmAlm::default_instance_ = new SAlmCltCfmAlm();
|
|
SAlmCltDelAlm::default_instance_ = new SAlmCltDelAlm();
|
|
SAlmCltReleaseAlm::default_instance_ = new SAlmCltReleaseAlm();
|
|
SAlmCltLinkWave2Alm::default_instance_ = new SAlmCltLinkWave2Alm();
|
|
SEvtInfoToEvtClt::default_instance_ = new SEvtInfoToEvtClt();
|
|
SEvtCltAddEvt::default_instance_ = new SEvtCltAddEvt();
|
|
SAlmManner::default_instance_->InitAsDefaultInstance();
|
|
SAlmKeyword::default_instance_->InitAsDefaultInstance();
|
|
SAlmInfoFromApp::default_instance_->InitAsDefaultInstance();
|
|
SAppAddAlm::default_instance_->InitAsDefaultInstance();
|
|
SAppAddWave::default_instance_->InitAsDefaultInstance();
|
|
SAlmInfoToAlmClt::default_instance_->InitAsDefaultInstance();
|
|
SAlmCltAddAlm::default_instance_->InitAsDefaultInstance();
|
|
SAlmCltCfmAlm::default_instance_->InitAsDefaultInstance();
|
|
SAlmCltDelAlm::default_instance_->InitAsDefaultInstance();
|
|
SAlmCltReleaseAlm::default_instance_->InitAsDefaultInstance();
|
|
SAlmCltLinkWave2Alm::default_instance_->InitAsDefaultInstance();
|
|
SEvtInfoToEvtClt::default_instance_->InitAsDefaultInstance();
|
|
SEvtCltAddEvt::default_instance_->InitAsDefaultInstance();
|
|
::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_AlarmMessage_2eproto);
|
|
}
|
|
|
|
// Force AddDescriptors() to be called at static initialization time.
|
|
struct StaticDescriptorInitializer_AlarmMessage_2eproto {
|
|
StaticDescriptorInitializer_AlarmMessage_2eproto() {
|
|
protobuf_AddDesc_AlarmMessage_2eproto();
|
|
}
|
|
} static_descriptor_initializer_AlarmMessage_2eproto_;
|
|
const ::google::protobuf::EnumDescriptor* enAlmMsgType_descriptor() {
|
|
protobuf_AssignDescriptorsOnce();
|
|
return enAlmMsgType_descriptor_;
|
|
}
|
|
bool enAlmMsgType_IsValid(int value) {
|
|
switch(value) {
|
|
case 1:
|
|
case 2:
|
|
case 3:
|
|
case 4:
|
|
case 11:
|
|
case 12:
|
|
case 13:
|
|
case 14:
|
|
case 15:
|
|
case 16:
|
|
case 17:
|
|
case 18:
|
|
case 19:
|
|
case 20:
|
|
case 21:
|
|
case 22:
|
|
case 90:
|
|
case 91:
|
|
return true;
|
|
default:
|
|
return false;
|
|
}
|
|
}
|
|
|
|
const ::google::protobuf::EnumDescriptor* enAlmStyle_descriptor() {
|
|
protobuf_AssignDescriptorsOnce();
|
|
return enAlmStyle_descriptor_;
|
|
}
|
|
bool enAlmStyle_IsValid(int value) {
|
|
switch(value) {
|
|
case 0:
|
|
case 1:
|
|
case 2:
|
|
case 3:
|
|
return true;
|
|
default:
|
|
return false;
|
|
}
|
|
}
|
|
|
|
const ::google::protobuf::EnumDescriptor* enAlmLogicState_descriptor() {
|
|
protobuf_AssignDescriptorsOnce();
|
|
return enAlmLogicState_descriptor_;
|
|
}
|
|
bool enAlmLogicState_IsValid(int value) {
|
|
switch(value) {
|
|
case 0:
|
|
case 1:
|
|
case 2:
|
|
case 3:
|
|
case 4:
|
|
case 20:
|
|
case 21:
|
|
case 22:
|
|
case 23:
|
|
return true;
|
|
default:
|
|
return false;
|
|
}
|
|
}
|
|
|
|
|
|
// ===================================================================
|
|
|
|
#ifndef _MSC_VER
|
|
const int SAlmManner::kPriorityFieldNumber;
|
|
const int SAlmManner::kIfAckOnRtnFieldNumber;
|
|
const int SAlmManner::kDelActOnAckFieldNumber;
|
|
const int SAlmManner::kIfNeverAlmOnRtnFieldNumber;
|
|
const int SAlmManner::kIfWaterAlmFieldNumber;
|
|
#endif // !_MSC_VER
|
|
|
|
SAlmManner::SAlmManner()
|
|
: ::google::protobuf::Message() {
|
|
SharedCtor();
|
|
// @@protoc_insertion_point(constructor:iot_idl.SAlmManner)
|
|
}
|
|
|
|
void SAlmManner::InitAsDefaultInstance() {
|
|
}
|
|
|
|
SAlmManner::SAlmManner(const SAlmManner& from)
|
|
: ::google::protobuf::Message() {
|
|
SharedCtor();
|
|
MergeFrom(from);
|
|
// @@protoc_insertion_point(copy_constructor:iot_idl.SAlmManner)
|
|
}
|
|
|
|
void SAlmManner::SharedCtor() {
|
|
_cached_size_ = 0;
|
|
priority_ = 0;
|
|
if_ack_on_rtn_ = 0;
|
|
del_act_on_ack_ = 0;
|
|
if_never_alm_on_rtn_ = 0;
|
|
if_water_alm_ = 0;
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
}
|
|
|
|
SAlmManner::~SAlmManner() {
|
|
// @@protoc_insertion_point(destructor:iot_idl.SAlmManner)
|
|
SharedDtor();
|
|
}
|
|
|
|
void SAlmManner::SharedDtor() {
|
|
if (this != default_instance_) {
|
|
}
|
|
}
|
|
|
|
void SAlmManner::SetCachedSize(int size) const {
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
}
|
|
const ::google::protobuf::Descriptor* SAlmManner::descriptor() {
|
|
protobuf_AssignDescriptorsOnce();
|
|
return SAlmManner_descriptor_;
|
|
}
|
|
|
|
const SAlmManner& SAlmManner::default_instance() {
|
|
if (default_instance_ == NULL) protobuf_AddDesc_AlarmMessage_2eproto();
|
|
return *default_instance_;
|
|
}
|
|
|
|
SAlmManner* SAlmManner::default_instance_ = NULL;
|
|
|
|
SAlmManner* SAlmManner::New() const {
|
|
return new SAlmManner;
|
|
}
|
|
|
|
void SAlmManner::Clear() {
|
|
#define OFFSET_OF_FIELD_(f) (reinterpret_cast<char*>( \
|
|
&reinterpret_cast<SAlmManner*>(16)->f) - \
|
|
reinterpret_cast<char*>(16))
|
|
|
|
#define ZR_(first, last) do { \
|
|
size_t f = OFFSET_OF_FIELD_(first); \
|
|
size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \
|
|
::memset(&first, 0, n); \
|
|
} while (0)
|
|
|
|
if (_has_bits_[0 / 32] & 31) {
|
|
ZR_(priority_, if_water_alm_);
|
|
}
|
|
|
|
#undef OFFSET_OF_FIELD_
|
|
#undef ZR_
|
|
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
mutable_unknown_fields()->Clear();
|
|
}
|
|
|
|
bool SAlmManner::MergePartialFromCodedStream(
|
|
::google::protobuf::io::CodedInputStream* input) {
|
|
#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
|
|
::google::protobuf::uint32 tag;
|
|
// @@protoc_insertion_point(parse_start:iot_idl.SAlmManner)
|
|
for (;;) {
|
|
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
|
|
tag = p.first;
|
|
if (!p.second) goto handle_unusual;
|
|
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
// required int32 priority = 1;
|
|
case 1: {
|
|
if (tag == 8) {
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
|
|
input, &priority_)));
|
|
set_has_priority();
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(16)) goto parse_if_ack_on_rtn;
|
|
break;
|
|
}
|
|
|
|
// required int32 if_ack_on_rtn = 2;
|
|
case 2: {
|
|
if (tag == 16) {
|
|
parse_if_ack_on_rtn:
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
|
|
input, &if_ack_on_rtn_)));
|
|
set_has_if_ack_on_rtn();
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(24)) goto parse_del_act_on_ack;
|
|
break;
|
|
}
|
|
|
|
// required int32 del_act_on_ack = 3;
|
|
case 3: {
|
|
if (tag == 24) {
|
|
parse_del_act_on_ack:
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
|
|
input, &del_act_on_ack_)));
|
|
set_has_del_act_on_ack();
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(32)) goto parse_if_never_alm_on_rtn;
|
|
break;
|
|
}
|
|
|
|
// required int32 if_never_alm_on_rtn = 4;
|
|
case 4: {
|
|
if (tag == 32) {
|
|
parse_if_never_alm_on_rtn:
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
|
|
input, &if_never_alm_on_rtn_)));
|
|
set_has_if_never_alm_on_rtn();
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(40)) goto parse_if_water_alm;
|
|
break;
|
|
}
|
|
|
|
// required int32 if_water_alm = 5;
|
|
case 5: {
|
|
if (tag == 40) {
|
|
parse_if_water_alm:
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
|
|
input, &if_water_alm_)));
|
|
set_has_if_water_alm();
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectAtEnd()) goto success;
|
|
break;
|
|
}
|
|
|
|
default: {
|
|
handle_unusual:
|
|
if (tag == 0 ||
|
|
::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
|
|
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
|
|
goto success;
|
|
}
|
|
DO_(::google::protobuf::internal::WireFormat::SkipField(
|
|
input, tag, mutable_unknown_fields()));
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
success:
|
|
// @@protoc_insertion_point(parse_success:iot_idl.SAlmManner)
|
|
return true;
|
|
failure:
|
|
// @@protoc_insertion_point(parse_failure:iot_idl.SAlmManner)
|
|
return false;
|
|
#undef DO_
|
|
}
|
|
|
|
void SAlmManner::SerializeWithCachedSizes(
|
|
::google::protobuf::io::CodedOutputStream* output) const {
|
|
// @@protoc_insertion_point(serialize_start:iot_idl.SAlmManner)
|
|
// required int32 priority = 1;
|
|
if (has_priority()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->priority(), output);
|
|
}
|
|
|
|
// required int32 if_ack_on_rtn = 2;
|
|
if (has_if_ack_on_rtn()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->if_ack_on_rtn(), output);
|
|
}
|
|
|
|
// required int32 del_act_on_ack = 3;
|
|
if (has_del_act_on_ack()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->del_act_on_ack(), output);
|
|
}
|
|
|
|
// required int32 if_never_alm_on_rtn = 4;
|
|
if (has_if_never_alm_on_rtn()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->if_never_alm_on_rtn(), output);
|
|
}
|
|
|
|
// required int32 if_water_alm = 5;
|
|
if (has_if_water_alm()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->if_water_alm(), output);
|
|
}
|
|
|
|
if (!unknown_fields().empty()) {
|
|
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
|
|
unknown_fields(), output);
|
|
}
|
|
// @@protoc_insertion_point(serialize_end:iot_idl.SAlmManner)
|
|
}
|
|
|
|
::google::protobuf::uint8* SAlmManner::SerializeWithCachedSizesToArray(
|
|
::google::protobuf::uint8* target) const {
|
|
// @@protoc_insertion_point(serialize_to_array_start:iot_idl.SAlmManner)
|
|
// required int32 priority = 1;
|
|
if (has_priority()) {
|
|
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->priority(), target);
|
|
}
|
|
|
|
// required int32 if_ack_on_rtn = 2;
|
|
if (has_if_ack_on_rtn()) {
|
|
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->if_ack_on_rtn(), target);
|
|
}
|
|
|
|
// required int32 del_act_on_ack = 3;
|
|
if (has_del_act_on_ack()) {
|
|
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->del_act_on_ack(), target);
|
|
}
|
|
|
|
// required int32 if_never_alm_on_rtn = 4;
|
|
if (has_if_never_alm_on_rtn()) {
|
|
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->if_never_alm_on_rtn(), target);
|
|
}
|
|
|
|
// required int32 if_water_alm = 5;
|
|
if (has_if_water_alm()) {
|
|
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->if_water_alm(), target);
|
|
}
|
|
|
|
if (!unknown_fields().empty()) {
|
|
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
|
|
unknown_fields(), target);
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_end:iot_idl.SAlmManner)
|
|
return target;
|
|
}
|
|
|
|
int SAlmManner::ByteSize() const {
|
|
int total_size = 0;
|
|
|
|
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
|
// required int32 priority = 1;
|
|
if (has_priority()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::Int32Size(
|
|
this->priority());
|
|
}
|
|
|
|
// required int32 if_ack_on_rtn = 2;
|
|
if (has_if_ack_on_rtn()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::Int32Size(
|
|
this->if_ack_on_rtn());
|
|
}
|
|
|
|
// required int32 del_act_on_ack = 3;
|
|
if (has_del_act_on_ack()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::Int32Size(
|
|
this->del_act_on_ack());
|
|
}
|
|
|
|
// required int32 if_never_alm_on_rtn = 4;
|
|
if (has_if_never_alm_on_rtn()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::Int32Size(
|
|
this->if_never_alm_on_rtn());
|
|
}
|
|
|
|
// required int32 if_water_alm = 5;
|
|
if (has_if_water_alm()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::Int32Size(
|
|
this->if_water_alm());
|
|
}
|
|
|
|
}
|
|
if (!unknown_fields().empty()) {
|
|
total_size +=
|
|
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
|
|
unknown_fields());
|
|
}
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = total_size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
return total_size;
|
|
}
|
|
|
|
void SAlmManner::MergeFrom(const ::google::protobuf::Message& from) {
|
|
GOOGLE_CHECK_NE(&from, this);
|
|
const SAlmManner* source =
|
|
::google::protobuf::internal::dynamic_cast_if_available<const SAlmManner*>(
|
|
&from);
|
|
if (source == NULL) {
|
|
::google::protobuf::internal::ReflectionOps::Merge(from, this);
|
|
} else {
|
|
MergeFrom(*source);
|
|
}
|
|
}
|
|
|
|
void SAlmManner::MergeFrom(const SAlmManner& from) {
|
|
GOOGLE_CHECK_NE(&from, this);
|
|
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
|
if (from.has_priority()) {
|
|
set_priority(from.priority());
|
|
}
|
|
if (from.has_if_ack_on_rtn()) {
|
|
set_if_ack_on_rtn(from.if_ack_on_rtn());
|
|
}
|
|
if (from.has_del_act_on_ack()) {
|
|
set_del_act_on_ack(from.del_act_on_ack());
|
|
}
|
|
if (from.has_if_never_alm_on_rtn()) {
|
|
set_if_never_alm_on_rtn(from.if_never_alm_on_rtn());
|
|
}
|
|
if (from.has_if_water_alm()) {
|
|
set_if_water_alm(from.if_water_alm());
|
|
}
|
|
}
|
|
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
|
|
}
|
|
|
|
void SAlmManner::CopyFrom(const ::google::protobuf::Message& from) {
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
void SAlmManner::CopyFrom(const SAlmManner& from) {
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool SAlmManner::IsInitialized() const {
|
|
if ((_has_bits_[0] & 0x0000001f) != 0x0000001f) return false;
|
|
|
|
return true;
|
|
}
|
|
|
|
void SAlmManner::Swap(SAlmManner* other) {
|
|
if (other != this) {
|
|
std::swap(priority_, other->priority_);
|
|
std::swap(if_ack_on_rtn_, other->if_ack_on_rtn_);
|
|
std::swap(del_act_on_ack_, other->del_act_on_ack_);
|
|
std::swap(if_never_alm_on_rtn_, other->if_never_alm_on_rtn_);
|
|
std::swap(if_water_alm_, other->if_water_alm_);
|
|
std::swap(_has_bits_[0], other->_has_bits_[0]);
|
|
_unknown_fields_.Swap(&other->_unknown_fields_);
|
|
std::swap(_cached_size_, other->_cached_size_);
|
|
}
|
|
}
|
|
|
|
::google::protobuf::Metadata SAlmManner::GetMetadata() const {
|
|
protobuf_AssignDescriptorsOnce();
|
|
::google::protobuf::Metadata metadata;
|
|
metadata.descriptor = SAlmManner_descriptor_;
|
|
metadata.reflection = SAlmManner_reflection_;
|
|
return metadata;
|
|
}
|
|
|
|
|
|
// ===================================================================
|
|
|
|
#ifndef _MSC_VER
|
|
const int SAlmKeyword::kIdFieldNumber;
|
|
const int SAlmKeyword::kValueFieldNumber;
|
|
#endif // !_MSC_VER
|
|
|
|
SAlmKeyword::SAlmKeyword()
|
|
: ::google::protobuf::Message() {
|
|
SharedCtor();
|
|
// @@protoc_insertion_point(constructor:iot_idl.SAlmKeyword)
|
|
}
|
|
|
|
void SAlmKeyword::InitAsDefaultInstance() {
|
|
}
|
|
|
|
SAlmKeyword::SAlmKeyword(const SAlmKeyword& from)
|
|
: ::google::protobuf::Message() {
|
|
SharedCtor();
|
|
MergeFrom(from);
|
|
// @@protoc_insertion_point(copy_constructor:iot_idl.SAlmKeyword)
|
|
}
|
|
|
|
void SAlmKeyword::SharedCtor() {
|
|
::google::protobuf::internal::GetEmptyString();
|
|
_cached_size_ = 0;
|
|
id_ = 0;
|
|
value_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
}
|
|
|
|
SAlmKeyword::~SAlmKeyword() {
|
|
// @@protoc_insertion_point(destructor:iot_idl.SAlmKeyword)
|
|
SharedDtor();
|
|
}
|
|
|
|
void SAlmKeyword::SharedDtor() {
|
|
if (value_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
delete value_;
|
|
}
|
|
if (this != default_instance_) {
|
|
}
|
|
}
|
|
|
|
void SAlmKeyword::SetCachedSize(int size) const {
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
}
|
|
const ::google::protobuf::Descriptor* SAlmKeyword::descriptor() {
|
|
protobuf_AssignDescriptorsOnce();
|
|
return SAlmKeyword_descriptor_;
|
|
}
|
|
|
|
const SAlmKeyword& SAlmKeyword::default_instance() {
|
|
if (default_instance_ == NULL) protobuf_AddDesc_AlarmMessage_2eproto();
|
|
return *default_instance_;
|
|
}
|
|
|
|
SAlmKeyword* SAlmKeyword::default_instance_ = NULL;
|
|
|
|
SAlmKeyword* SAlmKeyword::New() const {
|
|
return new SAlmKeyword;
|
|
}
|
|
|
|
void SAlmKeyword::Clear() {
|
|
if (_has_bits_[0 / 32] & 3) {
|
|
id_ = 0;
|
|
if (has_value()) {
|
|
if (value_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
value_->clear();
|
|
}
|
|
}
|
|
}
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
mutable_unknown_fields()->Clear();
|
|
}
|
|
|
|
bool SAlmKeyword::MergePartialFromCodedStream(
|
|
::google::protobuf::io::CodedInputStream* input) {
|
|
#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
|
|
::google::protobuf::uint32 tag;
|
|
// @@protoc_insertion_point(parse_start:iot_idl.SAlmKeyword)
|
|
for (;;) {
|
|
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
|
|
tag = p.first;
|
|
if (!p.second) goto handle_unusual;
|
|
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
// required int32 id = 1;
|
|
case 1: {
|
|
if (tag == 8) {
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
|
|
input, &id_)));
|
|
set_has_id();
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(18)) goto parse_value;
|
|
break;
|
|
}
|
|
|
|
// required string value = 2;
|
|
case 2: {
|
|
if (tag == 18) {
|
|
parse_value:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_value()));
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->value().data(), this->value().length(),
|
|
::google::protobuf::internal::WireFormat::PARSE,
|
|
"value");
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectAtEnd()) goto success;
|
|
break;
|
|
}
|
|
|
|
default: {
|
|
handle_unusual:
|
|
if (tag == 0 ||
|
|
::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
|
|
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
|
|
goto success;
|
|
}
|
|
DO_(::google::protobuf::internal::WireFormat::SkipField(
|
|
input, tag, mutable_unknown_fields()));
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
success:
|
|
// @@protoc_insertion_point(parse_success:iot_idl.SAlmKeyword)
|
|
return true;
|
|
failure:
|
|
// @@protoc_insertion_point(parse_failure:iot_idl.SAlmKeyword)
|
|
return false;
|
|
#undef DO_
|
|
}
|
|
|
|
void SAlmKeyword::SerializeWithCachedSizes(
|
|
::google::protobuf::io::CodedOutputStream* output) const {
|
|
// @@protoc_insertion_point(serialize_start:iot_idl.SAlmKeyword)
|
|
// required int32 id = 1;
|
|
if (has_id()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->id(), output);
|
|
}
|
|
|
|
// required string value = 2;
|
|
if (has_value()) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->value().data(), this->value().length(),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"value");
|
|
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
2, this->value(), output);
|
|
}
|
|
|
|
if (!unknown_fields().empty()) {
|
|
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
|
|
unknown_fields(), output);
|
|
}
|
|
// @@protoc_insertion_point(serialize_end:iot_idl.SAlmKeyword)
|
|
}
|
|
|
|
::google::protobuf::uint8* SAlmKeyword::SerializeWithCachedSizesToArray(
|
|
::google::protobuf::uint8* target) const {
|
|
// @@protoc_insertion_point(serialize_to_array_start:iot_idl.SAlmKeyword)
|
|
// required int32 id = 1;
|
|
if (has_id()) {
|
|
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->id(), target);
|
|
}
|
|
|
|
// required string value = 2;
|
|
if (has_value()) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->value().data(), this->value().length(),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"value");
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
|
|
2, this->value(), target);
|
|
}
|
|
|
|
if (!unknown_fields().empty()) {
|
|
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
|
|
unknown_fields(), target);
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_end:iot_idl.SAlmKeyword)
|
|
return target;
|
|
}
|
|
|
|
int SAlmKeyword::ByteSize() const {
|
|
int total_size = 0;
|
|
|
|
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
|
// required int32 id = 1;
|
|
if (has_id()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::Int32Size(
|
|
this->id());
|
|
}
|
|
|
|
// required string value = 2;
|
|
if (has_value()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->value());
|
|
}
|
|
|
|
}
|
|
if (!unknown_fields().empty()) {
|
|
total_size +=
|
|
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
|
|
unknown_fields());
|
|
}
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = total_size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
return total_size;
|
|
}
|
|
|
|
void SAlmKeyword::MergeFrom(const ::google::protobuf::Message& from) {
|
|
GOOGLE_CHECK_NE(&from, this);
|
|
const SAlmKeyword* source =
|
|
::google::protobuf::internal::dynamic_cast_if_available<const SAlmKeyword*>(
|
|
&from);
|
|
if (source == NULL) {
|
|
::google::protobuf::internal::ReflectionOps::Merge(from, this);
|
|
} else {
|
|
MergeFrom(*source);
|
|
}
|
|
}
|
|
|
|
void SAlmKeyword::MergeFrom(const SAlmKeyword& from) {
|
|
GOOGLE_CHECK_NE(&from, this);
|
|
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
|
if (from.has_id()) {
|
|
set_id(from.id());
|
|
}
|
|
if (from.has_value()) {
|
|
set_value(from.value());
|
|
}
|
|
}
|
|
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
|
|
}
|
|
|
|
void SAlmKeyword::CopyFrom(const ::google::protobuf::Message& from) {
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
void SAlmKeyword::CopyFrom(const SAlmKeyword& from) {
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool SAlmKeyword::IsInitialized() const {
|
|
if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false;
|
|
|
|
return true;
|
|
}
|
|
|
|
void SAlmKeyword::Swap(SAlmKeyword* other) {
|
|
if (other != this) {
|
|
std::swap(id_, other->id_);
|
|
std::swap(value_, other->value_);
|
|
std::swap(_has_bits_[0], other->_has_bits_[0]);
|
|
_unknown_fields_.Swap(&other->_unknown_fields_);
|
|
std::swap(_cached_size_, other->_cached_size_);
|
|
}
|
|
}
|
|
|
|
::google::protobuf::Metadata SAlmKeyword::GetMetadata() const {
|
|
protobuf_AssignDescriptorsOnce();
|
|
::google::protobuf::Metadata metadata;
|
|
metadata.descriptor = SAlmKeyword_descriptor_;
|
|
metadata.reflection = SAlmKeyword_reflection_;
|
|
return metadata;
|
|
}
|
|
|
|
|
|
// ===================================================================
|
|
|
|
#ifndef _MSC_VER
|
|
const int SAlmInfoFromApp::kAlmTypeFieldNumber;
|
|
const int SAlmInfoFromApp::kStatusFieldNumber;
|
|
const int SAlmInfoFromApp::kTimeStampFieldNumber;
|
|
const int SAlmInfoFromApp::kLocationIdFieldNumber;
|
|
const int SAlmInfoFromApp::kAlmStyleFieldNumber;
|
|
const int SAlmInfoFromApp::kAlmKeywordFieldNumber;
|
|
const int SAlmInfoFromApp::kSubSystemFieldNumber;
|
|
const int SAlmInfoFromApp::kDevTypeFieldNumber;
|
|
const int SAlmInfoFromApp::kRegionIdFieldNumber;
|
|
const int SAlmInfoFromApp::kDevGroupTagFieldNumber;
|
|
const int SAlmInfoFromApp::kKeyIdTagFieldNumber;
|
|
const int SAlmInfoFromApp::kGraphNameFieldNumber;
|
|
const int SAlmInfoFromApp::kSoundFileFieldNumber;
|
|
const int SAlmInfoFromApp::kAlmMannerFieldNumber;
|
|
const int SAlmInfoFromApp::kCameraTagFieldNumber;
|
|
const int SAlmInfoFromApp::kCameraPresetFieldNumber;
|
|
#endif // !_MSC_VER
|
|
|
|
SAlmInfoFromApp::SAlmInfoFromApp()
|
|
: ::google::protobuf::Message() {
|
|
SharedCtor();
|
|
// @@protoc_insertion_point(constructor:iot_idl.SAlmInfoFromApp)
|
|
}
|
|
|
|
void SAlmInfoFromApp::InitAsDefaultInstance() {
|
|
alm_manner_ = const_cast< ::iot_idl::SAlmManner*>(&::iot_idl::SAlmManner::default_instance());
|
|
}
|
|
|
|
SAlmInfoFromApp::SAlmInfoFromApp(const SAlmInfoFromApp& from)
|
|
: ::google::protobuf::Message() {
|
|
SharedCtor();
|
|
MergeFrom(from);
|
|
// @@protoc_insertion_point(copy_constructor:iot_idl.SAlmInfoFromApp)
|
|
}
|
|
|
|
void SAlmInfoFromApp::SharedCtor() {
|
|
::google::protobuf::internal::GetEmptyString();
|
|
_cached_size_ = 0;
|
|
alm_type_ = 0;
|
|
status_ = 0;
|
|
time_stamp_ = GOOGLE_LONGLONG(0);
|
|
location_id_ = 0;
|
|
alm_style_ = 0;
|
|
sub_system_ = 0;
|
|
dev_type_ = 0;
|
|
region_id_ = 0;
|
|
dev_group_tag_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
key_id_tag_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
graph_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
alm_manner_ = NULL;
|
|
camera_tag_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
camera_preset_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
}
|
|
|
|
SAlmInfoFromApp::~SAlmInfoFromApp() {
|
|
// @@protoc_insertion_point(destructor:iot_idl.SAlmInfoFromApp)
|
|
SharedDtor();
|
|
}
|
|
|
|
void SAlmInfoFromApp::SharedDtor() {
|
|
if (dev_group_tag_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
delete dev_group_tag_;
|
|
}
|
|
if (key_id_tag_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
delete key_id_tag_;
|
|
}
|
|
if (graph_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
delete graph_name_;
|
|
}
|
|
if (camera_tag_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
delete camera_tag_;
|
|
}
|
|
if (camera_preset_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
delete camera_preset_;
|
|
}
|
|
if (this != default_instance_) {
|
|
delete alm_manner_;
|
|
}
|
|
}
|
|
|
|
void SAlmInfoFromApp::SetCachedSize(int size) const {
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
}
|
|
const ::google::protobuf::Descriptor* SAlmInfoFromApp::descriptor() {
|
|
protobuf_AssignDescriptorsOnce();
|
|
return SAlmInfoFromApp_descriptor_;
|
|
}
|
|
|
|
const SAlmInfoFromApp& SAlmInfoFromApp::default_instance() {
|
|
if (default_instance_ == NULL) protobuf_AddDesc_AlarmMessage_2eproto();
|
|
return *default_instance_;
|
|
}
|
|
|
|
SAlmInfoFromApp* SAlmInfoFromApp::default_instance_ = NULL;
|
|
|
|
SAlmInfoFromApp* SAlmInfoFromApp::New() const {
|
|
return new SAlmInfoFromApp;
|
|
}
|
|
|
|
void SAlmInfoFromApp::Clear() {
|
|
#define OFFSET_OF_FIELD_(f) (reinterpret_cast<char*>( \
|
|
&reinterpret_cast<SAlmInfoFromApp*>(16)->f) - \
|
|
reinterpret_cast<char*>(16))
|
|
|
|
#define ZR_(first, last) do { \
|
|
size_t f = OFFSET_OF_FIELD_(first); \
|
|
size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \
|
|
::memset(&first, 0, n); \
|
|
} while (0)
|
|
|
|
if (_has_bits_[0 / 32] & 223) {
|
|
ZR_(alm_type_, alm_style_);
|
|
ZR_(sub_system_, dev_type_);
|
|
}
|
|
if (_has_bits_[8 / 32] & 61184) {
|
|
region_id_ = 0;
|
|
if (has_dev_group_tag()) {
|
|
if (dev_group_tag_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
dev_group_tag_->clear();
|
|
}
|
|
}
|
|
if (has_key_id_tag()) {
|
|
if (key_id_tag_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
key_id_tag_->clear();
|
|
}
|
|
}
|
|
if (has_graph_name()) {
|
|
if (graph_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
graph_name_->clear();
|
|
}
|
|
}
|
|
if (has_alm_manner()) {
|
|
if (alm_manner_ != NULL) alm_manner_->::iot_idl::SAlmManner::Clear();
|
|
}
|
|
if (has_camera_tag()) {
|
|
if (camera_tag_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
camera_tag_->clear();
|
|
}
|
|
}
|
|
if (has_camera_preset()) {
|
|
if (camera_preset_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
camera_preset_->clear();
|
|
}
|
|
}
|
|
}
|
|
|
|
#undef OFFSET_OF_FIELD_
|
|
#undef ZR_
|
|
|
|
alm_keyword_.Clear();
|
|
sound_file_.Clear();
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
mutable_unknown_fields()->Clear();
|
|
}
|
|
|
|
bool SAlmInfoFromApp::MergePartialFromCodedStream(
|
|
::google::protobuf::io::CodedInputStream* input) {
|
|
#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
|
|
::google::protobuf::uint32 tag;
|
|
// @@protoc_insertion_point(parse_start:iot_idl.SAlmInfoFromApp)
|
|
for (;;) {
|
|
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(16383);
|
|
tag = p.first;
|
|
if (!p.second) goto handle_unusual;
|
|
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
// required int32 alm_type = 1;
|
|
case 1: {
|
|
if (tag == 8) {
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
|
|
input, &alm_type_)));
|
|
set_has_alm_type();
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(16)) goto parse_status;
|
|
break;
|
|
}
|
|
|
|
// required int32 status = 2;
|
|
case 2: {
|
|
if (tag == 16) {
|
|
parse_status:
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
|
|
input, &status_)));
|
|
set_has_status();
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(24)) goto parse_time_stamp;
|
|
break;
|
|
}
|
|
|
|
// required int64 time_stamp = 3;
|
|
case 3: {
|
|
if (tag == 24) {
|
|
parse_time_stamp:
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
|
|
input, &time_stamp_)));
|
|
set_has_time_stamp();
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(32)) goto parse_location_id;
|
|
break;
|
|
}
|
|
|
|
// required int32 location_id = 4;
|
|
case 4: {
|
|
if (tag == 32) {
|
|
parse_location_id:
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
|
|
input, &location_id_)));
|
|
set_has_location_id();
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(40)) goto parse_alm_style;
|
|
break;
|
|
}
|
|
|
|
// required .iot_idl.enAlmStyle alm_style = 5;
|
|
case 5: {
|
|
if (tag == 40) {
|
|
parse_alm_style:
|
|
int value;
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
|
|
input, &value)));
|
|
if (::iot_idl::enAlmStyle_IsValid(value)) {
|
|
set_alm_style(static_cast< ::iot_idl::enAlmStyle >(value));
|
|
} else {
|
|
mutable_unknown_fields()->AddVarint(5, value);
|
|
}
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(50)) goto parse_alm_keyword;
|
|
break;
|
|
}
|
|
|
|
// repeated .iot_idl.SAlmKeyword alm_keyword = 6;
|
|
case 6: {
|
|
if (tag == 50) {
|
|
parse_alm_keyword:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
|
|
input, add_alm_keyword()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(50)) goto parse_alm_keyword;
|
|
if (input->ExpectTag(56)) goto parse_sub_system;
|
|
break;
|
|
}
|
|
|
|
// optional int32 sub_system = 7;
|
|
case 7: {
|
|
if (tag == 56) {
|
|
parse_sub_system:
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
|
|
input, &sub_system_)));
|
|
set_has_sub_system();
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(64)) goto parse_dev_type;
|
|
break;
|
|
}
|
|
|
|
// optional int32 dev_type = 8;
|
|
case 8: {
|
|
if (tag == 64) {
|
|
parse_dev_type:
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
|
|
input, &dev_type_)));
|
|
set_has_dev_type();
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(72)) goto parse_region_id;
|
|
break;
|
|
}
|
|
|
|
// optional int32 region_id = 9;
|
|
case 9: {
|
|
if (tag == 72) {
|
|
parse_region_id:
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
|
|
input, ®ion_id_)));
|
|
set_has_region_id();
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(82)) goto parse_dev_group_tag;
|
|
break;
|
|
}
|
|
|
|
// optional string dev_group_tag = 10;
|
|
case 10: {
|
|
if (tag == 82) {
|
|
parse_dev_group_tag:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_dev_group_tag()));
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->dev_group_tag().data(), this->dev_group_tag().length(),
|
|
::google::protobuf::internal::WireFormat::PARSE,
|
|
"dev_group_tag");
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(90)) goto parse_key_id_tag;
|
|
break;
|
|
}
|
|
|
|
// optional string key_id_tag = 11;
|
|
case 11: {
|
|
if (tag == 90) {
|
|
parse_key_id_tag:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_key_id_tag()));
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->key_id_tag().data(), this->key_id_tag().length(),
|
|
::google::protobuf::internal::WireFormat::PARSE,
|
|
"key_id_tag");
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(98)) goto parse_graph_name;
|
|
break;
|
|
}
|
|
|
|
// optional string graph_name = 12;
|
|
case 12: {
|
|
if (tag == 98) {
|
|
parse_graph_name:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_graph_name()));
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->graph_name().data(), this->graph_name().length(),
|
|
::google::protobuf::internal::WireFormat::PARSE,
|
|
"graph_name");
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(106)) goto parse_sound_file;
|
|
break;
|
|
}
|
|
|
|
// repeated string sound_file = 13;
|
|
case 13: {
|
|
if (tag == 106) {
|
|
parse_sound_file:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
input, this->add_sound_file()));
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->sound_file(this->sound_file_size() - 1).data(),
|
|
this->sound_file(this->sound_file_size() - 1).length(),
|
|
::google::protobuf::internal::WireFormat::PARSE,
|
|
"sound_file");
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(106)) goto parse_sound_file;
|
|
if (input->ExpectTag(114)) goto parse_alm_manner;
|
|
break;
|
|
}
|
|
|
|
// optional .iot_idl.SAlmManner alm_manner = 14;
|
|
case 14: {
|
|
if (tag == 114) {
|
|
parse_alm_manner:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
|
|
input, mutable_alm_manner()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(122)) goto parse_camera_tag;
|
|
break;
|
|
}
|
|
|
|
// optional string camera_tag = 15;
|
|
case 15: {
|
|
if (tag == 122) {
|
|
parse_camera_tag:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_camera_tag()));
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->camera_tag().data(), this->camera_tag().length(),
|
|
::google::protobuf::internal::WireFormat::PARSE,
|
|
"camera_tag");
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(130)) goto parse_camera_preset;
|
|
break;
|
|
}
|
|
|
|
// optional string camera_preset = 16;
|
|
case 16: {
|
|
if (tag == 130) {
|
|
parse_camera_preset:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_camera_preset()));
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->camera_preset().data(), this->camera_preset().length(),
|
|
::google::protobuf::internal::WireFormat::PARSE,
|
|
"camera_preset");
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectAtEnd()) goto success;
|
|
break;
|
|
}
|
|
|
|
default: {
|
|
handle_unusual:
|
|
if (tag == 0 ||
|
|
::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
|
|
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
|
|
goto success;
|
|
}
|
|
DO_(::google::protobuf::internal::WireFormat::SkipField(
|
|
input, tag, mutable_unknown_fields()));
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
success:
|
|
// @@protoc_insertion_point(parse_success:iot_idl.SAlmInfoFromApp)
|
|
return true;
|
|
failure:
|
|
// @@protoc_insertion_point(parse_failure:iot_idl.SAlmInfoFromApp)
|
|
return false;
|
|
#undef DO_
|
|
}
|
|
|
|
void SAlmInfoFromApp::SerializeWithCachedSizes(
|
|
::google::protobuf::io::CodedOutputStream* output) const {
|
|
// @@protoc_insertion_point(serialize_start:iot_idl.SAlmInfoFromApp)
|
|
// required int32 alm_type = 1;
|
|
if (has_alm_type()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->alm_type(), output);
|
|
}
|
|
|
|
// required int32 status = 2;
|
|
if (has_status()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->status(), output);
|
|
}
|
|
|
|
// required int64 time_stamp = 3;
|
|
if (has_time_stamp()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteInt64(3, this->time_stamp(), output);
|
|
}
|
|
|
|
// required int32 location_id = 4;
|
|
if (has_location_id()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->location_id(), output);
|
|
}
|
|
|
|
// required .iot_idl.enAlmStyle alm_style = 5;
|
|
if (has_alm_style()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteEnum(
|
|
5, this->alm_style(), output);
|
|
}
|
|
|
|
// repeated .iot_idl.SAlmKeyword alm_keyword = 6;
|
|
for (int i = 0; i < this->alm_keyword_size(); i++) {
|
|
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
|
|
6, this->alm_keyword(i), output);
|
|
}
|
|
|
|
// optional int32 sub_system = 7;
|
|
if (has_sub_system()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteInt32(7, this->sub_system(), output);
|
|
}
|
|
|
|
// optional int32 dev_type = 8;
|
|
if (has_dev_type()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteInt32(8, this->dev_type(), output);
|
|
}
|
|
|
|
// optional int32 region_id = 9;
|
|
if (has_region_id()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteInt32(9, this->region_id(), output);
|
|
}
|
|
|
|
// optional string dev_group_tag = 10;
|
|
if (has_dev_group_tag()) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->dev_group_tag().data(), this->dev_group_tag().length(),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"dev_group_tag");
|
|
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
10, this->dev_group_tag(), output);
|
|
}
|
|
|
|
// optional string key_id_tag = 11;
|
|
if (has_key_id_tag()) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->key_id_tag().data(), this->key_id_tag().length(),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"key_id_tag");
|
|
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
11, this->key_id_tag(), output);
|
|
}
|
|
|
|
// optional string graph_name = 12;
|
|
if (has_graph_name()) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->graph_name().data(), this->graph_name().length(),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"graph_name");
|
|
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
12, this->graph_name(), output);
|
|
}
|
|
|
|
// repeated string sound_file = 13;
|
|
for (int i = 0; i < this->sound_file_size(); i++) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->sound_file(i).data(), this->sound_file(i).length(),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"sound_file");
|
|
::google::protobuf::internal::WireFormatLite::WriteString(
|
|
13, this->sound_file(i), output);
|
|
}
|
|
|
|
// optional .iot_idl.SAlmManner alm_manner = 14;
|
|
if (has_alm_manner()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
|
|
14, this->alm_manner(), output);
|
|
}
|
|
|
|
// optional string camera_tag = 15;
|
|
if (has_camera_tag()) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->camera_tag().data(), this->camera_tag().length(),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"camera_tag");
|
|
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
15, this->camera_tag(), output);
|
|
}
|
|
|
|
// optional string camera_preset = 16;
|
|
if (has_camera_preset()) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->camera_preset().data(), this->camera_preset().length(),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"camera_preset");
|
|
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
16, this->camera_preset(), output);
|
|
}
|
|
|
|
if (!unknown_fields().empty()) {
|
|
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
|
|
unknown_fields(), output);
|
|
}
|
|
// @@protoc_insertion_point(serialize_end:iot_idl.SAlmInfoFromApp)
|
|
}
|
|
|
|
::google::protobuf::uint8* SAlmInfoFromApp::SerializeWithCachedSizesToArray(
|
|
::google::protobuf::uint8* target) const {
|
|
// @@protoc_insertion_point(serialize_to_array_start:iot_idl.SAlmInfoFromApp)
|
|
// required int32 alm_type = 1;
|
|
if (has_alm_type()) {
|
|
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->alm_type(), target);
|
|
}
|
|
|
|
// required int32 status = 2;
|
|
if (has_status()) {
|
|
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->status(), target);
|
|
}
|
|
|
|
// required int64 time_stamp = 3;
|
|
if (has_time_stamp()) {
|
|
target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(3, this->time_stamp(), target);
|
|
}
|
|
|
|
// required int32 location_id = 4;
|
|
if (has_location_id()) {
|
|
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->location_id(), target);
|
|
}
|
|
|
|
// required .iot_idl.enAlmStyle alm_style = 5;
|
|
if (has_alm_style()) {
|
|
target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
|
|
5, this->alm_style(), target);
|
|
}
|
|
|
|
// repeated .iot_idl.SAlmKeyword alm_keyword = 6;
|
|
for (int i = 0; i < this->alm_keyword_size(); i++) {
|
|
target = ::google::protobuf::internal::WireFormatLite::
|
|
WriteMessageNoVirtualToArray(
|
|
6, this->alm_keyword(i), target);
|
|
}
|
|
|
|
// optional int32 sub_system = 7;
|
|
if (has_sub_system()) {
|
|
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(7, this->sub_system(), target);
|
|
}
|
|
|
|
// optional int32 dev_type = 8;
|
|
if (has_dev_type()) {
|
|
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(8, this->dev_type(), target);
|
|
}
|
|
|
|
// optional int32 region_id = 9;
|
|
if (has_region_id()) {
|
|
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(9, this->region_id(), target);
|
|
}
|
|
|
|
// optional string dev_group_tag = 10;
|
|
if (has_dev_group_tag()) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->dev_group_tag().data(), this->dev_group_tag().length(),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"dev_group_tag");
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
|
|
10, this->dev_group_tag(), target);
|
|
}
|
|
|
|
// optional string key_id_tag = 11;
|
|
if (has_key_id_tag()) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->key_id_tag().data(), this->key_id_tag().length(),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"key_id_tag");
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
|
|
11, this->key_id_tag(), target);
|
|
}
|
|
|
|
// optional string graph_name = 12;
|
|
if (has_graph_name()) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->graph_name().data(), this->graph_name().length(),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"graph_name");
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
|
|
12, this->graph_name(), target);
|
|
}
|
|
|
|
// repeated string sound_file = 13;
|
|
for (int i = 0; i < this->sound_file_size(); i++) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->sound_file(i).data(), this->sound_file(i).length(),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"sound_file");
|
|
target = ::google::protobuf::internal::WireFormatLite::
|
|
WriteStringToArray(13, this->sound_file(i), target);
|
|
}
|
|
|
|
// optional .iot_idl.SAlmManner alm_manner = 14;
|
|
if (has_alm_manner()) {
|
|
target = ::google::protobuf::internal::WireFormatLite::
|
|
WriteMessageNoVirtualToArray(
|
|
14, this->alm_manner(), target);
|
|
}
|
|
|
|
// optional string camera_tag = 15;
|
|
if (has_camera_tag()) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->camera_tag().data(), this->camera_tag().length(),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"camera_tag");
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
|
|
15, this->camera_tag(), target);
|
|
}
|
|
|
|
// optional string camera_preset = 16;
|
|
if (has_camera_preset()) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->camera_preset().data(), this->camera_preset().length(),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"camera_preset");
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
|
|
16, this->camera_preset(), target);
|
|
}
|
|
|
|
if (!unknown_fields().empty()) {
|
|
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
|
|
unknown_fields(), target);
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_end:iot_idl.SAlmInfoFromApp)
|
|
return target;
|
|
}
|
|
|
|
int SAlmInfoFromApp::ByteSize() const {
|
|
int total_size = 0;
|
|
|
|
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
|
// required int32 alm_type = 1;
|
|
if (has_alm_type()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::Int32Size(
|
|
this->alm_type());
|
|
}
|
|
|
|
// required int32 status = 2;
|
|
if (has_status()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::Int32Size(
|
|
this->status());
|
|
}
|
|
|
|
// required int64 time_stamp = 3;
|
|
if (has_time_stamp()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::Int64Size(
|
|
this->time_stamp());
|
|
}
|
|
|
|
// required int32 location_id = 4;
|
|
if (has_location_id()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::Int32Size(
|
|
this->location_id());
|
|
}
|
|
|
|
// required .iot_idl.enAlmStyle alm_style = 5;
|
|
if (has_alm_style()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::EnumSize(this->alm_style());
|
|
}
|
|
|
|
// optional int32 sub_system = 7;
|
|
if (has_sub_system()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::Int32Size(
|
|
this->sub_system());
|
|
}
|
|
|
|
// optional int32 dev_type = 8;
|
|
if (has_dev_type()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::Int32Size(
|
|
this->dev_type());
|
|
}
|
|
|
|
}
|
|
if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) {
|
|
// optional int32 region_id = 9;
|
|
if (has_region_id()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::Int32Size(
|
|
this->region_id());
|
|
}
|
|
|
|
// optional string dev_group_tag = 10;
|
|
if (has_dev_group_tag()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->dev_group_tag());
|
|
}
|
|
|
|
// optional string key_id_tag = 11;
|
|
if (has_key_id_tag()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->key_id_tag());
|
|
}
|
|
|
|
// optional string graph_name = 12;
|
|
if (has_graph_name()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->graph_name());
|
|
}
|
|
|
|
// optional .iot_idl.SAlmManner alm_manner = 14;
|
|
if (has_alm_manner()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
|
|
this->alm_manner());
|
|
}
|
|
|
|
// optional string camera_tag = 15;
|
|
if (has_camera_tag()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->camera_tag());
|
|
}
|
|
|
|
// optional string camera_preset = 16;
|
|
if (has_camera_preset()) {
|
|
total_size += 2 +
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->camera_preset());
|
|
}
|
|
|
|
}
|
|
// repeated .iot_idl.SAlmKeyword alm_keyword = 6;
|
|
total_size += 1 * this->alm_keyword_size();
|
|
for (int i = 0; i < this->alm_keyword_size(); i++) {
|
|
total_size +=
|
|
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
|
|
this->alm_keyword(i));
|
|
}
|
|
|
|
// repeated string sound_file = 13;
|
|
total_size += 1 * this->sound_file_size();
|
|
for (int i = 0; i < this->sound_file_size(); i++) {
|
|
total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->sound_file(i));
|
|
}
|
|
|
|
if (!unknown_fields().empty()) {
|
|
total_size +=
|
|
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
|
|
unknown_fields());
|
|
}
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = total_size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
return total_size;
|
|
}
|
|
|
|
void SAlmInfoFromApp::MergeFrom(const ::google::protobuf::Message& from) {
|
|
GOOGLE_CHECK_NE(&from, this);
|
|
const SAlmInfoFromApp* source =
|
|
::google::protobuf::internal::dynamic_cast_if_available<const SAlmInfoFromApp*>(
|
|
&from);
|
|
if (source == NULL) {
|
|
::google::protobuf::internal::ReflectionOps::Merge(from, this);
|
|
} else {
|
|
MergeFrom(*source);
|
|
}
|
|
}
|
|
|
|
void SAlmInfoFromApp::MergeFrom(const SAlmInfoFromApp& from) {
|
|
GOOGLE_CHECK_NE(&from, this);
|
|
alm_keyword_.MergeFrom(from.alm_keyword_);
|
|
sound_file_.MergeFrom(from.sound_file_);
|
|
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
|
if (from.has_alm_type()) {
|
|
set_alm_type(from.alm_type());
|
|
}
|
|
if (from.has_status()) {
|
|
set_status(from.status());
|
|
}
|
|
if (from.has_time_stamp()) {
|
|
set_time_stamp(from.time_stamp());
|
|
}
|
|
if (from.has_location_id()) {
|
|
set_location_id(from.location_id());
|
|
}
|
|
if (from.has_alm_style()) {
|
|
set_alm_style(from.alm_style());
|
|
}
|
|
if (from.has_sub_system()) {
|
|
set_sub_system(from.sub_system());
|
|
}
|
|
if (from.has_dev_type()) {
|
|
set_dev_type(from.dev_type());
|
|
}
|
|
}
|
|
if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) {
|
|
if (from.has_region_id()) {
|
|
set_region_id(from.region_id());
|
|
}
|
|
if (from.has_dev_group_tag()) {
|
|
set_dev_group_tag(from.dev_group_tag());
|
|
}
|
|
if (from.has_key_id_tag()) {
|
|
set_key_id_tag(from.key_id_tag());
|
|
}
|
|
if (from.has_graph_name()) {
|
|
set_graph_name(from.graph_name());
|
|
}
|
|
if (from.has_alm_manner()) {
|
|
mutable_alm_manner()->::iot_idl::SAlmManner::MergeFrom(from.alm_manner());
|
|
}
|
|
if (from.has_camera_tag()) {
|
|
set_camera_tag(from.camera_tag());
|
|
}
|
|
if (from.has_camera_preset()) {
|
|
set_camera_preset(from.camera_preset());
|
|
}
|
|
}
|
|
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
|
|
}
|
|
|
|
void SAlmInfoFromApp::CopyFrom(const ::google::protobuf::Message& from) {
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
void SAlmInfoFromApp::CopyFrom(const SAlmInfoFromApp& from) {
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool SAlmInfoFromApp::IsInitialized() const {
|
|
if ((_has_bits_[0] & 0x0000001f) != 0x0000001f) return false;
|
|
|
|
if (!::google::protobuf::internal::AllAreInitialized(this->alm_keyword())) return false;
|
|
if (has_alm_manner()) {
|
|
if (!this->alm_manner().IsInitialized()) return false;
|
|
}
|
|
return true;
|
|
}
|
|
|
|
void SAlmInfoFromApp::Swap(SAlmInfoFromApp* other) {
|
|
if (other != this) {
|
|
std::swap(alm_type_, other->alm_type_);
|
|
std::swap(status_, other->status_);
|
|
std::swap(time_stamp_, other->time_stamp_);
|
|
std::swap(location_id_, other->location_id_);
|
|
std::swap(alm_style_, other->alm_style_);
|
|
alm_keyword_.Swap(&other->alm_keyword_);
|
|
std::swap(sub_system_, other->sub_system_);
|
|
std::swap(dev_type_, other->dev_type_);
|
|
std::swap(region_id_, other->region_id_);
|
|
std::swap(dev_group_tag_, other->dev_group_tag_);
|
|
std::swap(key_id_tag_, other->key_id_tag_);
|
|
std::swap(graph_name_, other->graph_name_);
|
|
sound_file_.Swap(&other->sound_file_);
|
|
std::swap(alm_manner_, other->alm_manner_);
|
|
std::swap(camera_tag_, other->camera_tag_);
|
|
std::swap(camera_preset_, other->camera_preset_);
|
|
std::swap(_has_bits_[0], other->_has_bits_[0]);
|
|
_unknown_fields_.Swap(&other->_unknown_fields_);
|
|
std::swap(_cached_size_, other->_cached_size_);
|
|
}
|
|
}
|
|
|
|
::google::protobuf::Metadata SAlmInfoFromApp::GetMetadata() const {
|
|
protobuf_AssignDescriptorsOnce();
|
|
::google::protobuf::Metadata metadata;
|
|
metadata.descriptor = SAlmInfoFromApp_descriptor_;
|
|
metadata.reflection = SAlmInfoFromApp_reflection_;
|
|
return metadata;
|
|
}
|
|
|
|
|
|
// ===================================================================
|
|
|
|
#ifndef _MSC_VER
|
|
const int SAppAddAlm::kDomainIdFieldNumber;
|
|
const int SAppAddAlm::kAppIdFieldNumber;
|
|
const int SAppAddAlm::kAlmInfoFieldNumber;
|
|
#endif // !_MSC_VER
|
|
|
|
SAppAddAlm::SAppAddAlm()
|
|
: ::google::protobuf::Message() {
|
|
SharedCtor();
|
|
// @@protoc_insertion_point(constructor:iot_idl.SAppAddAlm)
|
|
}
|
|
|
|
void SAppAddAlm::InitAsDefaultInstance() {
|
|
}
|
|
|
|
SAppAddAlm::SAppAddAlm(const SAppAddAlm& from)
|
|
: ::google::protobuf::Message() {
|
|
SharedCtor();
|
|
MergeFrom(from);
|
|
// @@protoc_insertion_point(copy_constructor:iot_idl.SAppAddAlm)
|
|
}
|
|
|
|
void SAppAddAlm::SharedCtor() {
|
|
_cached_size_ = 0;
|
|
domain_id_ = 0;
|
|
app_id_ = 0;
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
}
|
|
|
|
SAppAddAlm::~SAppAddAlm() {
|
|
// @@protoc_insertion_point(destructor:iot_idl.SAppAddAlm)
|
|
SharedDtor();
|
|
}
|
|
|
|
void SAppAddAlm::SharedDtor() {
|
|
if (this != default_instance_) {
|
|
}
|
|
}
|
|
|
|
void SAppAddAlm::SetCachedSize(int size) const {
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
}
|
|
const ::google::protobuf::Descriptor* SAppAddAlm::descriptor() {
|
|
protobuf_AssignDescriptorsOnce();
|
|
return SAppAddAlm_descriptor_;
|
|
}
|
|
|
|
const SAppAddAlm& SAppAddAlm::default_instance() {
|
|
if (default_instance_ == NULL) protobuf_AddDesc_AlarmMessage_2eproto();
|
|
return *default_instance_;
|
|
}
|
|
|
|
SAppAddAlm* SAppAddAlm::default_instance_ = NULL;
|
|
|
|
SAppAddAlm* SAppAddAlm::New() const {
|
|
return new SAppAddAlm;
|
|
}
|
|
|
|
void SAppAddAlm::Clear() {
|
|
#define OFFSET_OF_FIELD_(f) (reinterpret_cast<char*>( \
|
|
&reinterpret_cast<SAppAddAlm*>(16)->f) - \
|
|
reinterpret_cast<char*>(16))
|
|
|
|
#define ZR_(first, last) do { \
|
|
size_t f = OFFSET_OF_FIELD_(first); \
|
|
size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \
|
|
::memset(&first, 0, n); \
|
|
} while (0)
|
|
|
|
ZR_(domain_id_, app_id_);
|
|
|
|
#undef OFFSET_OF_FIELD_
|
|
#undef ZR_
|
|
|
|
alm_info_.Clear();
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
mutable_unknown_fields()->Clear();
|
|
}
|
|
|
|
bool SAppAddAlm::MergePartialFromCodedStream(
|
|
::google::protobuf::io::CodedInputStream* input) {
|
|
#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
|
|
::google::protobuf::uint32 tag;
|
|
// @@protoc_insertion_point(parse_start:iot_idl.SAppAddAlm)
|
|
for (;;) {
|
|
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
|
|
tag = p.first;
|
|
if (!p.second) goto handle_unusual;
|
|
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
// optional int32 domain_id = 1;
|
|
case 1: {
|
|
if (tag == 8) {
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
|
|
input, &domain_id_)));
|
|
set_has_domain_id();
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(16)) goto parse_app_id;
|
|
break;
|
|
}
|
|
|
|
// optional int32 app_id = 2;
|
|
case 2: {
|
|
if (tag == 16) {
|
|
parse_app_id:
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
|
|
input, &app_id_)));
|
|
set_has_app_id();
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(26)) goto parse_alm_info;
|
|
break;
|
|
}
|
|
|
|
// repeated .iot_idl.SAlmInfoFromApp alm_info = 3;
|
|
case 3: {
|
|
if (tag == 26) {
|
|
parse_alm_info:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
|
|
input, add_alm_info()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(26)) goto parse_alm_info;
|
|
if (input->ExpectAtEnd()) goto success;
|
|
break;
|
|
}
|
|
|
|
default: {
|
|
handle_unusual:
|
|
if (tag == 0 ||
|
|
::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
|
|
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
|
|
goto success;
|
|
}
|
|
DO_(::google::protobuf::internal::WireFormat::SkipField(
|
|
input, tag, mutable_unknown_fields()));
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
success:
|
|
// @@protoc_insertion_point(parse_success:iot_idl.SAppAddAlm)
|
|
return true;
|
|
failure:
|
|
// @@protoc_insertion_point(parse_failure:iot_idl.SAppAddAlm)
|
|
return false;
|
|
#undef DO_
|
|
}
|
|
|
|
void SAppAddAlm::SerializeWithCachedSizes(
|
|
::google::protobuf::io::CodedOutputStream* output) const {
|
|
// @@protoc_insertion_point(serialize_start:iot_idl.SAppAddAlm)
|
|
// optional int32 domain_id = 1;
|
|
if (has_domain_id()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->domain_id(), output);
|
|
}
|
|
|
|
// optional int32 app_id = 2;
|
|
if (has_app_id()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->app_id(), output);
|
|
}
|
|
|
|
// repeated .iot_idl.SAlmInfoFromApp alm_info = 3;
|
|
for (int i = 0; i < this->alm_info_size(); i++) {
|
|
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
|
|
3, this->alm_info(i), output);
|
|
}
|
|
|
|
if (!unknown_fields().empty()) {
|
|
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
|
|
unknown_fields(), output);
|
|
}
|
|
// @@protoc_insertion_point(serialize_end:iot_idl.SAppAddAlm)
|
|
}
|
|
|
|
::google::protobuf::uint8* SAppAddAlm::SerializeWithCachedSizesToArray(
|
|
::google::protobuf::uint8* target) const {
|
|
// @@protoc_insertion_point(serialize_to_array_start:iot_idl.SAppAddAlm)
|
|
// optional int32 domain_id = 1;
|
|
if (has_domain_id()) {
|
|
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->domain_id(), target);
|
|
}
|
|
|
|
// optional int32 app_id = 2;
|
|
if (has_app_id()) {
|
|
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->app_id(), target);
|
|
}
|
|
|
|
// repeated .iot_idl.SAlmInfoFromApp alm_info = 3;
|
|
for (int i = 0; i < this->alm_info_size(); i++) {
|
|
target = ::google::protobuf::internal::WireFormatLite::
|
|
WriteMessageNoVirtualToArray(
|
|
3, this->alm_info(i), target);
|
|
}
|
|
|
|
if (!unknown_fields().empty()) {
|
|
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
|
|
unknown_fields(), target);
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_end:iot_idl.SAppAddAlm)
|
|
return target;
|
|
}
|
|
|
|
int SAppAddAlm::ByteSize() const {
|
|
int total_size = 0;
|
|
|
|
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
|
// optional int32 domain_id = 1;
|
|
if (has_domain_id()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::Int32Size(
|
|
this->domain_id());
|
|
}
|
|
|
|
// optional int32 app_id = 2;
|
|
if (has_app_id()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::Int32Size(
|
|
this->app_id());
|
|
}
|
|
|
|
}
|
|
// repeated .iot_idl.SAlmInfoFromApp alm_info = 3;
|
|
total_size += 1 * this->alm_info_size();
|
|
for (int i = 0; i < this->alm_info_size(); i++) {
|
|
total_size +=
|
|
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
|
|
this->alm_info(i));
|
|
}
|
|
|
|
if (!unknown_fields().empty()) {
|
|
total_size +=
|
|
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
|
|
unknown_fields());
|
|
}
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = total_size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
return total_size;
|
|
}
|
|
|
|
void SAppAddAlm::MergeFrom(const ::google::protobuf::Message& from) {
|
|
GOOGLE_CHECK_NE(&from, this);
|
|
const SAppAddAlm* source =
|
|
::google::protobuf::internal::dynamic_cast_if_available<const SAppAddAlm*>(
|
|
&from);
|
|
if (source == NULL) {
|
|
::google::protobuf::internal::ReflectionOps::Merge(from, this);
|
|
} else {
|
|
MergeFrom(*source);
|
|
}
|
|
}
|
|
|
|
void SAppAddAlm::MergeFrom(const SAppAddAlm& from) {
|
|
GOOGLE_CHECK_NE(&from, this);
|
|
alm_info_.MergeFrom(from.alm_info_);
|
|
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
|
if (from.has_domain_id()) {
|
|
set_domain_id(from.domain_id());
|
|
}
|
|
if (from.has_app_id()) {
|
|
set_app_id(from.app_id());
|
|
}
|
|
}
|
|
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
|
|
}
|
|
|
|
void SAppAddAlm::CopyFrom(const ::google::protobuf::Message& from) {
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
void SAppAddAlm::CopyFrom(const SAppAddAlm& from) {
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool SAppAddAlm::IsInitialized() const {
|
|
|
|
if (!::google::protobuf::internal::AllAreInitialized(this->alm_info())) return false;
|
|
return true;
|
|
}
|
|
|
|
void SAppAddAlm::Swap(SAppAddAlm* other) {
|
|
if (other != this) {
|
|
std::swap(domain_id_, other->domain_id_);
|
|
std::swap(app_id_, other->app_id_);
|
|
alm_info_.Swap(&other->alm_info_);
|
|
std::swap(_has_bits_[0], other->_has_bits_[0]);
|
|
_unknown_fields_.Swap(&other->_unknown_fields_);
|
|
std::swap(_cached_size_, other->_cached_size_);
|
|
}
|
|
}
|
|
|
|
::google::protobuf::Metadata SAppAddAlm::GetMetadata() const {
|
|
protobuf_AssignDescriptorsOnce();
|
|
::google::protobuf::Metadata metadata;
|
|
metadata.descriptor = SAppAddAlm_descriptor_;
|
|
metadata.reflection = SAppAddAlm_reflection_;
|
|
return metadata;
|
|
}
|
|
|
|
|
|
// ===================================================================
|
|
|
|
#ifndef _MSC_VER
|
|
const int SAppAddWave::kStartTimeFieldNumber;
|
|
const int SAppAddWave::kEndTimeFieldNumber;
|
|
const int SAppAddWave::kDevGroupTagFieldNumber;
|
|
const int SAppAddWave::kWaveFileFieldNumber;
|
|
#endif // !_MSC_VER
|
|
|
|
SAppAddWave::SAppAddWave()
|
|
: ::google::protobuf::Message() {
|
|
SharedCtor();
|
|
// @@protoc_insertion_point(constructor:iot_idl.SAppAddWave)
|
|
}
|
|
|
|
void SAppAddWave::InitAsDefaultInstance() {
|
|
}
|
|
|
|
SAppAddWave::SAppAddWave(const SAppAddWave& from)
|
|
: ::google::protobuf::Message() {
|
|
SharedCtor();
|
|
MergeFrom(from);
|
|
// @@protoc_insertion_point(copy_constructor:iot_idl.SAppAddWave)
|
|
}
|
|
|
|
void SAppAddWave::SharedCtor() {
|
|
::google::protobuf::internal::GetEmptyString();
|
|
_cached_size_ = 0;
|
|
start_time_ = GOOGLE_LONGLONG(0);
|
|
end_time_ = GOOGLE_LONGLONG(0);
|
|
dev_group_tag_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
wave_file_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
}
|
|
|
|
SAppAddWave::~SAppAddWave() {
|
|
// @@protoc_insertion_point(destructor:iot_idl.SAppAddWave)
|
|
SharedDtor();
|
|
}
|
|
|
|
void SAppAddWave::SharedDtor() {
|
|
if (dev_group_tag_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
delete dev_group_tag_;
|
|
}
|
|
if (wave_file_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
delete wave_file_;
|
|
}
|
|
if (this != default_instance_) {
|
|
}
|
|
}
|
|
|
|
void SAppAddWave::SetCachedSize(int size) const {
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
}
|
|
const ::google::protobuf::Descriptor* SAppAddWave::descriptor() {
|
|
protobuf_AssignDescriptorsOnce();
|
|
return SAppAddWave_descriptor_;
|
|
}
|
|
|
|
const SAppAddWave& SAppAddWave::default_instance() {
|
|
if (default_instance_ == NULL) protobuf_AddDesc_AlarmMessage_2eproto();
|
|
return *default_instance_;
|
|
}
|
|
|
|
SAppAddWave* SAppAddWave::default_instance_ = NULL;
|
|
|
|
SAppAddWave* SAppAddWave::New() const {
|
|
return new SAppAddWave;
|
|
}
|
|
|
|
void SAppAddWave::Clear() {
|
|
#define OFFSET_OF_FIELD_(f) (reinterpret_cast<char*>( \
|
|
&reinterpret_cast<SAppAddWave*>(16)->f) - \
|
|
reinterpret_cast<char*>(16))
|
|
|
|
#define ZR_(first, last) do { \
|
|
size_t f = OFFSET_OF_FIELD_(first); \
|
|
size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \
|
|
::memset(&first, 0, n); \
|
|
} while (0)
|
|
|
|
if (_has_bits_[0 / 32] & 15) {
|
|
ZR_(start_time_, end_time_);
|
|
if (has_dev_group_tag()) {
|
|
if (dev_group_tag_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
dev_group_tag_->clear();
|
|
}
|
|
}
|
|
if (has_wave_file()) {
|
|
if (wave_file_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
wave_file_->clear();
|
|
}
|
|
}
|
|
}
|
|
|
|
#undef OFFSET_OF_FIELD_
|
|
#undef ZR_
|
|
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
mutable_unknown_fields()->Clear();
|
|
}
|
|
|
|
bool SAppAddWave::MergePartialFromCodedStream(
|
|
::google::protobuf::io::CodedInputStream* input) {
|
|
#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
|
|
::google::protobuf::uint32 tag;
|
|
// @@protoc_insertion_point(parse_start:iot_idl.SAppAddWave)
|
|
for (;;) {
|
|
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
|
|
tag = p.first;
|
|
if (!p.second) goto handle_unusual;
|
|
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
// required int64 start_time = 1;
|
|
case 1: {
|
|
if (tag == 8) {
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
|
|
input, &start_time_)));
|
|
set_has_start_time();
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(16)) goto parse_end_time;
|
|
break;
|
|
}
|
|
|
|
// required int64 end_time = 2;
|
|
case 2: {
|
|
if (tag == 16) {
|
|
parse_end_time:
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
|
|
input, &end_time_)));
|
|
set_has_end_time();
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(26)) goto parse_dev_group_tag;
|
|
break;
|
|
}
|
|
|
|
// required string dev_group_tag = 3;
|
|
case 3: {
|
|
if (tag == 26) {
|
|
parse_dev_group_tag:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_dev_group_tag()));
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->dev_group_tag().data(), this->dev_group_tag().length(),
|
|
::google::protobuf::internal::WireFormat::PARSE,
|
|
"dev_group_tag");
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(34)) goto parse_wave_file;
|
|
break;
|
|
}
|
|
|
|
// required string wave_file = 4;
|
|
case 4: {
|
|
if (tag == 34) {
|
|
parse_wave_file:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_wave_file()));
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->wave_file().data(), this->wave_file().length(),
|
|
::google::protobuf::internal::WireFormat::PARSE,
|
|
"wave_file");
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectAtEnd()) goto success;
|
|
break;
|
|
}
|
|
|
|
default: {
|
|
handle_unusual:
|
|
if (tag == 0 ||
|
|
::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
|
|
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
|
|
goto success;
|
|
}
|
|
DO_(::google::protobuf::internal::WireFormat::SkipField(
|
|
input, tag, mutable_unknown_fields()));
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
success:
|
|
// @@protoc_insertion_point(parse_success:iot_idl.SAppAddWave)
|
|
return true;
|
|
failure:
|
|
// @@protoc_insertion_point(parse_failure:iot_idl.SAppAddWave)
|
|
return false;
|
|
#undef DO_
|
|
}
|
|
|
|
void SAppAddWave::SerializeWithCachedSizes(
|
|
::google::protobuf::io::CodedOutputStream* output) const {
|
|
// @@protoc_insertion_point(serialize_start:iot_idl.SAppAddWave)
|
|
// required int64 start_time = 1;
|
|
if (has_start_time()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteInt64(1, this->start_time(), output);
|
|
}
|
|
|
|
// required int64 end_time = 2;
|
|
if (has_end_time()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteInt64(2, this->end_time(), output);
|
|
}
|
|
|
|
// required string dev_group_tag = 3;
|
|
if (has_dev_group_tag()) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->dev_group_tag().data(), this->dev_group_tag().length(),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"dev_group_tag");
|
|
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
3, this->dev_group_tag(), output);
|
|
}
|
|
|
|
// required string wave_file = 4;
|
|
if (has_wave_file()) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->wave_file().data(), this->wave_file().length(),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"wave_file");
|
|
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
4, this->wave_file(), output);
|
|
}
|
|
|
|
if (!unknown_fields().empty()) {
|
|
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
|
|
unknown_fields(), output);
|
|
}
|
|
// @@protoc_insertion_point(serialize_end:iot_idl.SAppAddWave)
|
|
}
|
|
|
|
::google::protobuf::uint8* SAppAddWave::SerializeWithCachedSizesToArray(
|
|
::google::protobuf::uint8* target) const {
|
|
// @@protoc_insertion_point(serialize_to_array_start:iot_idl.SAppAddWave)
|
|
// required int64 start_time = 1;
|
|
if (has_start_time()) {
|
|
target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(1, this->start_time(), target);
|
|
}
|
|
|
|
// required int64 end_time = 2;
|
|
if (has_end_time()) {
|
|
target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(2, this->end_time(), target);
|
|
}
|
|
|
|
// required string dev_group_tag = 3;
|
|
if (has_dev_group_tag()) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->dev_group_tag().data(), this->dev_group_tag().length(),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"dev_group_tag");
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
|
|
3, this->dev_group_tag(), target);
|
|
}
|
|
|
|
// required string wave_file = 4;
|
|
if (has_wave_file()) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->wave_file().data(), this->wave_file().length(),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"wave_file");
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
|
|
4, this->wave_file(), target);
|
|
}
|
|
|
|
if (!unknown_fields().empty()) {
|
|
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
|
|
unknown_fields(), target);
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_end:iot_idl.SAppAddWave)
|
|
return target;
|
|
}
|
|
|
|
int SAppAddWave::ByteSize() const {
|
|
int total_size = 0;
|
|
|
|
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
|
// required int64 start_time = 1;
|
|
if (has_start_time()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::Int64Size(
|
|
this->start_time());
|
|
}
|
|
|
|
// required int64 end_time = 2;
|
|
if (has_end_time()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::Int64Size(
|
|
this->end_time());
|
|
}
|
|
|
|
// required string dev_group_tag = 3;
|
|
if (has_dev_group_tag()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->dev_group_tag());
|
|
}
|
|
|
|
// required string wave_file = 4;
|
|
if (has_wave_file()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->wave_file());
|
|
}
|
|
|
|
}
|
|
if (!unknown_fields().empty()) {
|
|
total_size +=
|
|
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
|
|
unknown_fields());
|
|
}
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = total_size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
return total_size;
|
|
}
|
|
|
|
void SAppAddWave::MergeFrom(const ::google::protobuf::Message& from) {
|
|
GOOGLE_CHECK_NE(&from, this);
|
|
const SAppAddWave* source =
|
|
::google::protobuf::internal::dynamic_cast_if_available<const SAppAddWave*>(
|
|
&from);
|
|
if (source == NULL) {
|
|
::google::protobuf::internal::ReflectionOps::Merge(from, this);
|
|
} else {
|
|
MergeFrom(*source);
|
|
}
|
|
}
|
|
|
|
void SAppAddWave::MergeFrom(const SAppAddWave& from) {
|
|
GOOGLE_CHECK_NE(&from, this);
|
|
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
|
if (from.has_start_time()) {
|
|
set_start_time(from.start_time());
|
|
}
|
|
if (from.has_end_time()) {
|
|
set_end_time(from.end_time());
|
|
}
|
|
if (from.has_dev_group_tag()) {
|
|
set_dev_group_tag(from.dev_group_tag());
|
|
}
|
|
if (from.has_wave_file()) {
|
|
set_wave_file(from.wave_file());
|
|
}
|
|
}
|
|
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
|
|
}
|
|
|
|
void SAppAddWave::CopyFrom(const ::google::protobuf::Message& from) {
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
void SAppAddWave::CopyFrom(const SAppAddWave& from) {
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool SAppAddWave::IsInitialized() const {
|
|
if ((_has_bits_[0] & 0x0000000f) != 0x0000000f) return false;
|
|
|
|
return true;
|
|
}
|
|
|
|
void SAppAddWave::Swap(SAppAddWave* other) {
|
|
if (other != this) {
|
|
std::swap(start_time_, other->start_time_);
|
|
std::swap(end_time_, other->end_time_);
|
|
std::swap(dev_group_tag_, other->dev_group_tag_);
|
|
std::swap(wave_file_, other->wave_file_);
|
|
std::swap(_has_bits_[0], other->_has_bits_[0]);
|
|
_unknown_fields_.Swap(&other->_unknown_fields_);
|
|
std::swap(_cached_size_, other->_cached_size_);
|
|
}
|
|
}
|
|
|
|
::google::protobuf::Metadata SAppAddWave::GetMetadata() const {
|
|
protobuf_AssignDescriptorsOnce();
|
|
::google::protobuf::Metadata metadata;
|
|
metadata.descriptor = SAppAddWave_descriptor_;
|
|
metadata.reflection = SAppAddWave_reflection_;
|
|
return metadata;
|
|
}
|
|
|
|
|
|
// ===================================================================
|
|
|
|
#ifndef _MSC_VER
|
|
const int SAlmInfoToAlmClt::kAlmTypeFieldNumber;
|
|
const int SAlmInfoToAlmClt::kAlmStatusFieldNumber;
|
|
const int SAlmInfoToAlmClt::kLogicStateFieldNumber;
|
|
const int SAlmInfoToAlmClt::kTimeStampFieldNumber;
|
|
const int SAlmInfoToAlmClt::kDomainIdFieldNumber;
|
|
const int SAlmInfoToAlmClt::kLocationIdFieldNumber;
|
|
const int SAlmInfoToAlmClt::kAppIdFieldNumber;
|
|
const int SAlmInfoToAlmClt::kPriorityFieldNumber;
|
|
const int SAlmInfoToAlmClt::kIfAckOnRtnFieldNumber;
|
|
const int SAlmInfoToAlmClt::kDelActOnAckFieldNumber;
|
|
const int SAlmInfoToAlmClt::kIfNeverAlmOnRtnFieldNumber;
|
|
const int SAlmInfoToAlmClt::kIfWaterAlmFieldNumber;
|
|
const int SAlmInfoToAlmClt::kUuidBase64FieldNumber;
|
|
const int SAlmInfoToAlmClt::kContentFieldNumber;
|
|
const int SAlmInfoToAlmClt::kSoundFileFieldNumber;
|
|
const int SAlmInfoToAlmClt::kSubSystemFieldNumber;
|
|
const int SAlmInfoToAlmClt::kDevTypeFieldNumber;
|
|
const int SAlmInfoToAlmClt::kRegionIdFieldNumber;
|
|
const int SAlmInfoToAlmClt::kDevGroupTagFieldNumber;
|
|
const int SAlmInfoToAlmClt::kKeyIdTagFieldNumber;
|
|
const int SAlmInfoToAlmClt::kGraphNameFieldNumber;
|
|
const int SAlmInfoToAlmClt::kWaveFileFieldNumber;
|
|
const int SAlmInfoToAlmClt::kCameraTagFieldNumber;
|
|
const int SAlmInfoToAlmClt::kCameraPresetFieldNumber;
|
|
#endif // !_MSC_VER
|
|
|
|
SAlmInfoToAlmClt::SAlmInfoToAlmClt()
|
|
: ::google::protobuf::Message() {
|
|
SharedCtor();
|
|
// @@protoc_insertion_point(constructor:iot_idl.SAlmInfoToAlmClt)
|
|
}
|
|
|
|
void SAlmInfoToAlmClt::InitAsDefaultInstance() {
|
|
}
|
|
|
|
SAlmInfoToAlmClt::SAlmInfoToAlmClt(const SAlmInfoToAlmClt& from)
|
|
: ::google::protobuf::Message() {
|
|
SharedCtor();
|
|
MergeFrom(from);
|
|
// @@protoc_insertion_point(copy_constructor:iot_idl.SAlmInfoToAlmClt)
|
|
}
|
|
|
|
void SAlmInfoToAlmClt::SharedCtor() {
|
|
::google::protobuf::internal::GetEmptyString();
|
|
_cached_size_ = 0;
|
|
alm_type_ = 0;
|
|
alm_status_ = 0;
|
|
logic_state_ = 0;
|
|
time_stamp_ = GOOGLE_LONGLONG(0);
|
|
domain_id_ = 0;
|
|
location_id_ = 0;
|
|
app_id_ = 0;
|
|
priority_ = 0;
|
|
if_ack_on_rtn_ = 0;
|
|
del_act_on_ack_ = 0;
|
|
if_never_alm_on_rtn_ = 0;
|
|
if_water_alm_ = 0;
|
|
uuid_base64_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
content_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
sub_system_ = 0;
|
|
dev_type_ = 0;
|
|
region_id_ = 0;
|
|
dev_group_tag_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
key_id_tag_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
graph_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
wave_file_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
camera_tag_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
camera_preset_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
}
|
|
|
|
SAlmInfoToAlmClt::~SAlmInfoToAlmClt() {
|
|
// @@protoc_insertion_point(destructor:iot_idl.SAlmInfoToAlmClt)
|
|
SharedDtor();
|
|
}
|
|
|
|
void SAlmInfoToAlmClt::SharedDtor() {
|
|
if (uuid_base64_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
delete uuid_base64_;
|
|
}
|
|
if (content_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
delete content_;
|
|
}
|
|
if (dev_group_tag_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
delete dev_group_tag_;
|
|
}
|
|
if (key_id_tag_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
delete key_id_tag_;
|
|
}
|
|
if (graph_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
delete graph_name_;
|
|
}
|
|
if (wave_file_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
delete wave_file_;
|
|
}
|
|
if (camera_tag_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
delete camera_tag_;
|
|
}
|
|
if (camera_preset_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
delete camera_preset_;
|
|
}
|
|
if (this != default_instance_) {
|
|
}
|
|
}
|
|
|
|
void SAlmInfoToAlmClt::SetCachedSize(int size) const {
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
}
|
|
const ::google::protobuf::Descriptor* SAlmInfoToAlmClt::descriptor() {
|
|
protobuf_AssignDescriptorsOnce();
|
|
return SAlmInfoToAlmClt_descriptor_;
|
|
}
|
|
|
|
const SAlmInfoToAlmClt& SAlmInfoToAlmClt::default_instance() {
|
|
if (default_instance_ == NULL) protobuf_AddDesc_AlarmMessage_2eproto();
|
|
return *default_instance_;
|
|
}
|
|
|
|
SAlmInfoToAlmClt* SAlmInfoToAlmClt::default_instance_ = NULL;
|
|
|
|
SAlmInfoToAlmClt* SAlmInfoToAlmClt::New() const {
|
|
return new SAlmInfoToAlmClt;
|
|
}
|
|
|
|
void SAlmInfoToAlmClt::Clear() {
|
|
#define OFFSET_OF_FIELD_(f) (reinterpret_cast<char*>( \
|
|
&reinterpret_cast<SAlmInfoToAlmClt*>(16)->f) - \
|
|
reinterpret_cast<char*>(16))
|
|
|
|
#define ZR_(first, last) do { \
|
|
size_t f = OFFSET_OF_FIELD_(first); \
|
|
size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \
|
|
::memset(&first, 0, n); \
|
|
} while (0)
|
|
|
|
if (_has_bits_[0 / 32] & 255) {
|
|
ZR_(alm_type_, priority_);
|
|
}
|
|
if (_has_bits_[8 / 32] & 48896) {
|
|
ZR_(if_ack_on_rtn_, if_never_alm_on_rtn_);
|
|
ZR_(if_water_alm_, sub_system_);
|
|
if (has_uuid_base64()) {
|
|
if (uuid_base64_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
uuid_base64_->clear();
|
|
}
|
|
}
|
|
if (has_content()) {
|
|
if (content_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
content_->clear();
|
|
}
|
|
}
|
|
}
|
|
if (_has_bits_[16 / 32] & 16711680) {
|
|
ZR_(dev_type_, region_id_);
|
|
if (has_dev_group_tag()) {
|
|
if (dev_group_tag_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
dev_group_tag_->clear();
|
|
}
|
|
}
|
|
if (has_key_id_tag()) {
|
|
if (key_id_tag_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
key_id_tag_->clear();
|
|
}
|
|
}
|
|
if (has_graph_name()) {
|
|
if (graph_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
graph_name_->clear();
|
|
}
|
|
}
|
|
if (has_wave_file()) {
|
|
if (wave_file_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
wave_file_->clear();
|
|
}
|
|
}
|
|
if (has_camera_tag()) {
|
|
if (camera_tag_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
camera_tag_->clear();
|
|
}
|
|
}
|
|
if (has_camera_preset()) {
|
|
if (camera_preset_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
camera_preset_->clear();
|
|
}
|
|
}
|
|
}
|
|
|
|
#undef OFFSET_OF_FIELD_
|
|
#undef ZR_
|
|
|
|
sound_file_.Clear();
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
mutable_unknown_fields()->Clear();
|
|
}
|
|
|
|
bool SAlmInfoToAlmClt::MergePartialFromCodedStream(
|
|
::google::protobuf::io::CodedInputStream* input) {
|
|
#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
|
|
::google::protobuf::uint32 tag;
|
|
// @@protoc_insertion_point(parse_start:iot_idl.SAlmInfoToAlmClt)
|
|
for (;;) {
|
|
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(16383);
|
|
tag = p.first;
|
|
if (!p.second) goto handle_unusual;
|
|
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
// required int32 alm_type = 1;
|
|
case 1: {
|
|
if (tag == 8) {
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
|
|
input, &alm_type_)));
|
|
set_has_alm_type();
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(16)) goto parse_alm_status;
|
|
break;
|
|
}
|
|
|
|
// required int32 alm_status = 2;
|
|
case 2: {
|
|
if (tag == 16) {
|
|
parse_alm_status:
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
|
|
input, &alm_status_)));
|
|
set_has_alm_status();
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(24)) goto parse_logic_state;
|
|
break;
|
|
}
|
|
|
|
// required .iot_idl.enAlmLogicState logic_state = 3;
|
|
case 3: {
|
|
if (tag == 24) {
|
|
parse_logic_state:
|
|
int value;
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
|
|
input, &value)));
|
|
if (::iot_idl::enAlmLogicState_IsValid(value)) {
|
|
set_logic_state(static_cast< ::iot_idl::enAlmLogicState >(value));
|
|
} else {
|
|
mutable_unknown_fields()->AddVarint(3, value);
|
|
}
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(32)) goto parse_time_stamp;
|
|
break;
|
|
}
|
|
|
|
// required int64 time_stamp = 4;
|
|
case 4: {
|
|
if (tag == 32) {
|
|
parse_time_stamp:
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
|
|
input, &time_stamp_)));
|
|
set_has_time_stamp();
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(40)) goto parse_domain_id;
|
|
break;
|
|
}
|
|
|
|
// required int32 domain_id = 5;
|
|
case 5: {
|
|
if (tag == 40) {
|
|
parse_domain_id:
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
|
|
input, &domain_id_)));
|
|
set_has_domain_id();
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(48)) goto parse_location_id;
|
|
break;
|
|
}
|
|
|
|
// required int32 location_id = 6;
|
|
case 6: {
|
|
if (tag == 48) {
|
|
parse_location_id:
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
|
|
input, &location_id_)));
|
|
set_has_location_id();
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(56)) goto parse_app_id;
|
|
break;
|
|
}
|
|
|
|
// required int32 app_id = 7;
|
|
case 7: {
|
|
if (tag == 56) {
|
|
parse_app_id:
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
|
|
input, &app_id_)));
|
|
set_has_app_id();
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(64)) goto parse_priority;
|
|
break;
|
|
}
|
|
|
|
// required int32 priority = 8;
|
|
case 8: {
|
|
if (tag == 64) {
|
|
parse_priority:
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
|
|
input, &priority_)));
|
|
set_has_priority();
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(72)) goto parse_if_ack_on_rtn;
|
|
break;
|
|
}
|
|
|
|
// required int32 if_ack_on_rtn = 9;
|
|
case 9: {
|
|
if (tag == 72) {
|
|
parse_if_ack_on_rtn:
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
|
|
input, &if_ack_on_rtn_)));
|
|
set_has_if_ack_on_rtn();
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(80)) goto parse_del_act_on_ack;
|
|
break;
|
|
}
|
|
|
|
// required int32 del_act_on_ack = 10;
|
|
case 10: {
|
|
if (tag == 80) {
|
|
parse_del_act_on_ack:
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
|
|
input, &del_act_on_ack_)));
|
|
set_has_del_act_on_ack();
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(88)) goto parse_if_never_alm_on_rtn;
|
|
break;
|
|
}
|
|
|
|
// required int32 if_never_alm_on_rtn = 11;
|
|
case 11: {
|
|
if (tag == 88) {
|
|
parse_if_never_alm_on_rtn:
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
|
|
input, &if_never_alm_on_rtn_)));
|
|
set_has_if_never_alm_on_rtn();
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(96)) goto parse_if_water_alm;
|
|
break;
|
|
}
|
|
|
|
// required int32 if_water_alm = 12;
|
|
case 12: {
|
|
if (tag == 96) {
|
|
parse_if_water_alm:
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
|
|
input, &if_water_alm_)));
|
|
set_has_if_water_alm();
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(106)) goto parse_uuid_base64;
|
|
break;
|
|
}
|
|
|
|
// required string uuid_base64 = 13;
|
|
case 13: {
|
|
if (tag == 106) {
|
|
parse_uuid_base64:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_uuid_base64()));
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->uuid_base64().data(), this->uuid_base64().length(),
|
|
::google::protobuf::internal::WireFormat::PARSE,
|
|
"uuid_base64");
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(114)) goto parse_content;
|
|
break;
|
|
}
|
|
|
|
// required string content = 14;
|
|
case 14: {
|
|
if (tag == 114) {
|
|
parse_content:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_content()));
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->content().data(), this->content().length(),
|
|
::google::protobuf::internal::WireFormat::PARSE,
|
|
"content");
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(122)) goto parse_sound_file;
|
|
break;
|
|
}
|
|
|
|
// repeated string sound_file = 15;
|
|
case 15: {
|
|
if (tag == 122) {
|
|
parse_sound_file:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
input, this->add_sound_file()));
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->sound_file(this->sound_file_size() - 1).data(),
|
|
this->sound_file(this->sound_file_size() - 1).length(),
|
|
::google::protobuf::internal::WireFormat::PARSE,
|
|
"sound_file");
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(122)) goto parse_sound_file;
|
|
if (input->ExpectTag(128)) goto parse_sub_system;
|
|
break;
|
|
}
|
|
|
|
// optional int32 sub_system = 16;
|
|
case 16: {
|
|
if (tag == 128) {
|
|
parse_sub_system:
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
|
|
input, &sub_system_)));
|
|
set_has_sub_system();
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(136)) goto parse_dev_type;
|
|
break;
|
|
}
|
|
|
|
// optional int32 dev_type = 17;
|
|
case 17: {
|
|
if (tag == 136) {
|
|
parse_dev_type:
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
|
|
input, &dev_type_)));
|
|
set_has_dev_type();
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(144)) goto parse_region_id;
|
|
break;
|
|
}
|
|
|
|
// optional int32 region_id = 18;
|
|
case 18: {
|
|
if (tag == 144) {
|
|
parse_region_id:
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
|
|
input, ®ion_id_)));
|
|
set_has_region_id();
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(154)) goto parse_dev_group_tag;
|
|
break;
|
|
}
|
|
|
|
// optional string dev_group_tag = 19;
|
|
case 19: {
|
|
if (tag == 154) {
|
|
parse_dev_group_tag:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_dev_group_tag()));
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->dev_group_tag().data(), this->dev_group_tag().length(),
|
|
::google::protobuf::internal::WireFormat::PARSE,
|
|
"dev_group_tag");
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(162)) goto parse_key_id_tag;
|
|
break;
|
|
}
|
|
|
|
// optional string key_id_tag = 20;
|
|
case 20: {
|
|
if (tag == 162) {
|
|
parse_key_id_tag:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_key_id_tag()));
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->key_id_tag().data(), this->key_id_tag().length(),
|
|
::google::protobuf::internal::WireFormat::PARSE,
|
|
"key_id_tag");
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(170)) goto parse_graph_name;
|
|
break;
|
|
}
|
|
|
|
// optional string graph_name = 21;
|
|
case 21: {
|
|
if (tag == 170) {
|
|
parse_graph_name:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_graph_name()));
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->graph_name().data(), this->graph_name().length(),
|
|
::google::protobuf::internal::WireFormat::PARSE,
|
|
"graph_name");
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(178)) goto parse_wave_file;
|
|
break;
|
|
}
|
|
|
|
// optional string wave_file = 22;
|
|
case 22: {
|
|
if (tag == 178) {
|
|
parse_wave_file:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_wave_file()));
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->wave_file().data(), this->wave_file().length(),
|
|
::google::protobuf::internal::WireFormat::PARSE,
|
|
"wave_file");
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(186)) goto parse_camera_tag;
|
|
break;
|
|
}
|
|
|
|
// optional string camera_tag = 23;
|
|
case 23: {
|
|
if (tag == 186) {
|
|
parse_camera_tag:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_camera_tag()));
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->camera_tag().data(), this->camera_tag().length(),
|
|
::google::protobuf::internal::WireFormat::PARSE,
|
|
"camera_tag");
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(194)) goto parse_camera_preset;
|
|
break;
|
|
}
|
|
|
|
// optional string camera_preset = 24;
|
|
case 24: {
|
|
if (tag == 194) {
|
|
parse_camera_preset:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_camera_preset()));
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->camera_preset().data(), this->camera_preset().length(),
|
|
::google::protobuf::internal::WireFormat::PARSE,
|
|
"camera_preset");
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectAtEnd()) goto success;
|
|
break;
|
|
}
|
|
|
|
default: {
|
|
handle_unusual:
|
|
if (tag == 0 ||
|
|
::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
|
|
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
|
|
goto success;
|
|
}
|
|
DO_(::google::protobuf::internal::WireFormat::SkipField(
|
|
input, tag, mutable_unknown_fields()));
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
success:
|
|
// @@protoc_insertion_point(parse_success:iot_idl.SAlmInfoToAlmClt)
|
|
return true;
|
|
failure:
|
|
// @@protoc_insertion_point(parse_failure:iot_idl.SAlmInfoToAlmClt)
|
|
return false;
|
|
#undef DO_
|
|
}
|
|
|
|
void SAlmInfoToAlmClt::SerializeWithCachedSizes(
|
|
::google::protobuf::io::CodedOutputStream* output) const {
|
|
// @@protoc_insertion_point(serialize_start:iot_idl.SAlmInfoToAlmClt)
|
|
// required int32 alm_type = 1;
|
|
if (has_alm_type()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->alm_type(), output);
|
|
}
|
|
|
|
// required int32 alm_status = 2;
|
|
if (has_alm_status()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->alm_status(), output);
|
|
}
|
|
|
|
// required .iot_idl.enAlmLogicState logic_state = 3;
|
|
if (has_logic_state()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteEnum(
|
|
3, this->logic_state(), output);
|
|
}
|
|
|
|
// required int64 time_stamp = 4;
|
|
if (has_time_stamp()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteInt64(4, this->time_stamp(), output);
|
|
}
|
|
|
|
// required int32 domain_id = 5;
|
|
if (has_domain_id()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->domain_id(), output);
|
|
}
|
|
|
|
// required int32 location_id = 6;
|
|
if (has_location_id()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteInt32(6, this->location_id(), output);
|
|
}
|
|
|
|
// required int32 app_id = 7;
|
|
if (has_app_id()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteInt32(7, this->app_id(), output);
|
|
}
|
|
|
|
// required int32 priority = 8;
|
|
if (has_priority()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteInt32(8, this->priority(), output);
|
|
}
|
|
|
|
// required int32 if_ack_on_rtn = 9;
|
|
if (has_if_ack_on_rtn()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteInt32(9, this->if_ack_on_rtn(), output);
|
|
}
|
|
|
|
// required int32 del_act_on_ack = 10;
|
|
if (has_del_act_on_ack()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteInt32(10, this->del_act_on_ack(), output);
|
|
}
|
|
|
|
// required int32 if_never_alm_on_rtn = 11;
|
|
if (has_if_never_alm_on_rtn()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteInt32(11, this->if_never_alm_on_rtn(), output);
|
|
}
|
|
|
|
// required int32 if_water_alm = 12;
|
|
if (has_if_water_alm()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteInt32(12, this->if_water_alm(), output);
|
|
}
|
|
|
|
// required string uuid_base64 = 13;
|
|
if (has_uuid_base64()) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->uuid_base64().data(), this->uuid_base64().length(),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"uuid_base64");
|
|
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
13, this->uuid_base64(), output);
|
|
}
|
|
|
|
// required string content = 14;
|
|
if (has_content()) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->content().data(), this->content().length(),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"content");
|
|
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
14, this->content(), output);
|
|
}
|
|
|
|
// repeated string sound_file = 15;
|
|
for (int i = 0; i < this->sound_file_size(); i++) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->sound_file(i).data(), this->sound_file(i).length(),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"sound_file");
|
|
::google::protobuf::internal::WireFormatLite::WriteString(
|
|
15, this->sound_file(i), output);
|
|
}
|
|
|
|
// optional int32 sub_system = 16;
|
|
if (has_sub_system()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteInt32(16, this->sub_system(), output);
|
|
}
|
|
|
|
// optional int32 dev_type = 17;
|
|
if (has_dev_type()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteInt32(17, this->dev_type(), output);
|
|
}
|
|
|
|
// optional int32 region_id = 18;
|
|
if (has_region_id()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteInt32(18, this->region_id(), output);
|
|
}
|
|
|
|
// optional string dev_group_tag = 19;
|
|
if (has_dev_group_tag()) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->dev_group_tag().data(), this->dev_group_tag().length(),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"dev_group_tag");
|
|
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
19, this->dev_group_tag(), output);
|
|
}
|
|
|
|
// optional string key_id_tag = 20;
|
|
if (has_key_id_tag()) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->key_id_tag().data(), this->key_id_tag().length(),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"key_id_tag");
|
|
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
20, this->key_id_tag(), output);
|
|
}
|
|
|
|
// optional string graph_name = 21;
|
|
if (has_graph_name()) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->graph_name().data(), this->graph_name().length(),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"graph_name");
|
|
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
21, this->graph_name(), output);
|
|
}
|
|
|
|
// optional string wave_file = 22;
|
|
if (has_wave_file()) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->wave_file().data(), this->wave_file().length(),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"wave_file");
|
|
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
22, this->wave_file(), output);
|
|
}
|
|
|
|
// optional string camera_tag = 23;
|
|
if (has_camera_tag()) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->camera_tag().data(), this->camera_tag().length(),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"camera_tag");
|
|
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
23, this->camera_tag(), output);
|
|
}
|
|
|
|
// optional string camera_preset = 24;
|
|
if (has_camera_preset()) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->camera_preset().data(), this->camera_preset().length(),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"camera_preset");
|
|
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
24, this->camera_preset(), output);
|
|
}
|
|
|
|
if (!unknown_fields().empty()) {
|
|
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
|
|
unknown_fields(), output);
|
|
}
|
|
// @@protoc_insertion_point(serialize_end:iot_idl.SAlmInfoToAlmClt)
|
|
}
|
|
|
|
::google::protobuf::uint8* SAlmInfoToAlmClt::SerializeWithCachedSizesToArray(
|
|
::google::protobuf::uint8* target) const {
|
|
// @@protoc_insertion_point(serialize_to_array_start:iot_idl.SAlmInfoToAlmClt)
|
|
// required int32 alm_type = 1;
|
|
if (has_alm_type()) {
|
|
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->alm_type(), target);
|
|
}
|
|
|
|
// required int32 alm_status = 2;
|
|
if (has_alm_status()) {
|
|
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->alm_status(), target);
|
|
}
|
|
|
|
// required .iot_idl.enAlmLogicState logic_state = 3;
|
|
if (has_logic_state()) {
|
|
target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
|
|
3, this->logic_state(), target);
|
|
}
|
|
|
|
// required int64 time_stamp = 4;
|
|
if (has_time_stamp()) {
|
|
target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(4, this->time_stamp(), target);
|
|
}
|
|
|
|
// required int32 domain_id = 5;
|
|
if (has_domain_id()) {
|
|
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->domain_id(), target);
|
|
}
|
|
|
|
// required int32 location_id = 6;
|
|
if (has_location_id()) {
|
|
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(6, this->location_id(), target);
|
|
}
|
|
|
|
// required int32 app_id = 7;
|
|
if (has_app_id()) {
|
|
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(7, this->app_id(), target);
|
|
}
|
|
|
|
// required int32 priority = 8;
|
|
if (has_priority()) {
|
|
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(8, this->priority(), target);
|
|
}
|
|
|
|
// required int32 if_ack_on_rtn = 9;
|
|
if (has_if_ack_on_rtn()) {
|
|
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(9, this->if_ack_on_rtn(), target);
|
|
}
|
|
|
|
// required int32 del_act_on_ack = 10;
|
|
if (has_del_act_on_ack()) {
|
|
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(10, this->del_act_on_ack(), target);
|
|
}
|
|
|
|
// required int32 if_never_alm_on_rtn = 11;
|
|
if (has_if_never_alm_on_rtn()) {
|
|
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(11, this->if_never_alm_on_rtn(), target);
|
|
}
|
|
|
|
// required int32 if_water_alm = 12;
|
|
if (has_if_water_alm()) {
|
|
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(12, this->if_water_alm(), target);
|
|
}
|
|
|
|
// required string uuid_base64 = 13;
|
|
if (has_uuid_base64()) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->uuid_base64().data(), this->uuid_base64().length(),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"uuid_base64");
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
|
|
13, this->uuid_base64(), target);
|
|
}
|
|
|
|
// required string content = 14;
|
|
if (has_content()) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->content().data(), this->content().length(),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"content");
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
|
|
14, this->content(), target);
|
|
}
|
|
|
|
// repeated string sound_file = 15;
|
|
for (int i = 0; i < this->sound_file_size(); i++) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->sound_file(i).data(), this->sound_file(i).length(),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"sound_file");
|
|
target = ::google::protobuf::internal::WireFormatLite::
|
|
WriteStringToArray(15, this->sound_file(i), target);
|
|
}
|
|
|
|
// optional int32 sub_system = 16;
|
|
if (has_sub_system()) {
|
|
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(16, this->sub_system(), target);
|
|
}
|
|
|
|
// optional int32 dev_type = 17;
|
|
if (has_dev_type()) {
|
|
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(17, this->dev_type(), target);
|
|
}
|
|
|
|
// optional int32 region_id = 18;
|
|
if (has_region_id()) {
|
|
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(18, this->region_id(), target);
|
|
}
|
|
|
|
// optional string dev_group_tag = 19;
|
|
if (has_dev_group_tag()) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->dev_group_tag().data(), this->dev_group_tag().length(),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"dev_group_tag");
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
|
|
19, this->dev_group_tag(), target);
|
|
}
|
|
|
|
// optional string key_id_tag = 20;
|
|
if (has_key_id_tag()) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->key_id_tag().data(), this->key_id_tag().length(),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"key_id_tag");
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
|
|
20, this->key_id_tag(), target);
|
|
}
|
|
|
|
// optional string graph_name = 21;
|
|
if (has_graph_name()) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->graph_name().data(), this->graph_name().length(),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"graph_name");
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
|
|
21, this->graph_name(), target);
|
|
}
|
|
|
|
// optional string wave_file = 22;
|
|
if (has_wave_file()) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->wave_file().data(), this->wave_file().length(),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"wave_file");
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
|
|
22, this->wave_file(), target);
|
|
}
|
|
|
|
// optional string camera_tag = 23;
|
|
if (has_camera_tag()) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->camera_tag().data(), this->camera_tag().length(),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"camera_tag");
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
|
|
23, this->camera_tag(), target);
|
|
}
|
|
|
|
// optional string camera_preset = 24;
|
|
if (has_camera_preset()) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->camera_preset().data(), this->camera_preset().length(),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"camera_preset");
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
|
|
24, this->camera_preset(), target);
|
|
}
|
|
|
|
if (!unknown_fields().empty()) {
|
|
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
|
|
unknown_fields(), target);
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_end:iot_idl.SAlmInfoToAlmClt)
|
|
return target;
|
|
}
|
|
|
|
int SAlmInfoToAlmClt::ByteSize() const {
|
|
int total_size = 0;
|
|
|
|
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
|
// required int32 alm_type = 1;
|
|
if (has_alm_type()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::Int32Size(
|
|
this->alm_type());
|
|
}
|
|
|
|
// required int32 alm_status = 2;
|
|
if (has_alm_status()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::Int32Size(
|
|
this->alm_status());
|
|
}
|
|
|
|
// required .iot_idl.enAlmLogicState logic_state = 3;
|
|
if (has_logic_state()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::EnumSize(this->logic_state());
|
|
}
|
|
|
|
// required int64 time_stamp = 4;
|
|
if (has_time_stamp()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::Int64Size(
|
|
this->time_stamp());
|
|
}
|
|
|
|
// required int32 domain_id = 5;
|
|
if (has_domain_id()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::Int32Size(
|
|
this->domain_id());
|
|
}
|
|
|
|
// required int32 location_id = 6;
|
|
if (has_location_id()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::Int32Size(
|
|
this->location_id());
|
|
}
|
|
|
|
// required int32 app_id = 7;
|
|
if (has_app_id()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::Int32Size(
|
|
this->app_id());
|
|
}
|
|
|
|
// required int32 priority = 8;
|
|
if (has_priority()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::Int32Size(
|
|
this->priority());
|
|
}
|
|
|
|
}
|
|
if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) {
|
|
// required int32 if_ack_on_rtn = 9;
|
|
if (has_if_ack_on_rtn()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::Int32Size(
|
|
this->if_ack_on_rtn());
|
|
}
|
|
|
|
// required int32 del_act_on_ack = 10;
|
|
if (has_del_act_on_ack()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::Int32Size(
|
|
this->del_act_on_ack());
|
|
}
|
|
|
|
// required int32 if_never_alm_on_rtn = 11;
|
|
if (has_if_never_alm_on_rtn()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::Int32Size(
|
|
this->if_never_alm_on_rtn());
|
|
}
|
|
|
|
// required int32 if_water_alm = 12;
|
|
if (has_if_water_alm()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::Int32Size(
|
|
this->if_water_alm());
|
|
}
|
|
|
|
// required string uuid_base64 = 13;
|
|
if (has_uuid_base64()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->uuid_base64());
|
|
}
|
|
|
|
// required string content = 14;
|
|
if (has_content()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->content());
|
|
}
|
|
|
|
// optional int32 sub_system = 16;
|
|
if (has_sub_system()) {
|
|
total_size += 2 +
|
|
::google::protobuf::internal::WireFormatLite::Int32Size(
|
|
this->sub_system());
|
|
}
|
|
|
|
}
|
|
if (_has_bits_[16 / 32] & (0xffu << (16 % 32))) {
|
|
// optional int32 dev_type = 17;
|
|
if (has_dev_type()) {
|
|
total_size += 2 +
|
|
::google::protobuf::internal::WireFormatLite::Int32Size(
|
|
this->dev_type());
|
|
}
|
|
|
|
// optional int32 region_id = 18;
|
|
if (has_region_id()) {
|
|
total_size += 2 +
|
|
::google::protobuf::internal::WireFormatLite::Int32Size(
|
|
this->region_id());
|
|
}
|
|
|
|
// optional string dev_group_tag = 19;
|
|
if (has_dev_group_tag()) {
|
|
total_size += 2 +
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->dev_group_tag());
|
|
}
|
|
|
|
// optional string key_id_tag = 20;
|
|
if (has_key_id_tag()) {
|
|
total_size += 2 +
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->key_id_tag());
|
|
}
|
|
|
|
// optional string graph_name = 21;
|
|
if (has_graph_name()) {
|
|
total_size += 2 +
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->graph_name());
|
|
}
|
|
|
|
// optional string wave_file = 22;
|
|
if (has_wave_file()) {
|
|
total_size += 2 +
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->wave_file());
|
|
}
|
|
|
|
// optional string camera_tag = 23;
|
|
if (has_camera_tag()) {
|
|
total_size += 2 +
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->camera_tag());
|
|
}
|
|
|
|
// optional string camera_preset = 24;
|
|
if (has_camera_preset()) {
|
|
total_size += 2 +
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->camera_preset());
|
|
}
|
|
|
|
}
|
|
// repeated string sound_file = 15;
|
|
total_size += 1 * this->sound_file_size();
|
|
for (int i = 0; i < this->sound_file_size(); i++) {
|
|
total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->sound_file(i));
|
|
}
|
|
|
|
if (!unknown_fields().empty()) {
|
|
total_size +=
|
|
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
|
|
unknown_fields());
|
|
}
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = total_size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
return total_size;
|
|
}
|
|
|
|
void SAlmInfoToAlmClt::MergeFrom(const ::google::protobuf::Message& from) {
|
|
GOOGLE_CHECK_NE(&from, this);
|
|
const SAlmInfoToAlmClt* source =
|
|
::google::protobuf::internal::dynamic_cast_if_available<const SAlmInfoToAlmClt*>(
|
|
&from);
|
|
if (source == NULL) {
|
|
::google::protobuf::internal::ReflectionOps::Merge(from, this);
|
|
} else {
|
|
MergeFrom(*source);
|
|
}
|
|
}
|
|
|
|
void SAlmInfoToAlmClt::MergeFrom(const SAlmInfoToAlmClt& from) {
|
|
GOOGLE_CHECK_NE(&from, this);
|
|
sound_file_.MergeFrom(from.sound_file_);
|
|
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
|
if (from.has_alm_type()) {
|
|
set_alm_type(from.alm_type());
|
|
}
|
|
if (from.has_alm_status()) {
|
|
set_alm_status(from.alm_status());
|
|
}
|
|
if (from.has_logic_state()) {
|
|
set_logic_state(from.logic_state());
|
|
}
|
|
if (from.has_time_stamp()) {
|
|
set_time_stamp(from.time_stamp());
|
|
}
|
|
if (from.has_domain_id()) {
|
|
set_domain_id(from.domain_id());
|
|
}
|
|
if (from.has_location_id()) {
|
|
set_location_id(from.location_id());
|
|
}
|
|
if (from.has_app_id()) {
|
|
set_app_id(from.app_id());
|
|
}
|
|
if (from.has_priority()) {
|
|
set_priority(from.priority());
|
|
}
|
|
}
|
|
if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) {
|
|
if (from.has_if_ack_on_rtn()) {
|
|
set_if_ack_on_rtn(from.if_ack_on_rtn());
|
|
}
|
|
if (from.has_del_act_on_ack()) {
|
|
set_del_act_on_ack(from.del_act_on_ack());
|
|
}
|
|
if (from.has_if_never_alm_on_rtn()) {
|
|
set_if_never_alm_on_rtn(from.if_never_alm_on_rtn());
|
|
}
|
|
if (from.has_if_water_alm()) {
|
|
set_if_water_alm(from.if_water_alm());
|
|
}
|
|
if (from.has_uuid_base64()) {
|
|
set_uuid_base64(from.uuid_base64());
|
|
}
|
|
if (from.has_content()) {
|
|
set_content(from.content());
|
|
}
|
|
if (from.has_sub_system()) {
|
|
set_sub_system(from.sub_system());
|
|
}
|
|
}
|
|
if (from._has_bits_[16 / 32] & (0xffu << (16 % 32))) {
|
|
if (from.has_dev_type()) {
|
|
set_dev_type(from.dev_type());
|
|
}
|
|
if (from.has_region_id()) {
|
|
set_region_id(from.region_id());
|
|
}
|
|
if (from.has_dev_group_tag()) {
|
|
set_dev_group_tag(from.dev_group_tag());
|
|
}
|
|
if (from.has_key_id_tag()) {
|
|
set_key_id_tag(from.key_id_tag());
|
|
}
|
|
if (from.has_graph_name()) {
|
|
set_graph_name(from.graph_name());
|
|
}
|
|
if (from.has_wave_file()) {
|
|
set_wave_file(from.wave_file());
|
|
}
|
|
if (from.has_camera_tag()) {
|
|
set_camera_tag(from.camera_tag());
|
|
}
|
|
if (from.has_camera_preset()) {
|
|
set_camera_preset(from.camera_preset());
|
|
}
|
|
}
|
|
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
|
|
}
|
|
|
|
void SAlmInfoToAlmClt::CopyFrom(const ::google::protobuf::Message& from) {
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
void SAlmInfoToAlmClt::CopyFrom(const SAlmInfoToAlmClt& from) {
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool SAlmInfoToAlmClt::IsInitialized() const {
|
|
if ((_has_bits_[0] & 0x00003fff) != 0x00003fff) return false;
|
|
|
|
return true;
|
|
}
|
|
|
|
void SAlmInfoToAlmClt::Swap(SAlmInfoToAlmClt* other) {
|
|
if (other != this) {
|
|
std::swap(alm_type_, other->alm_type_);
|
|
std::swap(alm_status_, other->alm_status_);
|
|
std::swap(logic_state_, other->logic_state_);
|
|
std::swap(time_stamp_, other->time_stamp_);
|
|
std::swap(domain_id_, other->domain_id_);
|
|
std::swap(location_id_, other->location_id_);
|
|
std::swap(app_id_, other->app_id_);
|
|
std::swap(priority_, other->priority_);
|
|
std::swap(if_ack_on_rtn_, other->if_ack_on_rtn_);
|
|
std::swap(del_act_on_ack_, other->del_act_on_ack_);
|
|
std::swap(if_never_alm_on_rtn_, other->if_never_alm_on_rtn_);
|
|
std::swap(if_water_alm_, other->if_water_alm_);
|
|
std::swap(uuid_base64_, other->uuid_base64_);
|
|
std::swap(content_, other->content_);
|
|
sound_file_.Swap(&other->sound_file_);
|
|
std::swap(sub_system_, other->sub_system_);
|
|
std::swap(dev_type_, other->dev_type_);
|
|
std::swap(region_id_, other->region_id_);
|
|
std::swap(dev_group_tag_, other->dev_group_tag_);
|
|
std::swap(key_id_tag_, other->key_id_tag_);
|
|
std::swap(graph_name_, other->graph_name_);
|
|
std::swap(wave_file_, other->wave_file_);
|
|
std::swap(camera_tag_, other->camera_tag_);
|
|
std::swap(camera_preset_, other->camera_preset_);
|
|
std::swap(_has_bits_[0], other->_has_bits_[0]);
|
|
_unknown_fields_.Swap(&other->_unknown_fields_);
|
|
std::swap(_cached_size_, other->_cached_size_);
|
|
}
|
|
}
|
|
|
|
::google::protobuf::Metadata SAlmInfoToAlmClt::GetMetadata() const {
|
|
protobuf_AssignDescriptorsOnce();
|
|
::google::protobuf::Metadata metadata;
|
|
metadata.descriptor = SAlmInfoToAlmClt_descriptor_;
|
|
metadata.reflection = SAlmInfoToAlmClt_reflection_;
|
|
return metadata;
|
|
}
|
|
|
|
|
|
// ===================================================================
|
|
|
|
#ifndef _MSC_VER
|
|
const int SAlmCltAddAlm::kAlmInfoFieldNumber;
|
|
#endif // !_MSC_VER
|
|
|
|
SAlmCltAddAlm::SAlmCltAddAlm()
|
|
: ::google::protobuf::Message() {
|
|
SharedCtor();
|
|
// @@protoc_insertion_point(constructor:iot_idl.SAlmCltAddAlm)
|
|
}
|
|
|
|
void SAlmCltAddAlm::InitAsDefaultInstance() {
|
|
}
|
|
|
|
SAlmCltAddAlm::SAlmCltAddAlm(const SAlmCltAddAlm& from)
|
|
: ::google::protobuf::Message() {
|
|
SharedCtor();
|
|
MergeFrom(from);
|
|
// @@protoc_insertion_point(copy_constructor:iot_idl.SAlmCltAddAlm)
|
|
}
|
|
|
|
void SAlmCltAddAlm::SharedCtor() {
|
|
_cached_size_ = 0;
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
}
|
|
|
|
SAlmCltAddAlm::~SAlmCltAddAlm() {
|
|
// @@protoc_insertion_point(destructor:iot_idl.SAlmCltAddAlm)
|
|
SharedDtor();
|
|
}
|
|
|
|
void SAlmCltAddAlm::SharedDtor() {
|
|
if (this != default_instance_) {
|
|
}
|
|
}
|
|
|
|
void SAlmCltAddAlm::SetCachedSize(int size) const {
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
}
|
|
const ::google::protobuf::Descriptor* SAlmCltAddAlm::descriptor() {
|
|
protobuf_AssignDescriptorsOnce();
|
|
return SAlmCltAddAlm_descriptor_;
|
|
}
|
|
|
|
const SAlmCltAddAlm& SAlmCltAddAlm::default_instance() {
|
|
if (default_instance_ == NULL) protobuf_AddDesc_AlarmMessage_2eproto();
|
|
return *default_instance_;
|
|
}
|
|
|
|
SAlmCltAddAlm* SAlmCltAddAlm::default_instance_ = NULL;
|
|
|
|
SAlmCltAddAlm* SAlmCltAddAlm::New() const {
|
|
return new SAlmCltAddAlm;
|
|
}
|
|
|
|
void SAlmCltAddAlm::Clear() {
|
|
alm_info_.Clear();
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
mutable_unknown_fields()->Clear();
|
|
}
|
|
|
|
bool SAlmCltAddAlm::MergePartialFromCodedStream(
|
|
::google::protobuf::io::CodedInputStream* input) {
|
|
#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
|
|
::google::protobuf::uint32 tag;
|
|
// @@protoc_insertion_point(parse_start:iot_idl.SAlmCltAddAlm)
|
|
for (;;) {
|
|
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
|
|
tag = p.first;
|
|
if (!p.second) goto handle_unusual;
|
|
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
// repeated .iot_idl.SAlmInfoToAlmClt alm_info = 1;
|
|
case 1: {
|
|
if (tag == 10) {
|
|
parse_alm_info:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
|
|
input, add_alm_info()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(10)) goto parse_alm_info;
|
|
if (input->ExpectAtEnd()) goto success;
|
|
break;
|
|
}
|
|
|
|
default: {
|
|
handle_unusual:
|
|
if (tag == 0 ||
|
|
::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
|
|
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
|
|
goto success;
|
|
}
|
|
DO_(::google::protobuf::internal::WireFormat::SkipField(
|
|
input, tag, mutable_unknown_fields()));
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
success:
|
|
// @@protoc_insertion_point(parse_success:iot_idl.SAlmCltAddAlm)
|
|
return true;
|
|
failure:
|
|
// @@protoc_insertion_point(parse_failure:iot_idl.SAlmCltAddAlm)
|
|
return false;
|
|
#undef DO_
|
|
}
|
|
|
|
void SAlmCltAddAlm::SerializeWithCachedSizes(
|
|
::google::protobuf::io::CodedOutputStream* output) const {
|
|
// @@protoc_insertion_point(serialize_start:iot_idl.SAlmCltAddAlm)
|
|
// repeated .iot_idl.SAlmInfoToAlmClt alm_info = 1;
|
|
for (int i = 0; i < this->alm_info_size(); i++) {
|
|
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
|
|
1, this->alm_info(i), output);
|
|
}
|
|
|
|
if (!unknown_fields().empty()) {
|
|
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
|
|
unknown_fields(), output);
|
|
}
|
|
// @@protoc_insertion_point(serialize_end:iot_idl.SAlmCltAddAlm)
|
|
}
|
|
|
|
::google::protobuf::uint8* SAlmCltAddAlm::SerializeWithCachedSizesToArray(
|
|
::google::protobuf::uint8* target) const {
|
|
// @@protoc_insertion_point(serialize_to_array_start:iot_idl.SAlmCltAddAlm)
|
|
// repeated .iot_idl.SAlmInfoToAlmClt alm_info = 1;
|
|
for (int i = 0; i < this->alm_info_size(); i++) {
|
|
target = ::google::protobuf::internal::WireFormatLite::
|
|
WriteMessageNoVirtualToArray(
|
|
1, this->alm_info(i), target);
|
|
}
|
|
|
|
if (!unknown_fields().empty()) {
|
|
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
|
|
unknown_fields(), target);
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_end:iot_idl.SAlmCltAddAlm)
|
|
return target;
|
|
}
|
|
|
|
int SAlmCltAddAlm::ByteSize() const {
|
|
int total_size = 0;
|
|
|
|
// repeated .iot_idl.SAlmInfoToAlmClt alm_info = 1;
|
|
total_size += 1 * this->alm_info_size();
|
|
for (int i = 0; i < this->alm_info_size(); i++) {
|
|
total_size +=
|
|
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
|
|
this->alm_info(i));
|
|
}
|
|
|
|
if (!unknown_fields().empty()) {
|
|
total_size +=
|
|
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
|
|
unknown_fields());
|
|
}
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = total_size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
return total_size;
|
|
}
|
|
|
|
void SAlmCltAddAlm::MergeFrom(const ::google::protobuf::Message& from) {
|
|
GOOGLE_CHECK_NE(&from, this);
|
|
const SAlmCltAddAlm* source =
|
|
::google::protobuf::internal::dynamic_cast_if_available<const SAlmCltAddAlm*>(
|
|
&from);
|
|
if (source == NULL) {
|
|
::google::protobuf::internal::ReflectionOps::Merge(from, this);
|
|
} else {
|
|
MergeFrom(*source);
|
|
}
|
|
}
|
|
|
|
void SAlmCltAddAlm::MergeFrom(const SAlmCltAddAlm& from) {
|
|
GOOGLE_CHECK_NE(&from, this);
|
|
alm_info_.MergeFrom(from.alm_info_);
|
|
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
|
|
}
|
|
|
|
void SAlmCltAddAlm::CopyFrom(const ::google::protobuf::Message& from) {
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
void SAlmCltAddAlm::CopyFrom(const SAlmCltAddAlm& from) {
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool SAlmCltAddAlm::IsInitialized() const {
|
|
|
|
if (!::google::protobuf::internal::AllAreInitialized(this->alm_info())) return false;
|
|
return true;
|
|
}
|
|
|
|
void SAlmCltAddAlm::Swap(SAlmCltAddAlm* other) {
|
|
if (other != this) {
|
|
alm_info_.Swap(&other->alm_info_);
|
|
std::swap(_has_bits_[0], other->_has_bits_[0]);
|
|
_unknown_fields_.Swap(&other->_unknown_fields_);
|
|
std::swap(_cached_size_, other->_cached_size_);
|
|
}
|
|
}
|
|
|
|
::google::protobuf::Metadata SAlmCltAddAlm::GetMetadata() const {
|
|
protobuf_AssignDescriptorsOnce();
|
|
::google::protobuf::Metadata metadata;
|
|
metadata.descriptor = SAlmCltAddAlm_descriptor_;
|
|
metadata.reflection = SAlmCltAddAlm_reflection_;
|
|
return metadata;
|
|
}
|
|
|
|
|
|
// ===================================================================
|
|
|
|
#ifndef _MSC_VER
|
|
const int SAlmCltCfmAlm::kNodeNameFieldNumber;
|
|
const int SAlmCltCfmAlm::kUserIdFieldNumber;
|
|
const int SAlmCltCfmAlm::kConfirmTimeFieldNumber;
|
|
const int SAlmCltCfmAlm::kAlmTypeFieldNumber;
|
|
const int SAlmCltCfmAlm::kDomainIdFieldNumber;
|
|
const int SAlmCltCfmAlm::kAppIdFieldNumber;
|
|
const int SAlmCltCfmAlm::kTimeStampFieldNumber;
|
|
const int SAlmCltCfmAlm::kUuidBase64FieldNumber;
|
|
const int SAlmCltCfmAlm::kKeyIdTagFieldNumber;
|
|
#endif // !_MSC_VER
|
|
|
|
SAlmCltCfmAlm::SAlmCltCfmAlm()
|
|
: ::google::protobuf::Message() {
|
|
SharedCtor();
|
|
// @@protoc_insertion_point(constructor:iot_idl.SAlmCltCfmAlm)
|
|
}
|
|
|
|
void SAlmCltCfmAlm::InitAsDefaultInstance() {
|
|
}
|
|
|
|
SAlmCltCfmAlm::SAlmCltCfmAlm(const SAlmCltCfmAlm& from)
|
|
: ::google::protobuf::Message() {
|
|
SharedCtor();
|
|
MergeFrom(from);
|
|
// @@protoc_insertion_point(copy_constructor:iot_idl.SAlmCltCfmAlm)
|
|
}
|
|
|
|
void SAlmCltCfmAlm::SharedCtor() {
|
|
::google::protobuf::internal::GetEmptyString();
|
|
_cached_size_ = 0;
|
|
node_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
user_id_ = 0;
|
|
confirm_time_ = GOOGLE_LONGLONG(0);
|
|
alm_type_ = 0;
|
|
domain_id_ = 0;
|
|
app_id_ = 0;
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
}
|
|
|
|
SAlmCltCfmAlm::~SAlmCltCfmAlm() {
|
|
// @@protoc_insertion_point(destructor:iot_idl.SAlmCltCfmAlm)
|
|
SharedDtor();
|
|
}
|
|
|
|
void SAlmCltCfmAlm::SharedDtor() {
|
|
if (node_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
delete node_name_;
|
|
}
|
|
if (this != default_instance_) {
|
|
}
|
|
}
|
|
|
|
void SAlmCltCfmAlm::SetCachedSize(int size) const {
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
}
|
|
const ::google::protobuf::Descriptor* SAlmCltCfmAlm::descriptor() {
|
|
protobuf_AssignDescriptorsOnce();
|
|
return SAlmCltCfmAlm_descriptor_;
|
|
}
|
|
|
|
const SAlmCltCfmAlm& SAlmCltCfmAlm::default_instance() {
|
|
if (default_instance_ == NULL) protobuf_AddDesc_AlarmMessage_2eproto();
|
|
return *default_instance_;
|
|
}
|
|
|
|
SAlmCltCfmAlm* SAlmCltCfmAlm::default_instance_ = NULL;
|
|
|
|
SAlmCltCfmAlm* SAlmCltCfmAlm::New() const {
|
|
return new SAlmCltCfmAlm;
|
|
}
|
|
|
|
void SAlmCltCfmAlm::Clear() {
|
|
#define OFFSET_OF_FIELD_(f) (reinterpret_cast<char*>( \
|
|
&reinterpret_cast<SAlmCltCfmAlm*>(16)->f) - \
|
|
reinterpret_cast<char*>(16))
|
|
|
|
#define ZR_(first, last) do { \
|
|
size_t f = OFFSET_OF_FIELD_(first); \
|
|
size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \
|
|
::memset(&first, 0, n); \
|
|
} while (0)
|
|
|
|
if (_has_bits_[0 / 32] & 63) {
|
|
ZR_(confirm_time_, app_id_);
|
|
if (has_node_name()) {
|
|
if (node_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
node_name_->clear();
|
|
}
|
|
}
|
|
}
|
|
|
|
#undef OFFSET_OF_FIELD_
|
|
#undef ZR_
|
|
|
|
time_stamp_.Clear();
|
|
uuid_base64_.Clear();
|
|
key_id_tag_.Clear();
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
mutable_unknown_fields()->Clear();
|
|
}
|
|
|
|
bool SAlmCltCfmAlm::MergePartialFromCodedStream(
|
|
::google::protobuf::io::CodedInputStream* input) {
|
|
#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
|
|
::google::protobuf::uint32 tag;
|
|
// @@protoc_insertion_point(parse_start:iot_idl.SAlmCltCfmAlm)
|
|
for (;;) {
|
|
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
|
|
tag = p.first;
|
|
if (!p.second) goto handle_unusual;
|
|
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
// required string node_name = 1;
|
|
case 1: {
|
|
if (tag == 10) {
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_node_name()));
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->node_name().data(), this->node_name().length(),
|
|
::google::protobuf::internal::WireFormat::PARSE,
|
|
"node_name");
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(16)) goto parse_user_id;
|
|
break;
|
|
}
|
|
|
|
// required int32 user_id = 2;
|
|
case 2: {
|
|
if (tag == 16) {
|
|
parse_user_id:
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
|
|
input, &user_id_)));
|
|
set_has_user_id();
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(24)) goto parse_confirm_time;
|
|
break;
|
|
}
|
|
|
|
// required int64 confirm_time = 3;
|
|
case 3: {
|
|
if (tag == 24) {
|
|
parse_confirm_time:
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
|
|
input, &confirm_time_)));
|
|
set_has_confirm_time();
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(32)) goto parse_alm_type;
|
|
break;
|
|
}
|
|
|
|
// required int32 alm_type = 4;
|
|
case 4: {
|
|
if (tag == 32) {
|
|
parse_alm_type:
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
|
|
input, &alm_type_)));
|
|
set_has_alm_type();
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(40)) goto parse_domain_id;
|
|
break;
|
|
}
|
|
|
|
// required int32 domain_id = 5;
|
|
case 5: {
|
|
if (tag == 40) {
|
|
parse_domain_id:
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
|
|
input, &domain_id_)));
|
|
set_has_domain_id();
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(48)) goto parse_app_id;
|
|
break;
|
|
}
|
|
|
|
// required int32 app_id = 6;
|
|
case 6: {
|
|
if (tag == 48) {
|
|
parse_app_id:
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
|
|
input, &app_id_)));
|
|
set_has_app_id();
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(56)) goto parse_time_stamp;
|
|
break;
|
|
}
|
|
|
|
// repeated int64 time_stamp = 7;
|
|
case 7: {
|
|
if (tag == 56) {
|
|
parse_time_stamp:
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
|
|
::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
|
|
1, 56, input, this->mutable_time_stamp())));
|
|
} else if (tag == 58) {
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
|
|
::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
|
|
input, this->mutable_time_stamp())));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(56)) goto parse_time_stamp;
|
|
if (input->ExpectTag(66)) goto parse_uuid_base64;
|
|
break;
|
|
}
|
|
|
|
// repeated string uuid_base64 = 8;
|
|
case 8: {
|
|
if (tag == 66) {
|
|
parse_uuid_base64:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
input, this->add_uuid_base64()));
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->uuid_base64(this->uuid_base64_size() - 1).data(),
|
|
this->uuid_base64(this->uuid_base64_size() - 1).length(),
|
|
::google::protobuf::internal::WireFormat::PARSE,
|
|
"uuid_base64");
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(66)) goto parse_uuid_base64;
|
|
if (input->ExpectTag(74)) goto parse_key_id_tag;
|
|
break;
|
|
}
|
|
|
|
// repeated string key_id_tag = 9;
|
|
case 9: {
|
|
if (tag == 74) {
|
|
parse_key_id_tag:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
input, this->add_key_id_tag()));
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->key_id_tag(this->key_id_tag_size() - 1).data(),
|
|
this->key_id_tag(this->key_id_tag_size() - 1).length(),
|
|
::google::protobuf::internal::WireFormat::PARSE,
|
|
"key_id_tag");
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(74)) goto parse_key_id_tag;
|
|
if (input->ExpectAtEnd()) goto success;
|
|
break;
|
|
}
|
|
|
|
default: {
|
|
handle_unusual:
|
|
if (tag == 0 ||
|
|
::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
|
|
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
|
|
goto success;
|
|
}
|
|
DO_(::google::protobuf::internal::WireFormat::SkipField(
|
|
input, tag, mutable_unknown_fields()));
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
success:
|
|
// @@protoc_insertion_point(parse_success:iot_idl.SAlmCltCfmAlm)
|
|
return true;
|
|
failure:
|
|
// @@protoc_insertion_point(parse_failure:iot_idl.SAlmCltCfmAlm)
|
|
return false;
|
|
#undef DO_
|
|
}
|
|
|
|
void SAlmCltCfmAlm::SerializeWithCachedSizes(
|
|
::google::protobuf::io::CodedOutputStream* output) const {
|
|
// @@protoc_insertion_point(serialize_start:iot_idl.SAlmCltCfmAlm)
|
|
// required string node_name = 1;
|
|
if (has_node_name()) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->node_name().data(), this->node_name().length(),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"node_name");
|
|
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
1, this->node_name(), output);
|
|
}
|
|
|
|
// required int32 user_id = 2;
|
|
if (has_user_id()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->user_id(), output);
|
|
}
|
|
|
|
// required int64 confirm_time = 3;
|
|
if (has_confirm_time()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteInt64(3, this->confirm_time(), output);
|
|
}
|
|
|
|
// required int32 alm_type = 4;
|
|
if (has_alm_type()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->alm_type(), output);
|
|
}
|
|
|
|
// required int32 domain_id = 5;
|
|
if (has_domain_id()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->domain_id(), output);
|
|
}
|
|
|
|
// required int32 app_id = 6;
|
|
if (has_app_id()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteInt32(6, this->app_id(), output);
|
|
}
|
|
|
|
// repeated int64 time_stamp = 7;
|
|
for (int i = 0; i < this->time_stamp_size(); i++) {
|
|
::google::protobuf::internal::WireFormatLite::WriteInt64(
|
|
7, this->time_stamp(i), output);
|
|
}
|
|
|
|
// repeated string uuid_base64 = 8;
|
|
for (int i = 0; i < this->uuid_base64_size(); i++) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->uuid_base64(i).data(), this->uuid_base64(i).length(),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"uuid_base64");
|
|
::google::protobuf::internal::WireFormatLite::WriteString(
|
|
8, this->uuid_base64(i), output);
|
|
}
|
|
|
|
// repeated string key_id_tag = 9;
|
|
for (int i = 0; i < this->key_id_tag_size(); i++) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->key_id_tag(i).data(), this->key_id_tag(i).length(),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"key_id_tag");
|
|
::google::protobuf::internal::WireFormatLite::WriteString(
|
|
9, this->key_id_tag(i), output);
|
|
}
|
|
|
|
if (!unknown_fields().empty()) {
|
|
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
|
|
unknown_fields(), output);
|
|
}
|
|
// @@protoc_insertion_point(serialize_end:iot_idl.SAlmCltCfmAlm)
|
|
}
|
|
|
|
::google::protobuf::uint8* SAlmCltCfmAlm::SerializeWithCachedSizesToArray(
|
|
::google::protobuf::uint8* target) const {
|
|
// @@protoc_insertion_point(serialize_to_array_start:iot_idl.SAlmCltCfmAlm)
|
|
// required string node_name = 1;
|
|
if (has_node_name()) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->node_name().data(), this->node_name().length(),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"node_name");
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
|
|
1, this->node_name(), target);
|
|
}
|
|
|
|
// required int32 user_id = 2;
|
|
if (has_user_id()) {
|
|
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->user_id(), target);
|
|
}
|
|
|
|
// required int64 confirm_time = 3;
|
|
if (has_confirm_time()) {
|
|
target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(3, this->confirm_time(), target);
|
|
}
|
|
|
|
// required int32 alm_type = 4;
|
|
if (has_alm_type()) {
|
|
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->alm_type(), target);
|
|
}
|
|
|
|
// required int32 domain_id = 5;
|
|
if (has_domain_id()) {
|
|
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->domain_id(), target);
|
|
}
|
|
|
|
// required int32 app_id = 6;
|
|
if (has_app_id()) {
|
|
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(6, this->app_id(), target);
|
|
}
|
|
|
|
// repeated int64 time_stamp = 7;
|
|
for (int i = 0; i < this->time_stamp_size(); i++) {
|
|
target = ::google::protobuf::internal::WireFormatLite::
|
|
WriteInt64ToArray(7, this->time_stamp(i), target);
|
|
}
|
|
|
|
// repeated string uuid_base64 = 8;
|
|
for (int i = 0; i < this->uuid_base64_size(); i++) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->uuid_base64(i).data(), this->uuid_base64(i).length(),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"uuid_base64");
|
|
target = ::google::protobuf::internal::WireFormatLite::
|
|
WriteStringToArray(8, this->uuid_base64(i), target);
|
|
}
|
|
|
|
// repeated string key_id_tag = 9;
|
|
for (int i = 0; i < this->key_id_tag_size(); i++) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->key_id_tag(i).data(), this->key_id_tag(i).length(),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"key_id_tag");
|
|
target = ::google::protobuf::internal::WireFormatLite::
|
|
WriteStringToArray(9, this->key_id_tag(i), target);
|
|
}
|
|
|
|
if (!unknown_fields().empty()) {
|
|
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
|
|
unknown_fields(), target);
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_end:iot_idl.SAlmCltCfmAlm)
|
|
return target;
|
|
}
|
|
|
|
int SAlmCltCfmAlm::ByteSize() const {
|
|
int total_size = 0;
|
|
|
|
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
|
// required string node_name = 1;
|
|
if (has_node_name()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->node_name());
|
|
}
|
|
|
|
// required int32 user_id = 2;
|
|
if (has_user_id()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::Int32Size(
|
|
this->user_id());
|
|
}
|
|
|
|
// required int64 confirm_time = 3;
|
|
if (has_confirm_time()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::Int64Size(
|
|
this->confirm_time());
|
|
}
|
|
|
|
// required int32 alm_type = 4;
|
|
if (has_alm_type()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::Int32Size(
|
|
this->alm_type());
|
|
}
|
|
|
|
// required int32 domain_id = 5;
|
|
if (has_domain_id()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::Int32Size(
|
|
this->domain_id());
|
|
}
|
|
|
|
// required int32 app_id = 6;
|
|
if (has_app_id()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::Int32Size(
|
|
this->app_id());
|
|
}
|
|
|
|
}
|
|
// repeated int64 time_stamp = 7;
|
|
{
|
|
int data_size = 0;
|
|
for (int i = 0; i < this->time_stamp_size(); i++) {
|
|
data_size += ::google::protobuf::internal::WireFormatLite::
|
|
Int64Size(this->time_stamp(i));
|
|
}
|
|
total_size += 1 * this->time_stamp_size() + data_size;
|
|
}
|
|
|
|
// repeated string uuid_base64 = 8;
|
|
total_size += 1 * this->uuid_base64_size();
|
|
for (int i = 0; i < this->uuid_base64_size(); i++) {
|
|
total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->uuid_base64(i));
|
|
}
|
|
|
|
// repeated string key_id_tag = 9;
|
|
total_size += 1 * this->key_id_tag_size();
|
|
for (int i = 0; i < this->key_id_tag_size(); i++) {
|
|
total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->key_id_tag(i));
|
|
}
|
|
|
|
if (!unknown_fields().empty()) {
|
|
total_size +=
|
|
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
|
|
unknown_fields());
|
|
}
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = total_size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
return total_size;
|
|
}
|
|
|
|
void SAlmCltCfmAlm::MergeFrom(const ::google::protobuf::Message& from) {
|
|
GOOGLE_CHECK_NE(&from, this);
|
|
const SAlmCltCfmAlm* source =
|
|
::google::protobuf::internal::dynamic_cast_if_available<const SAlmCltCfmAlm*>(
|
|
&from);
|
|
if (source == NULL) {
|
|
::google::protobuf::internal::ReflectionOps::Merge(from, this);
|
|
} else {
|
|
MergeFrom(*source);
|
|
}
|
|
}
|
|
|
|
void SAlmCltCfmAlm::MergeFrom(const SAlmCltCfmAlm& from) {
|
|
GOOGLE_CHECK_NE(&from, this);
|
|
time_stamp_.MergeFrom(from.time_stamp_);
|
|
uuid_base64_.MergeFrom(from.uuid_base64_);
|
|
key_id_tag_.MergeFrom(from.key_id_tag_);
|
|
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
|
if (from.has_node_name()) {
|
|
set_node_name(from.node_name());
|
|
}
|
|
if (from.has_user_id()) {
|
|
set_user_id(from.user_id());
|
|
}
|
|
if (from.has_confirm_time()) {
|
|
set_confirm_time(from.confirm_time());
|
|
}
|
|
if (from.has_alm_type()) {
|
|
set_alm_type(from.alm_type());
|
|
}
|
|
if (from.has_domain_id()) {
|
|
set_domain_id(from.domain_id());
|
|
}
|
|
if (from.has_app_id()) {
|
|
set_app_id(from.app_id());
|
|
}
|
|
}
|
|
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
|
|
}
|
|
|
|
void SAlmCltCfmAlm::CopyFrom(const ::google::protobuf::Message& from) {
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
void SAlmCltCfmAlm::CopyFrom(const SAlmCltCfmAlm& from) {
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool SAlmCltCfmAlm::IsInitialized() const {
|
|
if ((_has_bits_[0] & 0x0000003f) != 0x0000003f) return false;
|
|
|
|
return true;
|
|
}
|
|
|
|
void SAlmCltCfmAlm::Swap(SAlmCltCfmAlm* other) {
|
|
if (other != this) {
|
|
std::swap(node_name_, other->node_name_);
|
|
std::swap(user_id_, other->user_id_);
|
|
std::swap(confirm_time_, other->confirm_time_);
|
|
std::swap(alm_type_, other->alm_type_);
|
|
std::swap(domain_id_, other->domain_id_);
|
|
std::swap(app_id_, other->app_id_);
|
|
time_stamp_.Swap(&other->time_stamp_);
|
|
uuid_base64_.Swap(&other->uuid_base64_);
|
|
key_id_tag_.Swap(&other->key_id_tag_);
|
|
std::swap(_has_bits_[0], other->_has_bits_[0]);
|
|
_unknown_fields_.Swap(&other->_unknown_fields_);
|
|
std::swap(_cached_size_, other->_cached_size_);
|
|
}
|
|
}
|
|
|
|
::google::protobuf::Metadata SAlmCltCfmAlm::GetMetadata() const {
|
|
protobuf_AssignDescriptorsOnce();
|
|
::google::protobuf::Metadata metadata;
|
|
metadata.descriptor = SAlmCltCfmAlm_descriptor_;
|
|
metadata.reflection = SAlmCltCfmAlm_reflection_;
|
|
return metadata;
|
|
}
|
|
|
|
|
|
// ===================================================================
|
|
|
|
#ifndef _MSC_VER
|
|
const int SAlmCltDelAlm::kDomainIdFieldNumber;
|
|
const int SAlmCltDelAlm::kUuidBase64FieldNumber;
|
|
#endif // !_MSC_VER
|
|
|
|
SAlmCltDelAlm::SAlmCltDelAlm()
|
|
: ::google::protobuf::Message() {
|
|
SharedCtor();
|
|
// @@protoc_insertion_point(constructor:iot_idl.SAlmCltDelAlm)
|
|
}
|
|
|
|
void SAlmCltDelAlm::InitAsDefaultInstance() {
|
|
}
|
|
|
|
SAlmCltDelAlm::SAlmCltDelAlm(const SAlmCltDelAlm& from)
|
|
: ::google::protobuf::Message() {
|
|
SharedCtor();
|
|
MergeFrom(from);
|
|
// @@protoc_insertion_point(copy_constructor:iot_idl.SAlmCltDelAlm)
|
|
}
|
|
|
|
void SAlmCltDelAlm::SharedCtor() {
|
|
::google::protobuf::internal::GetEmptyString();
|
|
_cached_size_ = 0;
|
|
domain_id_ = 0;
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
}
|
|
|
|
SAlmCltDelAlm::~SAlmCltDelAlm() {
|
|
// @@protoc_insertion_point(destructor:iot_idl.SAlmCltDelAlm)
|
|
SharedDtor();
|
|
}
|
|
|
|
void SAlmCltDelAlm::SharedDtor() {
|
|
if (this != default_instance_) {
|
|
}
|
|
}
|
|
|
|
void SAlmCltDelAlm::SetCachedSize(int size) const {
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
}
|
|
const ::google::protobuf::Descriptor* SAlmCltDelAlm::descriptor() {
|
|
protobuf_AssignDescriptorsOnce();
|
|
return SAlmCltDelAlm_descriptor_;
|
|
}
|
|
|
|
const SAlmCltDelAlm& SAlmCltDelAlm::default_instance() {
|
|
if (default_instance_ == NULL) protobuf_AddDesc_AlarmMessage_2eproto();
|
|
return *default_instance_;
|
|
}
|
|
|
|
SAlmCltDelAlm* SAlmCltDelAlm::default_instance_ = NULL;
|
|
|
|
SAlmCltDelAlm* SAlmCltDelAlm::New() const {
|
|
return new SAlmCltDelAlm;
|
|
}
|
|
|
|
void SAlmCltDelAlm::Clear() {
|
|
domain_id_ = 0;
|
|
uuid_base64_.Clear();
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
mutable_unknown_fields()->Clear();
|
|
}
|
|
|
|
bool SAlmCltDelAlm::MergePartialFromCodedStream(
|
|
::google::protobuf::io::CodedInputStream* input) {
|
|
#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
|
|
::google::protobuf::uint32 tag;
|
|
// @@protoc_insertion_point(parse_start:iot_idl.SAlmCltDelAlm)
|
|
for (;;) {
|
|
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
|
|
tag = p.first;
|
|
if (!p.second) goto handle_unusual;
|
|
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
// required int32 domain_id = 1;
|
|
case 1: {
|
|
if (tag == 8) {
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
|
|
input, &domain_id_)));
|
|
set_has_domain_id();
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(18)) goto parse_uuid_base64;
|
|
break;
|
|
}
|
|
|
|
// repeated string uuid_base64 = 2;
|
|
case 2: {
|
|
if (tag == 18) {
|
|
parse_uuid_base64:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
input, this->add_uuid_base64()));
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->uuid_base64(this->uuid_base64_size() - 1).data(),
|
|
this->uuid_base64(this->uuid_base64_size() - 1).length(),
|
|
::google::protobuf::internal::WireFormat::PARSE,
|
|
"uuid_base64");
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(18)) goto parse_uuid_base64;
|
|
if (input->ExpectAtEnd()) goto success;
|
|
break;
|
|
}
|
|
|
|
default: {
|
|
handle_unusual:
|
|
if (tag == 0 ||
|
|
::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
|
|
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
|
|
goto success;
|
|
}
|
|
DO_(::google::protobuf::internal::WireFormat::SkipField(
|
|
input, tag, mutable_unknown_fields()));
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
success:
|
|
// @@protoc_insertion_point(parse_success:iot_idl.SAlmCltDelAlm)
|
|
return true;
|
|
failure:
|
|
// @@protoc_insertion_point(parse_failure:iot_idl.SAlmCltDelAlm)
|
|
return false;
|
|
#undef DO_
|
|
}
|
|
|
|
void SAlmCltDelAlm::SerializeWithCachedSizes(
|
|
::google::protobuf::io::CodedOutputStream* output) const {
|
|
// @@protoc_insertion_point(serialize_start:iot_idl.SAlmCltDelAlm)
|
|
// required int32 domain_id = 1;
|
|
if (has_domain_id()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->domain_id(), output);
|
|
}
|
|
|
|
// repeated string uuid_base64 = 2;
|
|
for (int i = 0; i < this->uuid_base64_size(); i++) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->uuid_base64(i).data(), this->uuid_base64(i).length(),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"uuid_base64");
|
|
::google::protobuf::internal::WireFormatLite::WriteString(
|
|
2, this->uuid_base64(i), output);
|
|
}
|
|
|
|
if (!unknown_fields().empty()) {
|
|
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
|
|
unknown_fields(), output);
|
|
}
|
|
// @@protoc_insertion_point(serialize_end:iot_idl.SAlmCltDelAlm)
|
|
}
|
|
|
|
::google::protobuf::uint8* SAlmCltDelAlm::SerializeWithCachedSizesToArray(
|
|
::google::protobuf::uint8* target) const {
|
|
// @@protoc_insertion_point(serialize_to_array_start:iot_idl.SAlmCltDelAlm)
|
|
// required int32 domain_id = 1;
|
|
if (has_domain_id()) {
|
|
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->domain_id(), target);
|
|
}
|
|
|
|
// repeated string uuid_base64 = 2;
|
|
for (int i = 0; i < this->uuid_base64_size(); i++) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->uuid_base64(i).data(), this->uuid_base64(i).length(),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"uuid_base64");
|
|
target = ::google::protobuf::internal::WireFormatLite::
|
|
WriteStringToArray(2, this->uuid_base64(i), target);
|
|
}
|
|
|
|
if (!unknown_fields().empty()) {
|
|
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
|
|
unknown_fields(), target);
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_end:iot_idl.SAlmCltDelAlm)
|
|
return target;
|
|
}
|
|
|
|
int SAlmCltDelAlm::ByteSize() const {
|
|
int total_size = 0;
|
|
|
|
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
|
// required int32 domain_id = 1;
|
|
if (has_domain_id()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::Int32Size(
|
|
this->domain_id());
|
|
}
|
|
|
|
}
|
|
// repeated string uuid_base64 = 2;
|
|
total_size += 1 * this->uuid_base64_size();
|
|
for (int i = 0; i < this->uuid_base64_size(); i++) {
|
|
total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->uuid_base64(i));
|
|
}
|
|
|
|
if (!unknown_fields().empty()) {
|
|
total_size +=
|
|
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
|
|
unknown_fields());
|
|
}
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = total_size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
return total_size;
|
|
}
|
|
|
|
void SAlmCltDelAlm::MergeFrom(const ::google::protobuf::Message& from) {
|
|
GOOGLE_CHECK_NE(&from, this);
|
|
const SAlmCltDelAlm* source =
|
|
::google::protobuf::internal::dynamic_cast_if_available<const SAlmCltDelAlm*>(
|
|
&from);
|
|
if (source == NULL) {
|
|
::google::protobuf::internal::ReflectionOps::Merge(from, this);
|
|
} else {
|
|
MergeFrom(*source);
|
|
}
|
|
}
|
|
|
|
void SAlmCltDelAlm::MergeFrom(const SAlmCltDelAlm& from) {
|
|
GOOGLE_CHECK_NE(&from, this);
|
|
uuid_base64_.MergeFrom(from.uuid_base64_);
|
|
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
|
if (from.has_domain_id()) {
|
|
set_domain_id(from.domain_id());
|
|
}
|
|
}
|
|
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
|
|
}
|
|
|
|
void SAlmCltDelAlm::CopyFrom(const ::google::protobuf::Message& from) {
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
void SAlmCltDelAlm::CopyFrom(const SAlmCltDelAlm& from) {
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool SAlmCltDelAlm::IsInitialized() const {
|
|
if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
|
|
|
|
return true;
|
|
}
|
|
|
|
void SAlmCltDelAlm::Swap(SAlmCltDelAlm* other) {
|
|
if (other != this) {
|
|
std::swap(domain_id_, other->domain_id_);
|
|
uuid_base64_.Swap(&other->uuid_base64_);
|
|
std::swap(_has_bits_[0], other->_has_bits_[0]);
|
|
_unknown_fields_.Swap(&other->_unknown_fields_);
|
|
std::swap(_cached_size_, other->_cached_size_);
|
|
}
|
|
}
|
|
|
|
::google::protobuf::Metadata SAlmCltDelAlm::GetMetadata() const {
|
|
protobuf_AssignDescriptorsOnce();
|
|
::google::protobuf::Metadata metadata;
|
|
metadata.descriptor = SAlmCltDelAlm_descriptor_;
|
|
metadata.reflection = SAlmCltDelAlm_reflection_;
|
|
return metadata;
|
|
}
|
|
|
|
|
|
// ===================================================================
|
|
|
|
#ifndef _MSC_VER
|
|
const int SAlmCltReleaseAlm::kUuidBase64FieldNumber;
|
|
#endif // !_MSC_VER
|
|
|
|
SAlmCltReleaseAlm::SAlmCltReleaseAlm()
|
|
: ::google::protobuf::Message() {
|
|
SharedCtor();
|
|
// @@protoc_insertion_point(constructor:iot_idl.SAlmCltReleaseAlm)
|
|
}
|
|
|
|
void SAlmCltReleaseAlm::InitAsDefaultInstance() {
|
|
}
|
|
|
|
SAlmCltReleaseAlm::SAlmCltReleaseAlm(const SAlmCltReleaseAlm& from)
|
|
: ::google::protobuf::Message() {
|
|
SharedCtor();
|
|
MergeFrom(from);
|
|
// @@protoc_insertion_point(copy_constructor:iot_idl.SAlmCltReleaseAlm)
|
|
}
|
|
|
|
void SAlmCltReleaseAlm::SharedCtor() {
|
|
::google::protobuf::internal::GetEmptyString();
|
|
_cached_size_ = 0;
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
}
|
|
|
|
SAlmCltReleaseAlm::~SAlmCltReleaseAlm() {
|
|
// @@protoc_insertion_point(destructor:iot_idl.SAlmCltReleaseAlm)
|
|
SharedDtor();
|
|
}
|
|
|
|
void SAlmCltReleaseAlm::SharedDtor() {
|
|
if (this != default_instance_) {
|
|
}
|
|
}
|
|
|
|
void SAlmCltReleaseAlm::SetCachedSize(int size) const {
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
}
|
|
const ::google::protobuf::Descriptor* SAlmCltReleaseAlm::descriptor() {
|
|
protobuf_AssignDescriptorsOnce();
|
|
return SAlmCltReleaseAlm_descriptor_;
|
|
}
|
|
|
|
const SAlmCltReleaseAlm& SAlmCltReleaseAlm::default_instance() {
|
|
if (default_instance_ == NULL) protobuf_AddDesc_AlarmMessage_2eproto();
|
|
return *default_instance_;
|
|
}
|
|
|
|
SAlmCltReleaseAlm* SAlmCltReleaseAlm::default_instance_ = NULL;
|
|
|
|
SAlmCltReleaseAlm* SAlmCltReleaseAlm::New() const {
|
|
return new SAlmCltReleaseAlm;
|
|
}
|
|
|
|
void SAlmCltReleaseAlm::Clear() {
|
|
uuid_base64_.Clear();
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
mutable_unknown_fields()->Clear();
|
|
}
|
|
|
|
bool SAlmCltReleaseAlm::MergePartialFromCodedStream(
|
|
::google::protobuf::io::CodedInputStream* input) {
|
|
#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
|
|
::google::protobuf::uint32 tag;
|
|
// @@protoc_insertion_point(parse_start:iot_idl.SAlmCltReleaseAlm)
|
|
for (;;) {
|
|
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
|
|
tag = p.first;
|
|
if (!p.second) goto handle_unusual;
|
|
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
// repeated string uuid_base64 = 1;
|
|
case 1: {
|
|
if (tag == 10) {
|
|
parse_uuid_base64:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
input, this->add_uuid_base64()));
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->uuid_base64(this->uuid_base64_size() - 1).data(),
|
|
this->uuid_base64(this->uuid_base64_size() - 1).length(),
|
|
::google::protobuf::internal::WireFormat::PARSE,
|
|
"uuid_base64");
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(10)) goto parse_uuid_base64;
|
|
if (input->ExpectAtEnd()) goto success;
|
|
break;
|
|
}
|
|
|
|
default: {
|
|
handle_unusual:
|
|
if (tag == 0 ||
|
|
::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
|
|
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
|
|
goto success;
|
|
}
|
|
DO_(::google::protobuf::internal::WireFormat::SkipField(
|
|
input, tag, mutable_unknown_fields()));
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
success:
|
|
// @@protoc_insertion_point(parse_success:iot_idl.SAlmCltReleaseAlm)
|
|
return true;
|
|
failure:
|
|
// @@protoc_insertion_point(parse_failure:iot_idl.SAlmCltReleaseAlm)
|
|
return false;
|
|
#undef DO_
|
|
}
|
|
|
|
void SAlmCltReleaseAlm::SerializeWithCachedSizes(
|
|
::google::protobuf::io::CodedOutputStream* output) const {
|
|
// @@protoc_insertion_point(serialize_start:iot_idl.SAlmCltReleaseAlm)
|
|
// repeated string uuid_base64 = 1;
|
|
for (int i = 0; i < this->uuid_base64_size(); i++) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->uuid_base64(i).data(), this->uuid_base64(i).length(),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"uuid_base64");
|
|
::google::protobuf::internal::WireFormatLite::WriteString(
|
|
1, this->uuid_base64(i), output);
|
|
}
|
|
|
|
if (!unknown_fields().empty()) {
|
|
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
|
|
unknown_fields(), output);
|
|
}
|
|
// @@protoc_insertion_point(serialize_end:iot_idl.SAlmCltReleaseAlm)
|
|
}
|
|
|
|
::google::protobuf::uint8* SAlmCltReleaseAlm::SerializeWithCachedSizesToArray(
|
|
::google::protobuf::uint8* target) const {
|
|
// @@protoc_insertion_point(serialize_to_array_start:iot_idl.SAlmCltReleaseAlm)
|
|
// repeated string uuid_base64 = 1;
|
|
for (int i = 0; i < this->uuid_base64_size(); i++) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->uuid_base64(i).data(), this->uuid_base64(i).length(),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"uuid_base64");
|
|
target = ::google::protobuf::internal::WireFormatLite::
|
|
WriteStringToArray(1, this->uuid_base64(i), target);
|
|
}
|
|
|
|
if (!unknown_fields().empty()) {
|
|
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
|
|
unknown_fields(), target);
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_end:iot_idl.SAlmCltReleaseAlm)
|
|
return target;
|
|
}
|
|
|
|
int SAlmCltReleaseAlm::ByteSize() const {
|
|
int total_size = 0;
|
|
|
|
// repeated string uuid_base64 = 1;
|
|
total_size += 1 * this->uuid_base64_size();
|
|
for (int i = 0; i < this->uuid_base64_size(); i++) {
|
|
total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->uuid_base64(i));
|
|
}
|
|
|
|
if (!unknown_fields().empty()) {
|
|
total_size +=
|
|
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
|
|
unknown_fields());
|
|
}
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = total_size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
return total_size;
|
|
}
|
|
|
|
void SAlmCltReleaseAlm::MergeFrom(const ::google::protobuf::Message& from) {
|
|
GOOGLE_CHECK_NE(&from, this);
|
|
const SAlmCltReleaseAlm* source =
|
|
::google::protobuf::internal::dynamic_cast_if_available<const SAlmCltReleaseAlm*>(
|
|
&from);
|
|
if (source == NULL) {
|
|
::google::protobuf::internal::ReflectionOps::Merge(from, this);
|
|
} else {
|
|
MergeFrom(*source);
|
|
}
|
|
}
|
|
|
|
void SAlmCltReleaseAlm::MergeFrom(const SAlmCltReleaseAlm& from) {
|
|
GOOGLE_CHECK_NE(&from, this);
|
|
uuid_base64_.MergeFrom(from.uuid_base64_);
|
|
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
|
|
}
|
|
|
|
void SAlmCltReleaseAlm::CopyFrom(const ::google::protobuf::Message& from) {
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
void SAlmCltReleaseAlm::CopyFrom(const SAlmCltReleaseAlm& from) {
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool SAlmCltReleaseAlm::IsInitialized() const {
|
|
|
|
return true;
|
|
}
|
|
|
|
void SAlmCltReleaseAlm::Swap(SAlmCltReleaseAlm* other) {
|
|
if (other != this) {
|
|
uuid_base64_.Swap(&other->uuid_base64_);
|
|
std::swap(_has_bits_[0], other->_has_bits_[0]);
|
|
_unknown_fields_.Swap(&other->_unknown_fields_);
|
|
std::swap(_cached_size_, other->_cached_size_);
|
|
}
|
|
}
|
|
|
|
::google::protobuf::Metadata SAlmCltReleaseAlm::GetMetadata() const {
|
|
protobuf_AssignDescriptorsOnce();
|
|
::google::protobuf::Metadata metadata;
|
|
metadata.descriptor = SAlmCltReleaseAlm_descriptor_;
|
|
metadata.reflection = SAlmCltReleaseAlm_reflection_;
|
|
return metadata;
|
|
}
|
|
|
|
|
|
// ===================================================================
|
|
|
|
#ifndef _MSC_VER
|
|
const int SAlmCltLinkWave2Alm::kWaveFileFieldNumber;
|
|
const int SAlmCltLinkWave2Alm::kUuidBase64FieldNumber;
|
|
#endif // !_MSC_VER
|
|
|
|
SAlmCltLinkWave2Alm::SAlmCltLinkWave2Alm()
|
|
: ::google::protobuf::Message() {
|
|
SharedCtor();
|
|
// @@protoc_insertion_point(constructor:iot_idl.SAlmCltLinkWave2Alm)
|
|
}
|
|
|
|
void SAlmCltLinkWave2Alm::InitAsDefaultInstance() {
|
|
}
|
|
|
|
SAlmCltLinkWave2Alm::SAlmCltLinkWave2Alm(const SAlmCltLinkWave2Alm& from)
|
|
: ::google::protobuf::Message() {
|
|
SharedCtor();
|
|
MergeFrom(from);
|
|
// @@protoc_insertion_point(copy_constructor:iot_idl.SAlmCltLinkWave2Alm)
|
|
}
|
|
|
|
void SAlmCltLinkWave2Alm::SharedCtor() {
|
|
::google::protobuf::internal::GetEmptyString();
|
|
_cached_size_ = 0;
|
|
wave_file_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
}
|
|
|
|
SAlmCltLinkWave2Alm::~SAlmCltLinkWave2Alm() {
|
|
// @@protoc_insertion_point(destructor:iot_idl.SAlmCltLinkWave2Alm)
|
|
SharedDtor();
|
|
}
|
|
|
|
void SAlmCltLinkWave2Alm::SharedDtor() {
|
|
if (wave_file_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
delete wave_file_;
|
|
}
|
|
if (this != default_instance_) {
|
|
}
|
|
}
|
|
|
|
void SAlmCltLinkWave2Alm::SetCachedSize(int size) const {
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
}
|
|
const ::google::protobuf::Descriptor* SAlmCltLinkWave2Alm::descriptor() {
|
|
protobuf_AssignDescriptorsOnce();
|
|
return SAlmCltLinkWave2Alm_descriptor_;
|
|
}
|
|
|
|
const SAlmCltLinkWave2Alm& SAlmCltLinkWave2Alm::default_instance() {
|
|
if (default_instance_ == NULL) protobuf_AddDesc_AlarmMessage_2eproto();
|
|
return *default_instance_;
|
|
}
|
|
|
|
SAlmCltLinkWave2Alm* SAlmCltLinkWave2Alm::default_instance_ = NULL;
|
|
|
|
SAlmCltLinkWave2Alm* SAlmCltLinkWave2Alm::New() const {
|
|
return new SAlmCltLinkWave2Alm;
|
|
}
|
|
|
|
void SAlmCltLinkWave2Alm::Clear() {
|
|
if (has_wave_file()) {
|
|
if (wave_file_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
wave_file_->clear();
|
|
}
|
|
}
|
|
uuid_base64_.Clear();
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
mutable_unknown_fields()->Clear();
|
|
}
|
|
|
|
bool SAlmCltLinkWave2Alm::MergePartialFromCodedStream(
|
|
::google::protobuf::io::CodedInputStream* input) {
|
|
#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
|
|
::google::protobuf::uint32 tag;
|
|
// @@protoc_insertion_point(parse_start:iot_idl.SAlmCltLinkWave2Alm)
|
|
for (;;) {
|
|
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
|
|
tag = p.first;
|
|
if (!p.second) goto handle_unusual;
|
|
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
// required string wave_file = 1;
|
|
case 1: {
|
|
if (tag == 10) {
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_wave_file()));
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->wave_file().data(), this->wave_file().length(),
|
|
::google::protobuf::internal::WireFormat::PARSE,
|
|
"wave_file");
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(18)) goto parse_uuid_base64;
|
|
break;
|
|
}
|
|
|
|
// repeated string uuid_base64 = 2;
|
|
case 2: {
|
|
if (tag == 18) {
|
|
parse_uuid_base64:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
input, this->add_uuid_base64()));
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->uuid_base64(this->uuid_base64_size() - 1).data(),
|
|
this->uuid_base64(this->uuid_base64_size() - 1).length(),
|
|
::google::protobuf::internal::WireFormat::PARSE,
|
|
"uuid_base64");
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(18)) goto parse_uuid_base64;
|
|
if (input->ExpectAtEnd()) goto success;
|
|
break;
|
|
}
|
|
|
|
default: {
|
|
handle_unusual:
|
|
if (tag == 0 ||
|
|
::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
|
|
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
|
|
goto success;
|
|
}
|
|
DO_(::google::protobuf::internal::WireFormat::SkipField(
|
|
input, tag, mutable_unknown_fields()));
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
success:
|
|
// @@protoc_insertion_point(parse_success:iot_idl.SAlmCltLinkWave2Alm)
|
|
return true;
|
|
failure:
|
|
// @@protoc_insertion_point(parse_failure:iot_idl.SAlmCltLinkWave2Alm)
|
|
return false;
|
|
#undef DO_
|
|
}
|
|
|
|
void SAlmCltLinkWave2Alm::SerializeWithCachedSizes(
|
|
::google::protobuf::io::CodedOutputStream* output) const {
|
|
// @@protoc_insertion_point(serialize_start:iot_idl.SAlmCltLinkWave2Alm)
|
|
// required string wave_file = 1;
|
|
if (has_wave_file()) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->wave_file().data(), this->wave_file().length(),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"wave_file");
|
|
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
1, this->wave_file(), output);
|
|
}
|
|
|
|
// repeated string uuid_base64 = 2;
|
|
for (int i = 0; i < this->uuid_base64_size(); i++) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->uuid_base64(i).data(), this->uuid_base64(i).length(),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"uuid_base64");
|
|
::google::protobuf::internal::WireFormatLite::WriteString(
|
|
2, this->uuid_base64(i), output);
|
|
}
|
|
|
|
if (!unknown_fields().empty()) {
|
|
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
|
|
unknown_fields(), output);
|
|
}
|
|
// @@protoc_insertion_point(serialize_end:iot_idl.SAlmCltLinkWave2Alm)
|
|
}
|
|
|
|
::google::protobuf::uint8* SAlmCltLinkWave2Alm::SerializeWithCachedSizesToArray(
|
|
::google::protobuf::uint8* target) const {
|
|
// @@protoc_insertion_point(serialize_to_array_start:iot_idl.SAlmCltLinkWave2Alm)
|
|
// required string wave_file = 1;
|
|
if (has_wave_file()) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->wave_file().data(), this->wave_file().length(),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"wave_file");
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
|
|
1, this->wave_file(), target);
|
|
}
|
|
|
|
// repeated string uuid_base64 = 2;
|
|
for (int i = 0; i < this->uuid_base64_size(); i++) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->uuid_base64(i).data(), this->uuid_base64(i).length(),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"uuid_base64");
|
|
target = ::google::protobuf::internal::WireFormatLite::
|
|
WriteStringToArray(2, this->uuid_base64(i), target);
|
|
}
|
|
|
|
if (!unknown_fields().empty()) {
|
|
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
|
|
unknown_fields(), target);
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_end:iot_idl.SAlmCltLinkWave2Alm)
|
|
return target;
|
|
}
|
|
|
|
int SAlmCltLinkWave2Alm::ByteSize() const {
|
|
int total_size = 0;
|
|
|
|
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
|
// required string wave_file = 1;
|
|
if (has_wave_file()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->wave_file());
|
|
}
|
|
|
|
}
|
|
// repeated string uuid_base64 = 2;
|
|
total_size += 1 * this->uuid_base64_size();
|
|
for (int i = 0; i < this->uuid_base64_size(); i++) {
|
|
total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->uuid_base64(i));
|
|
}
|
|
|
|
if (!unknown_fields().empty()) {
|
|
total_size +=
|
|
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
|
|
unknown_fields());
|
|
}
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = total_size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
return total_size;
|
|
}
|
|
|
|
void SAlmCltLinkWave2Alm::MergeFrom(const ::google::protobuf::Message& from) {
|
|
GOOGLE_CHECK_NE(&from, this);
|
|
const SAlmCltLinkWave2Alm* source =
|
|
::google::protobuf::internal::dynamic_cast_if_available<const SAlmCltLinkWave2Alm*>(
|
|
&from);
|
|
if (source == NULL) {
|
|
::google::protobuf::internal::ReflectionOps::Merge(from, this);
|
|
} else {
|
|
MergeFrom(*source);
|
|
}
|
|
}
|
|
|
|
void SAlmCltLinkWave2Alm::MergeFrom(const SAlmCltLinkWave2Alm& from) {
|
|
GOOGLE_CHECK_NE(&from, this);
|
|
uuid_base64_.MergeFrom(from.uuid_base64_);
|
|
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
|
if (from.has_wave_file()) {
|
|
set_wave_file(from.wave_file());
|
|
}
|
|
}
|
|
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
|
|
}
|
|
|
|
void SAlmCltLinkWave2Alm::CopyFrom(const ::google::protobuf::Message& from) {
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
void SAlmCltLinkWave2Alm::CopyFrom(const SAlmCltLinkWave2Alm& from) {
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool SAlmCltLinkWave2Alm::IsInitialized() const {
|
|
if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
|
|
|
|
return true;
|
|
}
|
|
|
|
void SAlmCltLinkWave2Alm::Swap(SAlmCltLinkWave2Alm* other) {
|
|
if (other != this) {
|
|
std::swap(wave_file_, other->wave_file_);
|
|
uuid_base64_.Swap(&other->uuid_base64_);
|
|
std::swap(_has_bits_[0], other->_has_bits_[0]);
|
|
_unknown_fields_.Swap(&other->_unknown_fields_);
|
|
std::swap(_cached_size_, other->_cached_size_);
|
|
}
|
|
}
|
|
|
|
::google::protobuf::Metadata SAlmCltLinkWave2Alm::GetMetadata() const {
|
|
protobuf_AssignDescriptorsOnce();
|
|
::google::protobuf::Metadata metadata;
|
|
metadata.descriptor = SAlmCltLinkWave2Alm_descriptor_;
|
|
metadata.reflection = SAlmCltLinkWave2Alm_reflection_;
|
|
return metadata;
|
|
}
|
|
|
|
|
|
// ===================================================================
|
|
|
|
#ifndef _MSC_VER
|
|
const int SEvtInfoToEvtClt::kAlmTypeFieldNumber;
|
|
const int SEvtInfoToEvtClt::kAlmStatusFieldNumber;
|
|
const int SEvtInfoToEvtClt::kTimeStampFieldNumber;
|
|
const int SEvtInfoToEvtClt::kDomainIdFieldNumber;
|
|
const int SEvtInfoToEvtClt::kLocationIdFieldNumber;
|
|
const int SEvtInfoToEvtClt::kAppIdFieldNumber;
|
|
const int SEvtInfoToEvtClt::kPriorityFieldNumber;
|
|
const int SEvtInfoToEvtClt::kUuidBase64FieldNumber;
|
|
const int SEvtInfoToEvtClt::kContentFieldNumber;
|
|
const int SEvtInfoToEvtClt::kSubSystemFieldNumber;
|
|
const int SEvtInfoToEvtClt::kDevTypeFieldNumber;
|
|
const int SEvtInfoToEvtClt::kRegionIdFieldNumber;
|
|
const int SEvtInfoToEvtClt::kLogicStateFieldNumber;
|
|
const int SEvtInfoToEvtClt::kDevGroupTagFieldNumber;
|
|
const int SEvtInfoToEvtClt::kKeyIdTagFieldNumber;
|
|
const int SEvtInfoToEvtClt::kWaveFileFieldNumber;
|
|
#endif // !_MSC_VER
|
|
|
|
SEvtInfoToEvtClt::SEvtInfoToEvtClt()
|
|
: ::google::protobuf::Message() {
|
|
SharedCtor();
|
|
// @@protoc_insertion_point(constructor:iot_idl.SEvtInfoToEvtClt)
|
|
}
|
|
|
|
void SEvtInfoToEvtClt::InitAsDefaultInstance() {
|
|
}
|
|
|
|
SEvtInfoToEvtClt::SEvtInfoToEvtClt(const SEvtInfoToEvtClt& from)
|
|
: ::google::protobuf::Message() {
|
|
SharedCtor();
|
|
MergeFrom(from);
|
|
// @@protoc_insertion_point(copy_constructor:iot_idl.SEvtInfoToEvtClt)
|
|
}
|
|
|
|
void SEvtInfoToEvtClt::SharedCtor() {
|
|
::google::protobuf::internal::GetEmptyString();
|
|
_cached_size_ = 0;
|
|
alm_type_ = 0;
|
|
alm_status_ = 0;
|
|
time_stamp_ = GOOGLE_LONGLONG(0);
|
|
domain_id_ = 0;
|
|
location_id_ = 0;
|
|
app_id_ = 0;
|
|
priority_ = 0;
|
|
uuid_base64_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
content_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
sub_system_ = 0;
|
|
dev_type_ = 0;
|
|
region_id_ = 0;
|
|
logic_state_ = 0;
|
|
dev_group_tag_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
key_id_tag_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
wave_file_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
}
|
|
|
|
SEvtInfoToEvtClt::~SEvtInfoToEvtClt() {
|
|
// @@protoc_insertion_point(destructor:iot_idl.SEvtInfoToEvtClt)
|
|
SharedDtor();
|
|
}
|
|
|
|
void SEvtInfoToEvtClt::SharedDtor() {
|
|
if (uuid_base64_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
delete uuid_base64_;
|
|
}
|
|
if (content_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
delete content_;
|
|
}
|
|
if (dev_group_tag_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
delete dev_group_tag_;
|
|
}
|
|
if (key_id_tag_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
delete key_id_tag_;
|
|
}
|
|
if (wave_file_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
delete wave_file_;
|
|
}
|
|
if (this != default_instance_) {
|
|
}
|
|
}
|
|
|
|
void SEvtInfoToEvtClt::SetCachedSize(int size) const {
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
}
|
|
const ::google::protobuf::Descriptor* SEvtInfoToEvtClt::descriptor() {
|
|
protobuf_AssignDescriptorsOnce();
|
|
return SEvtInfoToEvtClt_descriptor_;
|
|
}
|
|
|
|
const SEvtInfoToEvtClt& SEvtInfoToEvtClt::default_instance() {
|
|
if (default_instance_ == NULL) protobuf_AddDesc_AlarmMessage_2eproto();
|
|
return *default_instance_;
|
|
}
|
|
|
|
SEvtInfoToEvtClt* SEvtInfoToEvtClt::default_instance_ = NULL;
|
|
|
|
SEvtInfoToEvtClt* SEvtInfoToEvtClt::New() const {
|
|
return new SEvtInfoToEvtClt;
|
|
}
|
|
|
|
void SEvtInfoToEvtClt::Clear() {
|
|
#define OFFSET_OF_FIELD_(f) (reinterpret_cast<char*>( \
|
|
&reinterpret_cast<SEvtInfoToEvtClt*>(16)->f) - \
|
|
reinterpret_cast<char*>(16))
|
|
|
|
#define ZR_(first, last) do { \
|
|
size_t f = OFFSET_OF_FIELD_(first); \
|
|
size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \
|
|
::memset(&first, 0, n); \
|
|
} while (0)
|
|
|
|
if (_has_bits_[0 / 32] & 255) {
|
|
ZR_(alm_type_, priority_);
|
|
if (has_uuid_base64()) {
|
|
if (uuid_base64_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
uuid_base64_->clear();
|
|
}
|
|
}
|
|
}
|
|
if (_has_bits_[8 / 32] & 65280) {
|
|
ZR_(sub_system_, logic_state_);
|
|
if (has_content()) {
|
|
if (content_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
content_->clear();
|
|
}
|
|
}
|
|
if (has_dev_group_tag()) {
|
|
if (dev_group_tag_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
dev_group_tag_->clear();
|
|
}
|
|
}
|
|
if (has_key_id_tag()) {
|
|
if (key_id_tag_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
key_id_tag_->clear();
|
|
}
|
|
}
|
|
if (has_wave_file()) {
|
|
if (wave_file_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
wave_file_->clear();
|
|
}
|
|
}
|
|
}
|
|
|
|
#undef OFFSET_OF_FIELD_
|
|
#undef ZR_
|
|
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
mutable_unknown_fields()->Clear();
|
|
}
|
|
|
|
bool SEvtInfoToEvtClt::MergePartialFromCodedStream(
|
|
::google::protobuf::io::CodedInputStream* input) {
|
|
#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
|
|
::google::protobuf::uint32 tag;
|
|
// @@protoc_insertion_point(parse_start:iot_idl.SEvtInfoToEvtClt)
|
|
for (;;) {
|
|
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(16383);
|
|
tag = p.first;
|
|
if (!p.second) goto handle_unusual;
|
|
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
// required int32 alm_type = 1;
|
|
case 1: {
|
|
if (tag == 8) {
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
|
|
input, &alm_type_)));
|
|
set_has_alm_type();
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(16)) goto parse_alm_status;
|
|
break;
|
|
}
|
|
|
|
// required int32 alm_status = 2;
|
|
case 2: {
|
|
if (tag == 16) {
|
|
parse_alm_status:
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
|
|
input, &alm_status_)));
|
|
set_has_alm_status();
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(24)) goto parse_time_stamp;
|
|
break;
|
|
}
|
|
|
|
// required int64 time_stamp = 3;
|
|
case 3: {
|
|
if (tag == 24) {
|
|
parse_time_stamp:
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
|
|
input, &time_stamp_)));
|
|
set_has_time_stamp();
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(32)) goto parse_domain_id;
|
|
break;
|
|
}
|
|
|
|
// required int32 domain_id = 4;
|
|
case 4: {
|
|
if (tag == 32) {
|
|
parse_domain_id:
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
|
|
input, &domain_id_)));
|
|
set_has_domain_id();
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(40)) goto parse_location_id;
|
|
break;
|
|
}
|
|
|
|
// required int32 location_id = 5;
|
|
case 5: {
|
|
if (tag == 40) {
|
|
parse_location_id:
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
|
|
input, &location_id_)));
|
|
set_has_location_id();
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(48)) goto parse_app_id;
|
|
break;
|
|
}
|
|
|
|
// required int32 app_id = 6;
|
|
case 6: {
|
|
if (tag == 48) {
|
|
parse_app_id:
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
|
|
input, &app_id_)));
|
|
set_has_app_id();
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(56)) goto parse_priority;
|
|
break;
|
|
}
|
|
|
|
// required int32 priority = 7;
|
|
case 7: {
|
|
if (tag == 56) {
|
|
parse_priority:
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
|
|
input, &priority_)));
|
|
set_has_priority();
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(66)) goto parse_uuid_base64;
|
|
break;
|
|
}
|
|
|
|
// required string uuid_base64 = 8;
|
|
case 8: {
|
|
if (tag == 66) {
|
|
parse_uuid_base64:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_uuid_base64()));
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->uuid_base64().data(), this->uuid_base64().length(),
|
|
::google::protobuf::internal::WireFormat::PARSE,
|
|
"uuid_base64");
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(74)) goto parse_content;
|
|
break;
|
|
}
|
|
|
|
// required string content = 9;
|
|
case 9: {
|
|
if (tag == 74) {
|
|
parse_content:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_content()));
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->content().data(), this->content().length(),
|
|
::google::protobuf::internal::WireFormat::PARSE,
|
|
"content");
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(80)) goto parse_sub_system;
|
|
break;
|
|
}
|
|
|
|
// optional int32 sub_system = 10;
|
|
case 10: {
|
|
if (tag == 80) {
|
|
parse_sub_system:
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
|
|
input, &sub_system_)));
|
|
set_has_sub_system();
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(88)) goto parse_dev_type;
|
|
break;
|
|
}
|
|
|
|
// optional int32 dev_type = 11;
|
|
case 11: {
|
|
if (tag == 88) {
|
|
parse_dev_type:
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
|
|
input, &dev_type_)));
|
|
set_has_dev_type();
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(96)) goto parse_region_id;
|
|
break;
|
|
}
|
|
|
|
// optional int32 region_id = 12;
|
|
case 12: {
|
|
if (tag == 96) {
|
|
parse_region_id:
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
|
|
input, ®ion_id_)));
|
|
set_has_region_id();
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(104)) goto parse_logic_state;
|
|
break;
|
|
}
|
|
|
|
// optional .iot_idl.enAlmLogicState logic_state = 13;
|
|
case 13: {
|
|
if (tag == 104) {
|
|
parse_logic_state:
|
|
int value;
|
|
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
|
|
input, &value)));
|
|
if (::iot_idl::enAlmLogicState_IsValid(value)) {
|
|
set_logic_state(static_cast< ::iot_idl::enAlmLogicState >(value));
|
|
} else {
|
|
mutable_unknown_fields()->AddVarint(13, value);
|
|
}
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(114)) goto parse_dev_group_tag;
|
|
break;
|
|
}
|
|
|
|
// optional string dev_group_tag = 14;
|
|
case 14: {
|
|
if (tag == 114) {
|
|
parse_dev_group_tag:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_dev_group_tag()));
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->dev_group_tag().data(), this->dev_group_tag().length(),
|
|
::google::protobuf::internal::WireFormat::PARSE,
|
|
"dev_group_tag");
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(122)) goto parse_key_id_tag;
|
|
break;
|
|
}
|
|
|
|
// optional string key_id_tag = 15;
|
|
case 15: {
|
|
if (tag == 122) {
|
|
parse_key_id_tag:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_key_id_tag()));
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->key_id_tag().data(), this->key_id_tag().length(),
|
|
::google::protobuf::internal::WireFormat::PARSE,
|
|
"key_id_tag");
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(130)) goto parse_wave_file;
|
|
break;
|
|
}
|
|
|
|
// optional string wave_file = 16;
|
|
case 16: {
|
|
if (tag == 130) {
|
|
parse_wave_file:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
input, this->mutable_wave_file()));
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->wave_file().data(), this->wave_file().length(),
|
|
::google::protobuf::internal::WireFormat::PARSE,
|
|
"wave_file");
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectAtEnd()) goto success;
|
|
break;
|
|
}
|
|
|
|
default: {
|
|
handle_unusual:
|
|
if (tag == 0 ||
|
|
::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
|
|
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
|
|
goto success;
|
|
}
|
|
DO_(::google::protobuf::internal::WireFormat::SkipField(
|
|
input, tag, mutable_unknown_fields()));
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
success:
|
|
// @@protoc_insertion_point(parse_success:iot_idl.SEvtInfoToEvtClt)
|
|
return true;
|
|
failure:
|
|
// @@protoc_insertion_point(parse_failure:iot_idl.SEvtInfoToEvtClt)
|
|
return false;
|
|
#undef DO_
|
|
}
|
|
|
|
void SEvtInfoToEvtClt::SerializeWithCachedSizes(
|
|
::google::protobuf::io::CodedOutputStream* output) const {
|
|
// @@protoc_insertion_point(serialize_start:iot_idl.SEvtInfoToEvtClt)
|
|
// required int32 alm_type = 1;
|
|
if (has_alm_type()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->alm_type(), output);
|
|
}
|
|
|
|
// required int32 alm_status = 2;
|
|
if (has_alm_status()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->alm_status(), output);
|
|
}
|
|
|
|
// required int64 time_stamp = 3;
|
|
if (has_time_stamp()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteInt64(3, this->time_stamp(), output);
|
|
}
|
|
|
|
// required int32 domain_id = 4;
|
|
if (has_domain_id()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->domain_id(), output);
|
|
}
|
|
|
|
// required int32 location_id = 5;
|
|
if (has_location_id()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->location_id(), output);
|
|
}
|
|
|
|
// required int32 app_id = 6;
|
|
if (has_app_id()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteInt32(6, this->app_id(), output);
|
|
}
|
|
|
|
// required int32 priority = 7;
|
|
if (has_priority()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteInt32(7, this->priority(), output);
|
|
}
|
|
|
|
// required string uuid_base64 = 8;
|
|
if (has_uuid_base64()) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->uuid_base64().data(), this->uuid_base64().length(),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"uuid_base64");
|
|
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
8, this->uuid_base64(), output);
|
|
}
|
|
|
|
// required string content = 9;
|
|
if (has_content()) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->content().data(), this->content().length(),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"content");
|
|
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
9, this->content(), output);
|
|
}
|
|
|
|
// optional int32 sub_system = 10;
|
|
if (has_sub_system()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteInt32(10, this->sub_system(), output);
|
|
}
|
|
|
|
// optional int32 dev_type = 11;
|
|
if (has_dev_type()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteInt32(11, this->dev_type(), output);
|
|
}
|
|
|
|
// optional int32 region_id = 12;
|
|
if (has_region_id()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteInt32(12, this->region_id(), output);
|
|
}
|
|
|
|
// optional .iot_idl.enAlmLogicState logic_state = 13;
|
|
if (has_logic_state()) {
|
|
::google::protobuf::internal::WireFormatLite::WriteEnum(
|
|
13, this->logic_state(), output);
|
|
}
|
|
|
|
// optional string dev_group_tag = 14;
|
|
if (has_dev_group_tag()) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->dev_group_tag().data(), this->dev_group_tag().length(),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"dev_group_tag");
|
|
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
14, this->dev_group_tag(), output);
|
|
}
|
|
|
|
// optional string key_id_tag = 15;
|
|
if (has_key_id_tag()) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->key_id_tag().data(), this->key_id_tag().length(),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"key_id_tag");
|
|
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
15, this->key_id_tag(), output);
|
|
}
|
|
|
|
// optional string wave_file = 16;
|
|
if (has_wave_file()) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->wave_file().data(), this->wave_file().length(),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"wave_file");
|
|
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
16, this->wave_file(), output);
|
|
}
|
|
|
|
if (!unknown_fields().empty()) {
|
|
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
|
|
unknown_fields(), output);
|
|
}
|
|
// @@protoc_insertion_point(serialize_end:iot_idl.SEvtInfoToEvtClt)
|
|
}
|
|
|
|
::google::protobuf::uint8* SEvtInfoToEvtClt::SerializeWithCachedSizesToArray(
|
|
::google::protobuf::uint8* target) const {
|
|
// @@protoc_insertion_point(serialize_to_array_start:iot_idl.SEvtInfoToEvtClt)
|
|
// required int32 alm_type = 1;
|
|
if (has_alm_type()) {
|
|
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->alm_type(), target);
|
|
}
|
|
|
|
// required int32 alm_status = 2;
|
|
if (has_alm_status()) {
|
|
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->alm_status(), target);
|
|
}
|
|
|
|
// required int64 time_stamp = 3;
|
|
if (has_time_stamp()) {
|
|
target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(3, this->time_stamp(), target);
|
|
}
|
|
|
|
// required int32 domain_id = 4;
|
|
if (has_domain_id()) {
|
|
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->domain_id(), target);
|
|
}
|
|
|
|
// required int32 location_id = 5;
|
|
if (has_location_id()) {
|
|
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->location_id(), target);
|
|
}
|
|
|
|
// required int32 app_id = 6;
|
|
if (has_app_id()) {
|
|
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(6, this->app_id(), target);
|
|
}
|
|
|
|
// required int32 priority = 7;
|
|
if (has_priority()) {
|
|
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(7, this->priority(), target);
|
|
}
|
|
|
|
// required string uuid_base64 = 8;
|
|
if (has_uuid_base64()) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->uuid_base64().data(), this->uuid_base64().length(),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"uuid_base64");
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
|
|
8, this->uuid_base64(), target);
|
|
}
|
|
|
|
// required string content = 9;
|
|
if (has_content()) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->content().data(), this->content().length(),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"content");
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
|
|
9, this->content(), target);
|
|
}
|
|
|
|
// optional int32 sub_system = 10;
|
|
if (has_sub_system()) {
|
|
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(10, this->sub_system(), target);
|
|
}
|
|
|
|
// optional int32 dev_type = 11;
|
|
if (has_dev_type()) {
|
|
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(11, this->dev_type(), target);
|
|
}
|
|
|
|
// optional int32 region_id = 12;
|
|
if (has_region_id()) {
|
|
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(12, this->region_id(), target);
|
|
}
|
|
|
|
// optional .iot_idl.enAlmLogicState logic_state = 13;
|
|
if (has_logic_state()) {
|
|
target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
|
|
13, this->logic_state(), target);
|
|
}
|
|
|
|
// optional string dev_group_tag = 14;
|
|
if (has_dev_group_tag()) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->dev_group_tag().data(), this->dev_group_tag().length(),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"dev_group_tag");
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
|
|
14, this->dev_group_tag(), target);
|
|
}
|
|
|
|
// optional string key_id_tag = 15;
|
|
if (has_key_id_tag()) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->key_id_tag().data(), this->key_id_tag().length(),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"key_id_tag");
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
|
|
15, this->key_id_tag(), target);
|
|
}
|
|
|
|
// optional string wave_file = 16;
|
|
if (has_wave_file()) {
|
|
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->wave_file().data(), this->wave_file().length(),
|
|
::google::protobuf::internal::WireFormat::SERIALIZE,
|
|
"wave_file");
|
|
target =
|
|
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
|
|
16, this->wave_file(), target);
|
|
}
|
|
|
|
if (!unknown_fields().empty()) {
|
|
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
|
|
unknown_fields(), target);
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_end:iot_idl.SEvtInfoToEvtClt)
|
|
return target;
|
|
}
|
|
|
|
int SEvtInfoToEvtClt::ByteSize() const {
|
|
int total_size = 0;
|
|
|
|
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
|
// required int32 alm_type = 1;
|
|
if (has_alm_type()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::Int32Size(
|
|
this->alm_type());
|
|
}
|
|
|
|
// required int32 alm_status = 2;
|
|
if (has_alm_status()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::Int32Size(
|
|
this->alm_status());
|
|
}
|
|
|
|
// required int64 time_stamp = 3;
|
|
if (has_time_stamp()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::Int64Size(
|
|
this->time_stamp());
|
|
}
|
|
|
|
// required int32 domain_id = 4;
|
|
if (has_domain_id()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::Int32Size(
|
|
this->domain_id());
|
|
}
|
|
|
|
// required int32 location_id = 5;
|
|
if (has_location_id()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::Int32Size(
|
|
this->location_id());
|
|
}
|
|
|
|
// required int32 app_id = 6;
|
|
if (has_app_id()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::Int32Size(
|
|
this->app_id());
|
|
}
|
|
|
|
// required int32 priority = 7;
|
|
if (has_priority()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::Int32Size(
|
|
this->priority());
|
|
}
|
|
|
|
// required string uuid_base64 = 8;
|
|
if (has_uuid_base64()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->uuid_base64());
|
|
}
|
|
|
|
}
|
|
if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) {
|
|
// required string content = 9;
|
|
if (has_content()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->content());
|
|
}
|
|
|
|
// optional int32 sub_system = 10;
|
|
if (has_sub_system()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::Int32Size(
|
|
this->sub_system());
|
|
}
|
|
|
|
// optional int32 dev_type = 11;
|
|
if (has_dev_type()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::Int32Size(
|
|
this->dev_type());
|
|
}
|
|
|
|
// optional int32 region_id = 12;
|
|
if (has_region_id()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::Int32Size(
|
|
this->region_id());
|
|
}
|
|
|
|
// optional .iot_idl.enAlmLogicState logic_state = 13;
|
|
if (has_logic_state()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::EnumSize(this->logic_state());
|
|
}
|
|
|
|
// optional string dev_group_tag = 14;
|
|
if (has_dev_group_tag()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->dev_group_tag());
|
|
}
|
|
|
|
// optional string key_id_tag = 15;
|
|
if (has_key_id_tag()) {
|
|
total_size += 1 +
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->key_id_tag());
|
|
}
|
|
|
|
// optional string wave_file = 16;
|
|
if (has_wave_file()) {
|
|
total_size += 2 +
|
|
::google::protobuf::internal::WireFormatLite::StringSize(
|
|
this->wave_file());
|
|
}
|
|
|
|
}
|
|
if (!unknown_fields().empty()) {
|
|
total_size +=
|
|
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
|
|
unknown_fields());
|
|
}
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = total_size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
return total_size;
|
|
}
|
|
|
|
void SEvtInfoToEvtClt::MergeFrom(const ::google::protobuf::Message& from) {
|
|
GOOGLE_CHECK_NE(&from, this);
|
|
const SEvtInfoToEvtClt* source =
|
|
::google::protobuf::internal::dynamic_cast_if_available<const SEvtInfoToEvtClt*>(
|
|
&from);
|
|
if (source == NULL) {
|
|
::google::protobuf::internal::ReflectionOps::Merge(from, this);
|
|
} else {
|
|
MergeFrom(*source);
|
|
}
|
|
}
|
|
|
|
void SEvtInfoToEvtClt::MergeFrom(const SEvtInfoToEvtClt& from) {
|
|
GOOGLE_CHECK_NE(&from, this);
|
|
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
|
if (from.has_alm_type()) {
|
|
set_alm_type(from.alm_type());
|
|
}
|
|
if (from.has_alm_status()) {
|
|
set_alm_status(from.alm_status());
|
|
}
|
|
if (from.has_time_stamp()) {
|
|
set_time_stamp(from.time_stamp());
|
|
}
|
|
if (from.has_domain_id()) {
|
|
set_domain_id(from.domain_id());
|
|
}
|
|
if (from.has_location_id()) {
|
|
set_location_id(from.location_id());
|
|
}
|
|
if (from.has_app_id()) {
|
|
set_app_id(from.app_id());
|
|
}
|
|
if (from.has_priority()) {
|
|
set_priority(from.priority());
|
|
}
|
|
if (from.has_uuid_base64()) {
|
|
set_uuid_base64(from.uuid_base64());
|
|
}
|
|
}
|
|
if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) {
|
|
if (from.has_content()) {
|
|
set_content(from.content());
|
|
}
|
|
if (from.has_sub_system()) {
|
|
set_sub_system(from.sub_system());
|
|
}
|
|
if (from.has_dev_type()) {
|
|
set_dev_type(from.dev_type());
|
|
}
|
|
if (from.has_region_id()) {
|
|
set_region_id(from.region_id());
|
|
}
|
|
if (from.has_logic_state()) {
|
|
set_logic_state(from.logic_state());
|
|
}
|
|
if (from.has_dev_group_tag()) {
|
|
set_dev_group_tag(from.dev_group_tag());
|
|
}
|
|
if (from.has_key_id_tag()) {
|
|
set_key_id_tag(from.key_id_tag());
|
|
}
|
|
if (from.has_wave_file()) {
|
|
set_wave_file(from.wave_file());
|
|
}
|
|
}
|
|
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
|
|
}
|
|
|
|
void SEvtInfoToEvtClt::CopyFrom(const ::google::protobuf::Message& from) {
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
void SEvtInfoToEvtClt::CopyFrom(const SEvtInfoToEvtClt& from) {
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool SEvtInfoToEvtClt::IsInitialized() const {
|
|
if ((_has_bits_[0] & 0x000001ff) != 0x000001ff) return false;
|
|
|
|
return true;
|
|
}
|
|
|
|
void SEvtInfoToEvtClt::Swap(SEvtInfoToEvtClt* other) {
|
|
if (other != this) {
|
|
std::swap(alm_type_, other->alm_type_);
|
|
std::swap(alm_status_, other->alm_status_);
|
|
std::swap(time_stamp_, other->time_stamp_);
|
|
std::swap(domain_id_, other->domain_id_);
|
|
std::swap(location_id_, other->location_id_);
|
|
std::swap(app_id_, other->app_id_);
|
|
std::swap(priority_, other->priority_);
|
|
std::swap(uuid_base64_, other->uuid_base64_);
|
|
std::swap(content_, other->content_);
|
|
std::swap(sub_system_, other->sub_system_);
|
|
std::swap(dev_type_, other->dev_type_);
|
|
std::swap(region_id_, other->region_id_);
|
|
std::swap(logic_state_, other->logic_state_);
|
|
std::swap(dev_group_tag_, other->dev_group_tag_);
|
|
std::swap(key_id_tag_, other->key_id_tag_);
|
|
std::swap(wave_file_, other->wave_file_);
|
|
std::swap(_has_bits_[0], other->_has_bits_[0]);
|
|
_unknown_fields_.Swap(&other->_unknown_fields_);
|
|
std::swap(_cached_size_, other->_cached_size_);
|
|
}
|
|
}
|
|
|
|
::google::protobuf::Metadata SEvtInfoToEvtClt::GetMetadata() const {
|
|
protobuf_AssignDescriptorsOnce();
|
|
::google::protobuf::Metadata metadata;
|
|
metadata.descriptor = SEvtInfoToEvtClt_descriptor_;
|
|
metadata.reflection = SEvtInfoToEvtClt_reflection_;
|
|
return metadata;
|
|
}
|
|
|
|
|
|
// ===================================================================
|
|
|
|
#ifndef _MSC_VER
|
|
const int SEvtCltAddEvt::kEvtInfoFieldNumber;
|
|
#endif // !_MSC_VER
|
|
|
|
SEvtCltAddEvt::SEvtCltAddEvt()
|
|
: ::google::protobuf::Message() {
|
|
SharedCtor();
|
|
// @@protoc_insertion_point(constructor:iot_idl.SEvtCltAddEvt)
|
|
}
|
|
|
|
void SEvtCltAddEvt::InitAsDefaultInstance() {
|
|
}
|
|
|
|
SEvtCltAddEvt::SEvtCltAddEvt(const SEvtCltAddEvt& from)
|
|
: ::google::protobuf::Message() {
|
|
SharedCtor();
|
|
MergeFrom(from);
|
|
// @@protoc_insertion_point(copy_constructor:iot_idl.SEvtCltAddEvt)
|
|
}
|
|
|
|
void SEvtCltAddEvt::SharedCtor() {
|
|
_cached_size_ = 0;
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
}
|
|
|
|
SEvtCltAddEvt::~SEvtCltAddEvt() {
|
|
// @@protoc_insertion_point(destructor:iot_idl.SEvtCltAddEvt)
|
|
SharedDtor();
|
|
}
|
|
|
|
void SEvtCltAddEvt::SharedDtor() {
|
|
if (this != default_instance_) {
|
|
}
|
|
}
|
|
|
|
void SEvtCltAddEvt::SetCachedSize(int size) const {
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
}
|
|
const ::google::protobuf::Descriptor* SEvtCltAddEvt::descriptor() {
|
|
protobuf_AssignDescriptorsOnce();
|
|
return SEvtCltAddEvt_descriptor_;
|
|
}
|
|
|
|
const SEvtCltAddEvt& SEvtCltAddEvt::default_instance() {
|
|
if (default_instance_ == NULL) protobuf_AddDesc_AlarmMessage_2eproto();
|
|
return *default_instance_;
|
|
}
|
|
|
|
SEvtCltAddEvt* SEvtCltAddEvt::default_instance_ = NULL;
|
|
|
|
SEvtCltAddEvt* SEvtCltAddEvt::New() const {
|
|
return new SEvtCltAddEvt;
|
|
}
|
|
|
|
void SEvtCltAddEvt::Clear() {
|
|
evt_info_.Clear();
|
|
::memset(_has_bits_, 0, sizeof(_has_bits_));
|
|
mutable_unknown_fields()->Clear();
|
|
}
|
|
|
|
bool SEvtCltAddEvt::MergePartialFromCodedStream(
|
|
::google::protobuf::io::CodedInputStream* input) {
|
|
#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
|
|
::google::protobuf::uint32 tag;
|
|
// @@protoc_insertion_point(parse_start:iot_idl.SEvtCltAddEvt)
|
|
for (;;) {
|
|
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
|
|
tag = p.first;
|
|
if (!p.second) goto handle_unusual;
|
|
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
|
// repeated .iot_idl.SEvtInfoToEvtClt evt_info = 1;
|
|
case 1: {
|
|
if (tag == 10) {
|
|
parse_evt_info:
|
|
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
|
|
input, add_evt_info()));
|
|
} else {
|
|
goto handle_unusual;
|
|
}
|
|
if (input->ExpectTag(10)) goto parse_evt_info;
|
|
if (input->ExpectAtEnd()) goto success;
|
|
break;
|
|
}
|
|
|
|
default: {
|
|
handle_unusual:
|
|
if (tag == 0 ||
|
|
::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
|
|
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
|
|
goto success;
|
|
}
|
|
DO_(::google::protobuf::internal::WireFormat::SkipField(
|
|
input, tag, mutable_unknown_fields()));
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
success:
|
|
// @@protoc_insertion_point(parse_success:iot_idl.SEvtCltAddEvt)
|
|
return true;
|
|
failure:
|
|
// @@protoc_insertion_point(parse_failure:iot_idl.SEvtCltAddEvt)
|
|
return false;
|
|
#undef DO_
|
|
}
|
|
|
|
void SEvtCltAddEvt::SerializeWithCachedSizes(
|
|
::google::protobuf::io::CodedOutputStream* output) const {
|
|
// @@protoc_insertion_point(serialize_start:iot_idl.SEvtCltAddEvt)
|
|
// repeated .iot_idl.SEvtInfoToEvtClt evt_info = 1;
|
|
for (int i = 0; i < this->evt_info_size(); i++) {
|
|
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
|
|
1, this->evt_info(i), output);
|
|
}
|
|
|
|
if (!unknown_fields().empty()) {
|
|
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
|
|
unknown_fields(), output);
|
|
}
|
|
// @@protoc_insertion_point(serialize_end:iot_idl.SEvtCltAddEvt)
|
|
}
|
|
|
|
::google::protobuf::uint8* SEvtCltAddEvt::SerializeWithCachedSizesToArray(
|
|
::google::protobuf::uint8* target) const {
|
|
// @@protoc_insertion_point(serialize_to_array_start:iot_idl.SEvtCltAddEvt)
|
|
// repeated .iot_idl.SEvtInfoToEvtClt evt_info = 1;
|
|
for (int i = 0; i < this->evt_info_size(); i++) {
|
|
target = ::google::protobuf::internal::WireFormatLite::
|
|
WriteMessageNoVirtualToArray(
|
|
1, this->evt_info(i), target);
|
|
}
|
|
|
|
if (!unknown_fields().empty()) {
|
|
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
|
|
unknown_fields(), target);
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_end:iot_idl.SEvtCltAddEvt)
|
|
return target;
|
|
}
|
|
|
|
int SEvtCltAddEvt::ByteSize() const {
|
|
int total_size = 0;
|
|
|
|
// repeated .iot_idl.SEvtInfoToEvtClt evt_info = 1;
|
|
total_size += 1 * this->evt_info_size();
|
|
for (int i = 0; i < this->evt_info_size(); i++) {
|
|
total_size +=
|
|
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
|
|
this->evt_info(i));
|
|
}
|
|
|
|
if (!unknown_fields().empty()) {
|
|
total_size +=
|
|
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
|
|
unknown_fields());
|
|
}
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
_cached_size_ = total_size;
|
|
GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
return total_size;
|
|
}
|
|
|
|
void SEvtCltAddEvt::MergeFrom(const ::google::protobuf::Message& from) {
|
|
GOOGLE_CHECK_NE(&from, this);
|
|
const SEvtCltAddEvt* source =
|
|
::google::protobuf::internal::dynamic_cast_if_available<const SEvtCltAddEvt*>(
|
|
&from);
|
|
if (source == NULL) {
|
|
::google::protobuf::internal::ReflectionOps::Merge(from, this);
|
|
} else {
|
|
MergeFrom(*source);
|
|
}
|
|
}
|
|
|
|
void SEvtCltAddEvt::MergeFrom(const SEvtCltAddEvt& from) {
|
|
GOOGLE_CHECK_NE(&from, this);
|
|
evt_info_.MergeFrom(from.evt_info_);
|
|
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
|
|
}
|
|
|
|
void SEvtCltAddEvt::CopyFrom(const ::google::protobuf::Message& from) {
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
void SEvtCltAddEvt::CopyFrom(const SEvtCltAddEvt& from) {
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool SEvtCltAddEvt::IsInitialized() const {
|
|
|
|
if (!::google::protobuf::internal::AllAreInitialized(this->evt_info())) return false;
|
|
return true;
|
|
}
|
|
|
|
void SEvtCltAddEvt::Swap(SEvtCltAddEvt* other) {
|
|
if (other != this) {
|
|
evt_info_.Swap(&other->evt_info_);
|
|
std::swap(_has_bits_[0], other->_has_bits_[0]);
|
|
_unknown_fields_.Swap(&other->_unknown_fields_);
|
|
std::swap(_cached_size_, other->_cached_size_);
|
|
}
|
|
}
|
|
|
|
::google::protobuf::Metadata SEvtCltAddEvt::GetMetadata() const {
|
|
protobuf_AssignDescriptorsOnce();
|
|
::google::protobuf::Metadata metadata;
|
|
metadata.descriptor = SEvtCltAddEvt_descriptor_;
|
|
metadata.reflection = SEvtCltAddEvt_reflection_;
|
|
return metadata;
|
|
}
|
|
|
|
|
|
// @@protoc_insertion_point(namespace_scope)
|
|
|
|
} // namespace iot_idl
|
|
|
|
// @@protoc_insertion_point(global_scope)
|