diff options
Diffstat (limited to 'Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubHeatingTestPollResponse.pb.cc')
| -rw-r--r-- | Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubHeatingTestPollResponse.pb.cc | 815 |
1 files changed, 815 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubHeatingTestPollResponse.pb.cc b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubHeatingTestPollResponse.pb.cc new file mode 100644 index 000000000..b0c8695f6 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubHeatingTestPollResponse.pb.cc @@ -0,0 +1,815 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StubHeatingTestPollResponse.proto + +#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION +#include "StubHeatingTestPollResponse.pb.h" + +#include <algorithm> + +#include <google/protobuf/stubs/common.h> +#include <google/protobuf/stubs/port.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 Tango { +namespace PMR { +namespace Stubs { +class StubHeatingTestPollResponseDefaultTypeInternal { +public: + ::google::protobuf::internal::ExplicitlyConstructed<StubHeatingTestPollResponse> + _instance; +} _StubHeatingTestPollResponse_default_instance_; + +namespace protobuf_StubHeatingTestPollResponse_2eproto { + + +namespace { + +::google::protobuf::Metadata file_level_metadata[1]; + +} // namespace + +PROTOBUF_CONSTEXPR_VAR ::google::protobuf::internal::ParseTableField + const TableStruct::entries[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + {0, 0, 0, ::google::protobuf::internal::kInvalidMask, 0, 0}, +}; + +PROTOBUF_CONSTEXPR_VAR ::google::protobuf::internal::AuxillaryParseTableField + const TableStruct::aux[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + ::google::protobuf::internal::AuxillaryParseTableField(), +}; +PROTOBUF_CONSTEXPR_VAR ::google::protobuf::internal::ParseTable const + TableStruct::schema[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + { NULL, NULL, 0, -1, -1, -1, -1, NULL, false }, +}; + +const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubHeatingTestPollResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubHeatingTestPollResponse, heatergroupid_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubHeatingTestPollResponse, zone1temp_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubHeatingTestPollResponse, zone2temp_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubHeatingTestPollResponse, heater1active_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubHeatingTestPollResponse, heater2active_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubHeatingTestPollResponse, heater1percentage_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubHeatingTestPollResponse, heater2percentage_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubHeatingTestPollResponse, infomessage_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(StubHeatingTestPollResponse)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast<const ::google::protobuf::Message*>(&_StubHeatingTestPollResponse_default_instance_), +}; + +namespace { + +void protobuf_AssignDescriptors() { + AddDescriptors(); + ::google::protobuf::MessageFactory* factory = NULL; + AssignDescriptors( + "StubHeatingTestPollResponse.proto", schemas, file_default_instances, TableStruct::offsets, factory, + file_level_metadata, NULL, NULL); +} + +void protobuf_AssignDescriptorsOnce() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors); +} + +void protobuf_RegisterTypes(const ::std::string&) GOOGLE_ATTRIBUTE_COLD; +void protobuf_RegisterTypes(const ::std::string&) { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 1); +} + +} // namespace +void TableStruct::InitDefaultsImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + ::google::protobuf::internal::InitProtobufDefaults(); + _StubHeatingTestPollResponse_default_instance_._instance.DefaultConstruct(); + ::google::protobuf::internal::OnShutdownDestroyMessage( + &_StubHeatingTestPollResponse_default_instance_);} + +void InitDefaults() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &TableStruct::InitDefaultsImpl); +} +namespace { +void AddDescriptorsImpl() { + InitDefaults(); + static const char descriptor[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + "\n!StubHeatingTestPollResponse.proto\022\017Tan" + "go.PMR.Stubs\"\323\001\n\033StubHeatingTestPollResp" + "onse\022\025\n\rHeaterGroupId\030\001 \001(\r\022\021\n\tZone1Temp" + "\030\002 \001(\r\022\021\n\tZone2Temp\030\003 \001(\r\022\025\n\rHeater1Acti" + "ve\030\004 \001(\010\022\025\n\rHeater2Active\030\005 \001(\010\022\031\n\021Heate" + "r1Percentage\030\006 \001(\r\022\031\n\021Heater2Percentage\030" + "\007 \001(\r\022\023\n\013InfoMessage\030\010 \001(\tB\033\n\031com.twine." + "tango.pmr.stubsb\006proto3" + }; + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + descriptor, 303); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "StubHeatingTestPollResponse.proto", &protobuf_RegisterTypes); +} +} // anonymous namespace + +void AddDescriptors() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl); +} +// Force AddDescriptors() to be called at dynamic initialization time. +struct StaticDescriptorInitializer { + StaticDescriptorInitializer() { + AddDescriptors(); + } +} static_descriptor_initializer; + +} // namespace protobuf_StubHeatingTestPollResponse_2eproto + + +// =================================================================== + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int StubHeatingTestPollResponse::kHeaterGroupIdFieldNumber; +const int StubHeatingTestPollResponse::kZone1TempFieldNumber; +const int StubHeatingTestPollResponse::kZone2TempFieldNumber; +const int StubHeatingTestPollResponse::kHeater1ActiveFieldNumber; +const int StubHeatingTestPollResponse::kHeater2ActiveFieldNumber; +const int StubHeatingTestPollResponse::kHeater1PercentageFieldNumber; +const int StubHeatingTestPollResponse::kHeater2PercentageFieldNumber; +const int StubHeatingTestPollResponse::kInfoMessageFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +StubHeatingTestPollResponse::StubHeatingTestPollResponse() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_StubHeatingTestPollResponse_2eproto::InitDefaults(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:Tango.PMR.Stubs.StubHeatingTestPollResponse) +} +StubHeatingTestPollResponse::StubHeatingTestPollResponse(const StubHeatingTestPollResponse& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + infomessage_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.infomessage().size() > 0) { + infomessage_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.infomessage_); + } + ::memcpy(&heatergroupid_, &from.heatergroupid_, + static_cast<size_t>(reinterpret_cast<char*>(&heater2percentage_) - + reinterpret_cast<char*>(&heatergroupid_)) + sizeof(heater2percentage_)); + // @@protoc_insertion_point(copy_constructor:Tango.PMR.Stubs.StubHeatingTestPollResponse) +} + +void StubHeatingTestPollResponse::SharedCtor() { + infomessage_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&heatergroupid_, 0, static_cast<size_t>( + reinterpret_cast<char*>(&heater2percentage_) - + reinterpret_cast<char*>(&heatergroupid_)) + sizeof(heater2percentage_)); + _cached_size_ = 0; +} + +StubHeatingTestPollResponse::~StubHeatingTestPollResponse() { + // @@protoc_insertion_point(destructor:Tango.PMR.Stubs.StubHeatingTestPollResponse) + SharedDtor(); +} + +void StubHeatingTestPollResponse::SharedDtor() { + infomessage_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void StubHeatingTestPollResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* StubHeatingTestPollResponse::descriptor() { + protobuf_StubHeatingTestPollResponse_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_StubHeatingTestPollResponse_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const StubHeatingTestPollResponse& StubHeatingTestPollResponse::default_instance() { + protobuf_StubHeatingTestPollResponse_2eproto::InitDefaults(); + return *internal_default_instance(); +} + +StubHeatingTestPollResponse* StubHeatingTestPollResponse::New(::google::protobuf::Arena* arena) const { + StubHeatingTestPollResponse* n = new StubHeatingTestPollResponse; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void StubHeatingTestPollResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:Tango.PMR.Stubs.StubHeatingTestPollResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + infomessage_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&heatergroupid_, 0, static_cast<size_t>( + reinterpret_cast<char*>(&heater2percentage_) - + reinterpret_cast<char*>(&heatergroupid_)) + sizeof(heater2percentage_)); + _internal_metadata_.Clear(); +} + +bool StubHeatingTestPollResponse::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:Tango.PMR.Stubs.StubHeatingTestPollResponse) + 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)) { + // uint32 HeaterGroupId = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &heatergroupid_))); + } else { + goto handle_unusual; + } + break; + } + + // uint32 Zone1Temp = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &zone1temp_))); + } else { + goto handle_unusual; + } + break; + } + + // uint32 Zone2Temp = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &zone2temp_))); + } else { + goto handle_unusual; + } + break; + } + + // bool Heater1Active = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &heater1active_))); + } else { + goto handle_unusual; + } + break; + } + + // bool Heater2Active = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &heater2active_))); + } else { + goto handle_unusual; + } + break; + } + + // uint32 Heater1Percentage = 6; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &heater1percentage_))); + } else { + goto handle_unusual; + } + break; + } + + // uint32 Heater2Percentage = 7; + case 7: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &heater2percentage_))); + } else { + goto handle_unusual; + } + break; + } + + // string InfoMessage = 8; + case 8: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_infomessage())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->infomessage().data(), static_cast<int>(this->infomessage().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "Tango.PMR.Stubs.StubHeatingTestPollResponse.InfoMessage")); + } 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:Tango.PMR.Stubs.StubHeatingTestPollResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:Tango.PMR.Stubs.StubHeatingTestPollResponse) + return false; +#undef DO_ +} + +void StubHeatingTestPollResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Tango.PMR.Stubs.StubHeatingTestPollResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // uint32 HeaterGroupId = 1; + if (this->heatergroupid() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->heatergroupid(), output); + } + + // uint32 Zone1Temp = 2; + if (this->zone1temp() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->zone1temp(), output); + } + + // uint32 Zone2Temp = 3; + if (this->zone2temp() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->zone2temp(), output); + } + + // bool Heater1Active = 4; + if (this->heater1active() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteBool(4, this->heater1active(), output); + } + + // bool Heater2Active = 5; + if (this->heater2active() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteBool(5, this->heater2active(), output); + } + + // uint32 Heater1Percentage = 6; + if (this->heater1percentage() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(6, this->heater1percentage(), output); + } + + // uint32 Heater2Percentage = 7; + if (this->heater2percentage() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(7, this->heater2percentage(), output); + } + + // string InfoMessage = 8; + if (this->infomessage().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->infomessage().data(), static_cast<int>(this->infomessage().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "Tango.PMR.Stubs.StubHeatingTestPollResponse.InfoMessage"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 8, this->infomessage(), output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:Tango.PMR.Stubs.StubHeatingTestPollResponse) +} + +::google::protobuf::uint8* StubHeatingTestPollResponse::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:Tango.PMR.Stubs.StubHeatingTestPollResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // uint32 HeaterGroupId = 1; + if (this->heatergroupid() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->heatergroupid(), target); + } + + // uint32 Zone1Temp = 2; + if (this->zone1temp() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->zone1temp(), target); + } + + // uint32 Zone2Temp = 3; + if (this->zone2temp() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->zone2temp(), target); + } + + // bool Heater1Active = 4; + if (this->heater1active() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(4, this->heater1active(), target); + } + + // bool Heater2Active = 5; + if (this->heater2active() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(5, this->heater2active(), target); + } + + // uint32 Heater1Percentage = 6; + if (this->heater1percentage() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(6, this->heater1percentage(), target); + } + + // uint32 Heater2Percentage = 7; + if (this->heater2percentage() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(7, this->heater2percentage(), target); + } + + // string InfoMessage = 8; + if (this->infomessage().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->infomessage().data(), static_cast<int>(this->infomessage().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "Tango.PMR.Stubs.StubHeatingTestPollResponse.InfoMessage"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 8, this->infomessage(), target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:Tango.PMR.Stubs.StubHeatingTestPollResponse) + return target; +} + +size_t StubHeatingTestPollResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:Tango.PMR.Stubs.StubHeatingTestPollResponse) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // string InfoMessage = 8; + if (this->infomessage().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->infomessage()); + } + + // uint32 HeaterGroupId = 1; + if (this->heatergroupid() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->heatergroupid()); + } + + // uint32 Zone1Temp = 2; + if (this->zone1temp() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->zone1temp()); + } + + // uint32 Zone2Temp = 3; + if (this->zone2temp() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->zone2temp()); + } + + // bool Heater1Active = 4; + if (this->heater1active() != 0) { + total_size += 1 + 1; + } + + // bool Heater2Active = 5; + if (this->heater2active() != 0) { + total_size += 1 + 1; + } + + // uint32 Heater1Percentage = 6; + if (this->heater1percentage() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->heater1percentage()); + } + + // uint32 Heater2Percentage = 7; + if (this->heater2percentage() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->heater2percentage()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void StubHeatingTestPollResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:Tango.PMR.Stubs.StubHeatingTestPollResponse) + GOOGLE_DCHECK_NE(&from, this); + const StubHeatingTestPollResponse* source = + ::google::protobuf::internal::DynamicCastToGenerated<const StubHeatingTestPollResponse>( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:Tango.PMR.Stubs.StubHeatingTestPollResponse) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:Tango.PMR.Stubs.StubHeatingTestPollResponse) + MergeFrom(*source); + } +} + +void StubHeatingTestPollResponse::MergeFrom(const StubHeatingTestPollResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:Tango.PMR.Stubs.StubHeatingTestPollResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.infomessage().size() > 0) { + + infomessage_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.infomessage_); + } + if (from.heatergroupid() != 0) { + set_heatergroupid(from.heatergroupid()); + } + if (from.zone1temp() != 0) { + set_zone1temp(from.zone1temp()); + } + if (from.zone2temp() != 0) { + set_zone2temp(from.zone2temp()); + } + if (from.heater1active() != 0) { + set_heater1active(from.heater1active()); + } + if (from.heater2active() != 0) { + set_heater2active(from.heater2active()); + } + if (from.heater1percentage() != 0) { + set_heater1percentage(from.heater1percentage()); + } + if (from.heater2percentage() != 0) { + set_heater2percentage(from.heater2percentage()); + } +} + +void StubHeatingTestPollResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:Tango.PMR.Stubs.StubHeatingTestPollResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void StubHeatingTestPollResponse::CopyFrom(const StubHeatingTestPollResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:Tango.PMR.Stubs.StubHeatingTestPollResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool StubHeatingTestPollResponse::IsInitialized() const { + return true; +} + +void StubHeatingTestPollResponse::Swap(StubHeatingTestPollResponse* other) { + if (other == this) return; + InternalSwap(other); +} +void StubHeatingTestPollResponse::InternalSwap(StubHeatingTestPollResponse* other) { + using std::swap; + infomessage_.Swap(&other->infomessage_); + swap(heatergroupid_, other->heatergroupid_); + swap(zone1temp_, other->zone1temp_); + swap(zone2temp_, other->zone2temp_); + swap(heater1active_, other->heater1active_); + swap(heater2active_, other->heater2active_); + swap(heater1percentage_, other->heater1percentage_); + swap(heater2percentage_, other->heater2percentage_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata StubHeatingTestPollResponse::GetMetadata() const { + protobuf_StubHeatingTestPollResponse_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_StubHeatingTestPollResponse_2eproto::file_level_metadata[kIndexInFileMessages]; +} + +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// StubHeatingTestPollResponse + +// uint32 HeaterGroupId = 1; +void StubHeatingTestPollResponse::clear_heatergroupid() { + heatergroupid_ = 0u; +} +::google::protobuf::uint32 StubHeatingTestPollResponse::heatergroupid() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubHeatingTestPollResponse.HeaterGroupId) + return heatergroupid_; +} +void StubHeatingTestPollResponse::set_heatergroupid(::google::protobuf::uint32 value) { + + heatergroupid_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubHeatingTestPollResponse.HeaterGroupId) +} + +// uint32 Zone1Temp = 2; +void StubHeatingTestPollResponse::clear_zone1temp() { + zone1temp_ = 0u; +} +::google::protobuf::uint32 StubHeatingTestPollResponse::zone1temp() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubHeatingTestPollResponse.Zone1Temp) + return zone1temp_; +} +void StubHeatingTestPollResponse::set_zone1temp(::google::protobuf::uint32 value) { + + zone1temp_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubHeatingTestPollResponse.Zone1Temp) +} + +// uint32 Zone2Temp = 3; +void StubHeatingTestPollResponse::clear_zone2temp() { + zone2temp_ = 0u; +} +::google::protobuf::uint32 StubHeatingTestPollResponse::zone2temp() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubHeatingTestPollResponse.Zone2Temp) + return zone2temp_; +} +void StubHeatingTestPollResponse::set_zone2temp(::google::protobuf::uint32 value) { + + zone2temp_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubHeatingTestPollResponse.Zone2Temp) +} + +// bool Heater1Active = 4; +void StubHeatingTestPollResponse::clear_heater1active() { + heater1active_ = false; +} +bool StubHeatingTestPollResponse::heater1active() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubHeatingTestPollResponse.Heater1Active) + return heater1active_; +} +void StubHeatingTestPollResponse::set_heater1active(bool value) { + + heater1active_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubHeatingTestPollResponse.Heater1Active) +} + +// bool Heater2Active = 5; +void StubHeatingTestPollResponse::clear_heater2active() { + heater2active_ = false; +} +bool StubHeatingTestPollResponse::heater2active() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubHeatingTestPollResponse.Heater2Active) + return heater2active_; +} +void StubHeatingTestPollResponse::set_heater2active(bool value) { + + heater2active_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubHeatingTestPollResponse.Heater2Active) +} + +// uint32 Heater1Percentage = 6; +void StubHeatingTestPollResponse::clear_heater1percentage() { + heater1percentage_ = 0u; +} +::google::protobuf::uint32 StubHeatingTestPollResponse::heater1percentage() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubHeatingTestPollResponse.Heater1Percentage) + return heater1percentage_; +} +void StubHeatingTestPollResponse::set_heater1percentage(::google::protobuf::uint32 value) { + + heater1percentage_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubHeatingTestPollResponse.Heater1Percentage) +} + +// uint32 Heater2Percentage = 7; +void StubHeatingTestPollResponse::clear_heater2percentage() { + heater2percentage_ = 0u; +} +::google::protobuf::uint32 StubHeatingTestPollResponse::heater2percentage() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubHeatingTestPollResponse.Heater2Percentage) + return heater2percentage_; +} +void StubHeatingTestPollResponse::set_heater2percentage(::google::protobuf::uint32 value) { + + heater2percentage_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubHeatingTestPollResponse.Heater2Percentage) +} + +// string InfoMessage = 8; +void StubHeatingTestPollResponse::clear_infomessage() { + infomessage_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +const ::std::string& StubHeatingTestPollResponse::infomessage() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubHeatingTestPollResponse.InfoMessage) + return infomessage_.GetNoArena(); +} +void StubHeatingTestPollResponse::set_infomessage(const ::std::string& value) { + + infomessage_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubHeatingTestPollResponse.InfoMessage) +} +#if LANG_CXX11 +void StubHeatingTestPollResponse::set_infomessage(::std::string&& value) { + + infomessage_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:Tango.PMR.Stubs.StubHeatingTestPollResponse.InfoMessage) +} +#endif +void StubHeatingTestPollResponse::set_infomessage(const char* value) { + GOOGLE_DCHECK(value != NULL); + + infomessage_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:Tango.PMR.Stubs.StubHeatingTestPollResponse.InfoMessage) +} +void StubHeatingTestPollResponse::set_infomessage(const char* value, size_t size) { + + infomessage_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast<const char*>(value), size)); + // @@protoc_insertion_point(field_set_pointer:Tango.PMR.Stubs.StubHeatingTestPollResponse.InfoMessage) +} +::std::string* StubHeatingTestPollResponse::mutable_infomessage() { + + // @@protoc_insertion_point(field_mutable:Tango.PMR.Stubs.StubHeatingTestPollResponse.InfoMessage) + return infomessage_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +::std::string* StubHeatingTestPollResponse::release_infomessage() { + // @@protoc_insertion_point(field_release:Tango.PMR.Stubs.StubHeatingTestPollResponse.InfoMessage) + + return infomessage_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +void StubHeatingTestPollResponse::set_allocated_infomessage(::std::string* infomessage) { + if (infomessage != NULL) { + + } else { + + } + infomessage_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), infomessage); + // @@protoc_insertion_point(field_set_allocated:Tango.PMR.Stubs.StubHeatingTestPollResponse.InfoMessage) +} + +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS + +// @@protoc_insertion_point(namespace_scope) + +} // namespace Stubs +} // namespace PMR +} // namespace Tango + +// @@protoc_insertion_point(global_scope) |
