kylin-connectivity/pcscreenmanage/screenmanagemsg.pb.cc

455 lines
16 KiB
C++

// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: screenmanagemsg.proto
#include "screenmanagemsg.pb.h"
#include <algorithm>
#include <google/protobuf/stubs/common.h>
#include <google/protobuf/stubs/port.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>
// This is a temporary google only hack
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
#include "third_party/protobuf/version.h"
#endif
// @@protoc_insertion_point(includes)
class ScreenManageMsgDefaultTypeInternal {
public:
::google::protobuf::internal::ExplicitlyConstructed<ScreenManageMsg>
_instance;
} _ScreenManageMsg_default_instance_;
namespace protobuf_screenmanagemsg_2eproto {
static void InitDefaultsScreenManageMsg() {
GOOGLE_PROTOBUF_VERIFY_VERSION;
{
void* ptr = &::_ScreenManageMsg_default_instance_;
new (ptr) ::ScreenManageMsg();
::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
}
::ScreenManageMsg::InitAsDefaultInstance();
}
::google::protobuf::internal::SCCInfo<0> scc_info_ScreenManageMsg =
{{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsScreenManageMsg}, {}};
void InitDefaults() {
::google::protobuf::internal::InitSCC(&scc_info_ScreenManageMsg.base);
}
::google::protobuf::Metadata file_level_metadata[1];
const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[1];
const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::ScreenManageMsg, _has_bits_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::ScreenManageMsg, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::ScreenManageMsg, msg_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::ScreenManageMsg, roomid_),
1,
0,
};
static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
{ 0, 7, sizeof(::ScreenManageMsg)},
};
static ::google::protobuf::Message const * const file_default_instances[] = {
reinterpret_cast<const ::google::protobuf::Message*>(&::_ScreenManageMsg_default_instance_),
};
void protobuf_AssignDescriptors() {
AddDescriptors();
AssignDescriptors(
"screenmanagemsg.proto", schemas, file_default_instances, TableStruct::offsets,
file_level_metadata, file_level_enum_descriptors, NULL);
}
void protobuf_AssignDescriptorsOnce() {
static ::google::protobuf::internal::once_flag once;
::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors);
}
void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
void protobuf_RegisterTypes(const ::std::string&) {
protobuf_AssignDescriptorsOnce();
::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 1);
}
void AddDescriptorsImpl() {
InitDefaults();
static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
"\n\025screenmanagemsg.proto\"\321\001\n\017ScreenManage"
"Msg\022)\n\003msg\030\001 \002(\0162\034.ScreenManageMsg.Messa"
"geType\022\016\n\006roomid\030\002 \001(\t\"\202\001\n\013MessageType\022\020"
"\n\014CURTAINREADY\020\000\022\017\n\013SCREENREADY\020\001\022\017\n\013CUR"
"TAINEXIT\020\002\022\016\n\nSCREENEXIT\020\003\022\n\n\006REFUSE\020\004\022\022"
"\n\016STARTEDCONTROL\020\005\022\017\n\013EXITCONTROL\020\006"
};
::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
descriptor, 235);
::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
"screenmanagemsg.proto", &protobuf_RegisterTypes);
}
void AddDescriptors() {
static ::google::protobuf::internal::once_flag once;
::google::protobuf::internal::call_once(once, AddDescriptorsImpl);
}
// Force AddDescriptors() to be called at dynamic initialization time.
struct StaticDescriptorInitializer {
StaticDescriptorInitializer() {
AddDescriptors();
}
} static_descriptor_initializer;
} // namespace protobuf_screenmanagemsg_2eproto
const ::google::protobuf::EnumDescriptor* ScreenManageMsg_MessageType_descriptor() {
protobuf_screenmanagemsg_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_screenmanagemsg_2eproto::file_level_enum_descriptors[0];
}
bool ScreenManageMsg_MessageType_IsValid(int value) {
switch (value) {
case 0:
case 1:
case 2:
case 3:
case 4:
case 5:
case 6:
return true;
default:
return false;
}
}
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const ScreenManageMsg_MessageType ScreenManageMsg::CURTAINREADY;
const ScreenManageMsg_MessageType ScreenManageMsg::SCREENREADY;
const ScreenManageMsg_MessageType ScreenManageMsg::CURTAINEXIT;
const ScreenManageMsg_MessageType ScreenManageMsg::SCREENEXIT;
const ScreenManageMsg_MessageType ScreenManageMsg::REFUSE;
const ScreenManageMsg_MessageType ScreenManageMsg::STARTEDCONTROL;
const ScreenManageMsg_MessageType ScreenManageMsg::EXITCONTROL;
const ScreenManageMsg_MessageType ScreenManageMsg::MessageType_MIN;
const ScreenManageMsg_MessageType ScreenManageMsg::MessageType_MAX;
const int ScreenManageMsg::MessageType_ARRAYSIZE;
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
// ===================================================================
void ScreenManageMsg::InitAsDefaultInstance() {
}
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int ScreenManageMsg::kMsgFieldNumber;
const int ScreenManageMsg::kRoomidFieldNumber;
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
ScreenManageMsg::ScreenManageMsg()
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
::google::protobuf::internal::InitSCC(
&protobuf_screenmanagemsg_2eproto::scc_info_ScreenManageMsg.base);
SharedCtor();
// @@protoc_insertion_point(constructor:ScreenManageMsg)
}
ScreenManageMsg::ScreenManageMsg(const ScreenManageMsg& from)
: ::google::protobuf::Message(),
_internal_metadata_(NULL),
_has_bits_(from._has_bits_) {
_internal_metadata_.MergeFrom(from._internal_metadata_);
roomid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
if (from.has_roomid()) {
roomid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.roomid_);
}
msg_ = from.msg_;
// @@protoc_insertion_point(copy_constructor:ScreenManageMsg)
}
void ScreenManageMsg::SharedCtor() {
roomid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
msg_ = 0;
}
ScreenManageMsg::~ScreenManageMsg() {
// @@protoc_insertion_point(destructor:ScreenManageMsg)
SharedDtor();
}
void ScreenManageMsg::SharedDtor() {
roomid_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void ScreenManageMsg::SetCachedSize(int size) const {
_cached_size_.Set(size);
}
const ::google::protobuf::Descriptor* ScreenManageMsg::descriptor() {
::protobuf_screenmanagemsg_2eproto::protobuf_AssignDescriptorsOnce();
return ::protobuf_screenmanagemsg_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
}
const ScreenManageMsg& ScreenManageMsg::default_instance() {
::google::protobuf::internal::InitSCC(&protobuf_screenmanagemsg_2eproto::scc_info_ScreenManageMsg.base);
return *internal_default_instance();
}
void ScreenManageMsg::Clear() {
// @@protoc_insertion_point(message_clear_start:ScreenManageMsg)
::google::protobuf::uint32 cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
cached_has_bits = _has_bits_[0];
if (cached_has_bits & 0x00000001u) {
roomid_.ClearNonDefaultToEmptyNoArena();
}
msg_ = 0;
_has_bits_.Clear();
_internal_metadata_.Clear();
}
bool ScreenManageMsg::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
::google::protobuf::uint32 tag;
// @@protoc_insertion_point(parse_start:ScreenManageMsg)
for (;;) {
::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
tag = p.first;
if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// required .ScreenManageMsg.MessageType msg = 1;
case 1: {
if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
int value;
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
input, &value)));
if (::ScreenManageMsg_MessageType_IsValid(value)) {
set_msg(static_cast< ::ScreenManageMsg_MessageType >(value));
} else {
mutable_unknown_fields()->AddVarint(
1, static_cast< ::google::protobuf::uint64>(value));
}
} else {
goto handle_unusual;
}
break;
}
// optional string roomid = 2;
case 2: {
if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_roomid()));
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
this->roomid().data(), static_cast<int>(this->roomid().length()),
::google::protobuf::internal::WireFormat::PARSE,
"ScreenManageMsg.roomid");
} else {
goto handle_unusual;
}
break;
}
default: {
handle_unusual:
if (tag == 0) {
goto success;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
input, tag, _internal_metadata_.mutable_unknown_fields()));
break;
}
}
}
success:
// @@protoc_insertion_point(parse_success:ScreenManageMsg)
return true;
failure:
// @@protoc_insertion_point(parse_failure:ScreenManageMsg)
return false;
#undef DO_
}
void ScreenManageMsg::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// @@protoc_insertion_point(serialize_start:ScreenManageMsg)
::google::protobuf::uint32 cached_has_bits = 0;
(void) cached_has_bits;
cached_has_bits = _has_bits_[0];
// required .ScreenManageMsg.MessageType msg = 1;
if (cached_has_bits & 0x00000002u) {
::google::protobuf::internal::WireFormatLite::WriteEnum(
1, this->msg(), output);
}
// optional string roomid = 2;
if (cached_has_bits & 0x00000001u) {
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
this->roomid().data(), static_cast<int>(this->roomid().length()),
::google::protobuf::internal::WireFormat::SERIALIZE,
"ScreenManageMsg.roomid");
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
2, this->roomid(), output);
}
if (_internal_metadata_.have_unknown_fields()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
_internal_metadata_.unknown_fields(), output);
}
// @@protoc_insertion_point(serialize_end:ScreenManageMsg)
}
::google::protobuf::uint8* ScreenManageMsg::InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const {
(void)deterministic; // Unused
// @@protoc_insertion_point(serialize_to_array_start:ScreenManageMsg)
::google::protobuf::uint32 cached_has_bits = 0;
(void) cached_has_bits;
cached_has_bits = _has_bits_[0];
// required .ScreenManageMsg.MessageType msg = 1;
if (cached_has_bits & 0x00000002u) {
target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
1, this->msg(), target);
}
// optional string roomid = 2;
if (cached_has_bits & 0x00000001u) {
::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
this->roomid().data(), static_cast<int>(this->roomid().length()),
::google::protobuf::internal::WireFormat::SERIALIZE,
"ScreenManageMsg.roomid");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2, this->roomid(), target);
}
if (_internal_metadata_.have_unknown_fields()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
_internal_metadata_.unknown_fields(), target);
}
// @@protoc_insertion_point(serialize_to_array_end:ScreenManageMsg)
return target;
}
size_t ScreenManageMsg::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:ScreenManageMsg)
size_t total_size = 0;
if (_internal_metadata_.have_unknown_fields()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
_internal_metadata_.unknown_fields());
}
// required .ScreenManageMsg.MessageType msg = 1;
if (has_msg()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::EnumSize(this->msg());
}
// optional string roomid = 2;
if (has_roomid()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->roomid());
}
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
SetCachedSize(cached_size);
return total_size;
}
void ScreenManageMsg::MergeFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:ScreenManageMsg)
GOOGLE_DCHECK_NE(&from, this);
const ScreenManageMsg* source =
::google::protobuf::internal::DynamicCastToGenerated<const ScreenManageMsg>(
&from);
if (source == NULL) {
// @@protoc_insertion_point(generalized_merge_from_cast_fail:ScreenManageMsg)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:ScreenManageMsg)
MergeFrom(*source);
}
}
void ScreenManageMsg::MergeFrom(const ScreenManageMsg& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:ScreenManageMsg)
GOOGLE_DCHECK_NE(&from, this);
_internal_metadata_.MergeFrom(from._internal_metadata_);
::google::protobuf::uint32 cached_has_bits = 0;
(void) cached_has_bits;
cached_has_bits = from._has_bits_[0];
if (cached_has_bits & 3u) {
if (cached_has_bits & 0x00000001u) {
set_has_roomid();
roomid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.roomid_);
}
if (cached_has_bits & 0x00000002u) {
msg_ = from.msg_;
}
_has_bits_[0] |= cached_has_bits;
}
}
void ScreenManageMsg::CopyFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:ScreenManageMsg)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void ScreenManageMsg::CopyFrom(const ScreenManageMsg& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:ScreenManageMsg)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool ScreenManageMsg::IsInitialized() const {
if ((_has_bits_[0] & 0x00000002) != 0x00000002) return false;
return true;
}
void ScreenManageMsg::Swap(ScreenManageMsg* other) {
if (other == this) return;
InternalSwap(other);
}
void ScreenManageMsg::InternalSwap(ScreenManageMsg* other) {
using std::swap;
roomid_.Swap(&other->roomid_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
GetArenaNoVirtual());
swap(msg_, other->msg_);
swap(_has_bits_[0], other->_has_bits_[0]);
_internal_metadata_.Swap(&other->_internal_metadata_);
}
::google::protobuf::Metadata ScreenManageMsg::GetMetadata() const {
protobuf_screenmanagemsg_2eproto::protobuf_AssignDescriptorsOnce();
return ::protobuf_screenmanagemsg_2eproto::file_level_metadata[kIndexInFileMessages];
}
// @@protoc_insertion_point(namespace_scope)
namespace google {
namespace protobuf {
template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::ScreenManageMsg* Arena::CreateMaybeMessage< ::ScreenManageMsg >(Arena* arena) {
return Arena::CreateInternal< ::ScreenManageMsg >(arena);
}
} // namespace protobuf
} // namespace google
// @@protoc_insertion_point(global_scope)