diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2017-12-20 19:11:54 +0200 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2017-12-20 19:11:54 +0200 |
| commit | e96f6b832fb74c548bdcab997eafa2d49f7ea08c (patch) | |
| tree | a230ab6f1028715c3881e0833e3d804d81fbf4df /Software/Visual_Studio/Native/Tango.ProtoTest | |
| parent | 9bc902b25b489e4fca4496e8cccfac1b3d722ce0 (diff) | |
| download | Tango-e96f6b832fb74c548bdcab997eafa2d49f7ea08c.tar.gz Tango-e96f6b832fb74c548bdcab997eafa2d49f7ea08c.zip | |
Successfully compiled Tango.ColorLib arm/x86 project.
Diffstat (limited to 'Software/Visual_Studio/Native/Tango.ProtoTest')
66 files changed, 22919 insertions, 26 deletions
diff --git a/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/ErrorCode.pb.cc b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/ErrorCode.pb.cc new file mode 100644 index 000000000..685589881 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/ErrorCode.pb.cc @@ -0,0 +1,130 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ErrorCode.proto + +#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION +#include "ErrorCode.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 Common { + +namespace protobuf_ErrorCode_2eproto { + + +namespace { + +const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[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[1] = {}; +static const ::google::protobuf::internal::MigrationSchema* schemas = NULL; +static const ::google::protobuf::Message* const* file_default_instances = NULL; +namespace { + +void protobuf_AssignDescriptors() { + AddDescriptors(); + ::google::protobuf::MessageFactory* factory = NULL; + AssignDescriptors( + "ErrorCode.proto", schemas, file_default_instances, TableStruct::offsets, factory, + NULL, file_level_enum_descriptors, 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(); +} + +} // namespace +void TableStruct::InitDefaultsImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + ::google::protobuf::internal::InitProtobufDefaults(); +} + +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\017ErrorCode.proto\022\020Tango.PMR.Common*\"\n\tE" + "rrorCode\022\010\n\004NONE\020\000\022\013\n\007BAD_CRC\020\001B\034\n\032com.t" + "wine.tango.pmr.commonb\006proto3" + }; + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + descriptor, 109); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "ErrorCode.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_ErrorCode_2eproto + +const ::google::protobuf::EnumDescriptor* ErrorCode_descriptor() { + protobuf_ErrorCode_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_ErrorCode_2eproto::file_level_enum_descriptors[0]; +} +bool ErrorCode_IsValid(int value) { + switch (value) { + case 0: + case 1: + return true; + default: + return false; + } +} + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace Common +} // namespace PMR +} // namespace Tango + +// @@protoc_insertion_point(global_scope) diff --git a/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/ErrorCode.pb.h b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/ErrorCode.pb.h new file mode 100644 index 000000000..ef6b129d6 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/ErrorCode.pb.h @@ -0,0 +1,118 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ErrorCode.proto + +#ifndef PROTOBUF_ErrorCode_2eproto__INCLUDED +#define PROTOBUF_ErrorCode_2eproto__INCLUDED + +#include <string> + +#include <google/protobuf/stubs/common.h> + +#if GOOGLE_PROTOBUF_VERSION < 3004000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3004000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include <google/protobuf/io/coded_stream.h> +#include <google/protobuf/arena.h> +#include <google/protobuf/arenastring.h> +#include <google/protobuf/generated_message_table_driven.h> +#include <google/protobuf/generated_message_util.h> +#include <google/protobuf/metadata.h> +#include <google/protobuf/repeated_field.h> // IWYU pragma: export +#include <google/protobuf/extension_set.h> // IWYU pragma: export +#include <google/protobuf/generated_enum_reflection.h> +// @@protoc_insertion_point(includes) +namespace Tango { +namespace PMR { +namespace Common { +} // namespace Common +} // namespace PMR +} // namespace Tango + +namespace Tango { +namespace PMR { +namespace Common { + +namespace protobuf_ErrorCode_2eproto { +// Internal implementation detail -- do not call these. +struct TableStruct { + static const ::google::protobuf::internal::ParseTableField entries[]; + static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; + static const ::google::protobuf::internal::ParseTable schema[]; + static const ::google::protobuf::uint32 offsets[]; + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static void InitDefaultsImpl(); +}; +void AddDescriptors(); +void InitDefaults(); +} // namespace protobuf_ErrorCode_2eproto + +enum ErrorCode { + NONE = 0, + BAD_CRC = 1, + ErrorCode_INT_MIN_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32min, + ErrorCode_INT_MAX_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32max +}; +bool ErrorCode_IsValid(int value); +const ErrorCode ErrorCode_MIN = NONE; +const ErrorCode ErrorCode_MAX = BAD_CRC; +const int ErrorCode_ARRAYSIZE = ErrorCode_MAX + 1; + +const ::google::protobuf::EnumDescriptor* ErrorCode_descriptor(); +inline const ::std::string& ErrorCode_Name(ErrorCode value) { + return ::google::protobuf::internal::NameOfEnum( + ErrorCode_descriptor(), value); +} +inline bool ErrorCode_Parse( + const ::std::string& name, ErrorCode* value) { + return ::google::protobuf::internal::ParseNamedEnum<ErrorCode>( + ErrorCode_descriptor(), name, value); +} +// =================================================================== + + +// =================================================================== + + +// =================================================================== + +#if !PROTOBUF_INLINE_NOT_IN_HEADERS +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +#endif // !PROTOBUF_INLINE_NOT_IN_HEADERS + +// @@protoc_insertion_point(namespace_scope) + + +} // namespace Common +} // namespace PMR +} // namespace Tango + +namespace google { +namespace protobuf { + +template <> struct is_proto_enum< ::Tango::PMR::Common::ErrorCode> : ::google::protobuf::internal::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::Tango::PMR::Common::ErrorCode>() { + return ::Tango::PMR::Common::ErrorCode_descriptor(); +} + +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) + +#endif // PROTOBUF_ErrorCode_2eproto__INCLUDED diff --git a/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/MessageContainer.pb.cc b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/MessageContainer.pb.cc index e06fad270..3e2a6f2f6 100644 --- a/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/MessageContainer.pb.cc +++ b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/MessageContainer.pb.cc @@ -60,6 +60,8 @@ const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_ATTRIBUTE_SECTION GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageContainer, continuous_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageContainer, completed_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageContainer, data_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageContainer, crc_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageContainer, error_), }; static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { { 0, -1, sizeof(MessageContainer)}, @@ -96,6 +98,7 @@ void TableStruct::InitDefaultsImpl() { ::google::protobuf::internal::InitProtobufDefaults(); ::Tango::PMR::Common::protobuf_MessageType_2eproto::InitDefaults(); + ::Tango::PMR::Common::protobuf_ErrorCode_2eproto::InitDefaults(); _MessageContainer_default_instance_._instance.DefaultConstruct(); ::google::protobuf::internal::OnShutdownDestroyMessage( &_MessageContainer_default_instance_);} @@ -109,17 +112,20 @@ void AddDescriptorsImpl() { InitDefaults(); static const char descriptor[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { "\n\026MessageContainer.proto\022\020Tango.PMR.Comm" - "on\032\021MessageType.proto\"\203\001\n\020MessageContain" - "er\022+\n\004Type\030\001 \001(\0162\035.Tango.PMR.Common.Mess" - "ageType\022\r\n\005Token\030\002 \001(\t\022\022\n\nContinuous\030\003 \001" - "(\010\022\021\n\tCompleted\030\004 \001(\010\022\014\n\004Data\030\005 \001(\014B\034\n\032c" - "om.twine.tango.pmr.commonb\006proto3" + "on\032\021MessageType.proto\032\017ErrorCode.proto\"\274" + "\001\n\020MessageContainer\022+\n\004Type\030\001 \001(\0162\035.Tang" + "o.PMR.Common.MessageType\022\r\n\005Token\030\002 \001(\t\022" + "\022\n\nContinuous\030\003 \001(\010\022\021\n\tCompleted\030\004 \001(\010\022\014" + "\n\004Data\030\005 \001(\014\022\013\n\003CRC\030\006 \001(\r\022*\n\005Error\030\007 \001(\016" + "2\033.Tango.PMR.Common.ErrorCodeB\034\n\032com.twi" + "ne.tango.pmr.commonb\006proto3" }; ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( - descriptor, 233); + descriptor, 307); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "MessageContainer.proto", &protobuf_RegisterTypes); ::Tango::PMR::Common::protobuf_MessageType_2eproto::AddDescriptors(); + ::Tango::PMR::Common::protobuf_ErrorCode_2eproto::AddDescriptors(); } } // anonymous namespace @@ -145,6 +151,8 @@ const int MessageContainer::kTokenFieldNumber; const int MessageContainer::kContinuousFieldNumber; const int MessageContainer::kCompletedFieldNumber; const int MessageContainer::kDataFieldNumber; +const int MessageContainer::kCRCFieldNumber; +const int MessageContainer::kErrorFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 MessageContainer::MessageContainer() @@ -169,8 +177,8 @@ MessageContainer::MessageContainer(const MessageContainer& from) data_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.data_); } ::memcpy(&type_, &from.type_, - static_cast<size_t>(reinterpret_cast<char*>(&completed_) - - reinterpret_cast<char*>(&type_)) + sizeof(completed_)); + static_cast<size_t>(reinterpret_cast<char*>(&error_) - + reinterpret_cast<char*>(&type_)) + sizeof(error_)); // @@protoc_insertion_point(copy_constructor:Tango.PMR.Common.MessageContainer) } @@ -178,8 +186,8 @@ void MessageContainer::SharedCtor() { token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); data_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); ::memset(&type_, 0, static_cast<size_t>( - reinterpret_cast<char*>(&completed_) - - reinterpret_cast<char*>(&type_)) + sizeof(completed_)); + reinterpret_cast<char*>(&error_) - + reinterpret_cast<char*>(&type_)) + sizeof(error_)); _cached_size_ = 0; } @@ -225,8 +233,8 @@ void MessageContainer::Clear() { token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); data_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); ::memset(&type_, 0, static_cast<size_t>( - reinterpret_cast<char*>(&completed_) - - reinterpret_cast<char*>(&type_)) + sizeof(completed_)); + reinterpret_cast<char*>(&error_) - + reinterpret_cast<char*>(&type_)) + sizeof(error_)); _internal_metadata_.Clear(); } @@ -311,6 +319,35 @@ bool MessageContainer::MergePartialFromCodedStream( break; } + // uint32 CRC = 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, &crc_))); + } else { + goto handle_unusual; + } + break; + } + + // .Tango.PMR.Common.ErrorCode Error = 7; + case 7: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) { + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_error(static_cast< ::Tango::PMR::Common::ErrorCode >(value)); + } else { + goto handle_unusual; + } + break; + } + default: { handle_unusual: if (tag == 0) { @@ -369,6 +406,17 @@ void MessageContainer::SerializeWithCachedSizes( 5, this->data(), output); } + // uint32 CRC = 6; + if (this->crc() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(6, this->crc(), output); + } + + // .Tango.PMR.Common.ErrorCode Error = 7; + if (this->error() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 7, this->error(), 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); @@ -417,6 +465,17 @@ void MessageContainer::SerializeWithCachedSizes( 5, this->data(), target); } + // uint32 CRC = 6; + if (this->crc() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(6, this->crc(), target); + } + + // .Tango.PMR.Common.ErrorCode Error = 7; + if (this->error() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 7, this->error(), 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); @@ -464,6 +523,19 @@ size_t MessageContainer::ByteSizeLong() const { total_size += 1 + 1; } + // uint32 CRC = 6; + if (this->crc() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->crc()); + } + + // .Tango.PMR.Common.ErrorCode Error = 7; + if (this->error() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->error()); + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = cached_size; @@ -510,6 +582,12 @@ void MessageContainer::MergeFrom(const MessageContainer& from) { if (from.completed() != 0) { set_completed(from.completed()); } + if (from.crc() != 0) { + set_crc(from.crc()); + } + if (from.error() != 0) { + set_error(from.error()); + } } void MessageContainer::CopyFrom(const ::google::protobuf::Message& from) { @@ -541,6 +619,8 @@ void MessageContainer::InternalSwap(MessageContainer* other) { swap(type_, other->type_); swap(continuous_, other->continuous_); swap(completed_, other->completed_); + swap(crc_, other->crc_); + swap(error_, other->error_); _internal_metadata_.Swap(&other->_internal_metadata_); swap(_cached_size_, other->_cached_size_); } @@ -701,6 +781,34 @@ void MessageContainer::set_allocated_data(::std::string* data) { // @@protoc_insertion_point(field_set_allocated:Tango.PMR.Common.MessageContainer.Data) } +// uint32 CRC = 6; +void MessageContainer::clear_crc() { + crc_ = 0u; +} +::google::protobuf::uint32 MessageContainer::crc() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Common.MessageContainer.CRC) + return crc_; +} +void MessageContainer::set_crc(::google::protobuf::uint32 value) { + + crc_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Common.MessageContainer.CRC) +} + +// .Tango.PMR.Common.ErrorCode Error = 7; +void MessageContainer::clear_error() { + error_ = 0; +} +::Tango::PMR::Common::ErrorCode MessageContainer::error() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Common.MessageContainer.Error) + return static_cast< ::Tango::PMR::Common::ErrorCode >(error_); +} +void MessageContainer::set_error(::Tango::PMR::Common::ErrorCode value) { + + error_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Common.MessageContainer.Error) +} + #endif // PROTOBUF_INLINE_NOT_IN_HEADERS // @@protoc_insertion_point(namespace_scope) diff --git a/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/MessageContainer.pb.h b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/MessageContainer.pb.h index b853ede29..2ba425077 100644 --- a/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/MessageContainer.pb.h +++ b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/MessageContainer.pb.h @@ -30,6 +30,7 @@ #include <google/protobuf/extension_set.h> // IWYU pragma: export #include <google/protobuf/unknown_field_set.h> #include "MessageType.pb.h" +#include "ErrorCode.pb.h" // @@protoc_insertion_point(includes) namespace Tango { namespace PMR { @@ -189,6 +190,18 @@ class MessageContainer : public ::google::protobuf::Message /* @@protoc_insertio bool completed() const; void set_completed(bool value); + // uint32 CRC = 6; + void clear_crc(); + static const int kCRCFieldNumber = 6; + ::google::protobuf::uint32 crc() const; + void set_crc(::google::protobuf::uint32 value); + + // .Tango.PMR.Common.ErrorCode Error = 7; + void clear_error(); + static const int kErrorFieldNumber = 7; + ::Tango::PMR::Common::ErrorCode error() const; + void set_error(::Tango::PMR::Common::ErrorCode value); + // @@protoc_insertion_point(class_scope:Tango.PMR.Common.MessageContainer) private: @@ -198,6 +211,8 @@ class MessageContainer : public ::google::protobuf::Message /* @@protoc_insertio int type_; bool continuous_; bool completed_; + ::google::protobuf::uint32 crc_; + int error_; mutable int _cached_size_; friend struct protobuf_MessageContainer_2eproto::TableStruct; }; @@ -361,6 +376,34 @@ inline void MessageContainer::set_allocated_data(::std::string* data) { // @@protoc_insertion_point(field_set_allocated:Tango.PMR.Common.MessageContainer.Data) } +// uint32 CRC = 6; +inline void MessageContainer::clear_crc() { + crc_ = 0u; +} +inline ::google::protobuf::uint32 MessageContainer::crc() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Common.MessageContainer.CRC) + return crc_; +} +inline void MessageContainer::set_crc(::google::protobuf::uint32 value) { + + crc_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Common.MessageContainer.CRC) +} + +// .Tango.PMR.Common.ErrorCode Error = 7; +inline void MessageContainer::clear_error() { + error_ = 0; +} +inline ::Tango::PMR::Common::ErrorCode MessageContainer::error() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Common.MessageContainer.Error) + return static_cast< ::Tango::PMR::Common::ErrorCode >(error_); +} +inline void MessageContainer::set_error(::Tango::PMR::Common::ErrorCode value) { + + error_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Common.MessageContainer.Error) +} + #ifdef __GNUC__ #pragma GCC diagnostic pop #endif // __GNUC__ diff --git a/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/MessageType.pb.cc b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/MessageType.pb.cc index f1c5e4280..5b1090c5d 100644 --- a/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/MessageType.pb.cc +++ b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/MessageType.pb.cc @@ -82,15 +82,33 @@ namespace { void AddDescriptorsImpl() { InitDefaults(); static const char descriptor[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { - "\n\021MessageType.proto\022\020Tango.PMR.Common*\204\001" + "\n\021MessageType.proto\022\020Tango.PMR.Common*\357\006" "\n\013MessageType\022\007\n\003RGB\020\000\022\007\n\003Job\020\001\022\013\n\007Segme" "nt\020\002\022\024\n\020CalculateRequest\020\003\022\025\n\021CalculateR" "esponse\020\004\022\023\n\017ProgressRequest\020\005\022\024\n\020Progre" - "ssResponse\020\006B\034\n\032com.twine.tango.pmr.comm" - "onb\006proto3" + "ssResponse\020\006\022\034\n\030StubCartridgeReadRequest" + "\020\007\022\035\n\031StubCartridgeReadResponse\020\010\022\035\n\031Stu" + "bCartridgeWriteRequest\020\t\022\036\n\032StubCartridg" + "eWriteResponse\020\n\022\030\n\024StubDispenserRequest" + "\020\013\022\031\n\025StubDispenserResponse\020\014\022\035\n\031StubGPI" + "OInputSetupRequest\020\r\022\036\n\032StubGPIOInputSet" + "upResponse\020\016\022\032\n\026StubGPIOReadBitRequest\020\017" + "\022\033\n\027StubGPIOReadBitResponse\020\020\022\033\n\027StubGPI" + "OReadByteRequest\020\021\022\034\n\030StubGPIOReadByteRe" + "sponse\020\022\022\033\n\027StubGPIOWriteBitRequest\020\023\022\034\n" + "\030StubGPIOWriteBitResponse\020\024\022\034\n\030StubGPIOW" + "riteByteRequest\020\025\022\035\n\031StubGPIOWriteByteRe" + "sponse\020\026\022\025\n\021StubHeaterRequest\020\027\022\026\n\022StubH" + "eaterResponse\020\030\022\033\n\027StubMotorEncoderReque" + "st\020\031\022\034\n\030StubMotorEncoderResponse\020\032\022\035\n\031St" + "ubOptLimitSwitchRequest\020\033\022\036\n\032StubOptLimi" + "tSwitchResponse\020\034\022\032\n\026StubSteperMotorRequ" + "est\020\035\022\033\n\027StubSteperMotorResponse\020\036\022\024\n\020St" + "ubValveRequest\020\037\022\025\n\021StubValveResponse\020 B" + "\034\n\032com.twine.tango.pmr.commonb\006proto3" }; ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( - descriptor, 210); + descriptor, 957); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "MessageType.proto", &protobuf_RegisterTypes); } @@ -122,6 +140,32 @@ bool MessageType_IsValid(int value) { case 4: case 5: case 6: + case 7: + case 8: + case 9: + case 10: + 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 23: + case 24: + case 25: + case 26: + case 27: + case 28: + case 29: + case 30: + case 31: + case 32: return true; default: return false; diff --git a/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/MessageType.pb.h b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/MessageType.pb.h index 45020a960..e0db308a8 100644 --- a/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/MessageType.pb.h +++ b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/MessageType.pb.h @@ -63,12 +63,38 @@ enum MessageType { CalculateResponse = 4, ProgressRequest = 5, ProgressResponse = 6, + StubCartridgeReadRequest = 7, + StubCartridgeReadResponse = 8, + StubCartridgeWriteRequest = 9, + StubCartridgeWriteResponse = 10, + StubDispenserRequest = 11, + StubDispenserResponse = 12, + StubGPIOInputSetupRequest = 13, + StubGPIOInputSetupResponse = 14, + StubGPIOReadBitRequest = 15, + StubGPIOReadBitResponse = 16, + StubGPIOReadByteRequest = 17, + StubGPIOReadByteResponse = 18, + StubGPIOWriteBitRequest = 19, + StubGPIOWriteBitResponse = 20, + StubGPIOWriteByteRequest = 21, + StubGPIOWriteByteResponse = 22, + StubHeaterRequest = 23, + StubHeaterResponse = 24, + StubMotorEncoderRequest = 25, + StubMotorEncoderResponse = 26, + StubOptLimitSwitchRequest = 27, + StubOptLimitSwitchResponse = 28, + StubSteperMotorRequest = 29, + StubSteperMotorResponse = 30, + StubValveRequest = 31, + StubValveResponse = 32, MessageType_INT_MIN_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32min, MessageType_INT_MAX_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32max }; bool MessageType_IsValid(int value); const MessageType MessageType_MIN = RGB; -const MessageType MessageType_MAX = ProgressResponse; +const MessageType MessageType_MAX = StubValveResponse; const int MessageType_ARRAYSIZE = MessageType_MAX + 1; const ::google::protobuf::EnumDescriptor* MessageType_descriptor(); diff --git a/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/ProgressRequest.pb.cc b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/ProgressRequest.pb.cc index 39adb6a72..971d4967a 100644 --- a/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/ProgressRequest.pb.cc +++ b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/ProgressRequest.pb.cc @@ -55,6 +55,8 @@ const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_ATTRIBUTE_SECTION ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProgressRequest, amount_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProgressRequest, delay_), }; static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { { 0, -1, sizeof(ProgressRequest)}, @@ -103,11 +105,12 @@ void AddDescriptorsImpl() { InitDefaults(); static const char descriptor[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { "\n\025ProgressRequest.proto\022\017Tango.PMR.Stubs" - "\"\021\n\017ProgressRequestB\033\n\031com.twine.tango.p" - "mr.stubsb\006proto3" + "\"0\n\017ProgressRequest\022\016\n\006Amount\030\001 \001(\005\022\r\n\005D" + "elay\030\002 \001(\005B\033\n\031com.twine.tango.pmr.stubsb" + "\006proto3" }; ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( - descriptor, 96); + descriptor, 127); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "ProgressRequest.proto", &protobuf_RegisterTypes); } @@ -130,6 +133,8 @@ struct StaticDescriptorInitializer { // =================================================================== #if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ProgressRequest::kAmountFieldNumber; +const int ProgressRequest::kDelayFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 ProgressRequest::ProgressRequest() @@ -145,10 +150,16 @@ ProgressRequest::ProgressRequest(const ProgressRequest& from) _internal_metadata_(NULL), _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&amount_, &from.amount_, + static_cast<size_t>(reinterpret_cast<char*>(&delay_) - + reinterpret_cast<char*>(&amount_)) + sizeof(delay_)); // @@protoc_insertion_point(copy_constructor:Tango.PMR.Stubs.ProgressRequest) } void ProgressRequest::SharedCtor() { + ::memset(&amount_, 0, static_cast<size_t>( + reinterpret_cast<char*>(&delay_) - + reinterpret_cast<char*>(&amount_)) + sizeof(delay_)); _cached_size_ = 0; } @@ -189,6 +200,9 @@ void ProgressRequest::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; + ::memset(&amount_, 0, static_cast<size_t>( + reinterpret_cast<char*>(&delay_) - + reinterpret_cast<char*>(&amount_)) + sizeof(delay_)); _internal_metadata_.Clear(); } @@ -201,12 +215,45 @@ bool ProgressRequest::MergePartialFromCodedStream( ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; - handle_unusual: - if (tag == 0) { - goto success; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // int32 Amount = 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::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + input, &amount_))); + } else { + goto handle_unusual; + } + break; + } + + // int32 Delay = 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::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + input, &delay_))); + } 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; + } } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); } success: // @@protoc_insertion_point(parse_success:Tango.PMR.Stubs.ProgressRequest) @@ -223,6 +270,16 @@ void ProgressRequest::SerializeWithCachedSizes( ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; + // int32 Amount = 1; + if (this->amount() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->amount(), output); + } + + // int32 Delay = 2; + if (this->delay() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->delay(), 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); @@ -237,6 +294,16 @@ void ProgressRequest::SerializeWithCachedSizes( ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; + // int32 Amount = 1; + if (this->amount() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->amount(), target); + } + + // int32 Delay = 2; + if (this->delay() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->delay(), 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); @@ -254,6 +321,20 @@ size_t ProgressRequest::ByteSizeLong() const { ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); } + // int32 Amount = 1; + if (this->amount() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->amount()); + } + + // int32 Delay = 2; + if (this->delay() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->delay()); + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = cached_size; @@ -283,6 +364,12 @@ void ProgressRequest::MergeFrom(const ProgressRequest& from) { ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; + if (from.amount() != 0) { + set_amount(from.amount()); + } + if (from.delay() != 0) { + set_delay(from.delay()); + } } void ProgressRequest::CopyFrom(const ::google::protobuf::Message& from) { @@ -309,6 +396,8 @@ void ProgressRequest::Swap(ProgressRequest* other) { } void ProgressRequest::InternalSwap(ProgressRequest* other) { using std::swap; + swap(amount_, other->amount_); + swap(delay_, other->delay_); _internal_metadata_.Swap(&other->_internal_metadata_); swap(_cached_size_, other->_cached_size_); } @@ -321,6 +410,34 @@ void ProgressRequest::InternalSwap(ProgressRequest* other) { #if PROTOBUF_INLINE_NOT_IN_HEADERS // ProgressRequest +// int32 Amount = 1; +void ProgressRequest::clear_amount() { + amount_ = 0; +} +::google::protobuf::int32 ProgressRequest::amount() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.ProgressRequest.Amount) + return amount_; +} +void ProgressRequest::set_amount(::google::protobuf::int32 value) { + + amount_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.ProgressRequest.Amount) +} + +// int32 Delay = 2; +void ProgressRequest::clear_delay() { + delay_ = 0; +} +::google::protobuf::int32 ProgressRequest::delay() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.ProgressRequest.Delay) + return delay_; +} +void ProgressRequest::set_delay(::google::protobuf::int32 value) { + + delay_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.ProgressRequest.Delay) +} + #endif // PROTOBUF_INLINE_NOT_IN_HEADERS // @@protoc_insertion_point(namespace_scope) diff --git a/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/ProgressRequest.pb.h b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/ProgressRequest.pb.h index a41147953..45d4cda83 100644 --- a/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/ProgressRequest.pb.h +++ b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/ProgressRequest.pb.h @@ -142,10 +142,24 @@ class ProgressRequest : public ::google::protobuf::Message /* @@protoc_insertion // accessors ------------------------------------------------------- + // int32 Amount = 1; + void clear_amount(); + static const int kAmountFieldNumber = 1; + ::google::protobuf::int32 amount() const; + void set_amount(::google::protobuf::int32 value); + + // int32 Delay = 2; + void clear_delay(); + static const int kDelayFieldNumber = 2; + ::google::protobuf::int32 delay() const; + void set_delay(::google::protobuf::int32 value); + // @@protoc_insertion_point(class_scope:Tango.PMR.Stubs.ProgressRequest) private: ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::int32 amount_; + ::google::protobuf::int32 delay_; mutable int _cached_size_; friend struct protobuf_ProgressRequest_2eproto::TableStruct; }; @@ -161,6 +175,34 @@ class ProgressRequest : public ::google::protobuf::Message /* @@protoc_insertion #endif // __GNUC__ // ProgressRequest +// int32 Amount = 1; +inline void ProgressRequest::clear_amount() { + amount_ = 0; +} +inline ::google::protobuf::int32 ProgressRequest::amount() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.ProgressRequest.Amount) + return amount_; +} +inline void ProgressRequest::set_amount(::google::protobuf::int32 value) { + + amount_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.ProgressRequest.Amount) +} + +// int32 Delay = 2; +inline void ProgressRequest::clear_delay() { + delay_ = 0; +} +inline ::google::protobuf::int32 ProgressRequest::delay() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.ProgressRequest.Delay) + return delay_; +} +inline void ProgressRequest::set_delay(::google::protobuf::int32 value) { + + delay_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.ProgressRequest.Delay) +} + #ifdef __GNUC__ #pragma GCC diagnostic pop #endif // __GNUC__ diff --git a/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubCartridgeReadRequest.pb.cc b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubCartridgeReadRequest.pb.cc new file mode 100644 index 000000000..1956f37ba --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubCartridgeReadRequest.pb.cc @@ -0,0 +1,392 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StubCartridgeReadRequest.proto + +#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION +#include "StubCartridgeReadRequest.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 StubCartridgeReadRequestDefaultTypeInternal { +public: + ::google::protobuf::internal::ExplicitlyConstructed<StubCartridgeReadRequest> + _instance; +} _StubCartridgeReadRequest_default_instance_; + +namespace protobuf_StubCartridgeReadRequest_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(StubCartridgeReadRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubCartridgeReadRequest, cartridgeid_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(StubCartridgeReadRequest)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast<const ::google::protobuf::Message*>(&_StubCartridgeReadRequest_default_instance_), +}; + +namespace { + +void protobuf_AssignDescriptors() { + AddDescriptors(); + ::google::protobuf::MessageFactory* factory = NULL; + AssignDescriptors( + "StubCartridgeReadRequest.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(); + _StubCartridgeReadRequest_default_instance_._instance.DefaultConstruct(); + ::google::protobuf::internal::OnShutdownDestroyMessage( + &_StubCartridgeReadRequest_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\036StubCartridgeReadRequest.proto\022\017Tango." + "PMR.Stubs\"/\n\030StubCartridgeReadRequest\022\023\n" + "\013CartridgeId\030\001 \001(\rB\033\n\031com.twine.tango.pm" + "r.stubsb\006proto3" + }; + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + descriptor, 135); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "StubCartridgeReadRequest.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_StubCartridgeReadRequest_2eproto + + +// =================================================================== + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int StubCartridgeReadRequest::kCartridgeIdFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +StubCartridgeReadRequest::StubCartridgeReadRequest() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_StubCartridgeReadRequest_2eproto::InitDefaults(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:Tango.PMR.Stubs.StubCartridgeReadRequest) +} +StubCartridgeReadRequest::StubCartridgeReadRequest(const StubCartridgeReadRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + cartridgeid_ = from.cartridgeid_; + // @@protoc_insertion_point(copy_constructor:Tango.PMR.Stubs.StubCartridgeReadRequest) +} + +void StubCartridgeReadRequest::SharedCtor() { + cartridgeid_ = 0u; + _cached_size_ = 0; +} + +StubCartridgeReadRequest::~StubCartridgeReadRequest() { + // @@protoc_insertion_point(destructor:Tango.PMR.Stubs.StubCartridgeReadRequest) + SharedDtor(); +} + +void StubCartridgeReadRequest::SharedDtor() { +} + +void StubCartridgeReadRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* StubCartridgeReadRequest::descriptor() { + protobuf_StubCartridgeReadRequest_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_StubCartridgeReadRequest_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const StubCartridgeReadRequest& StubCartridgeReadRequest::default_instance() { + protobuf_StubCartridgeReadRequest_2eproto::InitDefaults(); + return *internal_default_instance(); +} + +StubCartridgeReadRequest* StubCartridgeReadRequest::New(::google::protobuf::Arena* arena) const { + StubCartridgeReadRequest* n = new StubCartridgeReadRequest; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void StubCartridgeReadRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:Tango.PMR.Stubs.StubCartridgeReadRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cartridgeid_ = 0u; + _internal_metadata_.Clear(); +} + +bool StubCartridgeReadRequest::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.StubCartridgeReadRequest) + 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 CartridgeId = 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, &cartridgeid_))); + } 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.StubCartridgeReadRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:Tango.PMR.Stubs.StubCartridgeReadRequest) + return false; +#undef DO_ +} + +void StubCartridgeReadRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Tango.PMR.Stubs.StubCartridgeReadRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // uint32 CartridgeId = 1; + if (this->cartridgeid() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->cartridgeid(), 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.StubCartridgeReadRequest) +} + +::google::protobuf::uint8* StubCartridgeReadRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:Tango.PMR.Stubs.StubCartridgeReadRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // uint32 CartridgeId = 1; + if (this->cartridgeid() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->cartridgeid(), 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.StubCartridgeReadRequest) + return target; +} + +size_t StubCartridgeReadRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:Tango.PMR.Stubs.StubCartridgeReadRequest) + 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())); + } + // uint32 CartridgeId = 1; + if (this->cartridgeid() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->cartridgeid()); + } + + 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 StubCartridgeReadRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:Tango.PMR.Stubs.StubCartridgeReadRequest) + GOOGLE_DCHECK_NE(&from, this); + const StubCartridgeReadRequest* source = + ::google::protobuf::internal::DynamicCastToGenerated<const StubCartridgeReadRequest>( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:Tango.PMR.Stubs.StubCartridgeReadRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:Tango.PMR.Stubs.StubCartridgeReadRequest) + MergeFrom(*source); + } +} + +void StubCartridgeReadRequest::MergeFrom(const StubCartridgeReadRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:Tango.PMR.Stubs.StubCartridgeReadRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.cartridgeid() != 0) { + set_cartridgeid(from.cartridgeid()); + } +} + +void StubCartridgeReadRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:Tango.PMR.Stubs.StubCartridgeReadRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void StubCartridgeReadRequest::CopyFrom(const StubCartridgeReadRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:Tango.PMR.Stubs.StubCartridgeReadRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool StubCartridgeReadRequest::IsInitialized() const { + return true; +} + +void StubCartridgeReadRequest::Swap(StubCartridgeReadRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void StubCartridgeReadRequest::InternalSwap(StubCartridgeReadRequest* other) { + using std::swap; + swap(cartridgeid_, other->cartridgeid_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata StubCartridgeReadRequest::GetMetadata() const { + protobuf_StubCartridgeReadRequest_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_StubCartridgeReadRequest_2eproto::file_level_metadata[kIndexInFileMessages]; +} + +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// StubCartridgeReadRequest + +// uint32 CartridgeId = 1; +void StubCartridgeReadRequest::clear_cartridgeid() { + cartridgeid_ = 0u; +} +::google::protobuf::uint32 StubCartridgeReadRequest::cartridgeid() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubCartridgeReadRequest.CartridgeId) + return cartridgeid_; +} +void StubCartridgeReadRequest::set_cartridgeid(::google::protobuf::uint32 value) { + + cartridgeid_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubCartridgeReadRequest.CartridgeId) +} + +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS + +// @@protoc_insertion_point(namespace_scope) + +} // namespace Stubs +} // namespace PMR +} // namespace Tango + +// @@protoc_insertion_point(global_scope) diff --git a/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubCartridgeReadRequest.pb.h b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubCartridgeReadRequest.pb.h new file mode 100644 index 000000000..ee518ef92 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubCartridgeReadRequest.pb.h @@ -0,0 +1,199 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StubCartridgeReadRequest.proto + +#ifndef PROTOBUF_StubCartridgeReadRequest_2eproto__INCLUDED +#define PROTOBUF_StubCartridgeReadRequest_2eproto__INCLUDED + +#include <string> + +#include <google/protobuf/stubs/common.h> + +#if GOOGLE_PROTOBUF_VERSION < 3004000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3004000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include <google/protobuf/io/coded_stream.h> +#include <google/protobuf/arena.h> +#include <google/protobuf/arenastring.h> +#include <google/protobuf/generated_message_table_driven.h> +#include <google/protobuf/generated_message_util.h> +#include <google/protobuf/metadata.h> +#include <google/protobuf/message.h> +#include <google/protobuf/repeated_field.h> // IWYU pragma: export +#include <google/protobuf/extension_set.h> // IWYU pragma: export +#include <google/protobuf/unknown_field_set.h> +// @@protoc_insertion_point(includes) +namespace Tango { +namespace PMR { +namespace Stubs { +class StubCartridgeReadRequest; +class StubCartridgeReadRequestDefaultTypeInternal; +extern StubCartridgeReadRequestDefaultTypeInternal _StubCartridgeReadRequest_default_instance_; +} // namespace Stubs +} // namespace PMR +} // namespace Tango + +namespace Tango { +namespace PMR { +namespace Stubs { + +namespace protobuf_StubCartridgeReadRequest_2eproto { +// Internal implementation detail -- do not call these. +struct TableStruct { + static const ::google::protobuf::internal::ParseTableField entries[]; + static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; + static const ::google::protobuf::internal::ParseTable schema[]; + static const ::google::protobuf::uint32 offsets[]; + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static void InitDefaultsImpl(); +}; +void AddDescriptors(); +void InitDefaults(); +} // namespace protobuf_StubCartridgeReadRequest_2eproto + +// =================================================================== + +class StubCartridgeReadRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Tango.PMR.Stubs.StubCartridgeReadRequest) */ { + public: + StubCartridgeReadRequest(); + virtual ~StubCartridgeReadRequest(); + + StubCartridgeReadRequest(const StubCartridgeReadRequest& from); + + inline StubCartridgeReadRequest& operator=(const StubCartridgeReadRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + StubCartridgeReadRequest(StubCartridgeReadRequest&& from) noexcept + : StubCartridgeReadRequest() { + *this = ::std::move(from); + } + + inline StubCartridgeReadRequest& operator=(StubCartridgeReadRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const StubCartridgeReadRequest& default_instance(); + + static inline const StubCartridgeReadRequest* internal_default_instance() { + return reinterpret_cast<const StubCartridgeReadRequest*>( + &_StubCartridgeReadRequest_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 0; + + void Swap(StubCartridgeReadRequest* other); + friend void swap(StubCartridgeReadRequest& a, StubCartridgeReadRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline StubCartridgeReadRequest* New() const PROTOBUF_FINAL { return New(NULL); } + + StubCartridgeReadRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const StubCartridgeReadRequest& from); + void MergeFrom(const StubCartridgeReadRequest& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(StubCartridgeReadRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // uint32 CartridgeId = 1; + void clear_cartridgeid(); + static const int kCartridgeIdFieldNumber = 1; + ::google::protobuf::uint32 cartridgeid() const; + void set_cartridgeid(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:Tango.PMR.Stubs.StubCartridgeReadRequest) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::uint32 cartridgeid_; + mutable int _cached_size_; + friend struct protobuf_StubCartridgeReadRequest_2eproto::TableStruct; +}; +// =================================================================== + + +// =================================================================== + +#if !PROTOBUF_INLINE_NOT_IN_HEADERS +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// StubCartridgeReadRequest + +// uint32 CartridgeId = 1; +inline void StubCartridgeReadRequest::clear_cartridgeid() { + cartridgeid_ = 0u; +} +inline ::google::protobuf::uint32 StubCartridgeReadRequest::cartridgeid() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubCartridgeReadRequest.CartridgeId) + return cartridgeid_; +} +inline void StubCartridgeReadRequest::set_cartridgeid(::google::protobuf::uint32 value) { + + cartridgeid_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubCartridgeReadRequest.CartridgeId) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +#endif // !PROTOBUF_INLINE_NOT_IN_HEADERS + +// @@protoc_insertion_point(namespace_scope) + + +} // namespace Stubs +} // namespace PMR +} // namespace Tango + +// @@protoc_insertion_point(global_scope) + +#endif // PROTOBUF_StubCartridgeReadRequest_2eproto__INCLUDED diff --git a/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubCartridgeReadResponse.pb.cc b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubCartridgeReadResponse.pb.cc new file mode 100644 index 000000000..2f88e00ee --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubCartridgeReadResponse.pb.cc @@ -0,0 +1,654 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StubCartridgeReadResponse.proto + +#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION +#include "StubCartridgeReadResponse.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 StubCartridgeReadResponseDefaultTypeInternal { +public: + ::google::protobuf::internal::ExplicitlyConstructed<StubCartridgeReadResponse> + _instance; +} _StubCartridgeReadResponse_default_instance_; + +namespace protobuf_StubCartridgeReadResponse_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(StubCartridgeReadResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubCartridgeReadResponse, cartridgeid_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubCartridgeReadResponse, cartridgecolor_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubCartridgeReadResponse, cartridgeversion_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubCartridgeReadResponse, cartridgedata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubCartridgeReadResponse, cartridgeused_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubCartridgeReadResponse, status_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(StubCartridgeReadResponse)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast<const ::google::protobuf::Message*>(&_StubCartridgeReadResponse_default_instance_), +}; + +namespace { + +void protobuf_AssignDescriptors() { + AddDescriptors(); + ::google::protobuf::MessageFactory* factory = NULL; + AssignDescriptors( + "StubCartridgeReadResponse.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(); + _StubCartridgeReadResponse_default_instance_._instance.DefaultConstruct(); + ::google::protobuf::internal::OnShutdownDestroyMessage( + &_StubCartridgeReadResponse_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\037StubCartridgeReadResponse.proto\022\017Tango" + ".PMR.Stubs\"\240\001\n\031StubCartridgeReadResponse" + "\022\023\n\013CartridgeId\030\001 \001(\r\022\026\n\016CartridgeColor\030" + "\003 \001(\r\022\030\n\020CartridgeVersion\030\004 \001(\r\022\025\n\rCartr" + "idgeData\030\005 \001(\005\022\025\n\rCartridgeUsed\030\006 \001(\010\022\016\n" + "\006Status\030\010 \001(\rB\033\n\031com.twine.tango.pmr.stu" + "bsb\006proto3" + }; + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + descriptor, 250); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "StubCartridgeReadResponse.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_StubCartridgeReadResponse_2eproto + + +// =================================================================== + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int StubCartridgeReadResponse::kCartridgeIdFieldNumber; +const int StubCartridgeReadResponse::kCartridgeColorFieldNumber; +const int StubCartridgeReadResponse::kCartridgeVersionFieldNumber; +const int StubCartridgeReadResponse::kCartridgeDataFieldNumber; +const int StubCartridgeReadResponse::kCartridgeUsedFieldNumber; +const int StubCartridgeReadResponse::kStatusFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +StubCartridgeReadResponse::StubCartridgeReadResponse() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_StubCartridgeReadResponse_2eproto::InitDefaults(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:Tango.PMR.Stubs.StubCartridgeReadResponse) +} +StubCartridgeReadResponse::StubCartridgeReadResponse(const StubCartridgeReadResponse& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&cartridgeid_, &from.cartridgeid_, + static_cast<size_t>(reinterpret_cast<char*>(&status_) - + reinterpret_cast<char*>(&cartridgeid_)) + sizeof(status_)); + // @@protoc_insertion_point(copy_constructor:Tango.PMR.Stubs.StubCartridgeReadResponse) +} + +void StubCartridgeReadResponse::SharedCtor() { + ::memset(&cartridgeid_, 0, static_cast<size_t>( + reinterpret_cast<char*>(&status_) - + reinterpret_cast<char*>(&cartridgeid_)) + sizeof(status_)); + _cached_size_ = 0; +} + +StubCartridgeReadResponse::~StubCartridgeReadResponse() { + // @@protoc_insertion_point(destructor:Tango.PMR.Stubs.StubCartridgeReadResponse) + SharedDtor(); +} + +void StubCartridgeReadResponse::SharedDtor() { +} + +void StubCartridgeReadResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* StubCartridgeReadResponse::descriptor() { + protobuf_StubCartridgeReadResponse_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_StubCartridgeReadResponse_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const StubCartridgeReadResponse& StubCartridgeReadResponse::default_instance() { + protobuf_StubCartridgeReadResponse_2eproto::InitDefaults(); + return *internal_default_instance(); +} + +StubCartridgeReadResponse* StubCartridgeReadResponse::New(::google::protobuf::Arena* arena) const { + StubCartridgeReadResponse* n = new StubCartridgeReadResponse; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void StubCartridgeReadResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:Tango.PMR.Stubs.StubCartridgeReadResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + ::memset(&cartridgeid_, 0, static_cast<size_t>( + reinterpret_cast<char*>(&status_) - + reinterpret_cast<char*>(&cartridgeid_)) + sizeof(status_)); + _internal_metadata_.Clear(); +} + +bool StubCartridgeReadResponse::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.StubCartridgeReadResponse) + 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 CartridgeId = 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, &cartridgeid_))); + } else { + goto handle_unusual; + } + break; + } + + // uint32 CartridgeColor = 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, &cartridgecolor_))); + } else { + goto handle_unusual; + } + break; + } + + // uint32 CartridgeVersion = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &cartridgeversion_))); + } else { + goto handle_unusual; + } + break; + } + + // int32 CartridgeData = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + input, &cartridgedata_))); + } else { + goto handle_unusual; + } + break; + } + + // bool CartridgeUsed = 6; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &cartridgeused_))); + } else { + goto handle_unusual; + } + break; + } + + // uint32 Status = 8; + case 8: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(64u /* 64 & 0xFF */)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &status_))); + } 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.StubCartridgeReadResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:Tango.PMR.Stubs.StubCartridgeReadResponse) + return false; +#undef DO_ +} + +void StubCartridgeReadResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Tango.PMR.Stubs.StubCartridgeReadResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // uint32 CartridgeId = 1; + if (this->cartridgeid() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->cartridgeid(), output); + } + + // uint32 CartridgeColor = 3; + if (this->cartridgecolor() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->cartridgecolor(), output); + } + + // uint32 CartridgeVersion = 4; + if (this->cartridgeversion() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->cartridgeversion(), output); + } + + // int32 CartridgeData = 5; + if (this->cartridgedata() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->cartridgedata(), output); + } + + // bool CartridgeUsed = 6; + if (this->cartridgeused() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteBool(6, this->cartridgeused(), output); + } + + // uint32 Status = 8; + if (this->status() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(8, this->status(), 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.StubCartridgeReadResponse) +} + +::google::protobuf::uint8* StubCartridgeReadResponse::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:Tango.PMR.Stubs.StubCartridgeReadResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // uint32 CartridgeId = 1; + if (this->cartridgeid() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->cartridgeid(), target); + } + + // uint32 CartridgeColor = 3; + if (this->cartridgecolor() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->cartridgecolor(), target); + } + + // uint32 CartridgeVersion = 4; + if (this->cartridgeversion() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(4, this->cartridgeversion(), target); + } + + // int32 CartridgeData = 5; + if (this->cartridgedata() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->cartridgedata(), target); + } + + // bool CartridgeUsed = 6; + if (this->cartridgeused() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(6, this->cartridgeused(), target); + } + + // uint32 Status = 8; + if (this->status() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(8, this->status(), 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.StubCartridgeReadResponse) + return target; +} + +size_t StubCartridgeReadResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:Tango.PMR.Stubs.StubCartridgeReadResponse) + 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())); + } + // uint32 CartridgeId = 1; + if (this->cartridgeid() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->cartridgeid()); + } + + // uint32 CartridgeColor = 3; + if (this->cartridgecolor() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->cartridgecolor()); + } + + // uint32 CartridgeVersion = 4; + if (this->cartridgeversion() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->cartridgeversion()); + } + + // int32 CartridgeData = 5; + if (this->cartridgedata() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->cartridgedata()); + } + + // bool CartridgeUsed = 6; + if (this->cartridgeused() != 0) { + total_size += 1 + 1; + } + + // uint32 Status = 8; + if (this->status() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->status()); + } + + 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 StubCartridgeReadResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:Tango.PMR.Stubs.StubCartridgeReadResponse) + GOOGLE_DCHECK_NE(&from, this); + const StubCartridgeReadResponse* source = + ::google::protobuf::internal::DynamicCastToGenerated<const StubCartridgeReadResponse>( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:Tango.PMR.Stubs.StubCartridgeReadResponse) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:Tango.PMR.Stubs.StubCartridgeReadResponse) + MergeFrom(*source); + } +} + +void StubCartridgeReadResponse::MergeFrom(const StubCartridgeReadResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:Tango.PMR.Stubs.StubCartridgeReadResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.cartridgeid() != 0) { + set_cartridgeid(from.cartridgeid()); + } + if (from.cartridgecolor() != 0) { + set_cartridgecolor(from.cartridgecolor()); + } + if (from.cartridgeversion() != 0) { + set_cartridgeversion(from.cartridgeversion()); + } + if (from.cartridgedata() != 0) { + set_cartridgedata(from.cartridgedata()); + } + if (from.cartridgeused() != 0) { + set_cartridgeused(from.cartridgeused()); + } + if (from.status() != 0) { + set_status(from.status()); + } +} + +void StubCartridgeReadResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:Tango.PMR.Stubs.StubCartridgeReadResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void StubCartridgeReadResponse::CopyFrom(const StubCartridgeReadResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:Tango.PMR.Stubs.StubCartridgeReadResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool StubCartridgeReadResponse::IsInitialized() const { + return true; +} + +void StubCartridgeReadResponse::Swap(StubCartridgeReadResponse* other) { + if (other == this) return; + InternalSwap(other); +} +void StubCartridgeReadResponse::InternalSwap(StubCartridgeReadResponse* other) { + using std::swap; + swap(cartridgeid_, other->cartridgeid_); + swap(cartridgecolor_, other->cartridgecolor_); + swap(cartridgeversion_, other->cartridgeversion_); + swap(cartridgedata_, other->cartridgedata_); + swap(cartridgeused_, other->cartridgeused_); + swap(status_, other->status_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata StubCartridgeReadResponse::GetMetadata() const { + protobuf_StubCartridgeReadResponse_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_StubCartridgeReadResponse_2eproto::file_level_metadata[kIndexInFileMessages]; +} + +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// StubCartridgeReadResponse + +// uint32 CartridgeId = 1; +void StubCartridgeReadResponse::clear_cartridgeid() { + cartridgeid_ = 0u; +} +::google::protobuf::uint32 StubCartridgeReadResponse::cartridgeid() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubCartridgeReadResponse.CartridgeId) + return cartridgeid_; +} +void StubCartridgeReadResponse::set_cartridgeid(::google::protobuf::uint32 value) { + + cartridgeid_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubCartridgeReadResponse.CartridgeId) +} + +// uint32 CartridgeColor = 3; +void StubCartridgeReadResponse::clear_cartridgecolor() { + cartridgecolor_ = 0u; +} +::google::protobuf::uint32 StubCartridgeReadResponse::cartridgecolor() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubCartridgeReadResponse.CartridgeColor) + return cartridgecolor_; +} +void StubCartridgeReadResponse::set_cartridgecolor(::google::protobuf::uint32 value) { + + cartridgecolor_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubCartridgeReadResponse.CartridgeColor) +} + +// uint32 CartridgeVersion = 4; +void StubCartridgeReadResponse::clear_cartridgeversion() { + cartridgeversion_ = 0u; +} +::google::protobuf::uint32 StubCartridgeReadResponse::cartridgeversion() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubCartridgeReadResponse.CartridgeVersion) + return cartridgeversion_; +} +void StubCartridgeReadResponse::set_cartridgeversion(::google::protobuf::uint32 value) { + + cartridgeversion_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubCartridgeReadResponse.CartridgeVersion) +} + +// int32 CartridgeData = 5; +void StubCartridgeReadResponse::clear_cartridgedata() { + cartridgedata_ = 0; +} +::google::protobuf::int32 StubCartridgeReadResponse::cartridgedata() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubCartridgeReadResponse.CartridgeData) + return cartridgedata_; +} +void StubCartridgeReadResponse::set_cartridgedata(::google::protobuf::int32 value) { + + cartridgedata_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubCartridgeReadResponse.CartridgeData) +} + +// bool CartridgeUsed = 6; +void StubCartridgeReadResponse::clear_cartridgeused() { + cartridgeused_ = false; +} +bool StubCartridgeReadResponse::cartridgeused() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubCartridgeReadResponse.CartridgeUsed) + return cartridgeused_; +} +void StubCartridgeReadResponse::set_cartridgeused(bool value) { + + cartridgeused_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubCartridgeReadResponse.CartridgeUsed) +} + +// uint32 Status = 8; +void StubCartridgeReadResponse::clear_status() { + status_ = 0u; +} +::google::protobuf::uint32 StubCartridgeReadResponse::status() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubCartridgeReadResponse.Status) + return status_; +} +void StubCartridgeReadResponse::set_status(::google::protobuf::uint32 value) { + + status_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubCartridgeReadResponse.Status) +} + +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS + +// @@protoc_insertion_point(namespace_scope) + +} // namespace Stubs +} // namespace PMR +} // namespace Tango + +// @@protoc_insertion_point(global_scope) diff --git a/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubCartridgeReadResponse.pb.h b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubCartridgeReadResponse.pb.h new file mode 100644 index 000000000..a247f48eb --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubCartridgeReadResponse.pb.h @@ -0,0 +1,304 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StubCartridgeReadResponse.proto + +#ifndef PROTOBUF_StubCartridgeReadResponse_2eproto__INCLUDED +#define PROTOBUF_StubCartridgeReadResponse_2eproto__INCLUDED + +#include <string> + +#include <google/protobuf/stubs/common.h> + +#if GOOGLE_PROTOBUF_VERSION < 3004000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3004000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include <google/protobuf/io/coded_stream.h> +#include <google/protobuf/arena.h> +#include <google/protobuf/arenastring.h> +#include <google/protobuf/generated_message_table_driven.h> +#include <google/protobuf/generated_message_util.h> +#include <google/protobuf/metadata.h> +#include <google/protobuf/message.h> +#include <google/protobuf/repeated_field.h> // IWYU pragma: export +#include <google/protobuf/extension_set.h> // IWYU pragma: export +#include <google/protobuf/unknown_field_set.h> +// @@protoc_insertion_point(includes) +namespace Tango { +namespace PMR { +namespace Stubs { +class StubCartridgeReadResponse; +class StubCartridgeReadResponseDefaultTypeInternal; +extern StubCartridgeReadResponseDefaultTypeInternal _StubCartridgeReadResponse_default_instance_; +} // namespace Stubs +} // namespace PMR +} // namespace Tango + +namespace Tango { +namespace PMR { +namespace Stubs { + +namespace protobuf_StubCartridgeReadResponse_2eproto { +// Internal implementation detail -- do not call these. +struct TableStruct { + static const ::google::protobuf::internal::ParseTableField entries[]; + static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; + static const ::google::protobuf::internal::ParseTable schema[]; + static const ::google::protobuf::uint32 offsets[]; + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static void InitDefaultsImpl(); +}; +void AddDescriptors(); +void InitDefaults(); +} // namespace protobuf_StubCartridgeReadResponse_2eproto + +// =================================================================== + +class StubCartridgeReadResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Tango.PMR.Stubs.StubCartridgeReadResponse) */ { + public: + StubCartridgeReadResponse(); + virtual ~StubCartridgeReadResponse(); + + StubCartridgeReadResponse(const StubCartridgeReadResponse& from); + + inline StubCartridgeReadResponse& operator=(const StubCartridgeReadResponse& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + StubCartridgeReadResponse(StubCartridgeReadResponse&& from) noexcept + : StubCartridgeReadResponse() { + *this = ::std::move(from); + } + + inline StubCartridgeReadResponse& operator=(StubCartridgeReadResponse&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const StubCartridgeReadResponse& default_instance(); + + static inline const StubCartridgeReadResponse* internal_default_instance() { + return reinterpret_cast<const StubCartridgeReadResponse*>( + &_StubCartridgeReadResponse_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 0; + + void Swap(StubCartridgeReadResponse* other); + friend void swap(StubCartridgeReadResponse& a, StubCartridgeReadResponse& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline StubCartridgeReadResponse* New() const PROTOBUF_FINAL { return New(NULL); } + + StubCartridgeReadResponse* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const StubCartridgeReadResponse& from); + void MergeFrom(const StubCartridgeReadResponse& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(StubCartridgeReadResponse* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // uint32 CartridgeId = 1; + void clear_cartridgeid(); + static const int kCartridgeIdFieldNumber = 1; + ::google::protobuf::uint32 cartridgeid() const; + void set_cartridgeid(::google::protobuf::uint32 value); + + // uint32 CartridgeColor = 3; + void clear_cartridgecolor(); + static const int kCartridgeColorFieldNumber = 3; + ::google::protobuf::uint32 cartridgecolor() const; + void set_cartridgecolor(::google::protobuf::uint32 value); + + // uint32 CartridgeVersion = 4; + void clear_cartridgeversion(); + static const int kCartridgeVersionFieldNumber = 4; + ::google::protobuf::uint32 cartridgeversion() const; + void set_cartridgeversion(::google::protobuf::uint32 value); + + // int32 CartridgeData = 5; + void clear_cartridgedata(); + static const int kCartridgeDataFieldNumber = 5; + ::google::protobuf::int32 cartridgedata() const; + void set_cartridgedata(::google::protobuf::int32 value); + + // bool CartridgeUsed = 6; + void clear_cartridgeused(); + static const int kCartridgeUsedFieldNumber = 6; + bool cartridgeused() const; + void set_cartridgeused(bool value); + + // uint32 Status = 8; + void clear_status(); + static const int kStatusFieldNumber = 8; + ::google::protobuf::uint32 status() const; + void set_status(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:Tango.PMR.Stubs.StubCartridgeReadResponse) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::uint32 cartridgeid_; + ::google::protobuf::uint32 cartridgecolor_; + ::google::protobuf::uint32 cartridgeversion_; + ::google::protobuf::int32 cartridgedata_; + bool cartridgeused_; + ::google::protobuf::uint32 status_; + mutable int _cached_size_; + friend struct protobuf_StubCartridgeReadResponse_2eproto::TableStruct; +}; +// =================================================================== + + +// =================================================================== + +#if !PROTOBUF_INLINE_NOT_IN_HEADERS +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// StubCartridgeReadResponse + +// uint32 CartridgeId = 1; +inline void StubCartridgeReadResponse::clear_cartridgeid() { + cartridgeid_ = 0u; +} +inline ::google::protobuf::uint32 StubCartridgeReadResponse::cartridgeid() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubCartridgeReadResponse.CartridgeId) + return cartridgeid_; +} +inline void StubCartridgeReadResponse::set_cartridgeid(::google::protobuf::uint32 value) { + + cartridgeid_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubCartridgeReadResponse.CartridgeId) +} + +// uint32 CartridgeColor = 3; +inline void StubCartridgeReadResponse::clear_cartridgecolor() { + cartridgecolor_ = 0u; +} +inline ::google::protobuf::uint32 StubCartridgeReadResponse::cartridgecolor() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubCartridgeReadResponse.CartridgeColor) + return cartridgecolor_; +} +inline void StubCartridgeReadResponse::set_cartridgecolor(::google::protobuf::uint32 value) { + + cartridgecolor_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubCartridgeReadResponse.CartridgeColor) +} + +// uint32 CartridgeVersion = 4; +inline void StubCartridgeReadResponse::clear_cartridgeversion() { + cartridgeversion_ = 0u; +} +inline ::google::protobuf::uint32 StubCartridgeReadResponse::cartridgeversion() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubCartridgeReadResponse.CartridgeVersion) + return cartridgeversion_; +} +inline void StubCartridgeReadResponse::set_cartridgeversion(::google::protobuf::uint32 value) { + + cartridgeversion_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubCartridgeReadResponse.CartridgeVersion) +} + +// int32 CartridgeData = 5; +inline void StubCartridgeReadResponse::clear_cartridgedata() { + cartridgedata_ = 0; +} +inline ::google::protobuf::int32 StubCartridgeReadResponse::cartridgedata() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubCartridgeReadResponse.CartridgeData) + return cartridgedata_; +} +inline void StubCartridgeReadResponse::set_cartridgedata(::google::protobuf::int32 value) { + + cartridgedata_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubCartridgeReadResponse.CartridgeData) +} + +// bool CartridgeUsed = 6; +inline void StubCartridgeReadResponse::clear_cartridgeused() { + cartridgeused_ = false; +} +inline bool StubCartridgeReadResponse::cartridgeused() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubCartridgeReadResponse.CartridgeUsed) + return cartridgeused_; +} +inline void StubCartridgeReadResponse::set_cartridgeused(bool value) { + + cartridgeused_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubCartridgeReadResponse.CartridgeUsed) +} + +// uint32 Status = 8; +inline void StubCartridgeReadResponse::clear_status() { + status_ = 0u; +} +inline ::google::protobuf::uint32 StubCartridgeReadResponse::status() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubCartridgeReadResponse.Status) + return status_; +} +inline void StubCartridgeReadResponse::set_status(::google::protobuf::uint32 value) { + + status_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubCartridgeReadResponse.Status) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +#endif // !PROTOBUF_INLINE_NOT_IN_HEADERS + +// @@protoc_insertion_point(namespace_scope) + + +} // namespace Stubs +} // namespace PMR +} // namespace Tango + +// @@protoc_insertion_point(global_scope) + +#endif // PROTOBUF_StubCartridgeReadResponse_2eproto__INCLUDED diff --git a/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubCartridgeWriteRequest.pb.cc b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubCartridgeWriteRequest.pb.cc new file mode 100644 index 000000000..f516b86d9 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubCartridgeWriteRequest.pb.cc @@ -0,0 +1,602 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StubCartridgeWriteRequest.proto + +#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION +#include "StubCartridgeWriteRequest.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 StubCartridgeWriteRequestDefaultTypeInternal { +public: + ::google::protobuf::internal::ExplicitlyConstructed<StubCartridgeWriteRequest> + _instance; +} _StubCartridgeWriteRequest_default_instance_; + +namespace protobuf_StubCartridgeWriteRequest_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(StubCartridgeWriteRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubCartridgeWriteRequest, cartridgeid_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubCartridgeWriteRequest, cartridgecolor_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubCartridgeWriteRequest, cartridgeversion_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubCartridgeWriteRequest, cartridgedata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubCartridgeWriteRequest, cartridgeused_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(StubCartridgeWriteRequest)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast<const ::google::protobuf::Message*>(&_StubCartridgeWriteRequest_default_instance_), +}; + +namespace { + +void protobuf_AssignDescriptors() { + AddDescriptors(); + ::google::protobuf::MessageFactory* factory = NULL; + AssignDescriptors( + "StubCartridgeWriteRequest.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(); + _StubCartridgeWriteRequest_default_instance_._instance.DefaultConstruct(); + ::google::protobuf::internal::OnShutdownDestroyMessage( + &_StubCartridgeWriteRequest_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\037StubCartridgeWriteRequest.proto\022\017Tango" + ".PMR.Stubs\"\220\001\n\031StubCartridgeWriteRequest" + "\022\023\n\013CartridgeId\030\001 \001(\r\022\026\n\016CartridgeColor\030" + "\002 \001(\r\022\030\n\020CartridgeVersion\030\003 \001(\r\022\025\n\rCartr" + "idgeData\030\004 \001(\r\022\025\n\rCartridgeUsed\030\005 \001(\010B\033\n" + "\031com.twine.tango.pmr.stubsb\006proto3" + }; + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + descriptor, 234); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "StubCartridgeWriteRequest.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_StubCartridgeWriteRequest_2eproto + + +// =================================================================== + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int StubCartridgeWriteRequest::kCartridgeIdFieldNumber; +const int StubCartridgeWriteRequest::kCartridgeColorFieldNumber; +const int StubCartridgeWriteRequest::kCartridgeVersionFieldNumber; +const int StubCartridgeWriteRequest::kCartridgeDataFieldNumber; +const int StubCartridgeWriteRequest::kCartridgeUsedFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +StubCartridgeWriteRequest::StubCartridgeWriteRequest() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_StubCartridgeWriteRequest_2eproto::InitDefaults(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:Tango.PMR.Stubs.StubCartridgeWriteRequest) +} +StubCartridgeWriteRequest::StubCartridgeWriteRequest(const StubCartridgeWriteRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&cartridgeid_, &from.cartridgeid_, + static_cast<size_t>(reinterpret_cast<char*>(&cartridgeused_) - + reinterpret_cast<char*>(&cartridgeid_)) + sizeof(cartridgeused_)); + // @@protoc_insertion_point(copy_constructor:Tango.PMR.Stubs.StubCartridgeWriteRequest) +} + +void StubCartridgeWriteRequest::SharedCtor() { + ::memset(&cartridgeid_, 0, static_cast<size_t>( + reinterpret_cast<char*>(&cartridgeused_) - + reinterpret_cast<char*>(&cartridgeid_)) + sizeof(cartridgeused_)); + _cached_size_ = 0; +} + +StubCartridgeWriteRequest::~StubCartridgeWriteRequest() { + // @@protoc_insertion_point(destructor:Tango.PMR.Stubs.StubCartridgeWriteRequest) + SharedDtor(); +} + +void StubCartridgeWriteRequest::SharedDtor() { +} + +void StubCartridgeWriteRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* StubCartridgeWriteRequest::descriptor() { + protobuf_StubCartridgeWriteRequest_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_StubCartridgeWriteRequest_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const StubCartridgeWriteRequest& StubCartridgeWriteRequest::default_instance() { + protobuf_StubCartridgeWriteRequest_2eproto::InitDefaults(); + return *internal_default_instance(); +} + +StubCartridgeWriteRequest* StubCartridgeWriteRequest::New(::google::protobuf::Arena* arena) const { + StubCartridgeWriteRequest* n = new StubCartridgeWriteRequest; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void StubCartridgeWriteRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:Tango.PMR.Stubs.StubCartridgeWriteRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + ::memset(&cartridgeid_, 0, static_cast<size_t>( + reinterpret_cast<char*>(&cartridgeused_) - + reinterpret_cast<char*>(&cartridgeid_)) + sizeof(cartridgeused_)); + _internal_metadata_.Clear(); +} + +bool StubCartridgeWriteRequest::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.StubCartridgeWriteRequest) + 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 CartridgeId = 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, &cartridgeid_))); + } else { + goto handle_unusual; + } + break; + } + + // uint32 CartridgeColor = 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, &cartridgecolor_))); + } else { + goto handle_unusual; + } + break; + } + + // uint32 CartridgeVersion = 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, &cartridgeversion_))); + } else { + goto handle_unusual; + } + break; + } + + // uint32 CartridgeData = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &cartridgedata_))); + } else { + goto handle_unusual; + } + break; + } + + // bool CartridgeUsed = 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, &cartridgeused_))); + } 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.StubCartridgeWriteRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:Tango.PMR.Stubs.StubCartridgeWriteRequest) + return false; +#undef DO_ +} + +void StubCartridgeWriteRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Tango.PMR.Stubs.StubCartridgeWriteRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // uint32 CartridgeId = 1; + if (this->cartridgeid() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->cartridgeid(), output); + } + + // uint32 CartridgeColor = 2; + if (this->cartridgecolor() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->cartridgecolor(), output); + } + + // uint32 CartridgeVersion = 3; + if (this->cartridgeversion() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->cartridgeversion(), output); + } + + // uint32 CartridgeData = 4; + if (this->cartridgedata() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->cartridgedata(), output); + } + + // bool CartridgeUsed = 5; + if (this->cartridgeused() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteBool(5, this->cartridgeused(), 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.StubCartridgeWriteRequest) +} + +::google::protobuf::uint8* StubCartridgeWriteRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:Tango.PMR.Stubs.StubCartridgeWriteRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // uint32 CartridgeId = 1; + if (this->cartridgeid() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->cartridgeid(), target); + } + + // uint32 CartridgeColor = 2; + if (this->cartridgecolor() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->cartridgecolor(), target); + } + + // uint32 CartridgeVersion = 3; + if (this->cartridgeversion() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->cartridgeversion(), target); + } + + // uint32 CartridgeData = 4; + if (this->cartridgedata() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(4, this->cartridgedata(), target); + } + + // bool CartridgeUsed = 5; + if (this->cartridgeused() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(5, this->cartridgeused(), 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.StubCartridgeWriteRequest) + return target; +} + +size_t StubCartridgeWriteRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:Tango.PMR.Stubs.StubCartridgeWriteRequest) + 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())); + } + // uint32 CartridgeId = 1; + if (this->cartridgeid() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->cartridgeid()); + } + + // uint32 CartridgeColor = 2; + if (this->cartridgecolor() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->cartridgecolor()); + } + + // uint32 CartridgeVersion = 3; + if (this->cartridgeversion() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->cartridgeversion()); + } + + // uint32 CartridgeData = 4; + if (this->cartridgedata() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->cartridgedata()); + } + + // bool CartridgeUsed = 5; + if (this->cartridgeused() != 0) { + total_size += 1 + 1; + } + + 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 StubCartridgeWriteRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:Tango.PMR.Stubs.StubCartridgeWriteRequest) + GOOGLE_DCHECK_NE(&from, this); + const StubCartridgeWriteRequest* source = + ::google::protobuf::internal::DynamicCastToGenerated<const StubCartridgeWriteRequest>( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:Tango.PMR.Stubs.StubCartridgeWriteRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:Tango.PMR.Stubs.StubCartridgeWriteRequest) + MergeFrom(*source); + } +} + +void StubCartridgeWriteRequest::MergeFrom(const StubCartridgeWriteRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:Tango.PMR.Stubs.StubCartridgeWriteRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.cartridgeid() != 0) { + set_cartridgeid(from.cartridgeid()); + } + if (from.cartridgecolor() != 0) { + set_cartridgecolor(from.cartridgecolor()); + } + if (from.cartridgeversion() != 0) { + set_cartridgeversion(from.cartridgeversion()); + } + if (from.cartridgedata() != 0) { + set_cartridgedata(from.cartridgedata()); + } + if (from.cartridgeused() != 0) { + set_cartridgeused(from.cartridgeused()); + } +} + +void StubCartridgeWriteRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:Tango.PMR.Stubs.StubCartridgeWriteRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void StubCartridgeWriteRequest::CopyFrom(const StubCartridgeWriteRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:Tango.PMR.Stubs.StubCartridgeWriteRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool StubCartridgeWriteRequest::IsInitialized() const { + return true; +} + +void StubCartridgeWriteRequest::Swap(StubCartridgeWriteRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void StubCartridgeWriteRequest::InternalSwap(StubCartridgeWriteRequest* other) { + using std::swap; + swap(cartridgeid_, other->cartridgeid_); + swap(cartridgecolor_, other->cartridgecolor_); + swap(cartridgeversion_, other->cartridgeversion_); + swap(cartridgedata_, other->cartridgedata_); + swap(cartridgeused_, other->cartridgeused_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata StubCartridgeWriteRequest::GetMetadata() const { + protobuf_StubCartridgeWriteRequest_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_StubCartridgeWriteRequest_2eproto::file_level_metadata[kIndexInFileMessages]; +} + +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// StubCartridgeWriteRequest + +// uint32 CartridgeId = 1; +void StubCartridgeWriteRequest::clear_cartridgeid() { + cartridgeid_ = 0u; +} +::google::protobuf::uint32 StubCartridgeWriteRequest::cartridgeid() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubCartridgeWriteRequest.CartridgeId) + return cartridgeid_; +} +void StubCartridgeWriteRequest::set_cartridgeid(::google::protobuf::uint32 value) { + + cartridgeid_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubCartridgeWriteRequest.CartridgeId) +} + +// uint32 CartridgeColor = 2; +void StubCartridgeWriteRequest::clear_cartridgecolor() { + cartridgecolor_ = 0u; +} +::google::protobuf::uint32 StubCartridgeWriteRequest::cartridgecolor() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubCartridgeWriteRequest.CartridgeColor) + return cartridgecolor_; +} +void StubCartridgeWriteRequest::set_cartridgecolor(::google::protobuf::uint32 value) { + + cartridgecolor_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubCartridgeWriteRequest.CartridgeColor) +} + +// uint32 CartridgeVersion = 3; +void StubCartridgeWriteRequest::clear_cartridgeversion() { + cartridgeversion_ = 0u; +} +::google::protobuf::uint32 StubCartridgeWriteRequest::cartridgeversion() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubCartridgeWriteRequest.CartridgeVersion) + return cartridgeversion_; +} +void StubCartridgeWriteRequest::set_cartridgeversion(::google::protobuf::uint32 value) { + + cartridgeversion_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubCartridgeWriteRequest.CartridgeVersion) +} + +// uint32 CartridgeData = 4; +void StubCartridgeWriteRequest::clear_cartridgedata() { + cartridgedata_ = 0u; +} +::google::protobuf::uint32 StubCartridgeWriteRequest::cartridgedata() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubCartridgeWriteRequest.CartridgeData) + return cartridgedata_; +} +void StubCartridgeWriteRequest::set_cartridgedata(::google::protobuf::uint32 value) { + + cartridgedata_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubCartridgeWriteRequest.CartridgeData) +} + +// bool CartridgeUsed = 5; +void StubCartridgeWriteRequest::clear_cartridgeused() { + cartridgeused_ = false; +} +bool StubCartridgeWriteRequest::cartridgeused() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubCartridgeWriteRequest.CartridgeUsed) + return cartridgeused_; +} +void StubCartridgeWriteRequest::set_cartridgeused(bool value) { + + cartridgeused_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubCartridgeWriteRequest.CartridgeUsed) +} + +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS + +// @@protoc_insertion_point(namespace_scope) + +} // namespace Stubs +} // namespace PMR +} // namespace Tango + +// @@protoc_insertion_point(global_scope) diff --git a/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubCartridgeWriteRequest.pb.h b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubCartridgeWriteRequest.pb.h new file mode 100644 index 000000000..e80e477ac --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubCartridgeWriteRequest.pb.h @@ -0,0 +1,283 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StubCartridgeWriteRequest.proto + +#ifndef PROTOBUF_StubCartridgeWriteRequest_2eproto__INCLUDED +#define PROTOBUF_StubCartridgeWriteRequest_2eproto__INCLUDED + +#include <string> + +#include <google/protobuf/stubs/common.h> + +#if GOOGLE_PROTOBUF_VERSION < 3004000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3004000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include <google/protobuf/io/coded_stream.h> +#include <google/protobuf/arena.h> +#include <google/protobuf/arenastring.h> +#include <google/protobuf/generated_message_table_driven.h> +#include <google/protobuf/generated_message_util.h> +#include <google/protobuf/metadata.h> +#include <google/protobuf/message.h> +#include <google/protobuf/repeated_field.h> // IWYU pragma: export +#include <google/protobuf/extension_set.h> // IWYU pragma: export +#include <google/protobuf/unknown_field_set.h> +// @@protoc_insertion_point(includes) +namespace Tango { +namespace PMR { +namespace Stubs { +class StubCartridgeWriteRequest; +class StubCartridgeWriteRequestDefaultTypeInternal; +extern StubCartridgeWriteRequestDefaultTypeInternal _StubCartridgeWriteRequest_default_instance_; +} // namespace Stubs +} // namespace PMR +} // namespace Tango + +namespace Tango { +namespace PMR { +namespace Stubs { + +namespace protobuf_StubCartridgeWriteRequest_2eproto { +// Internal implementation detail -- do not call these. +struct TableStruct { + static const ::google::protobuf::internal::ParseTableField entries[]; + static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; + static const ::google::protobuf::internal::ParseTable schema[]; + static const ::google::protobuf::uint32 offsets[]; + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static void InitDefaultsImpl(); +}; +void AddDescriptors(); +void InitDefaults(); +} // namespace protobuf_StubCartridgeWriteRequest_2eproto + +// =================================================================== + +class StubCartridgeWriteRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Tango.PMR.Stubs.StubCartridgeWriteRequest) */ { + public: + StubCartridgeWriteRequest(); + virtual ~StubCartridgeWriteRequest(); + + StubCartridgeWriteRequest(const StubCartridgeWriteRequest& from); + + inline StubCartridgeWriteRequest& operator=(const StubCartridgeWriteRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + StubCartridgeWriteRequest(StubCartridgeWriteRequest&& from) noexcept + : StubCartridgeWriteRequest() { + *this = ::std::move(from); + } + + inline StubCartridgeWriteRequest& operator=(StubCartridgeWriteRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const StubCartridgeWriteRequest& default_instance(); + + static inline const StubCartridgeWriteRequest* internal_default_instance() { + return reinterpret_cast<const StubCartridgeWriteRequest*>( + &_StubCartridgeWriteRequest_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 0; + + void Swap(StubCartridgeWriteRequest* other); + friend void swap(StubCartridgeWriteRequest& a, StubCartridgeWriteRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline StubCartridgeWriteRequest* New() const PROTOBUF_FINAL { return New(NULL); } + + StubCartridgeWriteRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const StubCartridgeWriteRequest& from); + void MergeFrom(const StubCartridgeWriteRequest& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(StubCartridgeWriteRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // uint32 CartridgeId = 1; + void clear_cartridgeid(); + static const int kCartridgeIdFieldNumber = 1; + ::google::protobuf::uint32 cartridgeid() const; + void set_cartridgeid(::google::protobuf::uint32 value); + + // uint32 CartridgeColor = 2; + void clear_cartridgecolor(); + static const int kCartridgeColorFieldNumber = 2; + ::google::protobuf::uint32 cartridgecolor() const; + void set_cartridgecolor(::google::protobuf::uint32 value); + + // uint32 CartridgeVersion = 3; + void clear_cartridgeversion(); + static const int kCartridgeVersionFieldNumber = 3; + ::google::protobuf::uint32 cartridgeversion() const; + void set_cartridgeversion(::google::protobuf::uint32 value); + + // uint32 CartridgeData = 4; + void clear_cartridgedata(); + static const int kCartridgeDataFieldNumber = 4; + ::google::protobuf::uint32 cartridgedata() const; + void set_cartridgedata(::google::protobuf::uint32 value); + + // bool CartridgeUsed = 5; + void clear_cartridgeused(); + static const int kCartridgeUsedFieldNumber = 5; + bool cartridgeused() const; + void set_cartridgeused(bool value); + + // @@protoc_insertion_point(class_scope:Tango.PMR.Stubs.StubCartridgeWriteRequest) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::uint32 cartridgeid_; + ::google::protobuf::uint32 cartridgecolor_; + ::google::protobuf::uint32 cartridgeversion_; + ::google::protobuf::uint32 cartridgedata_; + bool cartridgeused_; + mutable int _cached_size_; + friend struct protobuf_StubCartridgeWriteRequest_2eproto::TableStruct; +}; +// =================================================================== + + +// =================================================================== + +#if !PROTOBUF_INLINE_NOT_IN_HEADERS +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// StubCartridgeWriteRequest + +// uint32 CartridgeId = 1; +inline void StubCartridgeWriteRequest::clear_cartridgeid() { + cartridgeid_ = 0u; +} +inline ::google::protobuf::uint32 StubCartridgeWriteRequest::cartridgeid() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubCartridgeWriteRequest.CartridgeId) + return cartridgeid_; +} +inline void StubCartridgeWriteRequest::set_cartridgeid(::google::protobuf::uint32 value) { + + cartridgeid_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubCartridgeWriteRequest.CartridgeId) +} + +// uint32 CartridgeColor = 2; +inline void StubCartridgeWriteRequest::clear_cartridgecolor() { + cartridgecolor_ = 0u; +} +inline ::google::protobuf::uint32 StubCartridgeWriteRequest::cartridgecolor() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubCartridgeWriteRequest.CartridgeColor) + return cartridgecolor_; +} +inline void StubCartridgeWriteRequest::set_cartridgecolor(::google::protobuf::uint32 value) { + + cartridgecolor_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubCartridgeWriteRequest.CartridgeColor) +} + +// uint32 CartridgeVersion = 3; +inline void StubCartridgeWriteRequest::clear_cartridgeversion() { + cartridgeversion_ = 0u; +} +inline ::google::protobuf::uint32 StubCartridgeWriteRequest::cartridgeversion() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubCartridgeWriteRequest.CartridgeVersion) + return cartridgeversion_; +} +inline void StubCartridgeWriteRequest::set_cartridgeversion(::google::protobuf::uint32 value) { + + cartridgeversion_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubCartridgeWriteRequest.CartridgeVersion) +} + +// uint32 CartridgeData = 4; +inline void StubCartridgeWriteRequest::clear_cartridgedata() { + cartridgedata_ = 0u; +} +inline ::google::protobuf::uint32 StubCartridgeWriteRequest::cartridgedata() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubCartridgeWriteRequest.CartridgeData) + return cartridgedata_; +} +inline void StubCartridgeWriteRequest::set_cartridgedata(::google::protobuf::uint32 value) { + + cartridgedata_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubCartridgeWriteRequest.CartridgeData) +} + +// bool CartridgeUsed = 5; +inline void StubCartridgeWriteRequest::clear_cartridgeused() { + cartridgeused_ = false; +} +inline bool StubCartridgeWriteRequest::cartridgeused() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubCartridgeWriteRequest.CartridgeUsed) + return cartridgeused_; +} +inline void StubCartridgeWriteRequest::set_cartridgeused(bool value) { + + cartridgeused_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubCartridgeWriteRequest.CartridgeUsed) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +#endif // !PROTOBUF_INLINE_NOT_IN_HEADERS + +// @@protoc_insertion_point(namespace_scope) + + +} // namespace Stubs +} // namespace PMR +} // namespace Tango + +// @@protoc_insertion_point(global_scope) + +#endif // PROTOBUF_StubCartridgeWriteRequest_2eproto__INCLUDED diff --git a/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubCartridgeWriteResponse.pb.cc b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubCartridgeWriteResponse.pb.cc new file mode 100644 index 000000000..3429d48fe --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubCartridgeWriteResponse.pb.cc @@ -0,0 +1,449 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StubCartridgeWriteResponse.proto + +#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION +#include "StubCartridgeWriteResponse.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 StubCartridgeWriteResponseDefaultTypeInternal { +public: + ::google::protobuf::internal::ExplicitlyConstructed<StubCartridgeWriteResponse> + _instance; +} _StubCartridgeWriteResponse_default_instance_; + +namespace protobuf_StubCartridgeWriteResponse_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(StubCartridgeWriteResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubCartridgeWriteResponse, cartridgeid_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubCartridgeWriteResponse, status_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(StubCartridgeWriteResponse)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast<const ::google::protobuf::Message*>(&_StubCartridgeWriteResponse_default_instance_), +}; + +namespace { + +void protobuf_AssignDescriptors() { + AddDescriptors(); + ::google::protobuf::MessageFactory* factory = NULL; + AssignDescriptors( + "StubCartridgeWriteResponse.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(); + _StubCartridgeWriteResponse_default_instance_._instance.DefaultConstruct(); + ::google::protobuf::internal::OnShutdownDestroyMessage( + &_StubCartridgeWriteResponse_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 StubCartridgeWriteResponse.proto\022\017Tang" + "o.PMR.Stubs\"A\n\032StubCartridgeWriteRespons" + "e\022\023\n\013CartridgeId\030\001 \001(\r\022\016\n\006Status\030\010 \001(\rB\033" + "\n\031com.twine.tango.pmr.stubsb\006proto3" + }; + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + descriptor, 155); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "StubCartridgeWriteResponse.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_StubCartridgeWriteResponse_2eproto + + +// =================================================================== + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int StubCartridgeWriteResponse::kCartridgeIdFieldNumber; +const int StubCartridgeWriteResponse::kStatusFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +StubCartridgeWriteResponse::StubCartridgeWriteResponse() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_StubCartridgeWriteResponse_2eproto::InitDefaults(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:Tango.PMR.Stubs.StubCartridgeWriteResponse) +} +StubCartridgeWriteResponse::StubCartridgeWriteResponse(const StubCartridgeWriteResponse& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&cartridgeid_, &from.cartridgeid_, + static_cast<size_t>(reinterpret_cast<char*>(&status_) - + reinterpret_cast<char*>(&cartridgeid_)) + sizeof(status_)); + // @@protoc_insertion_point(copy_constructor:Tango.PMR.Stubs.StubCartridgeWriteResponse) +} + +void StubCartridgeWriteResponse::SharedCtor() { + ::memset(&cartridgeid_, 0, static_cast<size_t>( + reinterpret_cast<char*>(&status_) - + reinterpret_cast<char*>(&cartridgeid_)) + sizeof(status_)); + _cached_size_ = 0; +} + +StubCartridgeWriteResponse::~StubCartridgeWriteResponse() { + // @@protoc_insertion_point(destructor:Tango.PMR.Stubs.StubCartridgeWriteResponse) + SharedDtor(); +} + +void StubCartridgeWriteResponse::SharedDtor() { +} + +void StubCartridgeWriteResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* StubCartridgeWriteResponse::descriptor() { + protobuf_StubCartridgeWriteResponse_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_StubCartridgeWriteResponse_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const StubCartridgeWriteResponse& StubCartridgeWriteResponse::default_instance() { + protobuf_StubCartridgeWriteResponse_2eproto::InitDefaults(); + return *internal_default_instance(); +} + +StubCartridgeWriteResponse* StubCartridgeWriteResponse::New(::google::protobuf::Arena* arena) const { + StubCartridgeWriteResponse* n = new StubCartridgeWriteResponse; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void StubCartridgeWriteResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:Tango.PMR.Stubs.StubCartridgeWriteResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + ::memset(&cartridgeid_, 0, static_cast<size_t>( + reinterpret_cast<char*>(&status_) - + reinterpret_cast<char*>(&cartridgeid_)) + sizeof(status_)); + _internal_metadata_.Clear(); +} + +bool StubCartridgeWriteResponse::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.StubCartridgeWriteResponse) + 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 CartridgeId = 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, &cartridgeid_))); + } else { + goto handle_unusual; + } + break; + } + + // uint32 Status = 8; + case 8: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(64u /* 64 & 0xFF */)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &status_))); + } 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.StubCartridgeWriteResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:Tango.PMR.Stubs.StubCartridgeWriteResponse) + return false; +#undef DO_ +} + +void StubCartridgeWriteResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Tango.PMR.Stubs.StubCartridgeWriteResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // uint32 CartridgeId = 1; + if (this->cartridgeid() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->cartridgeid(), output); + } + + // uint32 Status = 8; + if (this->status() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(8, this->status(), 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.StubCartridgeWriteResponse) +} + +::google::protobuf::uint8* StubCartridgeWriteResponse::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:Tango.PMR.Stubs.StubCartridgeWriteResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // uint32 CartridgeId = 1; + if (this->cartridgeid() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->cartridgeid(), target); + } + + // uint32 Status = 8; + if (this->status() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(8, this->status(), 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.StubCartridgeWriteResponse) + return target; +} + +size_t StubCartridgeWriteResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:Tango.PMR.Stubs.StubCartridgeWriteResponse) + 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())); + } + // uint32 CartridgeId = 1; + if (this->cartridgeid() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->cartridgeid()); + } + + // uint32 Status = 8; + if (this->status() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->status()); + } + + 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 StubCartridgeWriteResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:Tango.PMR.Stubs.StubCartridgeWriteResponse) + GOOGLE_DCHECK_NE(&from, this); + const StubCartridgeWriteResponse* source = + ::google::protobuf::internal::DynamicCastToGenerated<const StubCartridgeWriteResponse>( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:Tango.PMR.Stubs.StubCartridgeWriteResponse) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:Tango.PMR.Stubs.StubCartridgeWriteResponse) + MergeFrom(*source); + } +} + +void StubCartridgeWriteResponse::MergeFrom(const StubCartridgeWriteResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:Tango.PMR.Stubs.StubCartridgeWriteResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.cartridgeid() != 0) { + set_cartridgeid(from.cartridgeid()); + } + if (from.status() != 0) { + set_status(from.status()); + } +} + +void StubCartridgeWriteResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:Tango.PMR.Stubs.StubCartridgeWriteResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void StubCartridgeWriteResponse::CopyFrom(const StubCartridgeWriteResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:Tango.PMR.Stubs.StubCartridgeWriteResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool StubCartridgeWriteResponse::IsInitialized() const { + return true; +} + +void StubCartridgeWriteResponse::Swap(StubCartridgeWriteResponse* other) { + if (other == this) return; + InternalSwap(other); +} +void StubCartridgeWriteResponse::InternalSwap(StubCartridgeWriteResponse* other) { + using std::swap; + swap(cartridgeid_, other->cartridgeid_); + swap(status_, other->status_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata StubCartridgeWriteResponse::GetMetadata() const { + protobuf_StubCartridgeWriteResponse_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_StubCartridgeWriteResponse_2eproto::file_level_metadata[kIndexInFileMessages]; +} + +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// StubCartridgeWriteResponse + +// uint32 CartridgeId = 1; +void StubCartridgeWriteResponse::clear_cartridgeid() { + cartridgeid_ = 0u; +} +::google::protobuf::uint32 StubCartridgeWriteResponse::cartridgeid() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubCartridgeWriteResponse.CartridgeId) + return cartridgeid_; +} +void StubCartridgeWriteResponse::set_cartridgeid(::google::protobuf::uint32 value) { + + cartridgeid_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubCartridgeWriteResponse.CartridgeId) +} + +// uint32 Status = 8; +void StubCartridgeWriteResponse::clear_status() { + status_ = 0u; +} +::google::protobuf::uint32 StubCartridgeWriteResponse::status() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubCartridgeWriteResponse.Status) + return status_; +} +void StubCartridgeWriteResponse::set_status(::google::protobuf::uint32 value) { + + status_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubCartridgeWriteResponse.Status) +} + +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS + +// @@protoc_insertion_point(namespace_scope) + +} // namespace Stubs +} // namespace PMR +} // namespace Tango + +// @@protoc_insertion_point(global_scope) diff --git a/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubCartridgeWriteResponse.pb.h b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubCartridgeWriteResponse.pb.h new file mode 100644 index 000000000..54dca0cb3 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubCartridgeWriteResponse.pb.h @@ -0,0 +1,220 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StubCartridgeWriteResponse.proto + +#ifndef PROTOBUF_StubCartridgeWriteResponse_2eproto__INCLUDED +#define PROTOBUF_StubCartridgeWriteResponse_2eproto__INCLUDED + +#include <string> + +#include <google/protobuf/stubs/common.h> + +#if GOOGLE_PROTOBUF_VERSION < 3004000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3004000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include <google/protobuf/io/coded_stream.h> +#include <google/protobuf/arena.h> +#include <google/protobuf/arenastring.h> +#include <google/protobuf/generated_message_table_driven.h> +#include <google/protobuf/generated_message_util.h> +#include <google/protobuf/metadata.h> +#include <google/protobuf/message.h> +#include <google/protobuf/repeated_field.h> // IWYU pragma: export +#include <google/protobuf/extension_set.h> // IWYU pragma: export +#include <google/protobuf/unknown_field_set.h> +// @@protoc_insertion_point(includes) +namespace Tango { +namespace PMR { +namespace Stubs { +class StubCartridgeWriteResponse; +class StubCartridgeWriteResponseDefaultTypeInternal; +extern StubCartridgeWriteResponseDefaultTypeInternal _StubCartridgeWriteResponse_default_instance_; +} // namespace Stubs +} // namespace PMR +} // namespace Tango + +namespace Tango { +namespace PMR { +namespace Stubs { + +namespace protobuf_StubCartridgeWriteResponse_2eproto { +// Internal implementation detail -- do not call these. +struct TableStruct { + static const ::google::protobuf::internal::ParseTableField entries[]; + static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; + static const ::google::protobuf::internal::ParseTable schema[]; + static const ::google::protobuf::uint32 offsets[]; + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static void InitDefaultsImpl(); +}; +void AddDescriptors(); +void InitDefaults(); +} // namespace protobuf_StubCartridgeWriteResponse_2eproto + +// =================================================================== + +class StubCartridgeWriteResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Tango.PMR.Stubs.StubCartridgeWriteResponse) */ { + public: + StubCartridgeWriteResponse(); + virtual ~StubCartridgeWriteResponse(); + + StubCartridgeWriteResponse(const StubCartridgeWriteResponse& from); + + inline StubCartridgeWriteResponse& operator=(const StubCartridgeWriteResponse& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + StubCartridgeWriteResponse(StubCartridgeWriteResponse&& from) noexcept + : StubCartridgeWriteResponse() { + *this = ::std::move(from); + } + + inline StubCartridgeWriteResponse& operator=(StubCartridgeWriteResponse&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const StubCartridgeWriteResponse& default_instance(); + + static inline const StubCartridgeWriteResponse* internal_default_instance() { + return reinterpret_cast<const StubCartridgeWriteResponse*>( + &_StubCartridgeWriteResponse_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 0; + + void Swap(StubCartridgeWriteResponse* other); + friend void swap(StubCartridgeWriteResponse& a, StubCartridgeWriteResponse& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline StubCartridgeWriteResponse* New() const PROTOBUF_FINAL { return New(NULL); } + + StubCartridgeWriteResponse* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const StubCartridgeWriteResponse& from); + void MergeFrom(const StubCartridgeWriteResponse& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(StubCartridgeWriteResponse* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // uint32 CartridgeId = 1; + void clear_cartridgeid(); + static const int kCartridgeIdFieldNumber = 1; + ::google::protobuf::uint32 cartridgeid() const; + void set_cartridgeid(::google::protobuf::uint32 value); + + // uint32 Status = 8; + void clear_status(); + static const int kStatusFieldNumber = 8; + ::google::protobuf::uint32 status() const; + void set_status(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:Tango.PMR.Stubs.StubCartridgeWriteResponse) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::uint32 cartridgeid_; + ::google::protobuf::uint32 status_; + mutable int _cached_size_; + friend struct protobuf_StubCartridgeWriteResponse_2eproto::TableStruct; +}; +// =================================================================== + + +// =================================================================== + +#if !PROTOBUF_INLINE_NOT_IN_HEADERS +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// StubCartridgeWriteResponse + +// uint32 CartridgeId = 1; +inline void StubCartridgeWriteResponse::clear_cartridgeid() { + cartridgeid_ = 0u; +} +inline ::google::protobuf::uint32 StubCartridgeWriteResponse::cartridgeid() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubCartridgeWriteResponse.CartridgeId) + return cartridgeid_; +} +inline void StubCartridgeWriteResponse::set_cartridgeid(::google::protobuf::uint32 value) { + + cartridgeid_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubCartridgeWriteResponse.CartridgeId) +} + +// uint32 Status = 8; +inline void StubCartridgeWriteResponse::clear_status() { + status_ = 0u; +} +inline ::google::protobuf::uint32 StubCartridgeWriteResponse::status() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubCartridgeWriteResponse.Status) + return status_; +} +inline void StubCartridgeWriteResponse::set_status(::google::protobuf::uint32 value) { + + status_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubCartridgeWriteResponse.Status) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +#endif // !PROTOBUF_INLINE_NOT_IN_HEADERS + +// @@protoc_insertion_point(namespace_scope) + + +} // namespace Stubs +} // namespace PMR +} // namespace Tango + +// @@protoc_insertion_point(global_scope) + +#endif // PROTOBUF_StubCartridgeWriteResponse_2eproto__INCLUDED diff --git a/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubDispenserRequest.pb.cc b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubDispenserRequest.pb.cc new file mode 100644 index 000000000..f17e79311 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubDispenserRequest.pb.cc @@ -0,0 +1,600 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StubDispenserRequest.proto + +#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION +#include "StubDispenserRequest.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 StubDispenserRequestDefaultTypeInternal { +public: + ::google::protobuf::internal::ExplicitlyConstructed<StubDispenserRequest> + _instance; +} _StubDispenserRequest_default_instance_; + +namespace protobuf_StubDispenserRequest_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(StubDispenserRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubDispenserRequest, dispenserid_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubDispenserRequest, start_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubDispenserRequest, setdirection_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubDispenserRequest, setmicrostepdivision_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubDispenserRequest, setspeed_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(StubDispenserRequest)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast<const ::google::protobuf::Message*>(&_StubDispenserRequest_default_instance_), +}; + +namespace { + +void protobuf_AssignDescriptors() { + AddDescriptors(); + ::google::protobuf::MessageFactory* factory = NULL; + AssignDescriptors( + "StubDispenserRequest.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(); + _StubDispenserRequest_default_instance_._instance.DefaultConstruct(); + ::google::protobuf::internal::OnShutdownDestroyMessage( + &_StubDispenserRequest_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\032StubDispenserRequest.proto\022\017Tango.PMR." + "Stubs\"\200\001\n\024StubDispenserRequest\022\023\n\013Dispen" + "serId\030\001 \001(\r\022\r\n\005Start\030\002 \001(\010\022\024\n\014SetDirecti" + "on\030\003 \001(\010\022\034\n\024SetMicrostepDivision\030\004 \001(\r\022\020" + "\n\010SetSpeed\030\005 \001(\005B\033\n\031com.twine.tango.pmr." + "stubsb\006proto3" + }; + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + descriptor, 213); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "StubDispenserRequest.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_StubDispenserRequest_2eproto + + +// =================================================================== + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int StubDispenserRequest::kDispenserIdFieldNumber; +const int StubDispenserRequest::kStartFieldNumber; +const int StubDispenserRequest::kSetDirectionFieldNumber; +const int StubDispenserRequest::kSetMicrostepDivisionFieldNumber; +const int StubDispenserRequest::kSetSpeedFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +StubDispenserRequest::StubDispenserRequest() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_StubDispenserRequest_2eproto::InitDefaults(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:Tango.PMR.Stubs.StubDispenserRequest) +} +StubDispenserRequest::StubDispenserRequest(const StubDispenserRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&dispenserid_, &from.dispenserid_, + static_cast<size_t>(reinterpret_cast<char*>(&setspeed_) - + reinterpret_cast<char*>(&dispenserid_)) + sizeof(setspeed_)); + // @@protoc_insertion_point(copy_constructor:Tango.PMR.Stubs.StubDispenserRequest) +} + +void StubDispenserRequest::SharedCtor() { + ::memset(&dispenserid_, 0, static_cast<size_t>( + reinterpret_cast<char*>(&setspeed_) - + reinterpret_cast<char*>(&dispenserid_)) + sizeof(setspeed_)); + _cached_size_ = 0; +} + +StubDispenserRequest::~StubDispenserRequest() { + // @@protoc_insertion_point(destructor:Tango.PMR.Stubs.StubDispenserRequest) + SharedDtor(); +} + +void StubDispenserRequest::SharedDtor() { +} + +void StubDispenserRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* StubDispenserRequest::descriptor() { + protobuf_StubDispenserRequest_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_StubDispenserRequest_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const StubDispenserRequest& StubDispenserRequest::default_instance() { + protobuf_StubDispenserRequest_2eproto::InitDefaults(); + return *internal_default_instance(); +} + +StubDispenserRequest* StubDispenserRequest::New(::google::protobuf::Arena* arena) const { + StubDispenserRequest* n = new StubDispenserRequest; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void StubDispenserRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:Tango.PMR.Stubs.StubDispenserRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + ::memset(&dispenserid_, 0, static_cast<size_t>( + reinterpret_cast<char*>(&setspeed_) - + reinterpret_cast<char*>(&dispenserid_)) + sizeof(setspeed_)); + _internal_metadata_.Clear(); +} + +bool StubDispenserRequest::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.StubDispenserRequest) + 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 DispenserId = 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, &dispenserid_))); + } else { + goto handle_unusual; + } + break; + } + + // bool Start = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &start_))); + } else { + goto handle_unusual; + } + break; + } + + // bool SetDirection = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &setdirection_))); + } else { + goto handle_unusual; + } + break; + } + + // uint32 SetMicrostepDivision = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &setmicrostepdivision_))); + } else { + goto handle_unusual; + } + break; + } + + // int32 SetSpeed = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + input, &setspeed_))); + } 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.StubDispenserRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:Tango.PMR.Stubs.StubDispenserRequest) + return false; +#undef DO_ +} + +void StubDispenserRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Tango.PMR.Stubs.StubDispenserRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // uint32 DispenserId = 1; + if (this->dispenserid() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->dispenserid(), output); + } + + // bool Start = 2; + if (this->start() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->start(), output); + } + + // bool SetDirection = 3; + if (this->setdirection() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->setdirection(), output); + } + + // uint32 SetMicrostepDivision = 4; + if (this->setmicrostepdivision() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->setmicrostepdivision(), output); + } + + // int32 SetSpeed = 5; + if (this->setspeed() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->setspeed(), 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.StubDispenserRequest) +} + +::google::protobuf::uint8* StubDispenserRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:Tango.PMR.Stubs.StubDispenserRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // uint32 DispenserId = 1; + if (this->dispenserid() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->dispenserid(), target); + } + + // bool Start = 2; + if (this->start() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->start(), target); + } + + // bool SetDirection = 3; + if (this->setdirection() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->setdirection(), target); + } + + // uint32 SetMicrostepDivision = 4; + if (this->setmicrostepdivision() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(4, this->setmicrostepdivision(), target); + } + + // int32 SetSpeed = 5; + if (this->setspeed() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->setspeed(), 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.StubDispenserRequest) + return target; +} + +size_t StubDispenserRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:Tango.PMR.Stubs.StubDispenserRequest) + 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())); + } + // uint32 DispenserId = 1; + if (this->dispenserid() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->dispenserid()); + } + + // bool Start = 2; + if (this->start() != 0) { + total_size += 1 + 1; + } + + // bool SetDirection = 3; + if (this->setdirection() != 0) { + total_size += 1 + 1; + } + + // uint32 SetMicrostepDivision = 4; + if (this->setmicrostepdivision() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->setmicrostepdivision()); + } + + // int32 SetSpeed = 5; + if (this->setspeed() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->setspeed()); + } + + 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 StubDispenserRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:Tango.PMR.Stubs.StubDispenserRequest) + GOOGLE_DCHECK_NE(&from, this); + const StubDispenserRequest* source = + ::google::protobuf::internal::DynamicCastToGenerated<const StubDispenserRequest>( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:Tango.PMR.Stubs.StubDispenserRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:Tango.PMR.Stubs.StubDispenserRequest) + MergeFrom(*source); + } +} + +void StubDispenserRequest::MergeFrom(const StubDispenserRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:Tango.PMR.Stubs.StubDispenserRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.dispenserid() != 0) { + set_dispenserid(from.dispenserid()); + } + if (from.start() != 0) { + set_start(from.start()); + } + if (from.setdirection() != 0) { + set_setdirection(from.setdirection()); + } + if (from.setmicrostepdivision() != 0) { + set_setmicrostepdivision(from.setmicrostepdivision()); + } + if (from.setspeed() != 0) { + set_setspeed(from.setspeed()); + } +} + +void StubDispenserRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:Tango.PMR.Stubs.StubDispenserRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void StubDispenserRequest::CopyFrom(const StubDispenserRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:Tango.PMR.Stubs.StubDispenserRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool StubDispenserRequest::IsInitialized() const { + return true; +} + +void StubDispenserRequest::Swap(StubDispenserRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void StubDispenserRequest::InternalSwap(StubDispenserRequest* other) { + using std::swap; + swap(dispenserid_, other->dispenserid_); + swap(start_, other->start_); + swap(setdirection_, other->setdirection_); + swap(setmicrostepdivision_, other->setmicrostepdivision_); + swap(setspeed_, other->setspeed_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata StubDispenserRequest::GetMetadata() const { + protobuf_StubDispenserRequest_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_StubDispenserRequest_2eproto::file_level_metadata[kIndexInFileMessages]; +} + +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// StubDispenserRequest + +// uint32 DispenserId = 1; +void StubDispenserRequest::clear_dispenserid() { + dispenserid_ = 0u; +} +::google::protobuf::uint32 StubDispenserRequest::dispenserid() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubDispenserRequest.DispenserId) + return dispenserid_; +} +void StubDispenserRequest::set_dispenserid(::google::protobuf::uint32 value) { + + dispenserid_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubDispenserRequest.DispenserId) +} + +// bool Start = 2; +void StubDispenserRequest::clear_start() { + start_ = false; +} +bool StubDispenserRequest::start() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubDispenserRequest.Start) + return start_; +} +void StubDispenserRequest::set_start(bool value) { + + start_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubDispenserRequest.Start) +} + +// bool SetDirection = 3; +void StubDispenserRequest::clear_setdirection() { + setdirection_ = false; +} +bool StubDispenserRequest::setdirection() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubDispenserRequest.SetDirection) + return setdirection_; +} +void StubDispenserRequest::set_setdirection(bool value) { + + setdirection_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubDispenserRequest.SetDirection) +} + +// uint32 SetMicrostepDivision = 4; +void StubDispenserRequest::clear_setmicrostepdivision() { + setmicrostepdivision_ = 0u; +} +::google::protobuf::uint32 StubDispenserRequest::setmicrostepdivision() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubDispenserRequest.SetMicrostepDivision) + return setmicrostepdivision_; +} +void StubDispenserRequest::set_setmicrostepdivision(::google::protobuf::uint32 value) { + + setmicrostepdivision_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubDispenserRequest.SetMicrostepDivision) +} + +// int32 SetSpeed = 5; +void StubDispenserRequest::clear_setspeed() { + setspeed_ = 0; +} +::google::protobuf::int32 StubDispenserRequest::setspeed() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubDispenserRequest.SetSpeed) + return setspeed_; +} +void StubDispenserRequest::set_setspeed(::google::protobuf::int32 value) { + + setspeed_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubDispenserRequest.SetSpeed) +} + +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS + +// @@protoc_insertion_point(namespace_scope) + +} // namespace Stubs +} // namespace PMR +} // namespace Tango + +// @@protoc_insertion_point(global_scope) diff --git a/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubDispenserRequest.pb.h b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubDispenserRequest.pb.h new file mode 100644 index 000000000..baee3f210 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubDispenserRequest.pb.h @@ -0,0 +1,283 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StubDispenserRequest.proto + +#ifndef PROTOBUF_StubDispenserRequest_2eproto__INCLUDED +#define PROTOBUF_StubDispenserRequest_2eproto__INCLUDED + +#include <string> + +#include <google/protobuf/stubs/common.h> + +#if GOOGLE_PROTOBUF_VERSION < 3004000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3004000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include <google/protobuf/io/coded_stream.h> +#include <google/protobuf/arena.h> +#include <google/protobuf/arenastring.h> +#include <google/protobuf/generated_message_table_driven.h> +#include <google/protobuf/generated_message_util.h> +#include <google/protobuf/metadata.h> +#include <google/protobuf/message.h> +#include <google/protobuf/repeated_field.h> // IWYU pragma: export +#include <google/protobuf/extension_set.h> // IWYU pragma: export +#include <google/protobuf/unknown_field_set.h> +// @@protoc_insertion_point(includes) +namespace Tango { +namespace PMR { +namespace Stubs { +class StubDispenserRequest; +class StubDispenserRequestDefaultTypeInternal; +extern StubDispenserRequestDefaultTypeInternal _StubDispenserRequest_default_instance_; +} // namespace Stubs +} // namespace PMR +} // namespace Tango + +namespace Tango { +namespace PMR { +namespace Stubs { + +namespace protobuf_StubDispenserRequest_2eproto { +// Internal implementation detail -- do not call these. +struct TableStruct { + static const ::google::protobuf::internal::ParseTableField entries[]; + static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; + static const ::google::protobuf::internal::ParseTable schema[]; + static const ::google::protobuf::uint32 offsets[]; + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static void InitDefaultsImpl(); +}; +void AddDescriptors(); +void InitDefaults(); +} // namespace protobuf_StubDispenserRequest_2eproto + +// =================================================================== + +class StubDispenserRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Tango.PMR.Stubs.StubDispenserRequest) */ { + public: + StubDispenserRequest(); + virtual ~StubDispenserRequest(); + + StubDispenserRequest(const StubDispenserRequest& from); + + inline StubDispenserRequest& operator=(const StubDispenserRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + StubDispenserRequest(StubDispenserRequest&& from) noexcept + : StubDispenserRequest() { + *this = ::std::move(from); + } + + inline StubDispenserRequest& operator=(StubDispenserRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const StubDispenserRequest& default_instance(); + + static inline const StubDispenserRequest* internal_default_instance() { + return reinterpret_cast<const StubDispenserRequest*>( + &_StubDispenserRequest_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 0; + + void Swap(StubDispenserRequest* other); + friend void swap(StubDispenserRequest& a, StubDispenserRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline StubDispenserRequest* New() const PROTOBUF_FINAL { return New(NULL); } + + StubDispenserRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const StubDispenserRequest& from); + void MergeFrom(const StubDispenserRequest& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(StubDispenserRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // uint32 DispenserId = 1; + void clear_dispenserid(); + static const int kDispenserIdFieldNumber = 1; + ::google::protobuf::uint32 dispenserid() const; + void set_dispenserid(::google::protobuf::uint32 value); + + // bool Start = 2; + void clear_start(); + static const int kStartFieldNumber = 2; + bool start() const; + void set_start(bool value); + + // bool SetDirection = 3; + void clear_setdirection(); + static const int kSetDirectionFieldNumber = 3; + bool setdirection() const; + void set_setdirection(bool value); + + // uint32 SetMicrostepDivision = 4; + void clear_setmicrostepdivision(); + static const int kSetMicrostepDivisionFieldNumber = 4; + ::google::protobuf::uint32 setmicrostepdivision() const; + void set_setmicrostepdivision(::google::protobuf::uint32 value); + + // int32 SetSpeed = 5; + void clear_setspeed(); + static const int kSetSpeedFieldNumber = 5; + ::google::protobuf::int32 setspeed() const; + void set_setspeed(::google::protobuf::int32 value); + + // @@protoc_insertion_point(class_scope:Tango.PMR.Stubs.StubDispenserRequest) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::uint32 dispenserid_; + bool start_; + bool setdirection_; + ::google::protobuf::uint32 setmicrostepdivision_; + ::google::protobuf::int32 setspeed_; + mutable int _cached_size_; + friend struct protobuf_StubDispenserRequest_2eproto::TableStruct; +}; +// =================================================================== + + +// =================================================================== + +#if !PROTOBUF_INLINE_NOT_IN_HEADERS +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// StubDispenserRequest + +// uint32 DispenserId = 1; +inline void StubDispenserRequest::clear_dispenserid() { + dispenserid_ = 0u; +} +inline ::google::protobuf::uint32 StubDispenserRequest::dispenserid() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubDispenserRequest.DispenserId) + return dispenserid_; +} +inline void StubDispenserRequest::set_dispenserid(::google::protobuf::uint32 value) { + + dispenserid_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubDispenserRequest.DispenserId) +} + +// bool Start = 2; +inline void StubDispenserRequest::clear_start() { + start_ = false; +} +inline bool StubDispenserRequest::start() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubDispenserRequest.Start) + return start_; +} +inline void StubDispenserRequest::set_start(bool value) { + + start_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubDispenserRequest.Start) +} + +// bool SetDirection = 3; +inline void StubDispenserRequest::clear_setdirection() { + setdirection_ = false; +} +inline bool StubDispenserRequest::setdirection() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubDispenserRequest.SetDirection) + return setdirection_; +} +inline void StubDispenserRequest::set_setdirection(bool value) { + + setdirection_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubDispenserRequest.SetDirection) +} + +// uint32 SetMicrostepDivision = 4; +inline void StubDispenserRequest::clear_setmicrostepdivision() { + setmicrostepdivision_ = 0u; +} +inline ::google::protobuf::uint32 StubDispenserRequest::setmicrostepdivision() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubDispenserRequest.SetMicrostepDivision) + return setmicrostepdivision_; +} +inline void StubDispenserRequest::set_setmicrostepdivision(::google::protobuf::uint32 value) { + + setmicrostepdivision_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubDispenserRequest.SetMicrostepDivision) +} + +// int32 SetSpeed = 5; +inline void StubDispenserRequest::clear_setspeed() { + setspeed_ = 0; +} +inline ::google::protobuf::int32 StubDispenserRequest::setspeed() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubDispenserRequest.SetSpeed) + return setspeed_; +} +inline void StubDispenserRequest::set_setspeed(::google::protobuf::int32 value) { + + setspeed_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubDispenserRequest.SetSpeed) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +#endif // !PROTOBUF_INLINE_NOT_IN_HEADERS + +// @@protoc_insertion_point(namespace_scope) + + +} // namespace Stubs +} // namespace PMR +} // namespace Tango + +// @@protoc_insertion_point(global_scope) + +#endif // PROTOBUF_StubDispenserRequest_2eproto__INCLUDED diff --git a/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubDispenserResponse.pb.cc b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubDispenserResponse.pb.cc new file mode 100644 index 000000000..55012a293 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubDispenserResponse.pb.cc @@ -0,0 +1,550 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StubDispenserResponse.proto + +#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION +#include "StubDispenserResponse.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 StubDispenserResponseDefaultTypeInternal { +public: + ::google::protobuf::internal::ExplicitlyConstructed<StubDispenserResponse> + _instance; +} _StubDispenserResponse_default_instance_; + +namespace protobuf_StubDispenserResponse_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(StubDispenserResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubDispenserResponse, dispenserid_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubDispenserResponse, dispenserposition_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubDispenserResponse, inkworninglevel_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubDispenserResponse, status_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(StubDispenserResponse)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast<const ::google::protobuf::Message*>(&_StubDispenserResponse_default_instance_), +}; + +namespace { + +void protobuf_AssignDescriptors() { + AddDescriptors(); + ::google::protobuf::MessageFactory* factory = NULL; + AssignDescriptors( + "StubDispenserResponse.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(); + _StubDispenserResponse_default_instance_._instance.DefaultConstruct(); + ::google::protobuf::internal::OnShutdownDestroyMessage( + &_StubDispenserResponse_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\033StubDispenserResponse.proto\022\017Tango.PMR" + ".Stubs\"p\n\025StubDispenserResponse\022\023\n\013Dispe" + "nserId\030\001 \001(\r\022\031\n\021DispenserPosition\030\002 \001(\r\022" + "\027\n\017InkWorningLevel\030\003 \001(\r\022\016\n\006Status\030\004 \001(\010" + "B\033\n\031com.twine.tango.pmr.stubsb\006proto3" + }; + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + descriptor, 197); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "StubDispenserResponse.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_StubDispenserResponse_2eproto + + +// =================================================================== + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int StubDispenserResponse::kDispenserIdFieldNumber; +const int StubDispenserResponse::kDispenserPositionFieldNumber; +const int StubDispenserResponse::kInkWorningLevelFieldNumber; +const int StubDispenserResponse::kStatusFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +StubDispenserResponse::StubDispenserResponse() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_StubDispenserResponse_2eproto::InitDefaults(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:Tango.PMR.Stubs.StubDispenserResponse) +} +StubDispenserResponse::StubDispenserResponse(const StubDispenserResponse& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&dispenserid_, &from.dispenserid_, + static_cast<size_t>(reinterpret_cast<char*>(&status_) - + reinterpret_cast<char*>(&dispenserid_)) + sizeof(status_)); + // @@protoc_insertion_point(copy_constructor:Tango.PMR.Stubs.StubDispenserResponse) +} + +void StubDispenserResponse::SharedCtor() { + ::memset(&dispenserid_, 0, static_cast<size_t>( + reinterpret_cast<char*>(&status_) - + reinterpret_cast<char*>(&dispenserid_)) + sizeof(status_)); + _cached_size_ = 0; +} + +StubDispenserResponse::~StubDispenserResponse() { + // @@protoc_insertion_point(destructor:Tango.PMR.Stubs.StubDispenserResponse) + SharedDtor(); +} + +void StubDispenserResponse::SharedDtor() { +} + +void StubDispenserResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* StubDispenserResponse::descriptor() { + protobuf_StubDispenserResponse_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_StubDispenserResponse_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const StubDispenserResponse& StubDispenserResponse::default_instance() { + protobuf_StubDispenserResponse_2eproto::InitDefaults(); + return *internal_default_instance(); +} + +StubDispenserResponse* StubDispenserResponse::New(::google::protobuf::Arena* arena) const { + StubDispenserResponse* n = new StubDispenserResponse; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void StubDispenserResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:Tango.PMR.Stubs.StubDispenserResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + ::memset(&dispenserid_, 0, static_cast<size_t>( + reinterpret_cast<char*>(&status_) - + reinterpret_cast<char*>(&dispenserid_)) + sizeof(status_)); + _internal_metadata_.Clear(); +} + +bool StubDispenserResponse::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.StubDispenserResponse) + 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 DispenserId = 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, &dispenserid_))); + } else { + goto handle_unusual; + } + break; + } + + // uint32 DispenserPosition = 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, &dispenserposition_))); + } else { + goto handle_unusual; + } + break; + } + + // uint32 InkWorningLevel = 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, &inkworninglevel_))); + } else { + goto handle_unusual; + } + break; + } + + // bool Status = 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, &status_))); + } 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.StubDispenserResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:Tango.PMR.Stubs.StubDispenserResponse) + return false; +#undef DO_ +} + +void StubDispenserResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Tango.PMR.Stubs.StubDispenserResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // uint32 DispenserId = 1; + if (this->dispenserid() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->dispenserid(), output); + } + + // uint32 DispenserPosition = 2; + if (this->dispenserposition() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->dispenserposition(), output); + } + + // uint32 InkWorningLevel = 3; + if (this->inkworninglevel() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->inkworninglevel(), output); + } + + // bool Status = 4; + if (this->status() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteBool(4, this->status(), 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.StubDispenserResponse) +} + +::google::protobuf::uint8* StubDispenserResponse::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:Tango.PMR.Stubs.StubDispenserResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // uint32 DispenserId = 1; + if (this->dispenserid() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->dispenserid(), target); + } + + // uint32 DispenserPosition = 2; + if (this->dispenserposition() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->dispenserposition(), target); + } + + // uint32 InkWorningLevel = 3; + if (this->inkworninglevel() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->inkworninglevel(), target); + } + + // bool Status = 4; + if (this->status() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(4, this->status(), 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.StubDispenserResponse) + return target; +} + +size_t StubDispenserResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:Tango.PMR.Stubs.StubDispenserResponse) + 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())); + } + // uint32 DispenserId = 1; + if (this->dispenserid() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->dispenserid()); + } + + // uint32 DispenserPosition = 2; + if (this->dispenserposition() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->dispenserposition()); + } + + // uint32 InkWorningLevel = 3; + if (this->inkworninglevel() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->inkworninglevel()); + } + + // bool Status = 4; + if (this->status() != 0) { + total_size += 1 + 1; + } + + 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 StubDispenserResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:Tango.PMR.Stubs.StubDispenserResponse) + GOOGLE_DCHECK_NE(&from, this); + const StubDispenserResponse* source = + ::google::protobuf::internal::DynamicCastToGenerated<const StubDispenserResponse>( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:Tango.PMR.Stubs.StubDispenserResponse) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:Tango.PMR.Stubs.StubDispenserResponse) + MergeFrom(*source); + } +} + +void StubDispenserResponse::MergeFrom(const StubDispenserResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:Tango.PMR.Stubs.StubDispenserResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.dispenserid() != 0) { + set_dispenserid(from.dispenserid()); + } + if (from.dispenserposition() != 0) { + set_dispenserposition(from.dispenserposition()); + } + if (from.inkworninglevel() != 0) { + set_inkworninglevel(from.inkworninglevel()); + } + if (from.status() != 0) { + set_status(from.status()); + } +} + +void StubDispenserResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:Tango.PMR.Stubs.StubDispenserResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void StubDispenserResponse::CopyFrom(const StubDispenserResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:Tango.PMR.Stubs.StubDispenserResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool StubDispenserResponse::IsInitialized() const { + return true; +} + +void StubDispenserResponse::Swap(StubDispenserResponse* other) { + if (other == this) return; + InternalSwap(other); +} +void StubDispenserResponse::InternalSwap(StubDispenserResponse* other) { + using std::swap; + swap(dispenserid_, other->dispenserid_); + swap(dispenserposition_, other->dispenserposition_); + swap(inkworninglevel_, other->inkworninglevel_); + swap(status_, other->status_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata StubDispenserResponse::GetMetadata() const { + protobuf_StubDispenserResponse_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_StubDispenserResponse_2eproto::file_level_metadata[kIndexInFileMessages]; +} + +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// StubDispenserResponse + +// uint32 DispenserId = 1; +void StubDispenserResponse::clear_dispenserid() { + dispenserid_ = 0u; +} +::google::protobuf::uint32 StubDispenserResponse::dispenserid() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubDispenserResponse.DispenserId) + return dispenserid_; +} +void StubDispenserResponse::set_dispenserid(::google::protobuf::uint32 value) { + + dispenserid_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubDispenserResponse.DispenserId) +} + +// uint32 DispenserPosition = 2; +void StubDispenserResponse::clear_dispenserposition() { + dispenserposition_ = 0u; +} +::google::protobuf::uint32 StubDispenserResponse::dispenserposition() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubDispenserResponse.DispenserPosition) + return dispenserposition_; +} +void StubDispenserResponse::set_dispenserposition(::google::protobuf::uint32 value) { + + dispenserposition_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubDispenserResponse.DispenserPosition) +} + +// uint32 InkWorningLevel = 3; +void StubDispenserResponse::clear_inkworninglevel() { + inkworninglevel_ = 0u; +} +::google::protobuf::uint32 StubDispenserResponse::inkworninglevel() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubDispenserResponse.InkWorningLevel) + return inkworninglevel_; +} +void StubDispenserResponse::set_inkworninglevel(::google::protobuf::uint32 value) { + + inkworninglevel_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubDispenserResponse.InkWorningLevel) +} + +// bool Status = 4; +void StubDispenserResponse::clear_status() { + status_ = false; +} +bool StubDispenserResponse::status() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubDispenserResponse.Status) + return status_; +} +void StubDispenserResponse::set_status(bool value) { + + status_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubDispenserResponse.Status) +} + +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS + +// @@protoc_insertion_point(namespace_scope) + +} // namespace Stubs +} // namespace PMR +} // namespace Tango + +// @@protoc_insertion_point(global_scope) diff --git a/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubDispenserResponse.pb.h b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubDispenserResponse.pb.h new file mode 100644 index 000000000..40f290dde --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubDispenserResponse.pb.h @@ -0,0 +1,262 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StubDispenserResponse.proto + +#ifndef PROTOBUF_StubDispenserResponse_2eproto__INCLUDED +#define PROTOBUF_StubDispenserResponse_2eproto__INCLUDED + +#include <string> + +#include <google/protobuf/stubs/common.h> + +#if GOOGLE_PROTOBUF_VERSION < 3004000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3004000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include <google/protobuf/io/coded_stream.h> +#include <google/protobuf/arena.h> +#include <google/protobuf/arenastring.h> +#include <google/protobuf/generated_message_table_driven.h> +#include <google/protobuf/generated_message_util.h> +#include <google/protobuf/metadata.h> +#include <google/protobuf/message.h> +#include <google/protobuf/repeated_field.h> // IWYU pragma: export +#include <google/protobuf/extension_set.h> // IWYU pragma: export +#include <google/protobuf/unknown_field_set.h> +// @@protoc_insertion_point(includes) +namespace Tango { +namespace PMR { +namespace Stubs { +class StubDispenserResponse; +class StubDispenserResponseDefaultTypeInternal; +extern StubDispenserResponseDefaultTypeInternal _StubDispenserResponse_default_instance_; +} // namespace Stubs +} // namespace PMR +} // namespace Tango + +namespace Tango { +namespace PMR { +namespace Stubs { + +namespace protobuf_StubDispenserResponse_2eproto { +// Internal implementation detail -- do not call these. +struct TableStruct { + static const ::google::protobuf::internal::ParseTableField entries[]; + static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; + static const ::google::protobuf::internal::ParseTable schema[]; + static const ::google::protobuf::uint32 offsets[]; + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static void InitDefaultsImpl(); +}; +void AddDescriptors(); +void InitDefaults(); +} // namespace protobuf_StubDispenserResponse_2eproto + +// =================================================================== + +class StubDispenserResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Tango.PMR.Stubs.StubDispenserResponse) */ { + public: + StubDispenserResponse(); + virtual ~StubDispenserResponse(); + + StubDispenserResponse(const StubDispenserResponse& from); + + inline StubDispenserResponse& operator=(const StubDispenserResponse& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + StubDispenserResponse(StubDispenserResponse&& from) noexcept + : StubDispenserResponse() { + *this = ::std::move(from); + } + + inline StubDispenserResponse& operator=(StubDispenserResponse&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const StubDispenserResponse& default_instance(); + + static inline const StubDispenserResponse* internal_default_instance() { + return reinterpret_cast<const StubDispenserResponse*>( + &_StubDispenserResponse_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 0; + + void Swap(StubDispenserResponse* other); + friend void swap(StubDispenserResponse& a, StubDispenserResponse& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline StubDispenserResponse* New() const PROTOBUF_FINAL { return New(NULL); } + + StubDispenserResponse* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const StubDispenserResponse& from); + void MergeFrom(const StubDispenserResponse& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(StubDispenserResponse* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // uint32 DispenserId = 1; + void clear_dispenserid(); + static const int kDispenserIdFieldNumber = 1; + ::google::protobuf::uint32 dispenserid() const; + void set_dispenserid(::google::protobuf::uint32 value); + + // uint32 DispenserPosition = 2; + void clear_dispenserposition(); + static const int kDispenserPositionFieldNumber = 2; + ::google::protobuf::uint32 dispenserposition() const; + void set_dispenserposition(::google::protobuf::uint32 value); + + // uint32 InkWorningLevel = 3; + void clear_inkworninglevel(); + static const int kInkWorningLevelFieldNumber = 3; + ::google::protobuf::uint32 inkworninglevel() const; + void set_inkworninglevel(::google::protobuf::uint32 value); + + // bool Status = 4; + void clear_status(); + static const int kStatusFieldNumber = 4; + bool status() const; + void set_status(bool value); + + // @@protoc_insertion_point(class_scope:Tango.PMR.Stubs.StubDispenserResponse) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::uint32 dispenserid_; + ::google::protobuf::uint32 dispenserposition_; + ::google::protobuf::uint32 inkworninglevel_; + bool status_; + mutable int _cached_size_; + friend struct protobuf_StubDispenserResponse_2eproto::TableStruct; +}; +// =================================================================== + + +// =================================================================== + +#if !PROTOBUF_INLINE_NOT_IN_HEADERS +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// StubDispenserResponse + +// uint32 DispenserId = 1; +inline void StubDispenserResponse::clear_dispenserid() { + dispenserid_ = 0u; +} +inline ::google::protobuf::uint32 StubDispenserResponse::dispenserid() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubDispenserResponse.DispenserId) + return dispenserid_; +} +inline void StubDispenserResponse::set_dispenserid(::google::protobuf::uint32 value) { + + dispenserid_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubDispenserResponse.DispenserId) +} + +// uint32 DispenserPosition = 2; +inline void StubDispenserResponse::clear_dispenserposition() { + dispenserposition_ = 0u; +} +inline ::google::protobuf::uint32 StubDispenserResponse::dispenserposition() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubDispenserResponse.DispenserPosition) + return dispenserposition_; +} +inline void StubDispenserResponse::set_dispenserposition(::google::protobuf::uint32 value) { + + dispenserposition_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubDispenserResponse.DispenserPosition) +} + +// uint32 InkWorningLevel = 3; +inline void StubDispenserResponse::clear_inkworninglevel() { + inkworninglevel_ = 0u; +} +inline ::google::protobuf::uint32 StubDispenserResponse::inkworninglevel() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubDispenserResponse.InkWorningLevel) + return inkworninglevel_; +} +inline void StubDispenserResponse::set_inkworninglevel(::google::protobuf::uint32 value) { + + inkworninglevel_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubDispenserResponse.InkWorningLevel) +} + +// bool Status = 4; +inline void StubDispenserResponse::clear_status() { + status_ = false; +} +inline bool StubDispenserResponse::status() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubDispenserResponse.Status) + return status_; +} +inline void StubDispenserResponse::set_status(bool value) { + + status_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubDispenserResponse.Status) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +#endif // !PROTOBUF_INLINE_NOT_IN_HEADERS + +// @@protoc_insertion_point(namespace_scope) + + +} // namespace Stubs +} // namespace PMR +} // namespace Tango + +// @@protoc_insertion_point(global_scope) + +#endif // PROTOBUF_StubDispenserResponse_2eproto__INCLUDED diff --git a/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubGPIOInputSetupRequest.pb.cc b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubGPIOInputSetupRequest.pb.cc new file mode 100644 index 000000000..d4ea1baed --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubGPIOInputSetupRequest.pb.cc @@ -0,0 +1,612 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StubGPIOInputSetupRequest.proto + +#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION +#include "StubGPIOInputSetupRequest.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 StubGPIOInputSetupRequestDefaultTypeInternal { +public: + ::google::protobuf::internal::ExplicitlyConstructed<StubGPIOInputSetupRequest> + _instance; +} _StubGPIOInputSetupRequest_default_instance_; + +namespace protobuf_StubGPIOInputSetupRequest_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(StubGPIOInputSetupRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubGPIOInputSetupRequest, portid_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubGPIOInputSetupRequest, pinid_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubGPIOInputSetupRequest, setinput_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubGPIOInputSetupRequest, setpullup_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(StubGPIOInputSetupRequest)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast<const ::google::protobuf::Message*>(&_StubGPIOInputSetupRequest_default_instance_), +}; + +namespace { + +void protobuf_AssignDescriptors() { + AddDescriptors(); + ::google::protobuf::MessageFactory* factory = NULL; + AssignDescriptors( + "StubGPIOInputSetupRequest.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(); + _StubGPIOInputSetupRequest_default_instance_._instance.DefaultConstruct(); + ::google::protobuf::internal::OnShutdownDestroyMessage( + &_StubGPIOInputSetupRequest_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\037StubGPIOInputSetupRequest.proto\022\017Tango" + ".PMR.Stubs\"_\n\031StubGPIOInputSetupRequest\022" + "\016\n\006PortId\030\001 \001(\t\022\r\n\005PinId\030\002 \001(\r\022\020\n\010SetInp" + "ut\030\003 \001(\r\022\021\n\tSetPullUP\030\004 \001(\rB\033\n\031com.twine" + ".tango.pmr.stubsb\006proto3" + }; + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + descriptor, 184); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "StubGPIOInputSetupRequest.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_StubGPIOInputSetupRequest_2eproto + + +// =================================================================== + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int StubGPIOInputSetupRequest::kPortIdFieldNumber; +const int StubGPIOInputSetupRequest::kPinIdFieldNumber; +const int StubGPIOInputSetupRequest::kSetInputFieldNumber; +const int StubGPIOInputSetupRequest::kSetPullUPFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +StubGPIOInputSetupRequest::StubGPIOInputSetupRequest() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_StubGPIOInputSetupRequest_2eproto::InitDefaults(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:Tango.PMR.Stubs.StubGPIOInputSetupRequest) +} +StubGPIOInputSetupRequest::StubGPIOInputSetupRequest(const StubGPIOInputSetupRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + portid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.portid().size() > 0) { + portid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.portid_); + } + ::memcpy(&pinid_, &from.pinid_, + static_cast<size_t>(reinterpret_cast<char*>(&setpullup_) - + reinterpret_cast<char*>(&pinid_)) + sizeof(setpullup_)); + // @@protoc_insertion_point(copy_constructor:Tango.PMR.Stubs.StubGPIOInputSetupRequest) +} + +void StubGPIOInputSetupRequest::SharedCtor() { + portid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&pinid_, 0, static_cast<size_t>( + reinterpret_cast<char*>(&setpullup_) - + reinterpret_cast<char*>(&pinid_)) + sizeof(setpullup_)); + _cached_size_ = 0; +} + +StubGPIOInputSetupRequest::~StubGPIOInputSetupRequest() { + // @@protoc_insertion_point(destructor:Tango.PMR.Stubs.StubGPIOInputSetupRequest) + SharedDtor(); +} + +void StubGPIOInputSetupRequest::SharedDtor() { + portid_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void StubGPIOInputSetupRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* StubGPIOInputSetupRequest::descriptor() { + protobuf_StubGPIOInputSetupRequest_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_StubGPIOInputSetupRequest_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const StubGPIOInputSetupRequest& StubGPIOInputSetupRequest::default_instance() { + protobuf_StubGPIOInputSetupRequest_2eproto::InitDefaults(); + return *internal_default_instance(); +} + +StubGPIOInputSetupRequest* StubGPIOInputSetupRequest::New(::google::protobuf::Arena* arena) const { + StubGPIOInputSetupRequest* n = new StubGPIOInputSetupRequest; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void StubGPIOInputSetupRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:Tango.PMR.Stubs.StubGPIOInputSetupRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + portid_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&pinid_, 0, static_cast<size_t>( + reinterpret_cast<char*>(&setpullup_) - + reinterpret_cast<char*>(&pinid_)) + sizeof(setpullup_)); + _internal_metadata_.Clear(); +} + +bool StubGPIOInputSetupRequest::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.StubGPIOInputSetupRequest) + 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)) { + // string PortId = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_portid())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->portid().data(), static_cast<int>(this->portid().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "Tango.PMR.Stubs.StubGPIOInputSetupRequest.PortId")); + } else { + goto handle_unusual; + } + break; + } + + // uint32 PinId = 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, &pinid_))); + } else { + goto handle_unusual; + } + break; + } + + // uint32 SetInput = 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, &setinput_))); + } else { + goto handle_unusual; + } + break; + } + + // uint32 SetPullUP = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &setpullup_))); + } 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.StubGPIOInputSetupRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:Tango.PMR.Stubs.StubGPIOInputSetupRequest) + return false; +#undef DO_ +} + +void StubGPIOInputSetupRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Tango.PMR.Stubs.StubGPIOInputSetupRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string PortId = 1; + if (this->portid().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->portid().data(), static_cast<int>(this->portid().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "Tango.PMR.Stubs.StubGPIOInputSetupRequest.PortId"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->portid(), output); + } + + // uint32 PinId = 2; + if (this->pinid() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->pinid(), output); + } + + // uint32 SetInput = 3; + if (this->setinput() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->setinput(), output); + } + + // uint32 SetPullUP = 4; + if (this->setpullup() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->setpullup(), 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.StubGPIOInputSetupRequest) +} + +::google::protobuf::uint8* StubGPIOInputSetupRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:Tango.PMR.Stubs.StubGPIOInputSetupRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string PortId = 1; + if (this->portid().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->portid().data(), static_cast<int>(this->portid().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "Tango.PMR.Stubs.StubGPIOInputSetupRequest.PortId"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->portid(), target); + } + + // uint32 PinId = 2; + if (this->pinid() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->pinid(), target); + } + + // uint32 SetInput = 3; + if (this->setinput() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->setinput(), target); + } + + // uint32 SetPullUP = 4; + if (this->setpullup() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(4, this->setpullup(), 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.StubGPIOInputSetupRequest) + return target; +} + +size_t StubGPIOInputSetupRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:Tango.PMR.Stubs.StubGPIOInputSetupRequest) + 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 PortId = 1; + if (this->portid().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->portid()); + } + + // uint32 PinId = 2; + if (this->pinid() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->pinid()); + } + + // uint32 SetInput = 3; + if (this->setinput() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->setinput()); + } + + // uint32 SetPullUP = 4; + if (this->setpullup() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->setpullup()); + } + + 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 StubGPIOInputSetupRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:Tango.PMR.Stubs.StubGPIOInputSetupRequest) + GOOGLE_DCHECK_NE(&from, this); + const StubGPIOInputSetupRequest* source = + ::google::protobuf::internal::DynamicCastToGenerated<const StubGPIOInputSetupRequest>( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:Tango.PMR.Stubs.StubGPIOInputSetupRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:Tango.PMR.Stubs.StubGPIOInputSetupRequest) + MergeFrom(*source); + } +} + +void StubGPIOInputSetupRequest::MergeFrom(const StubGPIOInputSetupRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:Tango.PMR.Stubs.StubGPIOInputSetupRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.portid().size() > 0) { + + portid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.portid_); + } + if (from.pinid() != 0) { + set_pinid(from.pinid()); + } + if (from.setinput() != 0) { + set_setinput(from.setinput()); + } + if (from.setpullup() != 0) { + set_setpullup(from.setpullup()); + } +} + +void StubGPIOInputSetupRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:Tango.PMR.Stubs.StubGPIOInputSetupRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void StubGPIOInputSetupRequest::CopyFrom(const StubGPIOInputSetupRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:Tango.PMR.Stubs.StubGPIOInputSetupRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool StubGPIOInputSetupRequest::IsInitialized() const { + return true; +} + +void StubGPIOInputSetupRequest::Swap(StubGPIOInputSetupRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void StubGPIOInputSetupRequest::InternalSwap(StubGPIOInputSetupRequest* other) { + using std::swap; + portid_.Swap(&other->portid_); + swap(pinid_, other->pinid_); + swap(setinput_, other->setinput_); + swap(setpullup_, other->setpullup_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata StubGPIOInputSetupRequest::GetMetadata() const { + protobuf_StubGPIOInputSetupRequest_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_StubGPIOInputSetupRequest_2eproto::file_level_metadata[kIndexInFileMessages]; +} + +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// StubGPIOInputSetupRequest + +// string PortId = 1; +void StubGPIOInputSetupRequest::clear_portid() { + portid_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +const ::std::string& StubGPIOInputSetupRequest::portid() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubGPIOInputSetupRequest.PortId) + return portid_.GetNoArena(); +} +void StubGPIOInputSetupRequest::set_portid(const ::std::string& value) { + + portid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubGPIOInputSetupRequest.PortId) +} +#if LANG_CXX11 +void StubGPIOInputSetupRequest::set_portid(::std::string&& value) { + + portid_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:Tango.PMR.Stubs.StubGPIOInputSetupRequest.PortId) +} +#endif +void StubGPIOInputSetupRequest::set_portid(const char* value) { + GOOGLE_DCHECK(value != NULL); + + portid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:Tango.PMR.Stubs.StubGPIOInputSetupRequest.PortId) +} +void StubGPIOInputSetupRequest::set_portid(const char* value, size_t size) { + + portid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast<const char*>(value), size)); + // @@protoc_insertion_point(field_set_pointer:Tango.PMR.Stubs.StubGPIOInputSetupRequest.PortId) +} +::std::string* StubGPIOInputSetupRequest::mutable_portid() { + + // @@protoc_insertion_point(field_mutable:Tango.PMR.Stubs.StubGPIOInputSetupRequest.PortId) + return portid_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +::std::string* StubGPIOInputSetupRequest::release_portid() { + // @@protoc_insertion_point(field_release:Tango.PMR.Stubs.StubGPIOInputSetupRequest.PortId) + + return portid_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +void StubGPIOInputSetupRequest::set_allocated_portid(::std::string* portid) { + if (portid != NULL) { + + } else { + + } + portid_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), portid); + // @@protoc_insertion_point(field_set_allocated:Tango.PMR.Stubs.StubGPIOInputSetupRequest.PortId) +} + +// uint32 PinId = 2; +void StubGPIOInputSetupRequest::clear_pinid() { + pinid_ = 0u; +} +::google::protobuf::uint32 StubGPIOInputSetupRequest::pinid() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubGPIOInputSetupRequest.PinId) + return pinid_; +} +void StubGPIOInputSetupRequest::set_pinid(::google::protobuf::uint32 value) { + + pinid_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubGPIOInputSetupRequest.PinId) +} + +// uint32 SetInput = 3; +void StubGPIOInputSetupRequest::clear_setinput() { + setinput_ = 0u; +} +::google::protobuf::uint32 StubGPIOInputSetupRequest::setinput() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubGPIOInputSetupRequest.SetInput) + return setinput_; +} +void StubGPIOInputSetupRequest::set_setinput(::google::protobuf::uint32 value) { + + setinput_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubGPIOInputSetupRequest.SetInput) +} + +// uint32 SetPullUP = 4; +void StubGPIOInputSetupRequest::clear_setpullup() { + setpullup_ = 0u; +} +::google::protobuf::uint32 StubGPIOInputSetupRequest::setpullup() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubGPIOInputSetupRequest.SetPullUP) + return setpullup_; +} +void StubGPIOInputSetupRequest::set_setpullup(::google::protobuf::uint32 value) { + + setpullup_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubGPIOInputSetupRequest.SetPullUP) +} + +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS + +// @@protoc_insertion_point(namespace_scope) + +} // namespace Stubs +} // namespace PMR +} // namespace Tango + +// @@protoc_insertion_point(global_scope) diff --git a/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubGPIOInputSetupRequest.pb.h b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubGPIOInputSetupRequest.pb.h new file mode 100644 index 000000000..00238e3b2 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubGPIOInputSetupRequest.pb.h @@ -0,0 +1,309 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StubGPIOInputSetupRequest.proto + +#ifndef PROTOBUF_StubGPIOInputSetupRequest_2eproto__INCLUDED +#define PROTOBUF_StubGPIOInputSetupRequest_2eproto__INCLUDED + +#include <string> + +#include <google/protobuf/stubs/common.h> + +#if GOOGLE_PROTOBUF_VERSION < 3004000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3004000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include <google/protobuf/io/coded_stream.h> +#include <google/protobuf/arena.h> +#include <google/protobuf/arenastring.h> +#include <google/protobuf/generated_message_table_driven.h> +#include <google/protobuf/generated_message_util.h> +#include <google/protobuf/metadata.h> +#include <google/protobuf/message.h> +#include <google/protobuf/repeated_field.h> // IWYU pragma: export +#include <google/protobuf/extension_set.h> // IWYU pragma: export +#include <google/protobuf/unknown_field_set.h> +// @@protoc_insertion_point(includes) +namespace Tango { +namespace PMR { +namespace Stubs { +class StubGPIOInputSetupRequest; +class StubGPIOInputSetupRequestDefaultTypeInternal; +extern StubGPIOInputSetupRequestDefaultTypeInternal _StubGPIOInputSetupRequest_default_instance_; +} // namespace Stubs +} // namespace PMR +} // namespace Tango + +namespace Tango { +namespace PMR { +namespace Stubs { + +namespace protobuf_StubGPIOInputSetupRequest_2eproto { +// Internal implementation detail -- do not call these. +struct TableStruct { + static const ::google::protobuf::internal::ParseTableField entries[]; + static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; + static const ::google::protobuf::internal::ParseTable schema[]; + static const ::google::protobuf::uint32 offsets[]; + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static void InitDefaultsImpl(); +}; +void AddDescriptors(); +void InitDefaults(); +} // namespace protobuf_StubGPIOInputSetupRequest_2eproto + +// =================================================================== + +class StubGPIOInputSetupRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Tango.PMR.Stubs.StubGPIOInputSetupRequest) */ { + public: + StubGPIOInputSetupRequest(); + virtual ~StubGPIOInputSetupRequest(); + + StubGPIOInputSetupRequest(const StubGPIOInputSetupRequest& from); + + inline StubGPIOInputSetupRequest& operator=(const StubGPIOInputSetupRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + StubGPIOInputSetupRequest(StubGPIOInputSetupRequest&& from) noexcept + : StubGPIOInputSetupRequest() { + *this = ::std::move(from); + } + + inline StubGPIOInputSetupRequest& operator=(StubGPIOInputSetupRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const StubGPIOInputSetupRequest& default_instance(); + + static inline const StubGPIOInputSetupRequest* internal_default_instance() { + return reinterpret_cast<const StubGPIOInputSetupRequest*>( + &_StubGPIOInputSetupRequest_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 0; + + void Swap(StubGPIOInputSetupRequest* other); + friend void swap(StubGPIOInputSetupRequest& a, StubGPIOInputSetupRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline StubGPIOInputSetupRequest* New() const PROTOBUF_FINAL { return New(NULL); } + + StubGPIOInputSetupRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const StubGPIOInputSetupRequest& from); + void MergeFrom(const StubGPIOInputSetupRequest& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(StubGPIOInputSetupRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string PortId = 1; + void clear_portid(); + static const int kPortIdFieldNumber = 1; + const ::std::string& portid() const; + void set_portid(const ::std::string& value); + #if LANG_CXX11 + void set_portid(::std::string&& value); + #endif + void set_portid(const char* value); + void set_portid(const char* value, size_t size); + ::std::string* mutable_portid(); + ::std::string* release_portid(); + void set_allocated_portid(::std::string* portid); + + // uint32 PinId = 2; + void clear_pinid(); + static const int kPinIdFieldNumber = 2; + ::google::protobuf::uint32 pinid() const; + void set_pinid(::google::protobuf::uint32 value); + + // uint32 SetInput = 3; + void clear_setinput(); + static const int kSetInputFieldNumber = 3; + ::google::protobuf::uint32 setinput() const; + void set_setinput(::google::protobuf::uint32 value); + + // uint32 SetPullUP = 4; + void clear_setpullup(); + static const int kSetPullUPFieldNumber = 4; + ::google::protobuf::uint32 setpullup() const; + void set_setpullup(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:Tango.PMR.Stubs.StubGPIOInputSetupRequest) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr portid_; + ::google::protobuf::uint32 pinid_; + ::google::protobuf::uint32 setinput_; + ::google::protobuf::uint32 setpullup_; + mutable int _cached_size_; + friend struct protobuf_StubGPIOInputSetupRequest_2eproto::TableStruct; +}; +// =================================================================== + + +// =================================================================== + +#if !PROTOBUF_INLINE_NOT_IN_HEADERS +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// StubGPIOInputSetupRequest + +// string PortId = 1; +inline void StubGPIOInputSetupRequest::clear_portid() { + portid_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& StubGPIOInputSetupRequest::portid() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubGPIOInputSetupRequest.PortId) + return portid_.GetNoArena(); +} +inline void StubGPIOInputSetupRequest::set_portid(const ::std::string& value) { + + portid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubGPIOInputSetupRequest.PortId) +} +#if LANG_CXX11 +inline void StubGPIOInputSetupRequest::set_portid(::std::string&& value) { + + portid_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:Tango.PMR.Stubs.StubGPIOInputSetupRequest.PortId) +} +#endif +inline void StubGPIOInputSetupRequest::set_portid(const char* value) { + GOOGLE_DCHECK(value != NULL); + + portid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:Tango.PMR.Stubs.StubGPIOInputSetupRequest.PortId) +} +inline void StubGPIOInputSetupRequest::set_portid(const char* value, size_t size) { + + portid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast<const char*>(value), size)); + // @@protoc_insertion_point(field_set_pointer:Tango.PMR.Stubs.StubGPIOInputSetupRequest.PortId) +} +inline ::std::string* StubGPIOInputSetupRequest::mutable_portid() { + + // @@protoc_insertion_point(field_mutable:Tango.PMR.Stubs.StubGPIOInputSetupRequest.PortId) + return portid_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* StubGPIOInputSetupRequest::release_portid() { + // @@protoc_insertion_point(field_release:Tango.PMR.Stubs.StubGPIOInputSetupRequest.PortId) + + return portid_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void StubGPIOInputSetupRequest::set_allocated_portid(::std::string* portid) { + if (portid != NULL) { + + } else { + + } + portid_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), portid); + // @@protoc_insertion_point(field_set_allocated:Tango.PMR.Stubs.StubGPIOInputSetupRequest.PortId) +} + +// uint32 PinId = 2; +inline void StubGPIOInputSetupRequest::clear_pinid() { + pinid_ = 0u; +} +inline ::google::protobuf::uint32 StubGPIOInputSetupRequest::pinid() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubGPIOInputSetupRequest.PinId) + return pinid_; +} +inline void StubGPIOInputSetupRequest::set_pinid(::google::protobuf::uint32 value) { + + pinid_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubGPIOInputSetupRequest.PinId) +} + +// uint32 SetInput = 3; +inline void StubGPIOInputSetupRequest::clear_setinput() { + setinput_ = 0u; +} +inline ::google::protobuf::uint32 StubGPIOInputSetupRequest::setinput() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubGPIOInputSetupRequest.SetInput) + return setinput_; +} +inline void StubGPIOInputSetupRequest::set_setinput(::google::protobuf::uint32 value) { + + setinput_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubGPIOInputSetupRequest.SetInput) +} + +// uint32 SetPullUP = 4; +inline void StubGPIOInputSetupRequest::clear_setpullup() { + setpullup_ = 0u; +} +inline ::google::protobuf::uint32 StubGPIOInputSetupRequest::setpullup() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubGPIOInputSetupRequest.SetPullUP) + return setpullup_; +} +inline void StubGPIOInputSetupRequest::set_setpullup(::google::protobuf::uint32 value) { + + setpullup_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubGPIOInputSetupRequest.SetPullUP) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +#endif // !PROTOBUF_INLINE_NOT_IN_HEADERS + +// @@protoc_insertion_point(namespace_scope) + + +} // namespace Stubs +} // namespace PMR +} // namespace Tango + +// @@protoc_insertion_point(global_scope) + +#endif // PROTOBUF_StubGPIOInputSetupRequest_2eproto__INCLUDED diff --git a/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubGPIOInputSetupResponse.pb.cc b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubGPIOInputSetupResponse.pb.cc new file mode 100644 index 000000000..616670dd2 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubGPIOInputSetupResponse.pb.cc @@ -0,0 +1,561 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StubGPIOInputSetupResponse.proto + +#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION +#include "StubGPIOInputSetupResponse.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 StubGPIOInputSetupResponseDefaultTypeInternal { +public: + ::google::protobuf::internal::ExplicitlyConstructed<StubGPIOInputSetupResponse> + _instance; +} _StubGPIOInputSetupResponse_default_instance_; + +namespace protobuf_StubGPIOInputSetupResponse_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(StubGPIOInputSetupResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubGPIOInputSetupResponse, portid_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubGPIOInputSetupResponse, pinid_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubGPIOInputSetupResponse, status_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(StubGPIOInputSetupResponse)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast<const ::google::protobuf::Message*>(&_StubGPIOInputSetupResponse_default_instance_), +}; + +namespace { + +void protobuf_AssignDescriptors() { + AddDescriptors(); + ::google::protobuf::MessageFactory* factory = NULL; + AssignDescriptors( + "StubGPIOInputSetupResponse.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(); + _StubGPIOInputSetupResponse_default_instance_._instance.DefaultConstruct(); + ::google::protobuf::internal::OnShutdownDestroyMessage( + &_StubGPIOInputSetupResponse_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 StubGPIOInputSetupResponse.proto\022\017Tang" + "o.PMR.Stubs\"K\n\032StubGPIOInputSetupRespons" + "e\022\016\n\006PortId\030\001 \001(\t\022\r\n\005PinId\030\002 \001(\r\022\016\n\006Stat" + "us\030\003 \001(\rB\033\n\031com.twine.tango.pmr.stubsb\006p" + "roto3" + }; + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + descriptor, 165); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "StubGPIOInputSetupResponse.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_StubGPIOInputSetupResponse_2eproto + + +// =================================================================== + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int StubGPIOInputSetupResponse::kPortIdFieldNumber; +const int StubGPIOInputSetupResponse::kPinIdFieldNumber; +const int StubGPIOInputSetupResponse::kStatusFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +StubGPIOInputSetupResponse::StubGPIOInputSetupResponse() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_StubGPIOInputSetupResponse_2eproto::InitDefaults(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:Tango.PMR.Stubs.StubGPIOInputSetupResponse) +} +StubGPIOInputSetupResponse::StubGPIOInputSetupResponse(const StubGPIOInputSetupResponse& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + portid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.portid().size() > 0) { + portid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.portid_); + } + ::memcpy(&pinid_, &from.pinid_, + static_cast<size_t>(reinterpret_cast<char*>(&status_) - + reinterpret_cast<char*>(&pinid_)) + sizeof(status_)); + // @@protoc_insertion_point(copy_constructor:Tango.PMR.Stubs.StubGPIOInputSetupResponse) +} + +void StubGPIOInputSetupResponse::SharedCtor() { + portid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&pinid_, 0, static_cast<size_t>( + reinterpret_cast<char*>(&status_) - + reinterpret_cast<char*>(&pinid_)) + sizeof(status_)); + _cached_size_ = 0; +} + +StubGPIOInputSetupResponse::~StubGPIOInputSetupResponse() { + // @@protoc_insertion_point(destructor:Tango.PMR.Stubs.StubGPIOInputSetupResponse) + SharedDtor(); +} + +void StubGPIOInputSetupResponse::SharedDtor() { + portid_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void StubGPIOInputSetupResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* StubGPIOInputSetupResponse::descriptor() { + protobuf_StubGPIOInputSetupResponse_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_StubGPIOInputSetupResponse_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const StubGPIOInputSetupResponse& StubGPIOInputSetupResponse::default_instance() { + protobuf_StubGPIOInputSetupResponse_2eproto::InitDefaults(); + return *internal_default_instance(); +} + +StubGPIOInputSetupResponse* StubGPIOInputSetupResponse::New(::google::protobuf::Arena* arena) const { + StubGPIOInputSetupResponse* n = new StubGPIOInputSetupResponse; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void StubGPIOInputSetupResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:Tango.PMR.Stubs.StubGPIOInputSetupResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + portid_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&pinid_, 0, static_cast<size_t>( + reinterpret_cast<char*>(&status_) - + reinterpret_cast<char*>(&pinid_)) + sizeof(status_)); + _internal_metadata_.Clear(); +} + +bool StubGPIOInputSetupResponse::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.StubGPIOInputSetupResponse) + 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)) { + // string PortId = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_portid())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->portid().data(), static_cast<int>(this->portid().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "Tango.PMR.Stubs.StubGPIOInputSetupResponse.PortId")); + } else { + goto handle_unusual; + } + break; + } + + // uint32 PinId = 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, &pinid_))); + } else { + goto handle_unusual; + } + break; + } + + // uint32 Status = 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, &status_))); + } 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.StubGPIOInputSetupResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:Tango.PMR.Stubs.StubGPIOInputSetupResponse) + return false; +#undef DO_ +} + +void StubGPIOInputSetupResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Tango.PMR.Stubs.StubGPIOInputSetupResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string PortId = 1; + if (this->portid().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->portid().data(), static_cast<int>(this->portid().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "Tango.PMR.Stubs.StubGPIOInputSetupResponse.PortId"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->portid(), output); + } + + // uint32 PinId = 2; + if (this->pinid() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->pinid(), output); + } + + // uint32 Status = 3; + if (this->status() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->status(), 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.StubGPIOInputSetupResponse) +} + +::google::protobuf::uint8* StubGPIOInputSetupResponse::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:Tango.PMR.Stubs.StubGPIOInputSetupResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string PortId = 1; + if (this->portid().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->portid().data(), static_cast<int>(this->portid().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "Tango.PMR.Stubs.StubGPIOInputSetupResponse.PortId"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->portid(), target); + } + + // uint32 PinId = 2; + if (this->pinid() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->pinid(), target); + } + + // uint32 Status = 3; + if (this->status() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->status(), 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.StubGPIOInputSetupResponse) + return target; +} + +size_t StubGPIOInputSetupResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:Tango.PMR.Stubs.StubGPIOInputSetupResponse) + 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 PortId = 1; + if (this->portid().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->portid()); + } + + // uint32 PinId = 2; + if (this->pinid() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->pinid()); + } + + // uint32 Status = 3; + if (this->status() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->status()); + } + + 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 StubGPIOInputSetupResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:Tango.PMR.Stubs.StubGPIOInputSetupResponse) + GOOGLE_DCHECK_NE(&from, this); + const StubGPIOInputSetupResponse* source = + ::google::protobuf::internal::DynamicCastToGenerated<const StubGPIOInputSetupResponse>( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:Tango.PMR.Stubs.StubGPIOInputSetupResponse) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:Tango.PMR.Stubs.StubGPIOInputSetupResponse) + MergeFrom(*source); + } +} + +void StubGPIOInputSetupResponse::MergeFrom(const StubGPIOInputSetupResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:Tango.PMR.Stubs.StubGPIOInputSetupResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.portid().size() > 0) { + + portid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.portid_); + } + if (from.pinid() != 0) { + set_pinid(from.pinid()); + } + if (from.status() != 0) { + set_status(from.status()); + } +} + +void StubGPIOInputSetupResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:Tango.PMR.Stubs.StubGPIOInputSetupResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void StubGPIOInputSetupResponse::CopyFrom(const StubGPIOInputSetupResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:Tango.PMR.Stubs.StubGPIOInputSetupResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool StubGPIOInputSetupResponse::IsInitialized() const { + return true; +} + +void StubGPIOInputSetupResponse::Swap(StubGPIOInputSetupResponse* other) { + if (other == this) return; + InternalSwap(other); +} +void StubGPIOInputSetupResponse::InternalSwap(StubGPIOInputSetupResponse* other) { + using std::swap; + portid_.Swap(&other->portid_); + swap(pinid_, other->pinid_); + swap(status_, other->status_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata StubGPIOInputSetupResponse::GetMetadata() const { + protobuf_StubGPIOInputSetupResponse_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_StubGPIOInputSetupResponse_2eproto::file_level_metadata[kIndexInFileMessages]; +} + +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// StubGPIOInputSetupResponse + +// string PortId = 1; +void StubGPIOInputSetupResponse::clear_portid() { + portid_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +const ::std::string& StubGPIOInputSetupResponse::portid() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubGPIOInputSetupResponse.PortId) + return portid_.GetNoArena(); +} +void StubGPIOInputSetupResponse::set_portid(const ::std::string& value) { + + portid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubGPIOInputSetupResponse.PortId) +} +#if LANG_CXX11 +void StubGPIOInputSetupResponse::set_portid(::std::string&& value) { + + portid_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:Tango.PMR.Stubs.StubGPIOInputSetupResponse.PortId) +} +#endif +void StubGPIOInputSetupResponse::set_portid(const char* value) { + GOOGLE_DCHECK(value != NULL); + + portid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:Tango.PMR.Stubs.StubGPIOInputSetupResponse.PortId) +} +void StubGPIOInputSetupResponse::set_portid(const char* value, size_t size) { + + portid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast<const char*>(value), size)); + // @@protoc_insertion_point(field_set_pointer:Tango.PMR.Stubs.StubGPIOInputSetupResponse.PortId) +} +::std::string* StubGPIOInputSetupResponse::mutable_portid() { + + // @@protoc_insertion_point(field_mutable:Tango.PMR.Stubs.StubGPIOInputSetupResponse.PortId) + return portid_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +::std::string* StubGPIOInputSetupResponse::release_portid() { + // @@protoc_insertion_point(field_release:Tango.PMR.Stubs.StubGPIOInputSetupResponse.PortId) + + return portid_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +void StubGPIOInputSetupResponse::set_allocated_portid(::std::string* portid) { + if (portid != NULL) { + + } else { + + } + portid_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), portid); + // @@protoc_insertion_point(field_set_allocated:Tango.PMR.Stubs.StubGPIOInputSetupResponse.PortId) +} + +// uint32 PinId = 2; +void StubGPIOInputSetupResponse::clear_pinid() { + pinid_ = 0u; +} +::google::protobuf::uint32 StubGPIOInputSetupResponse::pinid() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubGPIOInputSetupResponse.PinId) + return pinid_; +} +void StubGPIOInputSetupResponse::set_pinid(::google::protobuf::uint32 value) { + + pinid_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubGPIOInputSetupResponse.PinId) +} + +// uint32 Status = 3; +void StubGPIOInputSetupResponse::clear_status() { + status_ = 0u; +} +::google::protobuf::uint32 StubGPIOInputSetupResponse::status() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubGPIOInputSetupResponse.Status) + return status_; +} +void StubGPIOInputSetupResponse::set_status(::google::protobuf::uint32 value) { + + status_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubGPIOInputSetupResponse.Status) +} + +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS + +// @@protoc_insertion_point(namespace_scope) + +} // namespace Stubs +} // namespace PMR +} // namespace Tango + +// @@protoc_insertion_point(global_scope) diff --git a/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubGPIOInputSetupResponse.pb.h b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubGPIOInputSetupResponse.pb.h new file mode 100644 index 000000000..e49ae028a --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubGPIOInputSetupResponse.pb.h @@ -0,0 +1,288 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StubGPIOInputSetupResponse.proto + +#ifndef PROTOBUF_StubGPIOInputSetupResponse_2eproto__INCLUDED +#define PROTOBUF_StubGPIOInputSetupResponse_2eproto__INCLUDED + +#include <string> + +#include <google/protobuf/stubs/common.h> + +#if GOOGLE_PROTOBUF_VERSION < 3004000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3004000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include <google/protobuf/io/coded_stream.h> +#include <google/protobuf/arena.h> +#include <google/protobuf/arenastring.h> +#include <google/protobuf/generated_message_table_driven.h> +#include <google/protobuf/generated_message_util.h> +#include <google/protobuf/metadata.h> +#include <google/protobuf/message.h> +#include <google/protobuf/repeated_field.h> // IWYU pragma: export +#include <google/protobuf/extension_set.h> // IWYU pragma: export +#include <google/protobuf/unknown_field_set.h> +// @@protoc_insertion_point(includes) +namespace Tango { +namespace PMR { +namespace Stubs { +class StubGPIOInputSetupResponse; +class StubGPIOInputSetupResponseDefaultTypeInternal; +extern StubGPIOInputSetupResponseDefaultTypeInternal _StubGPIOInputSetupResponse_default_instance_; +} // namespace Stubs +} // namespace PMR +} // namespace Tango + +namespace Tango { +namespace PMR { +namespace Stubs { + +namespace protobuf_StubGPIOInputSetupResponse_2eproto { +// Internal implementation detail -- do not call these. +struct TableStruct { + static const ::google::protobuf::internal::ParseTableField entries[]; + static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; + static const ::google::protobuf::internal::ParseTable schema[]; + static const ::google::protobuf::uint32 offsets[]; + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static void InitDefaultsImpl(); +}; +void AddDescriptors(); +void InitDefaults(); +} // namespace protobuf_StubGPIOInputSetupResponse_2eproto + +// =================================================================== + +class StubGPIOInputSetupResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Tango.PMR.Stubs.StubGPIOInputSetupResponse) */ { + public: + StubGPIOInputSetupResponse(); + virtual ~StubGPIOInputSetupResponse(); + + StubGPIOInputSetupResponse(const StubGPIOInputSetupResponse& from); + + inline StubGPIOInputSetupResponse& operator=(const StubGPIOInputSetupResponse& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + StubGPIOInputSetupResponse(StubGPIOInputSetupResponse&& from) noexcept + : StubGPIOInputSetupResponse() { + *this = ::std::move(from); + } + + inline StubGPIOInputSetupResponse& operator=(StubGPIOInputSetupResponse&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const StubGPIOInputSetupResponse& default_instance(); + + static inline const StubGPIOInputSetupResponse* internal_default_instance() { + return reinterpret_cast<const StubGPIOInputSetupResponse*>( + &_StubGPIOInputSetupResponse_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 0; + + void Swap(StubGPIOInputSetupResponse* other); + friend void swap(StubGPIOInputSetupResponse& a, StubGPIOInputSetupResponse& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline StubGPIOInputSetupResponse* New() const PROTOBUF_FINAL { return New(NULL); } + + StubGPIOInputSetupResponse* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const StubGPIOInputSetupResponse& from); + void MergeFrom(const StubGPIOInputSetupResponse& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(StubGPIOInputSetupResponse* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string PortId = 1; + void clear_portid(); + static const int kPortIdFieldNumber = 1; + const ::std::string& portid() const; + void set_portid(const ::std::string& value); + #if LANG_CXX11 + void set_portid(::std::string&& value); + #endif + void set_portid(const char* value); + void set_portid(const char* value, size_t size); + ::std::string* mutable_portid(); + ::std::string* release_portid(); + void set_allocated_portid(::std::string* portid); + + // uint32 PinId = 2; + void clear_pinid(); + static const int kPinIdFieldNumber = 2; + ::google::protobuf::uint32 pinid() const; + void set_pinid(::google::protobuf::uint32 value); + + // uint32 Status = 3; + void clear_status(); + static const int kStatusFieldNumber = 3; + ::google::protobuf::uint32 status() const; + void set_status(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:Tango.PMR.Stubs.StubGPIOInputSetupResponse) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr portid_; + ::google::protobuf::uint32 pinid_; + ::google::protobuf::uint32 status_; + mutable int _cached_size_; + friend struct protobuf_StubGPIOInputSetupResponse_2eproto::TableStruct; +}; +// =================================================================== + + +// =================================================================== + +#if !PROTOBUF_INLINE_NOT_IN_HEADERS +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// StubGPIOInputSetupResponse + +// string PortId = 1; +inline void StubGPIOInputSetupResponse::clear_portid() { + portid_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& StubGPIOInputSetupResponse::portid() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubGPIOInputSetupResponse.PortId) + return portid_.GetNoArena(); +} +inline void StubGPIOInputSetupResponse::set_portid(const ::std::string& value) { + + portid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubGPIOInputSetupResponse.PortId) +} +#if LANG_CXX11 +inline void StubGPIOInputSetupResponse::set_portid(::std::string&& value) { + + portid_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:Tango.PMR.Stubs.StubGPIOInputSetupResponse.PortId) +} +#endif +inline void StubGPIOInputSetupResponse::set_portid(const char* value) { + GOOGLE_DCHECK(value != NULL); + + portid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:Tango.PMR.Stubs.StubGPIOInputSetupResponse.PortId) +} +inline void StubGPIOInputSetupResponse::set_portid(const char* value, size_t size) { + + portid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast<const char*>(value), size)); + // @@protoc_insertion_point(field_set_pointer:Tango.PMR.Stubs.StubGPIOInputSetupResponse.PortId) +} +inline ::std::string* StubGPIOInputSetupResponse::mutable_portid() { + + // @@protoc_insertion_point(field_mutable:Tango.PMR.Stubs.StubGPIOInputSetupResponse.PortId) + return portid_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* StubGPIOInputSetupResponse::release_portid() { + // @@protoc_insertion_point(field_release:Tango.PMR.Stubs.StubGPIOInputSetupResponse.PortId) + + return portid_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void StubGPIOInputSetupResponse::set_allocated_portid(::std::string* portid) { + if (portid != NULL) { + + } else { + + } + portid_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), portid); + // @@protoc_insertion_point(field_set_allocated:Tango.PMR.Stubs.StubGPIOInputSetupResponse.PortId) +} + +// uint32 PinId = 2; +inline void StubGPIOInputSetupResponse::clear_pinid() { + pinid_ = 0u; +} +inline ::google::protobuf::uint32 StubGPIOInputSetupResponse::pinid() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubGPIOInputSetupResponse.PinId) + return pinid_; +} +inline void StubGPIOInputSetupResponse::set_pinid(::google::protobuf::uint32 value) { + + pinid_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubGPIOInputSetupResponse.PinId) +} + +// uint32 Status = 3; +inline void StubGPIOInputSetupResponse::clear_status() { + status_ = 0u; +} +inline ::google::protobuf::uint32 StubGPIOInputSetupResponse::status() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubGPIOInputSetupResponse.Status) + return status_; +} +inline void StubGPIOInputSetupResponse::set_status(::google::protobuf::uint32 value) { + + status_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubGPIOInputSetupResponse.Status) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +#endif // !PROTOBUF_INLINE_NOT_IN_HEADERS + +// @@protoc_insertion_point(namespace_scope) + + +} // namespace Stubs +} // namespace PMR +} // namespace Tango + +// @@protoc_insertion_point(global_scope) + +#endif // PROTOBUF_StubGPIOInputSetupResponse_2eproto__INCLUDED diff --git a/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubGPIOReadBitRequest.pb.cc b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubGPIOReadBitRequest.pb.cc new file mode 100644 index 000000000..f70dce580 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubGPIOReadBitRequest.pb.cc @@ -0,0 +1,608 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StubGPIOReadBitRequest.proto + +#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION +#include "StubGPIOReadBitRequest.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 StubGPIOReadBitRequestDefaultTypeInternal { +public: + ::google::protobuf::internal::ExplicitlyConstructed<StubGPIOReadBitRequest> + _instance; +} _StubGPIOReadBitRequest_default_instance_; + +namespace protobuf_StubGPIOReadBitRequest_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(StubGPIOReadBitRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubGPIOReadBitRequest, portid_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubGPIOReadBitRequest, pinid_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubGPIOReadBitRequest, polling_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubGPIOReadBitRequest, pollexpvalue_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(StubGPIOReadBitRequest)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast<const ::google::protobuf::Message*>(&_StubGPIOReadBitRequest_default_instance_), +}; + +namespace { + +void protobuf_AssignDescriptors() { + AddDescriptors(); + ::google::protobuf::MessageFactory* factory = NULL; + AssignDescriptors( + "StubGPIOReadBitRequest.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(); + _StubGPIOReadBitRequest_default_instance_._instance.DefaultConstruct(); + ::google::protobuf::internal::OnShutdownDestroyMessage( + &_StubGPIOReadBitRequest_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\034StubGPIOReadBitRequest.proto\022\017Tango.PM" + "R.Stubs\"^\n\026StubGPIOReadBitRequest\022\016\n\006Por" + "tId\030\001 \001(\t\022\r\n\005PinId\030\002 \001(\r\022\017\n\007Polling\030\003 \001(" + "\010\022\024\n\014PollExpValue\030\004 \001(\010B\033\n\031com.twine.tan" + "go.pmr.stubsb\006proto3" + }; + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + descriptor, 180); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "StubGPIOReadBitRequest.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_StubGPIOReadBitRequest_2eproto + + +// =================================================================== + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int StubGPIOReadBitRequest::kPortIdFieldNumber; +const int StubGPIOReadBitRequest::kPinIdFieldNumber; +const int StubGPIOReadBitRequest::kPollingFieldNumber; +const int StubGPIOReadBitRequest::kPollExpValueFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +StubGPIOReadBitRequest::StubGPIOReadBitRequest() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_StubGPIOReadBitRequest_2eproto::InitDefaults(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:Tango.PMR.Stubs.StubGPIOReadBitRequest) +} +StubGPIOReadBitRequest::StubGPIOReadBitRequest(const StubGPIOReadBitRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + portid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.portid().size() > 0) { + portid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.portid_); + } + ::memcpy(&pinid_, &from.pinid_, + static_cast<size_t>(reinterpret_cast<char*>(&pollexpvalue_) - + reinterpret_cast<char*>(&pinid_)) + sizeof(pollexpvalue_)); + // @@protoc_insertion_point(copy_constructor:Tango.PMR.Stubs.StubGPIOReadBitRequest) +} + +void StubGPIOReadBitRequest::SharedCtor() { + portid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&pinid_, 0, static_cast<size_t>( + reinterpret_cast<char*>(&pollexpvalue_) - + reinterpret_cast<char*>(&pinid_)) + sizeof(pollexpvalue_)); + _cached_size_ = 0; +} + +StubGPIOReadBitRequest::~StubGPIOReadBitRequest() { + // @@protoc_insertion_point(destructor:Tango.PMR.Stubs.StubGPIOReadBitRequest) + SharedDtor(); +} + +void StubGPIOReadBitRequest::SharedDtor() { + portid_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void StubGPIOReadBitRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* StubGPIOReadBitRequest::descriptor() { + protobuf_StubGPIOReadBitRequest_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_StubGPIOReadBitRequest_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const StubGPIOReadBitRequest& StubGPIOReadBitRequest::default_instance() { + protobuf_StubGPIOReadBitRequest_2eproto::InitDefaults(); + return *internal_default_instance(); +} + +StubGPIOReadBitRequest* StubGPIOReadBitRequest::New(::google::protobuf::Arena* arena) const { + StubGPIOReadBitRequest* n = new StubGPIOReadBitRequest; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void StubGPIOReadBitRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:Tango.PMR.Stubs.StubGPIOReadBitRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + portid_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&pinid_, 0, static_cast<size_t>( + reinterpret_cast<char*>(&pollexpvalue_) - + reinterpret_cast<char*>(&pinid_)) + sizeof(pollexpvalue_)); + _internal_metadata_.Clear(); +} + +bool StubGPIOReadBitRequest::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.StubGPIOReadBitRequest) + 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)) { + // string PortId = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_portid())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->portid().data(), static_cast<int>(this->portid().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "Tango.PMR.Stubs.StubGPIOReadBitRequest.PortId")); + } else { + goto handle_unusual; + } + break; + } + + // uint32 PinId = 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, &pinid_))); + } else { + goto handle_unusual; + } + break; + } + + // bool Polling = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &polling_))); + } else { + goto handle_unusual; + } + break; + } + + // bool PollExpValue = 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, &pollexpvalue_))); + } 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.StubGPIOReadBitRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:Tango.PMR.Stubs.StubGPIOReadBitRequest) + return false; +#undef DO_ +} + +void StubGPIOReadBitRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Tango.PMR.Stubs.StubGPIOReadBitRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string PortId = 1; + if (this->portid().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->portid().data(), static_cast<int>(this->portid().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "Tango.PMR.Stubs.StubGPIOReadBitRequest.PortId"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->portid(), output); + } + + // uint32 PinId = 2; + if (this->pinid() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->pinid(), output); + } + + // bool Polling = 3; + if (this->polling() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->polling(), output); + } + + // bool PollExpValue = 4; + if (this->pollexpvalue() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteBool(4, this->pollexpvalue(), 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.StubGPIOReadBitRequest) +} + +::google::protobuf::uint8* StubGPIOReadBitRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:Tango.PMR.Stubs.StubGPIOReadBitRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string PortId = 1; + if (this->portid().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->portid().data(), static_cast<int>(this->portid().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "Tango.PMR.Stubs.StubGPIOReadBitRequest.PortId"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->portid(), target); + } + + // uint32 PinId = 2; + if (this->pinid() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->pinid(), target); + } + + // bool Polling = 3; + if (this->polling() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->polling(), target); + } + + // bool PollExpValue = 4; + if (this->pollexpvalue() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(4, this->pollexpvalue(), 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.StubGPIOReadBitRequest) + return target; +} + +size_t StubGPIOReadBitRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:Tango.PMR.Stubs.StubGPIOReadBitRequest) + 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 PortId = 1; + if (this->portid().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->portid()); + } + + // uint32 PinId = 2; + if (this->pinid() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->pinid()); + } + + // bool Polling = 3; + if (this->polling() != 0) { + total_size += 1 + 1; + } + + // bool PollExpValue = 4; + if (this->pollexpvalue() != 0) { + total_size += 1 + 1; + } + + 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 StubGPIOReadBitRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:Tango.PMR.Stubs.StubGPIOReadBitRequest) + GOOGLE_DCHECK_NE(&from, this); + const StubGPIOReadBitRequest* source = + ::google::protobuf::internal::DynamicCastToGenerated<const StubGPIOReadBitRequest>( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:Tango.PMR.Stubs.StubGPIOReadBitRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:Tango.PMR.Stubs.StubGPIOReadBitRequest) + MergeFrom(*source); + } +} + +void StubGPIOReadBitRequest::MergeFrom(const StubGPIOReadBitRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:Tango.PMR.Stubs.StubGPIOReadBitRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.portid().size() > 0) { + + portid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.portid_); + } + if (from.pinid() != 0) { + set_pinid(from.pinid()); + } + if (from.polling() != 0) { + set_polling(from.polling()); + } + if (from.pollexpvalue() != 0) { + set_pollexpvalue(from.pollexpvalue()); + } +} + +void StubGPIOReadBitRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:Tango.PMR.Stubs.StubGPIOReadBitRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void StubGPIOReadBitRequest::CopyFrom(const StubGPIOReadBitRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:Tango.PMR.Stubs.StubGPIOReadBitRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool StubGPIOReadBitRequest::IsInitialized() const { + return true; +} + +void StubGPIOReadBitRequest::Swap(StubGPIOReadBitRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void StubGPIOReadBitRequest::InternalSwap(StubGPIOReadBitRequest* other) { + using std::swap; + portid_.Swap(&other->portid_); + swap(pinid_, other->pinid_); + swap(polling_, other->polling_); + swap(pollexpvalue_, other->pollexpvalue_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata StubGPIOReadBitRequest::GetMetadata() const { + protobuf_StubGPIOReadBitRequest_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_StubGPIOReadBitRequest_2eproto::file_level_metadata[kIndexInFileMessages]; +} + +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// StubGPIOReadBitRequest + +// string PortId = 1; +void StubGPIOReadBitRequest::clear_portid() { + portid_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +const ::std::string& StubGPIOReadBitRequest::portid() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubGPIOReadBitRequest.PortId) + return portid_.GetNoArena(); +} +void StubGPIOReadBitRequest::set_portid(const ::std::string& value) { + + portid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubGPIOReadBitRequest.PortId) +} +#if LANG_CXX11 +void StubGPIOReadBitRequest::set_portid(::std::string&& value) { + + portid_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:Tango.PMR.Stubs.StubGPIOReadBitRequest.PortId) +} +#endif +void StubGPIOReadBitRequest::set_portid(const char* value) { + GOOGLE_DCHECK(value != NULL); + + portid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:Tango.PMR.Stubs.StubGPIOReadBitRequest.PortId) +} +void StubGPIOReadBitRequest::set_portid(const char* value, size_t size) { + + portid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast<const char*>(value), size)); + // @@protoc_insertion_point(field_set_pointer:Tango.PMR.Stubs.StubGPIOReadBitRequest.PortId) +} +::std::string* StubGPIOReadBitRequest::mutable_portid() { + + // @@protoc_insertion_point(field_mutable:Tango.PMR.Stubs.StubGPIOReadBitRequest.PortId) + return portid_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +::std::string* StubGPIOReadBitRequest::release_portid() { + // @@protoc_insertion_point(field_release:Tango.PMR.Stubs.StubGPIOReadBitRequest.PortId) + + return portid_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +void StubGPIOReadBitRequest::set_allocated_portid(::std::string* portid) { + if (portid != NULL) { + + } else { + + } + portid_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), portid); + // @@protoc_insertion_point(field_set_allocated:Tango.PMR.Stubs.StubGPIOReadBitRequest.PortId) +} + +// uint32 PinId = 2; +void StubGPIOReadBitRequest::clear_pinid() { + pinid_ = 0u; +} +::google::protobuf::uint32 StubGPIOReadBitRequest::pinid() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubGPIOReadBitRequest.PinId) + return pinid_; +} +void StubGPIOReadBitRequest::set_pinid(::google::protobuf::uint32 value) { + + pinid_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubGPIOReadBitRequest.PinId) +} + +// bool Polling = 3; +void StubGPIOReadBitRequest::clear_polling() { + polling_ = false; +} +bool StubGPIOReadBitRequest::polling() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubGPIOReadBitRequest.Polling) + return polling_; +} +void StubGPIOReadBitRequest::set_polling(bool value) { + + polling_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubGPIOReadBitRequest.Polling) +} + +// bool PollExpValue = 4; +void StubGPIOReadBitRequest::clear_pollexpvalue() { + pollexpvalue_ = false; +} +bool StubGPIOReadBitRequest::pollexpvalue() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubGPIOReadBitRequest.PollExpValue) + return pollexpvalue_; +} +void StubGPIOReadBitRequest::set_pollexpvalue(bool value) { + + pollexpvalue_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubGPIOReadBitRequest.PollExpValue) +} + +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS + +// @@protoc_insertion_point(namespace_scope) + +} // namespace Stubs +} // namespace PMR +} // namespace Tango + +// @@protoc_insertion_point(global_scope) diff --git a/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubGPIOReadBitRequest.pb.h b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubGPIOReadBitRequest.pb.h new file mode 100644 index 000000000..34d11b21a --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubGPIOReadBitRequest.pb.h @@ -0,0 +1,309 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StubGPIOReadBitRequest.proto + +#ifndef PROTOBUF_StubGPIOReadBitRequest_2eproto__INCLUDED +#define PROTOBUF_StubGPIOReadBitRequest_2eproto__INCLUDED + +#include <string> + +#include <google/protobuf/stubs/common.h> + +#if GOOGLE_PROTOBUF_VERSION < 3004000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3004000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include <google/protobuf/io/coded_stream.h> +#include <google/protobuf/arena.h> +#include <google/protobuf/arenastring.h> +#include <google/protobuf/generated_message_table_driven.h> +#include <google/protobuf/generated_message_util.h> +#include <google/protobuf/metadata.h> +#include <google/protobuf/message.h> +#include <google/protobuf/repeated_field.h> // IWYU pragma: export +#include <google/protobuf/extension_set.h> // IWYU pragma: export +#include <google/protobuf/unknown_field_set.h> +// @@protoc_insertion_point(includes) +namespace Tango { +namespace PMR { +namespace Stubs { +class StubGPIOReadBitRequest; +class StubGPIOReadBitRequestDefaultTypeInternal; +extern StubGPIOReadBitRequestDefaultTypeInternal _StubGPIOReadBitRequest_default_instance_; +} // namespace Stubs +} // namespace PMR +} // namespace Tango + +namespace Tango { +namespace PMR { +namespace Stubs { + +namespace protobuf_StubGPIOReadBitRequest_2eproto { +// Internal implementation detail -- do not call these. +struct TableStruct { + static const ::google::protobuf::internal::ParseTableField entries[]; + static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; + static const ::google::protobuf::internal::ParseTable schema[]; + static const ::google::protobuf::uint32 offsets[]; + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static void InitDefaultsImpl(); +}; +void AddDescriptors(); +void InitDefaults(); +} // namespace protobuf_StubGPIOReadBitRequest_2eproto + +// =================================================================== + +class StubGPIOReadBitRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Tango.PMR.Stubs.StubGPIOReadBitRequest) */ { + public: + StubGPIOReadBitRequest(); + virtual ~StubGPIOReadBitRequest(); + + StubGPIOReadBitRequest(const StubGPIOReadBitRequest& from); + + inline StubGPIOReadBitRequest& operator=(const StubGPIOReadBitRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + StubGPIOReadBitRequest(StubGPIOReadBitRequest&& from) noexcept + : StubGPIOReadBitRequest() { + *this = ::std::move(from); + } + + inline StubGPIOReadBitRequest& operator=(StubGPIOReadBitRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const StubGPIOReadBitRequest& default_instance(); + + static inline const StubGPIOReadBitRequest* internal_default_instance() { + return reinterpret_cast<const StubGPIOReadBitRequest*>( + &_StubGPIOReadBitRequest_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 0; + + void Swap(StubGPIOReadBitRequest* other); + friend void swap(StubGPIOReadBitRequest& a, StubGPIOReadBitRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline StubGPIOReadBitRequest* New() const PROTOBUF_FINAL { return New(NULL); } + + StubGPIOReadBitRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const StubGPIOReadBitRequest& from); + void MergeFrom(const StubGPIOReadBitRequest& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(StubGPIOReadBitRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string PortId = 1; + void clear_portid(); + static const int kPortIdFieldNumber = 1; + const ::std::string& portid() const; + void set_portid(const ::std::string& value); + #if LANG_CXX11 + void set_portid(::std::string&& value); + #endif + void set_portid(const char* value); + void set_portid(const char* value, size_t size); + ::std::string* mutable_portid(); + ::std::string* release_portid(); + void set_allocated_portid(::std::string* portid); + + // uint32 PinId = 2; + void clear_pinid(); + static const int kPinIdFieldNumber = 2; + ::google::protobuf::uint32 pinid() const; + void set_pinid(::google::protobuf::uint32 value); + + // bool Polling = 3; + void clear_polling(); + static const int kPollingFieldNumber = 3; + bool polling() const; + void set_polling(bool value); + + // bool PollExpValue = 4; + void clear_pollexpvalue(); + static const int kPollExpValueFieldNumber = 4; + bool pollexpvalue() const; + void set_pollexpvalue(bool value); + + // @@protoc_insertion_point(class_scope:Tango.PMR.Stubs.StubGPIOReadBitRequest) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr portid_; + ::google::protobuf::uint32 pinid_; + bool polling_; + bool pollexpvalue_; + mutable int _cached_size_; + friend struct protobuf_StubGPIOReadBitRequest_2eproto::TableStruct; +}; +// =================================================================== + + +// =================================================================== + +#if !PROTOBUF_INLINE_NOT_IN_HEADERS +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// StubGPIOReadBitRequest + +// string PortId = 1; +inline void StubGPIOReadBitRequest::clear_portid() { + portid_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& StubGPIOReadBitRequest::portid() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubGPIOReadBitRequest.PortId) + return portid_.GetNoArena(); +} +inline void StubGPIOReadBitRequest::set_portid(const ::std::string& value) { + + portid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubGPIOReadBitRequest.PortId) +} +#if LANG_CXX11 +inline void StubGPIOReadBitRequest::set_portid(::std::string&& value) { + + portid_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:Tango.PMR.Stubs.StubGPIOReadBitRequest.PortId) +} +#endif +inline void StubGPIOReadBitRequest::set_portid(const char* value) { + GOOGLE_DCHECK(value != NULL); + + portid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:Tango.PMR.Stubs.StubGPIOReadBitRequest.PortId) +} +inline void StubGPIOReadBitRequest::set_portid(const char* value, size_t size) { + + portid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast<const char*>(value), size)); + // @@protoc_insertion_point(field_set_pointer:Tango.PMR.Stubs.StubGPIOReadBitRequest.PortId) +} +inline ::std::string* StubGPIOReadBitRequest::mutable_portid() { + + // @@protoc_insertion_point(field_mutable:Tango.PMR.Stubs.StubGPIOReadBitRequest.PortId) + return portid_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* StubGPIOReadBitRequest::release_portid() { + // @@protoc_insertion_point(field_release:Tango.PMR.Stubs.StubGPIOReadBitRequest.PortId) + + return portid_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void StubGPIOReadBitRequest::set_allocated_portid(::std::string* portid) { + if (portid != NULL) { + + } else { + + } + portid_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), portid); + // @@protoc_insertion_point(field_set_allocated:Tango.PMR.Stubs.StubGPIOReadBitRequest.PortId) +} + +// uint32 PinId = 2; +inline void StubGPIOReadBitRequest::clear_pinid() { + pinid_ = 0u; +} +inline ::google::protobuf::uint32 StubGPIOReadBitRequest::pinid() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubGPIOReadBitRequest.PinId) + return pinid_; +} +inline void StubGPIOReadBitRequest::set_pinid(::google::protobuf::uint32 value) { + + pinid_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubGPIOReadBitRequest.PinId) +} + +// bool Polling = 3; +inline void StubGPIOReadBitRequest::clear_polling() { + polling_ = false; +} +inline bool StubGPIOReadBitRequest::polling() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubGPIOReadBitRequest.Polling) + return polling_; +} +inline void StubGPIOReadBitRequest::set_polling(bool value) { + + polling_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubGPIOReadBitRequest.Polling) +} + +// bool PollExpValue = 4; +inline void StubGPIOReadBitRequest::clear_pollexpvalue() { + pollexpvalue_ = false; +} +inline bool StubGPIOReadBitRequest::pollexpvalue() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubGPIOReadBitRequest.PollExpValue) + return pollexpvalue_; +} +inline void StubGPIOReadBitRequest::set_pollexpvalue(bool value) { + + pollexpvalue_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubGPIOReadBitRequest.PollExpValue) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +#endif // !PROTOBUF_INLINE_NOT_IN_HEADERS + +// @@protoc_insertion_point(namespace_scope) + + +} // namespace Stubs +} // namespace PMR +} // namespace Tango + +// @@protoc_insertion_point(global_scope) + +#endif // PROTOBUF_StubGPIOReadBitRequest_2eproto__INCLUDED diff --git a/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubGPIOReadBitResponse.pb.cc b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubGPIOReadBitResponse.pb.cc new file mode 100644 index 000000000..3ea7fdccc --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubGPIOReadBitResponse.pb.cc @@ -0,0 +1,610 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StubGPIOReadBitResponse.proto + +#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION +#include "StubGPIOReadBitResponse.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 StubGPIOReadBitResponseDefaultTypeInternal { +public: + ::google::protobuf::internal::ExplicitlyConstructed<StubGPIOReadBitResponse> + _instance; +} _StubGPIOReadBitResponse_default_instance_; + +namespace protobuf_StubGPIOReadBitResponse_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(StubGPIOReadBitResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubGPIOReadBitResponse, portid_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubGPIOReadBitResponse, pinid_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubGPIOReadBitResponse, bitvalue_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubGPIOReadBitResponse, status_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(StubGPIOReadBitResponse)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast<const ::google::protobuf::Message*>(&_StubGPIOReadBitResponse_default_instance_), +}; + +namespace { + +void protobuf_AssignDescriptors() { + AddDescriptors(); + ::google::protobuf::MessageFactory* factory = NULL; + AssignDescriptors( + "StubGPIOReadBitResponse.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(); + _StubGPIOReadBitResponse_default_instance_._instance.DefaultConstruct(); + ::google::protobuf::internal::OnShutdownDestroyMessage( + &_StubGPIOReadBitResponse_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\035StubGPIOReadBitResponse.proto\022\017Tango.P" + "MR.Stubs\"Z\n\027StubGPIOReadBitResponse\022\016\n\006P" + "ortId\030\001 \001(\t\022\r\n\005PinId\030\002 \001(\r\022\020\n\010BitValue\030\003" + " \001(\010\022\016\n\006Status\030\004 \001(\rB\033\n\031com.twine.tango." + "pmr.stubsb\006proto3" + }; + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + descriptor, 177); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "StubGPIOReadBitResponse.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_StubGPIOReadBitResponse_2eproto + + +// =================================================================== + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int StubGPIOReadBitResponse::kPortIdFieldNumber; +const int StubGPIOReadBitResponse::kPinIdFieldNumber; +const int StubGPIOReadBitResponse::kBitValueFieldNumber; +const int StubGPIOReadBitResponse::kStatusFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +StubGPIOReadBitResponse::StubGPIOReadBitResponse() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_StubGPIOReadBitResponse_2eproto::InitDefaults(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:Tango.PMR.Stubs.StubGPIOReadBitResponse) +} +StubGPIOReadBitResponse::StubGPIOReadBitResponse(const StubGPIOReadBitResponse& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + portid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.portid().size() > 0) { + portid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.portid_); + } + ::memcpy(&pinid_, &from.pinid_, + static_cast<size_t>(reinterpret_cast<char*>(&status_) - + reinterpret_cast<char*>(&pinid_)) + sizeof(status_)); + // @@protoc_insertion_point(copy_constructor:Tango.PMR.Stubs.StubGPIOReadBitResponse) +} + +void StubGPIOReadBitResponse::SharedCtor() { + portid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&pinid_, 0, static_cast<size_t>( + reinterpret_cast<char*>(&status_) - + reinterpret_cast<char*>(&pinid_)) + sizeof(status_)); + _cached_size_ = 0; +} + +StubGPIOReadBitResponse::~StubGPIOReadBitResponse() { + // @@protoc_insertion_point(destructor:Tango.PMR.Stubs.StubGPIOReadBitResponse) + SharedDtor(); +} + +void StubGPIOReadBitResponse::SharedDtor() { + portid_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void StubGPIOReadBitResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* StubGPIOReadBitResponse::descriptor() { + protobuf_StubGPIOReadBitResponse_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_StubGPIOReadBitResponse_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const StubGPIOReadBitResponse& StubGPIOReadBitResponse::default_instance() { + protobuf_StubGPIOReadBitResponse_2eproto::InitDefaults(); + return *internal_default_instance(); +} + +StubGPIOReadBitResponse* StubGPIOReadBitResponse::New(::google::protobuf::Arena* arena) const { + StubGPIOReadBitResponse* n = new StubGPIOReadBitResponse; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void StubGPIOReadBitResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:Tango.PMR.Stubs.StubGPIOReadBitResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + portid_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&pinid_, 0, static_cast<size_t>( + reinterpret_cast<char*>(&status_) - + reinterpret_cast<char*>(&pinid_)) + sizeof(status_)); + _internal_metadata_.Clear(); +} + +bool StubGPIOReadBitResponse::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.StubGPIOReadBitResponse) + 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)) { + // string PortId = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_portid())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->portid().data(), static_cast<int>(this->portid().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "Tango.PMR.Stubs.StubGPIOReadBitResponse.PortId")); + } else { + goto handle_unusual; + } + break; + } + + // uint32 PinId = 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, &pinid_))); + } else { + goto handle_unusual; + } + break; + } + + // bool BitValue = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &bitvalue_))); + } else { + goto handle_unusual; + } + break; + } + + // uint32 Status = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &status_))); + } 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.StubGPIOReadBitResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:Tango.PMR.Stubs.StubGPIOReadBitResponse) + return false; +#undef DO_ +} + +void StubGPIOReadBitResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Tango.PMR.Stubs.StubGPIOReadBitResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string PortId = 1; + if (this->portid().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->portid().data(), static_cast<int>(this->portid().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "Tango.PMR.Stubs.StubGPIOReadBitResponse.PortId"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->portid(), output); + } + + // uint32 PinId = 2; + if (this->pinid() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->pinid(), output); + } + + // bool BitValue = 3; + if (this->bitvalue() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->bitvalue(), output); + } + + // uint32 Status = 4; + if (this->status() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->status(), 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.StubGPIOReadBitResponse) +} + +::google::protobuf::uint8* StubGPIOReadBitResponse::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:Tango.PMR.Stubs.StubGPIOReadBitResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string PortId = 1; + if (this->portid().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->portid().data(), static_cast<int>(this->portid().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "Tango.PMR.Stubs.StubGPIOReadBitResponse.PortId"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->portid(), target); + } + + // uint32 PinId = 2; + if (this->pinid() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->pinid(), target); + } + + // bool BitValue = 3; + if (this->bitvalue() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->bitvalue(), target); + } + + // uint32 Status = 4; + if (this->status() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(4, this->status(), 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.StubGPIOReadBitResponse) + return target; +} + +size_t StubGPIOReadBitResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:Tango.PMR.Stubs.StubGPIOReadBitResponse) + 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 PortId = 1; + if (this->portid().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->portid()); + } + + // uint32 PinId = 2; + if (this->pinid() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->pinid()); + } + + // bool BitValue = 3; + if (this->bitvalue() != 0) { + total_size += 1 + 1; + } + + // uint32 Status = 4; + if (this->status() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->status()); + } + + 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 StubGPIOReadBitResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:Tango.PMR.Stubs.StubGPIOReadBitResponse) + GOOGLE_DCHECK_NE(&from, this); + const StubGPIOReadBitResponse* source = + ::google::protobuf::internal::DynamicCastToGenerated<const StubGPIOReadBitResponse>( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:Tango.PMR.Stubs.StubGPIOReadBitResponse) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:Tango.PMR.Stubs.StubGPIOReadBitResponse) + MergeFrom(*source); + } +} + +void StubGPIOReadBitResponse::MergeFrom(const StubGPIOReadBitResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:Tango.PMR.Stubs.StubGPIOReadBitResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.portid().size() > 0) { + + portid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.portid_); + } + if (from.pinid() != 0) { + set_pinid(from.pinid()); + } + if (from.bitvalue() != 0) { + set_bitvalue(from.bitvalue()); + } + if (from.status() != 0) { + set_status(from.status()); + } +} + +void StubGPIOReadBitResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:Tango.PMR.Stubs.StubGPIOReadBitResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void StubGPIOReadBitResponse::CopyFrom(const StubGPIOReadBitResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:Tango.PMR.Stubs.StubGPIOReadBitResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool StubGPIOReadBitResponse::IsInitialized() const { + return true; +} + +void StubGPIOReadBitResponse::Swap(StubGPIOReadBitResponse* other) { + if (other == this) return; + InternalSwap(other); +} +void StubGPIOReadBitResponse::InternalSwap(StubGPIOReadBitResponse* other) { + using std::swap; + portid_.Swap(&other->portid_); + swap(pinid_, other->pinid_); + swap(bitvalue_, other->bitvalue_); + swap(status_, other->status_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata StubGPIOReadBitResponse::GetMetadata() const { + protobuf_StubGPIOReadBitResponse_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_StubGPIOReadBitResponse_2eproto::file_level_metadata[kIndexInFileMessages]; +} + +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// StubGPIOReadBitResponse + +// string PortId = 1; +void StubGPIOReadBitResponse::clear_portid() { + portid_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +const ::std::string& StubGPIOReadBitResponse::portid() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubGPIOReadBitResponse.PortId) + return portid_.GetNoArena(); +} +void StubGPIOReadBitResponse::set_portid(const ::std::string& value) { + + portid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubGPIOReadBitResponse.PortId) +} +#if LANG_CXX11 +void StubGPIOReadBitResponse::set_portid(::std::string&& value) { + + portid_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:Tango.PMR.Stubs.StubGPIOReadBitResponse.PortId) +} +#endif +void StubGPIOReadBitResponse::set_portid(const char* value) { + GOOGLE_DCHECK(value != NULL); + + portid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:Tango.PMR.Stubs.StubGPIOReadBitResponse.PortId) +} +void StubGPIOReadBitResponse::set_portid(const char* value, size_t size) { + + portid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast<const char*>(value), size)); + // @@protoc_insertion_point(field_set_pointer:Tango.PMR.Stubs.StubGPIOReadBitResponse.PortId) +} +::std::string* StubGPIOReadBitResponse::mutable_portid() { + + // @@protoc_insertion_point(field_mutable:Tango.PMR.Stubs.StubGPIOReadBitResponse.PortId) + return portid_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +::std::string* StubGPIOReadBitResponse::release_portid() { + // @@protoc_insertion_point(field_release:Tango.PMR.Stubs.StubGPIOReadBitResponse.PortId) + + return portid_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +void StubGPIOReadBitResponse::set_allocated_portid(::std::string* portid) { + if (portid != NULL) { + + } else { + + } + portid_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), portid); + // @@protoc_insertion_point(field_set_allocated:Tango.PMR.Stubs.StubGPIOReadBitResponse.PortId) +} + +// uint32 PinId = 2; +void StubGPIOReadBitResponse::clear_pinid() { + pinid_ = 0u; +} +::google::protobuf::uint32 StubGPIOReadBitResponse::pinid() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubGPIOReadBitResponse.PinId) + return pinid_; +} +void StubGPIOReadBitResponse::set_pinid(::google::protobuf::uint32 value) { + + pinid_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubGPIOReadBitResponse.PinId) +} + +// bool BitValue = 3; +void StubGPIOReadBitResponse::clear_bitvalue() { + bitvalue_ = false; +} +bool StubGPIOReadBitResponse::bitvalue() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubGPIOReadBitResponse.BitValue) + return bitvalue_; +} +void StubGPIOReadBitResponse::set_bitvalue(bool value) { + + bitvalue_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubGPIOReadBitResponse.BitValue) +} + +// uint32 Status = 4; +void StubGPIOReadBitResponse::clear_status() { + status_ = 0u; +} +::google::protobuf::uint32 StubGPIOReadBitResponse::status() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubGPIOReadBitResponse.Status) + return status_; +} +void StubGPIOReadBitResponse::set_status(::google::protobuf::uint32 value) { + + status_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubGPIOReadBitResponse.Status) +} + +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS + +// @@protoc_insertion_point(namespace_scope) + +} // namespace Stubs +} // namespace PMR +} // namespace Tango + +// @@protoc_insertion_point(global_scope) diff --git a/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubGPIOReadBitResponse.pb.h b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubGPIOReadBitResponse.pb.h new file mode 100644 index 000000000..138016756 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubGPIOReadBitResponse.pb.h @@ -0,0 +1,309 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StubGPIOReadBitResponse.proto + +#ifndef PROTOBUF_StubGPIOReadBitResponse_2eproto__INCLUDED +#define PROTOBUF_StubGPIOReadBitResponse_2eproto__INCLUDED + +#include <string> + +#include <google/protobuf/stubs/common.h> + +#if GOOGLE_PROTOBUF_VERSION < 3004000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3004000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include <google/protobuf/io/coded_stream.h> +#include <google/protobuf/arena.h> +#include <google/protobuf/arenastring.h> +#include <google/protobuf/generated_message_table_driven.h> +#include <google/protobuf/generated_message_util.h> +#include <google/protobuf/metadata.h> +#include <google/protobuf/message.h> +#include <google/protobuf/repeated_field.h> // IWYU pragma: export +#include <google/protobuf/extension_set.h> // IWYU pragma: export +#include <google/protobuf/unknown_field_set.h> +// @@protoc_insertion_point(includes) +namespace Tango { +namespace PMR { +namespace Stubs { +class StubGPIOReadBitResponse; +class StubGPIOReadBitResponseDefaultTypeInternal; +extern StubGPIOReadBitResponseDefaultTypeInternal _StubGPIOReadBitResponse_default_instance_; +} // namespace Stubs +} // namespace PMR +} // namespace Tango + +namespace Tango { +namespace PMR { +namespace Stubs { + +namespace protobuf_StubGPIOReadBitResponse_2eproto { +// Internal implementation detail -- do not call these. +struct TableStruct { + static const ::google::protobuf::internal::ParseTableField entries[]; + static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; + static const ::google::protobuf::internal::ParseTable schema[]; + static const ::google::protobuf::uint32 offsets[]; + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static void InitDefaultsImpl(); +}; +void AddDescriptors(); +void InitDefaults(); +} // namespace protobuf_StubGPIOReadBitResponse_2eproto + +// =================================================================== + +class StubGPIOReadBitResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Tango.PMR.Stubs.StubGPIOReadBitResponse) */ { + public: + StubGPIOReadBitResponse(); + virtual ~StubGPIOReadBitResponse(); + + StubGPIOReadBitResponse(const StubGPIOReadBitResponse& from); + + inline StubGPIOReadBitResponse& operator=(const StubGPIOReadBitResponse& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + StubGPIOReadBitResponse(StubGPIOReadBitResponse&& from) noexcept + : StubGPIOReadBitResponse() { + *this = ::std::move(from); + } + + inline StubGPIOReadBitResponse& operator=(StubGPIOReadBitResponse&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const StubGPIOReadBitResponse& default_instance(); + + static inline const StubGPIOReadBitResponse* internal_default_instance() { + return reinterpret_cast<const StubGPIOReadBitResponse*>( + &_StubGPIOReadBitResponse_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 0; + + void Swap(StubGPIOReadBitResponse* other); + friend void swap(StubGPIOReadBitResponse& a, StubGPIOReadBitResponse& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline StubGPIOReadBitResponse* New() const PROTOBUF_FINAL { return New(NULL); } + + StubGPIOReadBitResponse* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const StubGPIOReadBitResponse& from); + void MergeFrom(const StubGPIOReadBitResponse& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(StubGPIOReadBitResponse* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string PortId = 1; + void clear_portid(); + static const int kPortIdFieldNumber = 1; + const ::std::string& portid() const; + void set_portid(const ::std::string& value); + #if LANG_CXX11 + void set_portid(::std::string&& value); + #endif + void set_portid(const char* value); + void set_portid(const char* value, size_t size); + ::std::string* mutable_portid(); + ::std::string* release_portid(); + void set_allocated_portid(::std::string* portid); + + // uint32 PinId = 2; + void clear_pinid(); + static const int kPinIdFieldNumber = 2; + ::google::protobuf::uint32 pinid() const; + void set_pinid(::google::protobuf::uint32 value); + + // bool BitValue = 3; + void clear_bitvalue(); + static const int kBitValueFieldNumber = 3; + bool bitvalue() const; + void set_bitvalue(bool value); + + // uint32 Status = 4; + void clear_status(); + static const int kStatusFieldNumber = 4; + ::google::protobuf::uint32 status() const; + void set_status(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:Tango.PMR.Stubs.StubGPIOReadBitResponse) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr portid_; + ::google::protobuf::uint32 pinid_; + bool bitvalue_; + ::google::protobuf::uint32 status_; + mutable int _cached_size_; + friend struct protobuf_StubGPIOReadBitResponse_2eproto::TableStruct; +}; +// =================================================================== + + +// =================================================================== + +#if !PROTOBUF_INLINE_NOT_IN_HEADERS +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// StubGPIOReadBitResponse + +// string PortId = 1; +inline void StubGPIOReadBitResponse::clear_portid() { + portid_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& StubGPIOReadBitResponse::portid() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubGPIOReadBitResponse.PortId) + return portid_.GetNoArena(); +} +inline void StubGPIOReadBitResponse::set_portid(const ::std::string& value) { + + portid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubGPIOReadBitResponse.PortId) +} +#if LANG_CXX11 +inline void StubGPIOReadBitResponse::set_portid(::std::string&& value) { + + portid_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:Tango.PMR.Stubs.StubGPIOReadBitResponse.PortId) +} +#endif +inline void StubGPIOReadBitResponse::set_portid(const char* value) { + GOOGLE_DCHECK(value != NULL); + + portid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:Tango.PMR.Stubs.StubGPIOReadBitResponse.PortId) +} +inline void StubGPIOReadBitResponse::set_portid(const char* value, size_t size) { + + portid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast<const char*>(value), size)); + // @@protoc_insertion_point(field_set_pointer:Tango.PMR.Stubs.StubGPIOReadBitResponse.PortId) +} +inline ::std::string* StubGPIOReadBitResponse::mutable_portid() { + + // @@protoc_insertion_point(field_mutable:Tango.PMR.Stubs.StubGPIOReadBitResponse.PortId) + return portid_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* StubGPIOReadBitResponse::release_portid() { + // @@protoc_insertion_point(field_release:Tango.PMR.Stubs.StubGPIOReadBitResponse.PortId) + + return portid_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void StubGPIOReadBitResponse::set_allocated_portid(::std::string* portid) { + if (portid != NULL) { + + } else { + + } + portid_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), portid); + // @@protoc_insertion_point(field_set_allocated:Tango.PMR.Stubs.StubGPIOReadBitResponse.PortId) +} + +// uint32 PinId = 2; +inline void StubGPIOReadBitResponse::clear_pinid() { + pinid_ = 0u; +} +inline ::google::protobuf::uint32 StubGPIOReadBitResponse::pinid() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubGPIOReadBitResponse.PinId) + return pinid_; +} +inline void StubGPIOReadBitResponse::set_pinid(::google::protobuf::uint32 value) { + + pinid_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubGPIOReadBitResponse.PinId) +} + +// bool BitValue = 3; +inline void StubGPIOReadBitResponse::clear_bitvalue() { + bitvalue_ = false; +} +inline bool StubGPIOReadBitResponse::bitvalue() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubGPIOReadBitResponse.BitValue) + return bitvalue_; +} +inline void StubGPIOReadBitResponse::set_bitvalue(bool value) { + + bitvalue_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubGPIOReadBitResponse.BitValue) +} + +// uint32 Status = 4; +inline void StubGPIOReadBitResponse::clear_status() { + status_ = 0u; +} +inline ::google::protobuf::uint32 StubGPIOReadBitResponse::status() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubGPIOReadBitResponse.Status) + return status_; +} +inline void StubGPIOReadBitResponse::set_status(::google::protobuf::uint32 value) { + + status_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubGPIOReadBitResponse.Status) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +#endif // !PROTOBUF_INLINE_NOT_IN_HEADERS + +// @@protoc_insertion_point(namespace_scope) + + +} // namespace Stubs +} // namespace PMR +} // namespace Tango + +// @@protoc_insertion_point(global_scope) + +#endif // PROTOBUF_StubGPIOReadBitResponse_2eproto__INCLUDED diff --git a/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubGPIOReadByteRequest.pb.cc b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubGPIOReadByteRequest.pb.cc new file mode 100644 index 000000000..c1fe11638 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubGPIOReadByteRequest.pb.cc @@ -0,0 +1,449 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StubGPIOReadByteRequest.proto + +#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION +#include "StubGPIOReadByteRequest.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 StubGPIOReadByteRequestDefaultTypeInternal { +public: + ::google::protobuf::internal::ExplicitlyConstructed<StubGPIOReadByteRequest> + _instance; +} _StubGPIOReadByteRequest_default_instance_; + +namespace protobuf_StubGPIOReadByteRequest_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(StubGPIOReadByteRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubGPIOReadByteRequest, portid_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(StubGPIOReadByteRequest)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast<const ::google::protobuf::Message*>(&_StubGPIOReadByteRequest_default_instance_), +}; + +namespace { + +void protobuf_AssignDescriptors() { + AddDescriptors(); + ::google::protobuf::MessageFactory* factory = NULL; + AssignDescriptors( + "StubGPIOReadByteRequest.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(); + _StubGPIOReadByteRequest_default_instance_._instance.DefaultConstruct(); + ::google::protobuf::internal::OnShutdownDestroyMessage( + &_StubGPIOReadByteRequest_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\035StubGPIOReadByteRequest.proto\022\017Tango.P" + "MR.Stubs\")\n\027StubGPIOReadByteRequest\022\016\n\006P" + "ortId\030\001 \001(\tB\033\n\031com.twine.tango.pmr.stubs" + "b\006proto3" + }; + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + descriptor, 128); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "StubGPIOReadByteRequest.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_StubGPIOReadByteRequest_2eproto + + +// =================================================================== + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int StubGPIOReadByteRequest::kPortIdFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +StubGPIOReadByteRequest::StubGPIOReadByteRequest() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_StubGPIOReadByteRequest_2eproto::InitDefaults(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:Tango.PMR.Stubs.StubGPIOReadByteRequest) +} +StubGPIOReadByteRequest::StubGPIOReadByteRequest(const StubGPIOReadByteRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + portid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.portid().size() > 0) { + portid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.portid_); + } + // @@protoc_insertion_point(copy_constructor:Tango.PMR.Stubs.StubGPIOReadByteRequest) +} + +void StubGPIOReadByteRequest::SharedCtor() { + portid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _cached_size_ = 0; +} + +StubGPIOReadByteRequest::~StubGPIOReadByteRequest() { + // @@protoc_insertion_point(destructor:Tango.PMR.Stubs.StubGPIOReadByteRequest) + SharedDtor(); +} + +void StubGPIOReadByteRequest::SharedDtor() { + portid_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void StubGPIOReadByteRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* StubGPIOReadByteRequest::descriptor() { + protobuf_StubGPIOReadByteRequest_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_StubGPIOReadByteRequest_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const StubGPIOReadByteRequest& StubGPIOReadByteRequest::default_instance() { + protobuf_StubGPIOReadByteRequest_2eproto::InitDefaults(); + return *internal_default_instance(); +} + +StubGPIOReadByteRequest* StubGPIOReadByteRequest::New(::google::protobuf::Arena* arena) const { + StubGPIOReadByteRequest* n = new StubGPIOReadByteRequest; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void StubGPIOReadByteRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:Tango.PMR.Stubs.StubGPIOReadByteRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + portid_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _internal_metadata_.Clear(); +} + +bool StubGPIOReadByteRequest::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.StubGPIOReadByteRequest) + 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)) { + // string PortId = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_portid())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->portid().data(), static_cast<int>(this->portid().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "Tango.PMR.Stubs.StubGPIOReadByteRequest.PortId")); + } 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.StubGPIOReadByteRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:Tango.PMR.Stubs.StubGPIOReadByteRequest) + return false; +#undef DO_ +} + +void StubGPIOReadByteRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Tango.PMR.Stubs.StubGPIOReadByteRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string PortId = 1; + if (this->portid().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->portid().data(), static_cast<int>(this->portid().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "Tango.PMR.Stubs.StubGPIOReadByteRequest.PortId"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->portid(), 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.StubGPIOReadByteRequest) +} + +::google::protobuf::uint8* StubGPIOReadByteRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:Tango.PMR.Stubs.StubGPIOReadByteRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string PortId = 1; + if (this->portid().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->portid().data(), static_cast<int>(this->portid().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "Tango.PMR.Stubs.StubGPIOReadByteRequest.PortId"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->portid(), 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.StubGPIOReadByteRequest) + return target; +} + +size_t StubGPIOReadByteRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:Tango.PMR.Stubs.StubGPIOReadByteRequest) + 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 PortId = 1; + if (this->portid().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->portid()); + } + + 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 StubGPIOReadByteRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:Tango.PMR.Stubs.StubGPIOReadByteRequest) + GOOGLE_DCHECK_NE(&from, this); + const StubGPIOReadByteRequest* source = + ::google::protobuf::internal::DynamicCastToGenerated<const StubGPIOReadByteRequest>( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:Tango.PMR.Stubs.StubGPIOReadByteRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:Tango.PMR.Stubs.StubGPIOReadByteRequest) + MergeFrom(*source); + } +} + +void StubGPIOReadByteRequest::MergeFrom(const StubGPIOReadByteRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:Tango.PMR.Stubs.StubGPIOReadByteRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.portid().size() > 0) { + + portid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.portid_); + } +} + +void StubGPIOReadByteRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:Tango.PMR.Stubs.StubGPIOReadByteRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void StubGPIOReadByteRequest::CopyFrom(const StubGPIOReadByteRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:Tango.PMR.Stubs.StubGPIOReadByteRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool StubGPIOReadByteRequest::IsInitialized() const { + return true; +} + +void StubGPIOReadByteRequest::Swap(StubGPIOReadByteRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void StubGPIOReadByteRequest::InternalSwap(StubGPIOReadByteRequest* other) { + using std::swap; + portid_.Swap(&other->portid_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata StubGPIOReadByteRequest::GetMetadata() const { + protobuf_StubGPIOReadByteRequest_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_StubGPIOReadByteRequest_2eproto::file_level_metadata[kIndexInFileMessages]; +} + +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// StubGPIOReadByteRequest + +// string PortId = 1; +void StubGPIOReadByteRequest::clear_portid() { + portid_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +const ::std::string& StubGPIOReadByteRequest::portid() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubGPIOReadByteRequest.PortId) + return portid_.GetNoArena(); +} +void StubGPIOReadByteRequest::set_portid(const ::std::string& value) { + + portid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubGPIOReadByteRequest.PortId) +} +#if LANG_CXX11 +void StubGPIOReadByteRequest::set_portid(::std::string&& value) { + + portid_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:Tango.PMR.Stubs.StubGPIOReadByteRequest.PortId) +} +#endif +void StubGPIOReadByteRequest::set_portid(const char* value) { + GOOGLE_DCHECK(value != NULL); + + portid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:Tango.PMR.Stubs.StubGPIOReadByteRequest.PortId) +} +void StubGPIOReadByteRequest::set_portid(const char* value, size_t size) { + + portid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast<const char*>(value), size)); + // @@protoc_insertion_point(field_set_pointer:Tango.PMR.Stubs.StubGPIOReadByteRequest.PortId) +} +::std::string* StubGPIOReadByteRequest::mutable_portid() { + + // @@protoc_insertion_point(field_mutable:Tango.PMR.Stubs.StubGPIOReadByteRequest.PortId) + return portid_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +::std::string* StubGPIOReadByteRequest::release_portid() { + // @@protoc_insertion_point(field_release:Tango.PMR.Stubs.StubGPIOReadByteRequest.PortId) + + return portid_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +void StubGPIOReadByteRequest::set_allocated_portid(::std::string* portid) { + if (portid != NULL) { + + } else { + + } + portid_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), portid); + // @@protoc_insertion_point(field_set_allocated:Tango.PMR.Stubs.StubGPIOReadByteRequest.PortId) +} + +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS + +// @@protoc_insertion_point(namespace_scope) + +} // namespace Stubs +} // namespace PMR +} // namespace Tango + +// @@protoc_insertion_point(global_scope) diff --git a/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubGPIOReadByteRequest.pb.h b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubGPIOReadByteRequest.pb.h new file mode 100644 index 000000000..d9eb017f1 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubGPIOReadByteRequest.pb.h @@ -0,0 +1,246 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StubGPIOReadByteRequest.proto + +#ifndef PROTOBUF_StubGPIOReadByteRequest_2eproto__INCLUDED +#define PROTOBUF_StubGPIOReadByteRequest_2eproto__INCLUDED + +#include <string> + +#include <google/protobuf/stubs/common.h> + +#if GOOGLE_PROTOBUF_VERSION < 3004000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3004000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include <google/protobuf/io/coded_stream.h> +#include <google/protobuf/arena.h> +#include <google/protobuf/arenastring.h> +#include <google/protobuf/generated_message_table_driven.h> +#include <google/protobuf/generated_message_util.h> +#include <google/protobuf/metadata.h> +#include <google/protobuf/message.h> +#include <google/protobuf/repeated_field.h> // IWYU pragma: export +#include <google/protobuf/extension_set.h> // IWYU pragma: export +#include <google/protobuf/unknown_field_set.h> +// @@protoc_insertion_point(includes) +namespace Tango { +namespace PMR { +namespace Stubs { +class StubGPIOReadByteRequest; +class StubGPIOReadByteRequestDefaultTypeInternal; +extern StubGPIOReadByteRequestDefaultTypeInternal _StubGPIOReadByteRequest_default_instance_; +} // namespace Stubs +} // namespace PMR +} // namespace Tango + +namespace Tango { +namespace PMR { +namespace Stubs { + +namespace protobuf_StubGPIOReadByteRequest_2eproto { +// Internal implementation detail -- do not call these. +struct TableStruct { + static const ::google::protobuf::internal::ParseTableField entries[]; + static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; + static const ::google::protobuf::internal::ParseTable schema[]; + static const ::google::protobuf::uint32 offsets[]; + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static void InitDefaultsImpl(); +}; +void AddDescriptors(); +void InitDefaults(); +} // namespace protobuf_StubGPIOReadByteRequest_2eproto + +// =================================================================== + +class StubGPIOReadByteRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Tango.PMR.Stubs.StubGPIOReadByteRequest) */ { + public: + StubGPIOReadByteRequest(); + virtual ~StubGPIOReadByteRequest(); + + StubGPIOReadByteRequest(const StubGPIOReadByteRequest& from); + + inline StubGPIOReadByteRequest& operator=(const StubGPIOReadByteRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + StubGPIOReadByteRequest(StubGPIOReadByteRequest&& from) noexcept + : StubGPIOReadByteRequest() { + *this = ::std::move(from); + } + + inline StubGPIOReadByteRequest& operator=(StubGPIOReadByteRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const StubGPIOReadByteRequest& default_instance(); + + static inline const StubGPIOReadByteRequest* internal_default_instance() { + return reinterpret_cast<const StubGPIOReadByteRequest*>( + &_StubGPIOReadByteRequest_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 0; + + void Swap(StubGPIOReadByteRequest* other); + friend void swap(StubGPIOReadByteRequest& a, StubGPIOReadByteRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline StubGPIOReadByteRequest* New() const PROTOBUF_FINAL { return New(NULL); } + + StubGPIOReadByteRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const StubGPIOReadByteRequest& from); + void MergeFrom(const StubGPIOReadByteRequest& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(StubGPIOReadByteRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string PortId = 1; + void clear_portid(); + static const int kPortIdFieldNumber = 1; + const ::std::string& portid() const; + void set_portid(const ::std::string& value); + #if LANG_CXX11 + void set_portid(::std::string&& value); + #endif + void set_portid(const char* value); + void set_portid(const char* value, size_t size); + ::std::string* mutable_portid(); + ::std::string* release_portid(); + void set_allocated_portid(::std::string* portid); + + // @@protoc_insertion_point(class_scope:Tango.PMR.Stubs.StubGPIOReadByteRequest) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr portid_; + mutable int _cached_size_; + friend struct protobuf_StubGPIOReadByteRequest_2eproto::TableStruct; +}; +// =================================================================== + + +// =================================================================== + +#if !PROTOBUF_INLINE_NOT_IN_HEADERS +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// StubGPIOReadByteRequest + +// string PortId = 1; +inline void StubGPIOReadByteRequest::clear_portid() { + portid_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& StubGPIOReadByteRequest::portid() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubGPIOReadByteRequest.PortId) + return portid_.GetNoArena(); +} +inline void StubGPIOReadByteRequest::set_portid(const ::std::string& value) { + + portid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubGPIOReadByteRequest.PortId) +} +#if LANG_CXX11 +inline void StubGPIOReadByteRequest::set_portid(::std::string&& value) { + + portid_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:Tango.PMR.Stubs.StubGPIOReadByteRequest.PortId) +} +#endif +inline void StubGPIOReadByteRequest::set_portid(const char* value) { + GOOGLE_DCHECK(value != NULL); + + portid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:Tango.PMR.Stubs.StubGPIOReadByteRequest.PortId) +} +inline void StubGPIOReadByteRequest::set_portid(const char* value, size_t size) { + + portid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast<const char*>(value), size)); + // @@protoc_insertion_point(field_set_pointer:Tango.PMR.Stubs.StubGPIOReadByteRequest.PortId) +} +inline ::std::string* StubGPIOReadByteRequest::mutable_portid() { + + // @@protoc_insertion_point(field_mutable:Tango.PMR.Stubs.StubGPIOReadByteRequest.PortId) + return portid_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* StubGPIOReadByteRequest::release_portid() { + // @@protoc_insertion_point(field_release:Tango.PMR.Stubs.StubGPIOReadByteRequest.PortId) + + return portid_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void StubGPIOReadByteRequest::set_allocated_portid(::std::string* portid) { + if (portid != NULL) { + + } else { + + } + portid_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), portid); + // @@protoc_insertion_point(field_set_allocated:Tango.PMR.Stubs.StubGPIOReadByteRequest.PortId) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +#endif // !PROTOBUF_INLINE_NOT_IN_HEADERS + +// @@protoc_insertion_point(namespace_scope) + + +} // namespace Stubs +} // namespace PMR +} // namespace Tango + +// @@protoc_insertion_point(global_scope) + +#endif // PROTOBUF_StubGPIOReadByteRequest_2eproto__INCLUDED diff --git a/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubGPIOReadByteResponse.pb.cc b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubGPIOReadByteResponse.pb.cc new file mode 100644 index 000000000..5f22fffb7 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubGPIOReadByteResponse.pb.cc @@ -0,0 +1,561 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StubGPIOReadByteResponse.proto + +#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION +#include "StubGPIOReadByteResponse.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 StubGPIOReadByteResponseDefaultTypeInternal { +public: + ::google::protobuf::internal::ExplicitlyConstructed<StubGPIOReadByteResponse> + _instance; +} _StubGPIOReadByteResponse_default_instance_; + +namespace protobuf_StubGPIOReadByteResponse_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(StubGPIOReadByteResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubGPIOReadByteResponse, portid_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubGPIOReadByteResponse, bytevalue_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubGPIOReadByteResponse, status_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(StubGPIOReadByteResponse)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast<const ::google::protobuf::Message*>(&_StubGPIOReadByteResponse_default_instance_), +}; + +namespace { + +void protobuf_AssignDescriptors() { + AddDescriptors(); + ::google::protobuf::MessageFactory* factory = NULL; + AssignDescriptors( + "StubGPIOReadByteResponse.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(); + _StubGPIOReadByteResponse_default_instance_._instance.DefaultConstruct(); + ::google::protobuf::internal::OnShutdownDestroyMessage( + &_StubGPIOReadByteResponse_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\036StubGPIOReadByteResponse.proto\022\017Tango." + "PMR.Stubs\"M\n\030StubGPIOReadByteResponse\022\016\n" + "\006PortId\030\001 \001(\t\022\021\n\tByteValue\030\002 \001(\r\022\016\n\006stat" + "us\030\003 \001(\rB\033\n\031com.twine.tango.pmr.stubsb\006p" + "roto3" + }; + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + descriptor, 165); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "StubGPIOReadByteResponse.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_StubGPIOReadByteResponse_2eproto + + +// =================================================================== + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int StubGPIOReadByteResponse::kPortIdFieldNumber; +const int StubGPIOReadByteResponse::kByteValueFieldNumber; +const int StubGPIOReadByteResponse::kStatusFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +StubGPIOReadByteResponse::StubGPIOReadByteResponse() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_StubGPIOReadByteResponse_2eproto::InitDefaults(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:Tango.PMR.Stubs.StubGPIOReadByteResponse) +} +StubGPIOReadByteResponse::StubGPIOReadByteResponse(const StubGPIOReadByteResponse& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + portid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.portid().size() > 0) { + portid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.portid_); + } + ::memcpy(&bytevalue_, &from.bytevalue_, + static_cast<size_t>(reinterpret_cast<char*>(&status_) - + reinterpret_cast<char*>(&bytevalue_)) + sizeof(status_)); + // @@protoc_insertion_point(copy_constructor:Tango.PMR.Stubs.StubGPIOReadByteResponse) +} + +void StubGPIOReadByteResponse::SharedCtor() { + portid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&bytevalue_, 0, static_cast<size_t>( + reinterpret_cast<char*>(&status_) - + reinterpret_cast<char*>(&bytevalue_)) + sizeof(status_)); + _cached_size_ = 0; +} + +StubGPIOReadByteResponse::~StubGPIOReadByteResponse() { + // @@protoc_insertion_point(destructor:Tango.PMR.Stubs.StubGPIOReadByteResponse) + SharedDtor(); +} + +void StubGPIOReadByteResponse::SharedDtor() { + portid_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void StubGPIOReadByteResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* StubGPIOReadByteResponse::descriptor() { + protobuf_StubGPIOReadByteResponse_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_StubGPIOReadByteResponse_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const StubGPIOReadByteResponse& StubGPIOReadByteResponse::default_instance() { + protobuf_StubGPIOReadByteResponse_2eproto::InitDefaults(); + return *internal_default_instance(); +} + +StubGPIOReadByteResponse* StubGPIOReadByteResponse::New(::google::protobuf::Arena* arena) const { + StubGPIOReadByteResponse* n = new StubGPIOReadByteResponse; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void StubGPIOReadByteResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:Tango.PMR.Stubs.StubGPIOReadByteResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + portid_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&bytevalue_, 0, static_cast<size_t>( + reinterpret_cast<char*>(&status_) - + reinterpret_cast<char*>(&bytevalue_)) + sizeof(status_)); + _internal_metadata_.Clear(); +} + +bool StubGPIOReadByteResponse::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.StubGPIOReadByteResponse) + 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)) { + // string PortId = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_portid())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->portid().data(), static_cast<int>(this->portid().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "Tango.PMR.Stubs.StubGPIOReadByteResponse.PortId")); + } else { + goto handle_unusual; + } + break; + } + + // uint32 ByteValue = 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, &bytevalue_))); + } else { + goto handle_unusual; + } + break; + } + + // uint32 status = 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, &status_))); + } 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.StubGPIOReadByteResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:Tango.PMR.Stubs.StubGPIOReadByteResponse) + return false; +#undef DO_ +} + +void StubGPIOReadByteResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Tango.PMR.Stubs.StubGPIOReadByteResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string PortId = 1; + if (this->portid().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->portid().data(), static_cast<int>(this->portid().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "Tango.PMR.Stubs.StubGPIOReadByteResponse.PortId"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->portid(), output); + } + + // uint32 ByteValue = 2; + if (this->bytevalue() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->bytevalue(), output); + } + + // uint32 status = 3; + if (this->status() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->status(), 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.StubGPIOReadByteResponse) +} + +::google::protobuf::uint8* StubGPIOReadByteResponse::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:Tango.PMR.Stubs.StubGPIOReadByteResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string PortId = 1; + if (this->portid().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->portid().data(), static_cast<int>(this->portid().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "Tango.PMR.Stubs.StubGPIOReadByteResponse.PortId"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->portid(), target); + } + + // uint32 ByteValue = 2; + if (this->bytevalue() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->bytevalue(), target); + } + + // uint32 status = 3; + if (this->status() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->status(), 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.StubGPIOReadByteResponse) + return target; +} + +size_t StubGPIOReadByteResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:Tango.PMR.Stubs.StubGPIOReadByteResponse) + 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 PortId = 1; + if (this->portid().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->portid()); + } + + // uint32 ByteValue = 2; + if (this->bytevalue() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->bytevalue()); + } + + // uint32 status = 3; + if (this->status() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->status()); + } + + 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 StubGPIOReadByteResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:Tango.PMR.Stubs.StubGPIOReadByteResponse) + GOOGLE_DCHECK_NE(&from, this); + const StubGPIOReadByteResponse* source = + ::google::protobuf::internal::DynamicCastToGenerated<const StubGPIOReadByteResponse>( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:Tango.PMR.Stubs.StubGPIOReadByteResponse) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:Tango.PMR.Stubs.StubGPIOReadByteResponse) + MergeFrom(*source); + } +} + +void StubGPIOReadByteResponse::MergeFrom(const StubGPIOReadByteResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:Tango.PMR.Stubs.StubGPIOReadByteResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.portid().size() > 0) { + + portid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.portid_); + } + if (from.bytevalue() != 0) { + set_bytevalue(from.bytevalue()); + } + if (from.status() != 0) { + set_status(from.status()); + } +} + +void StubGPIOReadByteResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:Tango.PMR.Stubs.StubGPIOReadByteResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void StubGPIOReadByteResponse::CopyFrom(const StubGPIOReadByteResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:Tango.PMR.Stubs.StubGPIOReadByteResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool StubGPIOReadByteResponse::IsInitialized() const { + return true; +} + +void StubGPIOReadByteResponse::Swap(StubGPIOReadByteResponse* other) { + if (other == this) return; + InternalSwap(other); +} +void StubGPIOReadByteResponse::InternalSwap(StubGPIOReadByteResponse* other) { + using std::swap; + portid_.Swap(&other->portid_); + swap(bytevalue_, other->bytevalue_); + swap(status_, other->status_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata StubGPIOReadByteResponse::GetMetadata() const { + protobuf_StubGPIOReadByteResponse_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_StubGPIOReadByteResponse_2eproto::file_level_metadata[kIndexInFileMessages]; +} + +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// StubGPIOReadByteResponse + +// string PortId = 1; +void StubGPIOReadByteResponse::clear_portid() { + portid_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +const ::std::string& StubGPIOReadByteResponse::portid() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubGPIOReadByteResponse.PortId) + return portid_.GetNoArena(); +} +void StubGPIOReadByteResponse::set_portid(const ::std::string& value) { + + portid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubGPIOReadByteResponse.PortId) +} +#if LANG_CXX11 +void StubGPIOReadByteResponse::set_portid(::std::string&& value) { + + portid_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:Tango.PMR.Stubs.StubGPIOReadByteResponse.PortId) +} +#endif +void StubGPIOReadByteResponse::set_portid(const char* value) { + GOOGLE_DCHECK(value != NULL); + + portid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:Tango.PMR.Stubs.StubGPIOReadByteResponse.PortId) +} +void StubGPIOReadByteResponse::set_portid(const char* value, size_t size) { + + portid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast<const char*>(value), size)); + // @@protoc_insertion_point(field_set_pointer:Tango.PMR.Stubs.StubGPIOReadByteResponse.PortId) +} +::std::string* StubGPIOReadByteResponse::mutable_portid() { + + // @@protoc_insertion_point(field_mutable:Tango.PMR.Stubs.StubGPIOReadByteResponse.PortId) + return portid_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +::std::string* StubGPIOReadByteResponse::release_portid() { + // @@protoc_insertion_point(field_release:Tango.PMR.Stubs.StubGPIOReadByteResponse.PortId) + + return portid_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +void StubGPIOReadByteResponse::set_allocated_portid(::std::string* portid) { + if (portid != NULL) { + + } else { + + } + portid_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), portid); + // @@protoc_insertion_point(field_set_allocated:Tango.PMR.Stubs.StubGPIOReadByteResponse.PortId) +} + +// uint32 ByteValue = 2; +void StubGPIOReadByteResponse::clear_bytevalue() { + bytevalue_ = 0u; +} +::google::protobuf::uint32 StubGPIOReadByteResponse::bytevalue() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubGPIOReadByteResponse.ByteValue) + return bytevalue_; +} +void StubGPIOReadByteResponse::set_bytevalue(::google::protobuf::uint32 value) { + + bytevalue_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubGPIOReadByteResponse.ByteValue) +} + +// uint32 status = 3; +void StubGPIOReadByteResponse::clear_status() { + status_ = 0u; +} +::google::protobuf::uint32 StubGPIOReadByteResponse::status() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubGPIOReadByteResponse.status) + return status_; +} +void StubGPIOReadByteResponse::set_status(::google::protobuf::uint32 value) { + + status_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubGPIOReadByteResponse.status) +} + +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS + +// @@protoc_insertion_point(namespace_scope) + +} // namespace Stubs +} // namespace PMR +} // namespace Tango + +// @@protoc_insertion_point(global_scope) diff --git a/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubGPIOReadByteResponse.pb.h b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubGPIOReadByteResponse.pb.h new file mode 100644 index 000000000..1cca751be --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubGPIOReadByteResponse.pb.h @@ -0,0 +1,288 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StubGPIOReadByteResponse.proto + +#ifndef PROTOBUF_StubGPIOReadByteResponse_2eproto__INCLUDED +#define PROTOBUF_StubGPIOReadByteResponse_2eproto__INCLUDED + +#include <string> + +#include <google/protobuf/stubs/common.h> + +#if GOOGLE_PROTOBUF_VERSION < 3004000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3004000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include <google/protobuf/io/coded_stream.h> +#include <google/protobuf/arena.h> +#include <google/protobuf/arenastring.h> +#include <google/protobuf/generated_message_table_driven.h> +#include <google/protobuf/generated_message_util.h> +#include <google/protobuf/metadata.h> +#include <google/protobuf/message.h> +#include <google/protobuf/repeated_field.h> // IWYU pragma: export +#include <google/protobuf/extension_set.h> // IWYU pragma: export +#include <google/protobuf/unknown_field_set.h> +// @@protoc_insertion_point(includes) +namespace Tango { +namespace PMR { +namespace Stubs { +class StubGPIOReadByteResponse; +class StubGPIOReadByteResponseDefaultTypeInternal; +extern StubGPIOReadByteResponseDefaultTypeInternal _StubGPIOReadByteResponse_default_instance_; +} // namespace Stubs +} // namespace PMR +} // namespace Tango + +namespace Tango { +namespace PMR { +namespace Stubs { + +namespace protobuf_StubGPIOReadByteResponse_2eproto { +// Internal implementation detail -- do not call these. +struct TableStruct { + static const ::google::protobuf::internal::ParseTableField entries[]; + static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; + static const ::google::protobuf::internal::ParseTable schema[]; + static const ::google::protobuf::uint32 offsets[]; + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static void InitDefaultsImpl(); +}; +void AddDescriptors(); +void InitDefaults(); +} // namespace protobuf_StubGPIOReadByteResponse_2eproto + +// =================================================================== + +class StubGPIOReadByteResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Tango.PMR.Stubs.StubGPIOReadByteResponse) */ { + public: + StubGPIOReadByteResponse(); + virtual ~StubGPIOReadByteResponse(); + + StubGPIOReadByteResponse(const StubGPIOReadByteResponse& from); + + inline StubGPIOReadByteResponse& operator=(const StubGPIOReadByteResponse& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + StubGPIOReadByteResponse(StubGPIOReadByteResponse&& from) noexcept + : StubGPIOReadByteResponse() { + *this = ::std::move(from); + } + + inline StubGPIOReadByteResponse& operator=(StubGPIOReadByteResponse&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const StubGPIOReadByteResponse& default_instance(); + + static inline const StubGPIOReadByteResponse* internal_default_instance() { + return reinterpret_cast<const StubGPIOReadByteResponse*>( + &_StubGPIOReadByteResponse_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 0; + + void Swap(StubGPIOReadByteResponse* other); + friend void swap(StubGPIOReadByteResponse& a, StubGPIOReadByteResponse& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline StubGPIOReadByteResponse* New() const PROTOBUF_FINAL { return New(NULL); } + + StubGPIOReadByteResponse* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const StubGPIOReadByteResponse& from); + void MergeFrom(const StubGPIOReadByteResponse& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(StubGPIOReadByteResponse* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string PortId = 1; + void clear_portid(); + static const int kPortIdFieldNumber = 1; + const ::std::string& portid() const; + void set_portid(const ::std::string& value); + #if LANG_CXX11 + void set_portid(::std::string&& value); + #endif + void set_portid(const char* value); + void set_portid(const char* value, size_t size); + ::std::string* mutable_portid(); + ::std::string* release_portid(); + void set_allocated_portid(::std::string* portid); + + // uint32 ByteValue = 2; + void clear_bytevalue(); + static const int kByteValueFieldNumber = 2; + ::google::protobuf::uint32 bytevalue() const; + void set_bytevalue(::google::protobuf::uint32 value); + + // uint32 status = 3; + void clear_status(); + static const int kStatusFieldNumber = 3; + ::google::protobuf::uint32 status() const; + void set_status(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:Tango.PMR.Stubs.StubGPIOReadByteResponse) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr portid_; + ::google::protobuf::uint32 bytevalue_; + ::google::protobuf::uint32 status_; + mutable int _cached_size_; + friend struct protobuf_StubGPIOReadByteResponse_2eproto::TableStruct; +}; +// =================================================================== + + +// =================================================================== + +#if !PROTOBUF_INLINE_NOT_IN_HEADERS +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// StubGPIOReadByteResponse + +// string PortId = 1; +inline void StubGPIOReadByteResponse::clear_portid() { + portid_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& StubGPIOReadByteResponse::portid() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubGPIOReadByteResponse.PortId) + return portid_.GetNoArena(); +} +inline void StubGPIOReadByteResponse::set_portid(const ::std::string& value) { + + portid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubGPIOReadByteResponse.PortId) +} +#if LANG_CXX11 +inline void StubGPIOReadByteResponse::set_portid(::std::string&& value) { + + portid_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:Tango.PMR.Stubs.StubGPIOReadByteResponse.PortId) +} +#endif +inline void StubGPIOReadByteResponse::set_portid(const char* value) { + GOOGLE_DCHECK(value != NULL); + + portid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:Tango.PMR.Stubs.StubGPIOReadByteResponse.PortId) +} +inline void StubGPIOReadByteResponse::set_portid(const char* value, size_t size) { + + portid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast<const char*>(value), size)); + // @@protoc_insertion_point(field_set_pointer:Tango.PMR.Stubs.StubGPIOReadByteResponse.PortId) +} +inline ::std::string* StubGPIOReadByteResponse::mutable_portid() { + + // @@protoc_insertion_point(field_mutable:Tango.PMR.Stubs.StubGPIOReadByteResponse.PortId) + return portid_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* StubGPIOReadByteResponse::release_portid() { + // @@protoc_insertion_point(field_release:Tango.PMR.Stubs.StubGPIOReadByteResponse.PortId) + + return portid_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void StubGPIOReadByteResponse::set_allocated_portid(::std::string* portid) { + if (portid != NULL) { + + } else { + + } + portid_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), portid); + // @@protoc_insertion_point(field_set_allocated:Tango.PMR.Stubs.StubGPIOReadByteResponse.PortId) +} + +// uint32 ByteValue = 2; +inline void StubGPIOReadByteResponse::clear_bytevalue() { + bytevalue_ = 0u; +} +inline ::google::protobuf::uint32 StubGPIOReadByteResponse::bytevalue() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubGPIOReadByteResponse.ByteValue) + return bytevalue_; +} +inline void StubGPIOReadByteResponse::set_bytevalue(::google::protobuf::uint32 value) { + + bytevalue_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubGPIOReadByteResponse.ByteValue) +} + +// uint32 status = 3; +inline void StubGPIOReadByteResponse::clear_status() { + status_ = 0u; +} +inline ::google::protobuf::uint32 StubGPIOReadByteResponse::status() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubGPIOReadByteResponse.status) + return status_; +} +inline void StubGPIOReadByteResponse::set_status(::google::protobuf::uint32 value) { + + status_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubGPIOReadByteResponse.status) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +#endif // !PROTOBUF_INLINE_NOT_IN_HEADERS + +// @@protoc_insertion_point(namespace_scope) + + +} // namespace Stubs +} // namespace PMR +} // namespace Tango + +// @@protoc_insertion_point(global_scope) + +#endif // PROTOBUF_StubGPIOReadByteResponse_2eproto__INCLUDED diff --git a/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubGPIOWriteBitRequest.pb.cc b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubGPIOWriteBitRequest.pb.cc new file mode 100644 index 000000000..8334aab07 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubGPIOWriteBitRequest.pb.cc @@ -0,0 +1,559 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StubGPIOWriteBitRequest.proto + +#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION +#include "StubGPIOWriteBitRequest.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 StubGPIOWriteBitRequestDefaultTypeInternal { +public: + ::google::protobuf::internal::ExplicitlyConstructed<StubGPIOWriteBitRequest> + _instance; +} _StubGPIOWriteBitRequest_default_instance_; + +namespace protobuf_StubGPIOWriteBitRequest_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(StubGPIOWriteBitRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubGPIOWriteBitRequest, portid_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubGPIOWriteBitRequest, pinid_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubGPIOWriteBitRequest, bittowrite_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(StubGPIOWriteBitRequest)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast<const ::google::protobuf::Message*>(&_StubGPIOWriteBitRequest_default_instance_), +}; + +namespace { + +void protobuf_AssignDescriptors() { + AddDescriptors(); + ::google::protobuf::MessageFactory* factory = NULL; + AssignDescriptors( + "StubGPIOWriteBitRequest.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(); + _StubGPIOWriteBitRequest_default_instance_._instance.DefaultConstruct(); + ::google::protobuf::internal::OnShutdownDestroyMessage( + &_StubGPIOWriteBitRequest_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\035StubGPIOWriteBitRequest.proto\022\017Tango.P" + "MR.Stubs\"L\n\027StubGPIOWriteBitRequest\022\016\n\006P" + "ortId\030\001 \001(\t\022\r\n\005PinId\030\002 \001(\r\022\022\n\nBitToWrite" + "\030\003 \001(\010B\033\n\031com.twine.tango.pmr.stubsb\006pro" + "to3" + }; + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + descriptor, 163); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "StubGPIOWriteBitRequest.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_StubGPIOWriteBitRequest_2eproto + + +// =================================================================== + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int StubGPIOWriteBitRequest::kPortIdFieldNumber; +const int StubGPIOWriteBitRequest::kPinIdFieldNumber; +const int StubGPIOWriteBitRequest::kBitToWriteFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +StubGPIOWriteBitRequest::StubGPIOWriteBitRequest() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_StubGPIOWriteBitRequest_2eproto::InitDefaults(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:Tango.PMR.Stubs.StubGPIOWriteBitRequest) +} +StubGPIOWriteBitRequest::StubGPIOWriteBitRequest(const StubGPIOWriteBitRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + portid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.portid().size() > 0) { + portid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.portid_); + } + ::memcpy(&pinid_, &from.pinid_, + static_cast<size_t>(reinterpret_cast<char*>(&bittowrite_) - + reinterpret_cast<char*>(&pinid_)) + sizeof(bittowrite_)); + // @@protoc_insertion_point(copy_constructor:Tango.PMR.Stubs.StubGPIOWriteBitRequest) +} + +void StubGPIOWriteBitRequest::SharedCtor() { + portid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&pinid_, 0, static_cast<size_t>( + reinterpret_cast<char*>(&bittowrite_) - + reinterpret_cast<char*>(&pinid_)) + sizeof(bittowrite_)); + _cached_size_ = 0; +} + +StubGPIOWriteBitRequest::~StubGPIOWriteBitRequest() { + // @@protoc_insertion_point(destructor:Tango.PMR.Stubs.StubGPIOWriteBitRequest) + SharedDtor(); +} + +void StubGPIOWriteBitRequest::SharedDtor() { + portid_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void StubGPIOWriteBitRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* StubGPIOWriteBitRequest::descriptor() { + protobuf_StubGPIOWriteBitRequest_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_StubGPIOWriteBitRequest_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const StubGPIOWriteBitRequest& StubGPIOWriteBitRequest::default_instance() { + protobuf_StubGPIOWriteBitRequest_2eproto::InitDefaults(); + return *internal_default_instance(); +} + +StubGPIOWriteBitRequest* StubGPIOWriteBitRequest::New(::google::protobuf::Arena* arena) const { + StubGPIOWriteBitRequest* n = new StubGPIOWriteBitRequest; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void StubGPIOWriteBitRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:Tango.PMR.Stubs.StubGPIOWriteBitRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + portid_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&pinid_, 0, static_cast<size_t>( + reinterpret_cast<char*>(&bittowrite_) - + reinterpret_cast<char*>(&pinid_)) + sizeof(bittowrite_)); + _internal_metadata_.Clear(); +} + +bool StubGPIOWriteBitRequest::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.StubGPIOWriteBitRequest) + 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)) { + // string PortId = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_portid())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->portid().data(), static_cast<int>(this->portid().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "Tango.PMR.Stubs.StubGPIOWriteBitRequest.PortId")); + } else { + goto handle_unusual; + } + break; + } + + // uint32 PinId = 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, &pinid_))); + } else { + goto handle_unusual; + } + break; + } + + // bool BitToWrite = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &bittowrite_))); + } 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.StubGPIOWriteBitRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:Tango.PMR.Stubs.StubGPIOWriteBitRequest) + return false; +#undef DO_ +} + +void StubGPIOWriteBitRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Tango.PMR.Stubs.StubGPIOWriteBitRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string PortId = 1; + if (this->portid().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->portid().data(), static_cast<int>(this->portid().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "Tango.PMR.Stubs.StubGPIOWriteBitRequest.PortId"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->portid(), output); + } + + // uint32 PinId = 2; + if (this->pinid() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->pinid(), output); + } + + // bool BitToWrite = 3; + if (this->bittowrite() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->bittowrite(), 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.StubGPIOWriteBitRequest) +} + +::google::protobuf::uint8* StubGPIOWriteBitRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:Tango.PMR.Stubs.StubGPIOWriteBitRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string PortId = 1; + if (this->portid().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->portid().data(), static_cast<int>(this->portid().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "Tango.PMR.Stubs.StubGPIOWriteBitRequest.PortId"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->portid(), target); + } + + // uint32 PinId = 2; + if (this->pinid() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->pinid(), target); + } + + // bool BitToWrite = 3; + if (this->bittowrite() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->bittowrite(), 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.StubGPIOWriteBitRequest) + return target; +} + +size_t StubGPIOWriteBitRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:Tango.PMR.Stubs.StubGPIOWriteBitRequest) + 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 PortId = 1; + if (this->portid().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->portid()); + } + + // uint32 PinId = 2; + if (this->pinid() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->pinid()); + } + + // bool BitToWrite = 3; + if (this->bittowrite() != 0) { + total_size += 1 + 1; + } + + 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 StubGPIOWriteBitRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:Tango.PMR.Stubs.StubGPIOWriteBitRequest) + GOOGLE_DCHECK_NE(&from, this); + const StubGPIOWriteBitRequest* source = + ::google::protobuf::internal::DynamicCastToGenerated<const StubGPIOWriteBitRequest>( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:Tango.PMR.Stubs.StubGPIOWriteBitRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:Tango.PMR.Stubs.StubGPIOWriteBitRequest) + MergeFrom(*source); + } +} + +void StubGPIOWriteBitRequest::MergeFrom(const StubGPIOWriteBitRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:Tango.PMR.Stubs.StubGPIOWriteBitRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.portid().size() > 0) { + + portid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.portid_); + } + if (from.pinid() != 0) { + set_pinid(from.pinid()); + } + if (from.bittowrite() != 0) { + set_bittowrite(from.bittowrite()); + } +} + +void StubGPIOWriteBitRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:Tango.PMR.Stubs.StubGPIOWriteBitRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void StubGPIOWriteBitRequest::CopyFrom(const StubGPIOWriteBitRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:Tango.PMR.Stubs.StubGPIOWriteBitRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool StubGPIOWriteBitRequest::IsInitialized() const { + return true; +} + +void StubGPIOWriteBitRequest::Swap(StubGPIOWriteBitRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void StubGPIOWriteBitRequest::InternalSwap(StubGPIOWriteBitRequest* other) { + using std::swap; + portid_.Swap(&other->portid_); + swap(pinid_, other->pinid_); + swap(bittowrite_, other->bittowrite_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata StubGPIOWriteBitRequest::GetMetadata() const { + protobuf_StubGPIOWriteBitRequest_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_StubGPIOWriteBitRequest_2eproto::file_level_metadata[kIndexInFileMessages]; +} + +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// StubGPIOWriteBitRequest + +// string PortId = 1; +void StubGPIOWriteBitRequest::clear_portid() { + portid_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +const ::std::string& StubGPIOWriteBitRequest::portid() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubGPIOWriteBitRequest.PortId) + return portid_.GetNoArena(); +} +void StubGPIOWriteBitRequest::set_portid(const ::std::string& value) { + + portid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubGPIOWriteBitRequest.PortId) +} +#if LANG_CXX11 +void StubGPIOWriteBitRequest::set_portid(::std::string&& value) { + + portid_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:Tango.PMR.Stubs.StubGPIOWriteBitRequest.PortId) +} +#endif +void StubGPIOWriteBitRequest::set_portid(const char* value) { + GOOGLE_DCHECK(value != NULL); + + portid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:Tango.PMR.Stubs.StubGPIOWriteBitRequest.PortId) +} +void StubGPIOWriteBitRequest::set_portid(const char* value, size_t size) { + + portid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast<const char*>(value), size)); + // @@protoc_insertion_point(field_set_pointer:Tango.PMR.Stubs.StubGPIOWriteBitRequest.PortId) +} +::std::string* StubGPIOWriteBitRequest::mutable_portid() { + + // @@protoc_insertion_point(field_mutable:Tango.PMR.Stubs.StubGPIOWriteBitRequest.PortId) + return portid_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +::std::string* StubGPIOWriteBitRequest::release_portid() { + // @@protoc_insertion_point(field_release:Tango.PMR.Stubs.StubGPIOWriteBitRequest.PortId) + + return portid_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +void StubGPIOWriteBitRequest::set_allocated_portid(::std::string* portid) { + if (portid != NULL) { + + } else { + + } + portid_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), portid); + // @@protoc_insertion_point(field_set_allocated:Tango.PMR.Stubs.StubGPIOWriteBitRequest.PortId) +} + +// uint32 PinId = 2; +void StubGPIOWriteBitRequest::clear_pinid() { + pinid_ = 0u; +} +::google::protobuf::uint32 StubGPIOWriteBitRequest::pinid() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubGPIOWriteBitRequest.PinId) + return pinid_; +} +void StubGPIOWriteBitRequest::set_pinid(::google::protobuf::uint32 value) { + + pinid_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubGPIOWriteBitRequest.PinId) +} + +// bool BitToWrite = 3; +void StubGPIOWriteBitRequest::clear_bittowrite() { + bittowrite_ = false; +} +bool StubGPIOWriteBitRequest::bittowrite() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubGPIOWriteBitRequest.BitToWrite) + return bittowrite_; +} +void StubGPIOWriteBitRequest::set_bittowrite(bool value) { + + bittowrite_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubGPIOWriteBitRequest.BitToWrite) +} + +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS + +// @@protoc_insertion_point(namespace_scope) + +} // namespace Stubs +} // namespace PMR +} // namespace Tango + +// @@protoc_insertion_point(global_scope) diff --git a/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubGPIOWriteBitRequest.pb.h b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubGPIOWriteBitRequest.pb.h new file mode 100644 index 000000000..c748a9dc0 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubGPIOWriteBitRequest.pb.h @@ -0,0 +1,288 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StubGPIOWriteBitRequest.proto + +#ifndef PROTOBUF_StubGPIOWriteBitRequest_2eproto__INCLUDED +#define PROTOBUF_StubGPIOWriteBitRequest_2eproto__INCLUDED + +#include <string> + +#include <google/protobuf/stubs/common.h> + +#if GOOGLE_PROTOBUF_VERSION < 3004000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3004000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include <google/protobuf/io/coded_stream.h> +#include <google/protobuf/arena.h> +#include <google/protobuf/arenastring.h> +#include <google/protobuf/generated_message_table_driven.h> +#include <google/protobuf/generated_message_util.h> +#include <google/protobuf/metadata.h> +#include <google/protobuf/message.h> +#include <google/protobuf/repeated_field.h> // IWYU pragma: export +#include <google/protobuf/extension_set.h> // IWYU pragma: export +#include <google/protobuf/unknown_field_set.h> +// @@protoc_insertion_point(includes) +namespace Tango { +namespace PMR { +namespace Stubs { +class StubGPIOWriteBitRequest; +class StubGPIOWriteBitRequestDefaultTypeInternal; +extern StubGPIOWriteBitRequestDefaultTypeInternal _StubGPIOWriteBitRequest_default_instance_; +} // namespace Stubs +} // namespace PMR +} // namespace Tango + +namespace Tango { +namespace PMR { +namespace Stubs { + +namespace protobuf_StubGPIOWriteBitRequest_2eproto { +// Internal implementation detail -- do not call these. +struct TableStruct { + static const ::google::protobuf::internal::ParseTableField entries[]; + static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; + static const ::google::protobuf::internal::ParseTable schema[]; + static const ::google::protobuf::uint32 offsets[]; + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static void InitDefaultsImpl(); +}; +void AddDescriptors(); +void InitDefaults(); +} // namespace protobuf_StubGPIOWriteBitRequest_2eproto + +// =================================================================== + +class StubGPIOWriteBitRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Tango.PMR.Stubs.StubGPIOWriteBitRequest) */ { + public: + StubGPIOWriteBitRequest(); + virtual ~StubGPIOWriteBitRequest(); + + StubGPIOWriteBitRequest(const StubGPIOWriteBitRequest& from); + + inline StubGPIOWriteBitRequest& operator=(const StubGPIOWriteBitRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + StubGPIOWriteBitRequest(StubGPIOWriteBitRequest&& from) noexcept + : StubGPIOWriteBitRequest() { + *this = ::std::move(from); + } + + inline StubGPIOWriteBitRequest& operator=(StubGPIOWriteBitRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const StubGPIOWriteBitRequest& default_instance(); + + static inline const StubGPIOWriteBitRequest* internal_default_instance() { + return reinterpret_cast<const StubGPIOWriteBitRequest*>( + &_StubGPIOWriteBitRequest_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 0; + + void Swap(StubGPIOWriteBitRequest* other); + friend void swap(StubGPIOWriteBitRequest& a, StubGPIOWriteBitRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline StubGPIOWriteBitRequest* New() const PROTOBUF_FINAL { return New(NULL); } + + StubGPIOWriteBitRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const StubGPIOWriteBitRequest& from); + void MergeFrom(const StubGPIOWriteBitRequest& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(StubGPIOWriteBitRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string PortId = 1; + void clear_portid(); + static const int kPortIdFieldNumber = 1; + const ::std::string& portid() const; + void set_portid(const ::std::string& value); + #if LANG_CXX11 + void set_portid(::std::string&& value); + #endif + void set_portid(const char* value); + void set_portid(const char* value, size_t size); + ::std::string* mutable_portid(); + ::std::string* release_portid(); + void set_allocated_portid(::std::string* portid); + + // uint32 PinId = 2; + void clear_pinid(); + static const int kPinIdFieldNumber = 2; + ::google::protobuf::uint32 pinid() const; + void set_pinid(::google::protobuf::uint32 value); + + // bool BitToWrite = 3; + void clear_bittowrite(); + static const int kBitToWriteFieldNumber = 3; + bool bittowrite() const; + void set_bittowrite(bool value); + + // @@protoc_insertion_point(class_scope:Tango.PMR.Stubs.StubGPIOWriteBitRequest) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr portid_; + ::google::protobuf::uint32 pinid_; + bool bittowrite_; + mutable int _cached_size_; + friend struct protobuf_StubGPIOWriteBitRequest_2eproto::TableStruct; +}; +// =================================================================== + + +// =================================================================== + +#if !PROTOBUF_INLINE_NOT_IN_HEADERS +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// StubGPIOWriteBitRequest + +// string PortId = 1; +inline void StubGPIOWriteBitRequest::clear_portid() { + portid_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& StubGPIOWriteBitRequest::portid() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubGPIOWriteBitRequest.PortId) + return portid_.GetNoArena(); +} +inline void StubGPIOWriteBitRequest::set_portid(const ::std::string& value) { + + portid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubGPIOWriteBitRequest.PortId) +} +#if LANG_CXX11 +inline void StubGPIOWriteBitRequest::set_portid(::std::string&& value) { + + portid_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:Tango.PMR.Stubs.StubGPIOWriteBitRequest.PortId) +} +#endif +inline void StubGPIOWriteBitRequest::set_portid(const char* value) { + GOOGLE_DCHECK(value != NULL); + + portid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:Tango.PMR.Stubs.StubGPIOWriteBitRequest.PortId) +} +inline void StubGPIOWriteBitRequest::set_portid(const char* value, size_t size) { + + portid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast<const char*>(value), size)); + // @@protoc_insertion_point(field_set_pointer:Tango.PMR.Stubs.StubGPIOWriteBitRequest.PortId) +} +inline ::std::string* StubGPIOWriteBitRequest::mutable_portid() { + + // @@protoc_insertion_point(field_mutable:Tango.PMR.Stubs.StubGPIOWriteBitRequest.PortId) + return portid_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* StubGPIOWriteBitRequest::release_portid() { + // @@protoc_insertion_point(field_release:Tango.PMR.Stubs.StubGPIOWriteBitRequest.PortId) + + return portid_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void StubGPIOWriteBitRequest::set_allocated_portid(::std::string* portid) { + if (portid != NULL) { + + } else { + + } + portid_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), portid); + // @@protoc_insertion_point(field_set_allocated:Tango.PMR.Stubs.StubGPIOWriteBitRequest.PortId) +} + +// uint32 PinId = 2; +inline void StubGPIOWriteBitRequest::clear_pinid() { + pinid_ = 0u; +} +inline ::google::protobuf::uint32 StubGPIOWriteBitRequest::pinid() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubGPIOWriteBitRequest.PinId) + return pinid_; +} +inline void StubGPIOWriteBitRequest::set_pinid(::google::protobuf::uint32 value) { + + pinid_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubGPIOWriteBitRequest.PinId) +} + +// bool BitToWrite = 3; +inline void StubGPIOWriteBitRequest::clear_bittowrite() { + bittowrite_ = false; +} +inline bool StubGPIOWriteBitRequest::bittowrite() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubGPIOWriteBitRequest.BitToWrite) + return bittowrite_; +} +inline void StubGPIOWriteBitRequest::set_bittowrite(bool value) { + + bittowrite_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubGPIOWriteBitRequest.BitToWrite) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +#endif // !PROTOBUF_INLINE_NOT_IN_HEADERS + +// @@protoc_insertion_point(namespace_scope) + + +} // namespace Stubs +} // namespace PMR +} // namespace Tango + +// @@protoc_insertion_point(global_scope) + +#endif // PROTOBUF_StubGPIOWriteBitRequest_2eproto__INCLUDED diff --git a/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubGPIOWriteBitResponse.pb.cc b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubGPIOWriteBitResponse.pb.cc new file mode 100644 index 000000000..6a8ebb57b --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubGPIOWriteBitResponse.pb.cc @@ -0,0 +1,561 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StubGPIOWriteBitResponse.proto + +#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION +#include "StubGPIOWriteBitResponse.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 StubGPIOWriteBitResponseDefaultTypeInternal { +public: + ::google::protobuf::internal::ExplicitlyConstructed<StubGPIOWriteBitResponse> + _instance; +} _StubGPIOWriteBitResponse_default_instance_; + +namespace protobuf_StubGPIOWriteBitResponse_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(StubGPIOWriteBitResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubGPIOWriteBitResponse, portid_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubGPIOWriteBitResponse, pinid_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubGPIOWriteBitResponse, status_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(StubGPIOWriteBitResponse)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast<const ::google::protobuf::Message*>(&_StubGPIOWriteBitResponse_default_instance_), +}; + +namespace { + +void protobuf_AssignDescriptors() { + AddDescriptors(); + ::google::protobuf::MessageFactory* factory = NULL; + AssignDescriptors( + "StubGPIOWriteBitResponse.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(); + _StubGPIOWriteBitResponse_default_instance_._instance.DefaultConstruct(); + ::google::protobuf::internal::OnShutdownDestroyMessage( + &_StubGPIOWriteBitResponse_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\036StubGPIOWriteBitResponse.proto\022\017Tango." + "PMR.Stubs\"I\n\030StubGPIOWriteBitResponse\022\016\n" + "\006PortId\030\001 \001(\t\022\r\n\005PinId\030\002 \001(\r\022\016\n\006Status\030\003" + " \001(\rB\033\n\031com.twine.tango.pmr.stubsb\006proto" + "3" + }; + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + descriptor, 161); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "StubGPIOWriteBitResponse.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_StubGPIOWriteBitResponse_2eproto + + +// =================================================================== + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int StubGPIOWriteBitResponse::kPortIdFieldNumber; +const int StubGPIOWriteBitResponse::kPinIdFieldNumber; +const int StubGPIOWriteBitResponse::kStatusFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +StubGPIOWriteBitResponse::StubGPIOWriteBitResponse() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_StubGPIOWriteBitResponse_2eproto::InitDefaults(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:Tango.PMR.Stubs.StubGPIOWriteBitResponse) +} +StubGPIOWriteBitResponse::StubGPIOWriteBitResponse(const StubGPIOWriteBitResponse& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + portid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.portid().size() > 0) { + portid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.portid_); + } + ::memcpy(&pinid_, &from.pinid_, + static_cast<size_t>(reinterpret_cast<char*>(&status_) - + reinterpret_cast<char*>(&pinid_)) + sizeof(status_)); + // @@protoc_insertion_point(copy_constructor:Tango.PMR.Stubs.StubGPIOWriteBitResponse) +} + +void StubGPIOWriteBitResponse::SharedCtor() { + portid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&pinid_, 0, static_cast<size_t>( + reinterpret_cast<char*>(&status_) - + reinterpret_cast<char*>(&pinid_)) + sizeof(status_)); + _cached_size_ = 0; +} + +StubGPIOWriteBitResponse::~StubGPIOWriteBitResponse() { + // @@protoc_insertion_point(destructor:Tango.PMR.Stubs.StubGPIOWriteBitResponse) + SharedDtor(); +} + +void StubGPIOWriteBitResponse::SharedDtor() { + portid_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void StubGPIOWriteBitResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* StubGPIOWriteBitResponse::descriptor() { + protobuf_StubGPIOWriteBitResponse_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_StubGPIOWriteBitResponse_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const StubGPIOWriteBitResponse& StubGPIOWriteBitResponse::default_instance() { + protobuf_StubGPIOWriteBitResponse_2eproto::InitDefaults(); + return *internal_default_instance(); +} + +StubGPIOWriteBitResponse* StubGPIOWriteBitResponse::New(::google::protobuf::Arena* arena) const { + StubGPIOWriteBitResponse* n = new StubGPIOWriteBitResponse; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void StubGPIOWriteBitResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:Tango.PMR.Stubs.StubGPIOWriteBitResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + portid_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&pinid_, 0, static_cast<size_t>( + reinterpret_cast<char*>(&status_) - + reinterpret_cast<char*>(&pinid_)) + sizeof(status_)); + _internal_metadata_.Clear(); +} + +bool StubGPIOWriteBitResponse::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.StubGPIOWriteBitResponse) + 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)) { + // string PortId = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_portid())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->portid().data(), static_cast<int>(this->portid().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "Tango.PMR.Stubs.StubGPIOWriteBitResponse.PortId")); + } else { + goto handle_unusual; + } + break; + } + + // uint32 PinId = 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, &pinid_))); + } else { + goto handle_unusual; + } + break; + } + + // uint32 Status = 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, &status_))); + } 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.StubGPIOWriteBitResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:Tango.PMR.Stubs.StubGPIOWriteBitResponse) + return false; +#undef DO_ +} + +void StubGPIOWriteBitResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Tango.PMR.Stubs.StubGPIOWriteBitResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string PortId = 1; + if (this->portid().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->portid().data(), static_cast<int>(this->portid().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "Tango.PMR.Stubs.StubGPIOWriteBitResponse.PortId"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->portid(), output); + } + + // uint32 PinId = 2; + if (this->pinid() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->pinid(), output); + } + + // uint32 Status = 3; + if (this->status() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->status(), 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.StubGPIOWriteBitResponse) +} + +::google::protobuf::uint8* StubGPIOWriteBitResponse::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:Tango.PMR.Stubs.StubGPIOWriteBitResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string PortId = 1; + if (this->portid().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->portid().data(), static_cast<int>(this->portid().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "Tango.PMR.Stubs.StubGPIOWriteBitResponse.PortId"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->portid(), target); + } + + // uint32 PinId = 2; + if (this->pinid() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->pinid(), target); + } + + // uint32 Status = 3; + if (this->status() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->status(), 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.StubGPIOWriteBitResponse) + return target; +} + +size_t StubGPIOWriteBitResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:Tango.PMR.Stubs.StubGPIOWriteBitResponse) + 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 PortId = 1; + if (this->portid().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->portid()); + } + + // uint32 PinId = 2; + if (this->pinid() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->pinid()); + } + + // uint32 Status = 3; + if (this->status() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->status()); + } + + 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 StubGPIOWriteBitResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:Tango.PMR.Stubs.StubGPIOWriteBitResponse) + GOOGLE_DCHECK_NE(&from, this); + const StubGPIOWriteBitResponse* source = + ::google::protobuf::internal::DynamicCastToGenerated<const StubGPIOWriteBitResponse>( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:Tango.PMR.Stubs.StubGPIOWriteBitResponse) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:Tango.PMR.Stubs.StubGPIOWriteBitResponse) + MergeFrom(*source); + } +} + +void StubGPIOWriteBitResponse::MergeFrom(const StubGPIOWriteBitResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:Tango.PMR.Stubs.StubGPIOWriteBitResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.portid().size() > 0) { + + portid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.portid_); + } + if (from.pinid() != 0) { + set_pinid(from.pinid()); + } + if (from.status() != 0) { + set_status(from.status()); + } +} + +void StubGPIOWriteBitResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:Tango.PMR.Stubs.StubGPIOWriteBitResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void StubGPIOWriteBitResponse::CopyFrom(const StubGPIOWriteBitResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:Tango.PMR.Stubs.StubGPIOWriteBitResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool StubGPIOWriteBitResponse::IsInitialized() const { + return true; +} + +void StubGPIOWriteBitResponse::Swap(StubGPIOWriteBitResponse* other) { + if (other == this) return; + InternalSwap(other); +} +void StubGPIOWriteBitResponse::InternalSwap(StubGPIOWriteBitResponse* other) { + using std::swap; + portid_.Swap(&other->portid_); + swap(pinid_, other->pinid_); + swap(status_, other->status_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata StubGPIOWriteBitResponse::GetMetadata() const { + protobuf_StubGPIOWriteBitResponse_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_StubGPIOWriteBitResponse_2eproto::file_level_metadata[kIndexInFileMessages]; +} + +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// StubGPIOWriteBitResponse + +// string PortId = 1; +void StubGPIOWriteBitResponse::clear_portid() { + portid_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +const ::std::string& StubGPIOWriteBitResponse::portid() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubGPIOWriteBitResponse.PortId) + return portid_.GetNoArena(); +} +void StubGPIOWriteBitResponse::set_portid(const ::std::string& value) { + + portid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubGPIOWriteBitResponse.PortId) +} +#if LANG_CXX11 +void StubGPIOWriteBitResponse::set_portid(::std::string&& value) { + + portid_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:Tango.PMR.Stubs.StubGPIOWriteBitResponse.PortId) +} +#endif +void StubGPIOWriteBitResponse::set_portid(const char* value) { + GOOGLE_DCHECK(value != NULL); + + portid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:Tango.PMR.Stubs.StubGPIOWriteBitResponse.PortId) +} +void StubGPIOWriteBitResponse::set_portid(const char* value, size_t size) { + + portid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast<const char*>(value), size)); + // @@protoc_insertion_point(field_set_pointer:Tango.PMR.Stubs.StubGPIOWriteBitResponse.PortId) +} +::std::string* StubGPIOWriteBitResponse::mutable_portid() { + + // @@protoc_insertion_point(field_mutable:Tango.PMR.Stubs.StubGPIOWriteBitResponse.PortId) + return portid_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +::std::string* StubGPIOWriteBitResponse::release_portid() { + // @@protoc_insertion_point(field_release:Tango.PMR.Stubs.StubGPIOWriteBitResponse.PortId) + + return portid_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +void StubGPIOWriteBitResponse::set_allocated_portid(::std::string* portid) { + if (portid != NULL) { + + } else { + + } + portid_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), portid); + // @@protoc_insertion_point(field_set_allocated:Tango.PMR.Stubs.StubGPIOWriteBitResponse.PortId) +} + +// uint32 PinId = 2; +void StubGPIOWriteBitResponse::clear_pinid() { + pinid_ = 0u; +} +::google::protobuf::uint32 StubGPIOWriteBitResponse::pinid() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubGPIOWriteBitResponse.PinId) + return pinid_; +} +void StubGPIOWriteBitResponse::set_pinid(::google::protobuf::uint32 value) { + + pinid_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubGPIOWriteBitResponse.PinId) +} + +// uint32 Status = 3; +void StubGPIOWriteBitResponse::clear_status() { + status_ = 0u; +} +::google::protobuf::uint32 StubGPIOWriteBitResponse::status() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubGPIOWriteBitResponse.Status) + return status_; +} +void StubGPIOWriteBitResponse::set_status(::google::protobuf::uint32 value) { + + status_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubGPIOWriteBitResponse.Status) +} + +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS + +// @@protoc_insertion_point(namespace_scope) + +} // namespace Stubs +} // namespace PMR +} // namespace Tango + +// @@protoc_insertion_point(global_scope) diff --git a/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubGPIOWriteBitResponse.pb.h b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubGPIOWriteBitResponse.pb.h new file mode 100644 index 000000000..74df2d98e --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubGPIOWriteBitResponse.pb.h @@ -0,0 +1,288 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StubGPIOWriteBitResponse.proto + +#ifndef PROTOBUF_StubGPIOWriteBitResponse_2eproto__INCLUDED +#define PROTOBUF_StubGPIOWriteBitResponse_2eproto__INCLUDED + +#include <string> + +#include <google/protobuf/stubs/common.h> + +#if GOOGLE_PROTOBUF_VERSION < 3004000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3004000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include <google/protobuf/io/coded_stream.h> +#include <google/protobuf/arena.h> +#include <google/protobuf/arenastring.h> +#include <google/protobuf/generated_message_table_driven.h> +#include <google/protobuf/generated_message_util.h> +#include <google/protobuf/metadata.h> +#include <google/protobuf/message.h> +#include <google/protobuf/repeated_field.h> // IWYU pragma: export +#include <google/protobuf/extension_set.h> // IWYU pragma: export +#include <google/protobuf/unknown_field_set.h> +// @@protoc_insertion_point(includes) +namespace Tango { +namespace PMR { +namespace Stubs { +class StubGPIOWriteBitResponse; +class StubGPIOWriteBitResponseDefaultTypeInternal; +extern StubGPIOWriteBitResponseDefaultTypeInternal _StubGPIOWriteBitResponse_default_instance_; +} // namespace Stubs +} // namespace PMR +} // namespace Tango + +namespace Tango { +namespace PMR { +namespace Stubs { + +namespace protobuf_StubGPIOWriteBitResponse_2eproto { +// Internal implementation detail -- do not call these. +struct TableStruct { + static const ::google::protobuf::internal::ParseTableField entries[]; + static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; + static const ::google::protobuf::internal::ParseTable schema[]; + static const ::google::protobuf::uint32 offsets[]; + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static void InitDefaultsImpl(); +}; +void AddDescriptors(); +void InitDefaults(); +} // namespace protobuf_StubGPIOWriteBitResponse_2eproto + +// =================================================================== + +class StubGPIOWriteBitResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Tango.PMR.Stubs.StubGPIOWriteBitResponse) */ { + public: + StubGPIOWriteBitResponse(); + virtual ~StubGPIOWriteBitResponse(); + + StubGPIOWriteBitResponse(const StubGPIOWriteBitResponse& from); + + inline StubGPIOWriteBitResponse& operator=(const StubGPIOWriteBitResponse& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + StubGPIOWriteBitResponse(StubGPIOWriteBitResponse&& from) noexcept + : StubGPIOWriteBitResponse() { + *this = ::std::move(from); + } + + inline StubGPIOWriteBitResponse& operator=(StubGPIOWriteBitResponse&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const StubGPIOWriteBitResponse& default_instance(); + + static inline const StubGPIOWriteBitResponse* internal_default_instance() { + return reinterpret_cast<const StubGPIOWriteBitResponse*>( + &_StubGPIOWriteBitResponse_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 0; + + void Swap(StubGPIOWriteBitResponse* other); + friend void swap(StubGPIOWriteBitResponse& a, StubGPIOWriteBitResponse& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline StubGPIOWriteBitResponse* New() const PROTOBUF_FINAL { return New(NULL); } + + StubGPIOWriteBitResponse* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const StubGPIOWriteBitResponse& from); + void MergeFrom(const StubGPIOWriteBitResponse& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(StubGPIOWriteBitResponse* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string PortId = 1; + void clear_portid(); + static const int kPortIdFieldNumber = 1; + const ::std::string& portid() const; + void set_portid(const ::std::string& value); + #if LANG_CXX11 + void set_portid(::std::string&& value); + #endif + void set_portid(const char* value); + void set_portid(const char* value, size_t size); + ::std::string* mutable_portid(); + ::std::string* release_portid(); + void set_allocated_portid(::std::string* portid); + + // uint32 PinId = 2; + void clear_pinid(); + static const int kPinIdFieldNumber = 2; + ::google::protobuf::uint32 pinid() const; + void set_pinid(::google::protobuf::uint32 value); + + // uint32 Status = 3; + void clear_status(); + static const int kStatusFieldNumber = 3; + ::google::protobuf::uint32 status() const; + void set_status(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:Tango.PMR.Stubs.StubGPIOWriteBitResponse) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr portid_; + ::google::protobuf::uint32 pinid_; + ::google::protobuf::uint32 status_; + mutable int _cached_size_; + friend struct protobuf_StubGPIOWriteBitResponse_2eproto::TableStruct; +}; +// =================================================================== + + +// =================================================================== + +#if !PROTOBUF_INLINE_NOT_IN_HEADERS +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// StubGPIOWriteBitResponse + +// string PortId = 1; +inline void StubGPIOWriteBitResponse::clear_portid() { + portid_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& StubGPIOWriteBitResponse::portid() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubGPIOWriteBitResponse.PortId) + return portid_.GetNoArena(); +} +inline void StubGPIOWriteBitResponse::set_portid(const ::std::string& value) { + + portid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubGPIOWriteBitResponse.PortId) +} +#if LANG_CXX11 +inline void StubGPIOWriteBitResponse::set_portid(::std::string&& value) { + + portid_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:Tango.PMR.Stubs.StubGPIOWriteBitResponse.PortId) +} +#endif +inline void StubGPIOWriteBitResponse::set_portid(const char* value) { + GOOGLE_DCHECK(value != NULL); + + portid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:Tango.PMR.Stubs.StubGPIOWriteBitResponse.PortId) +} +inline void StubGPIOWriteBitResponse::set_portid(const char* value, size_t size) { + + portid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast<const char*>(value), size)); + // @@protoc_insertion_point(field_set_pointer:Tango.PMR.Stubs.StubGPIOWriteBitResponse.PortId) +} +inline ::std::string* StubGPIOWriteBitResponse::mutable_portid() { + + // @@protoc_insertion_point(field_mutable:Tango.PMR.Stubs.StubGPIOWriteBitResponse.PortId) + return portid_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* StubGPIOWriteBitResponse::release_portid() { + // @@protoc_insertion_point(field_release:Tango.PMR.Stubs.StubGPIOWriteBitResponse.PortId) + + return portid_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void StubGPIOWriteBitResponse::set_allocated_portid(::std::string* portid) { + if (portid != NULL) { + + } else { + + } + portid_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), portid); + // @@protoc_insertion_point(field_set_allocated:Tango.PMR.Stubs.StubGPIOWriteBitResponse.PortId) +} + +// uint32 PinId = 2; +inline void StubGPIOWriteBitResponse::clear_pinid() { + pinid_ = 0u; +} +inline ::google::protobuf::uint32 StubGPIOWriteBitResponse::pinid() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubGPIOWriteBitResponse.PinId) + return pinid_; +} +inline void StubGPIOWriteBitResponse::set_pinid(::google::protobuf::uint32 value) { + + pinid_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubGPIOWriteBitResponse.PinId) +} + +// uint32 Status = 3; +inline void StubGPIOWriteBitResponse::clear_status() { + status_ = 0u; +} +inline ::google::protobuf::uint32 StubGPIOWriteBitResponse::status() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubGPIOWriteBitResponse.Status) + return status_; +} +inline void StubGPIOWriteBitResponse::set_status(::google::protobuf::uint32 value) { + + status_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubGPIOWriteBitResponse.Status) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +#endif // !PROTOBUF_INLINE_NOT_IN_HEADERS + +// @@protoc_insertion_point(namespace_scope) + + +} // namespace Stubs +} // namespace PMR +} // namespace Tango + +// @@protoc_insertion_point(global_scope) + +#endif // PROTOBUF_StubGPIOWriteBitResponse_2eproto__INCLUDED diff --git a/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubGPIOWriteByteRequest.pb.cc b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubGPIOWriteByteRequest.pb.cc new file mode 100644 index 000000000..eb11abbeb --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubGPIOWriteByteRequest.pb.cc @@ -0,0 +1,503 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StubGPIOWriteByteRequest.proto + +#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION +#include "StubGPIOWriteByteRequest.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 StubGPIOWriteByteRequestDefaultTypeInternal { +public: + ::google::protobuf::internal::ExplicitlyConstructed<StubGPIOWriteByteRequest> + _instance; +} _StubGPIOWriteByteRequest_default_instance_; + +namespace protobuf_StubGPIOWriteByteRequest_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(StubGPIOWriteByteRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubGPIOWriteByteRequest, portid_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubGPIOWriteByteRequest, datatowrite_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(StubGPIOWriteByteRequest)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast<const ::google::protobuf::Message*>(&_StubGPIOWriteByteRequest_default_instance_), +}; + +namespace { + +void protobuf_AssignDescriptors() { + AddDescriptors(); + ::google::protobuf::MessageFactory* factory = NULL; + AssignDescriptors( + "StubGPIOWriteByteRequest.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(); + _StubGPIOWriteByteRequest_default_instance_._instance.DefaultConstruct(); + ::google::protobuf::internal::OnShutdownDestroyMessage( + &_StubGPIOWriteByteRequest_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\036StubGPIOWriteByteRequest.proto\022\017Tango." + "PMR.Stubs\"\?\n\030StubGPIOWriteByteRequest\022\016\n" + "\006PortId\030\001 \001(\t\022\023\n\013DataToWrite\030\003 \001(\rB\033\n\031co" + "m.twine.tango.pmr.stubsb\006proto3" + }; + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + descriptor, 151); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "StubGPIOWriteByteRequest.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_StubGPIOWriteByteRequest_2eproto + + +// =================================================================== + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int StubGPIOWriteByteRequest::kPortIdFieldNumber; +const int StubGPIOWriteByteRequest::kDataToWriteFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +StubGPIOWriteByteRequest::StubGPIOWriteByteRequest() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_StubGPIOWriteByteRequest_2eproto::InitDefaults(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:Tango.PMR.Stubs.StubGPIOWriteByteRequest) +} +StubGPIOWriteByteRequest::StubGPIOWriteByteRequest(const StubGPIOWriteByteRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + portid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.portid().size() > 0) { + portid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.portid_); + } + datatowrite_ = from.datatowrite_; + // @@protoc_insertion_point(copy_constructor:Tango.PMR.Stubs.StubGPIOWriteByteRequest) +} + +void StubGPIOWriteByteRequest::SharedCtor() { + portid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + datatowrite_ = 0u; + _cached_size_ = 0; +} + +StubGPIOWriteByteRequest::~StubGPIOWriteByteRequest() { + // @@protoc_insertion_point(destructor:Tango.PMR.Stubs.StubGPIOWriteByteRequest) + SharedDtor(); +} + +void StubGPIOWriteByteRequest::SharedDtor() { + portid_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void StubGPIOWriteByteRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* StubGPIOWriteByteRequest::descriptor() { + protobuf_StubGPIOWriteByteRequest_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_StubGPIOWriteByteRequest_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const StubGPIOWriteByteRequest& StubGPIOWriteByteRequest::default_instance() { + protobuf_StubGPIOWriteByteRequest_2eproto::InitDefaults(); + return *internal_default_instance(); +} + +StubGPIOWriteByteRequest* StubGPIOWriteByteRequest::New(::google::protobuf::Arena* arena) const { + StubGPIOWriteByteRequest* n = new StubGPIOWriteByteRequest; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void StubGPIOWriteByteRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:Tango.PMR.Stubs.StubGPIOWriteByteRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + portid_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + datatowrite_ = 0u; + _internal_metadata_.Clear(); +} + +bool StubGPIOWriteByteRequest::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.StubGPIOWriteByteRequest) + 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)) { + // string PortId = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_portid())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->portid().data(), static_cast<int>(this->portid().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "Tango.PMR.Stubs.StubGPIOWriteByteRequest.PortId")); + } else { + goto handle_unusual; + } + break; + } + + // uint32 DataToWrite = 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, &datatowrite_))); + } 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.StubGPIOWriteByteRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:Tango.PMR.Stubs.StubGPIOWriteByteRequest) + return false; +#undef DO_ +} + +void StubGPIOWriteByteRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Tango.PMR.Stubs.StubGPIOWriteByteRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string PortId = 1; + if (this->portid().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->portid().data(), static_cast<int>(this->portid().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "Tango.PMR.Stubs.StubGPIOWriteByteRequest.PortId"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->portid(), output); + } + + // uint32 DataToWrite = 3; + if (this->datatowrite() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->datatowrite(), 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.StubGPIOWriteByteRequest) +} + +::google::protobuf::uint8* StubGPIOWriteByteRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:Tango.PMR.Stubs.StubGPIOWriteByteRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string PortId = 1; + if (this->portid().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->portid().data(), static_cast<int>(this->portid().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "Tango.PMR.Stubs.StubGPIOWriteByteRequest.PortId"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->portid(), target); + } + + // uint32 DataToWrite = 3; + if (this->datatowrite() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->datatowrite(), 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.StubGPIOWriteByteRequest) + return target; +} + +size_t StubGPIOWriteByteRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:Tango.PMR.Stubs.StubGPIOWriteByteRequest) + 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 PortId = 1; + if (this->portid().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->portid()); + } + + // uint32 DataToWrite = 3; + if (this->datatowrite() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->datatowrite()); + } + + 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 StubGPIOWriteByteRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:Tango.PMR.Stubs.StubGPIOWriteByteRequest) + GOOGLE_DCHECK_NE(&from, this); + const StubGPIOWriteByteRequest* source = + ::google::protobuf::internal::DynamicCastToGenerated<const StubGPIOWriteByteRequest>( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:Tango.PMR.Stubs.StubGPIOWriteByteRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:Tango.PMR.Stubs.StubGPIOWriteByteRequest) + MergeFrom(*source); + } +} + +void StubGPIOWriteByteRequest::MergeFrom(const StubGPIOWriteByteRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:Tango.PMR.Stubs.StubGPIOWriteByteRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.portid().size() > 0) { + + portid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.portid_); + } + if (from.datatowrite() != 0) { + set_datatowrite(from.datatowrite()); + } +} + +void StubGPIOWriteByteRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:Tango.PMR.Stubs.StubGPIOWriteByteRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void StubGPIOWriteByteRequest::CopyFrom(const StubGPIOWriteByteRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:Tango.PMR.Stubs.StubGPIOWriteByteRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool StubGPIOWriteByteRequest::IsInitialized() const { + return true; +} + +void StubGPIOWriteByteRequest::Swap(StubGPIOWriteByteRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void StubGPIOWriteByteRequest::InternalSwap(StubGPIOWriteByteRequest* other) { + using std::swap; + portid_.Swap(&other->portid_); + swap(datatowrite_, other->datatowrite_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata StubGPIOWriteByteRequest::GetMetadata() const { + protobuf_StubGPIOWriteByteRequest_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_StubGPIOWriteByteRequest_2eproto::file_level_metadata[kIndexInFileMessages]; +} + +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// StubGPIOWriteByteRequest + +// string PortId = 1; +void StubGPIOWriteByteRequest::clear_portid() { + portid_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +const ::std::string& StubGPIOWriteByteRequest::portid() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubGPIOWriteByteRequest.PortId) + return portid_.GetNoArena(); +} +void StubGPIOWriteByteRequest::set_portid(const ::std::string& value) { + + portid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubGPIOWriteByteRequest.PortId) +} +#if LANG_CXX11 +void StubGPIOWriteByteRequest::set_portid(::std::string&& value) { + + portid_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:Tango.PMR.Stubs.StubGPIOWriteByteRequest.PortId) +} +#endif +void StubGPIOWriteByteRequest::set_portid(const char* value) { + GOOGLE_DCHECK(value != NULL); + + portid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:Tango.PMR.Stubs.StubGPIOWriteByteRequest.PortId) +} +void StubGPIOWriteByteRequest::set_portid(const char* value, size_t size) { + + portid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast<const char*>(value), size)); + // @@protoc_insertion_point(field_set_pointer:Tango.PMR.Stubs.StubGPIOWriteByteRequest.PortId) +} +::std::string* StubGPIOWriteByteRequest::mutable_portid() { + + // @@protoc_insertion_point(field_mutable:Tango.PMR.Stubs.StubGPIOWriteByteRequest.PortId) + return portid_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +::std::string* StubGPIOWriteByteRequest::release_portid() { + // @@protoc_insertion_point(field_release:Tango.PMR.Stubs.StubGPIOWriteByteRequest.PortId) + + return portid_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +void StubGPIOWriteByteRequest::set_allocated_portid(::std::string* portid) { + if (portid != NULL) { + + } else { + + } + portid_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), portid); + // @@protoc_insertion_point(field_set_allocated:Tango.PMR.Stubs.StubGPIOWriteByteRequest.PortId) +} + +// uint32 DataToWrite = 3; +void StubGPIOWriteByteRequest::clear_datatowrite() { + datatowrite_ = 0u; +} +::google::protobuf::uint32 StubGPIOWriteByteRequest::datatowrite() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubGPIOWriteByteRequest.DataToWrite) + return datatowrite_; +} +void StubGPIOWriteByteRequest::set_datatowrite(::google::protobuf::uint32 value) { + + datatowrite_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubGPIOWriteByteRequest.DataToWrite) +} + +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS + +// @@protoc_insertion_point(namespace_scope) + +} // namespace Stubs +} // namespace PMR +} // namespace Tango + +// @@protoc_insertion_point(global_scope) diff --git a/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubGPIOWriteByteRequest.pb.h b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubGPIOWriteByteRequest.pb.h new file mode 100644 index 000000000..3f08fcbec --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubGPIOWriteByteRequest.pb.h @@ -0,0 +1,267 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StubGPIOWriteByteRequest.proto + +#ifndef PROTOBUF_StubGPIOWriteByteRequest_2eproto__INCLUDED +#define PROTOBUF_StubGPIOWriteByteRequest_2eproto__INCLUDED + +#include <string> + +#include <google/protobuf/stubs/common.h> + +#if GOOGLE_PROTOBUF_VERSION < 3004000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3004000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include <google/protobuf/io/coded_stream.h> +#include <google/protobuf/arena.h> +#include <google/protobuf/arenastring.h> +#include <google/protobuf/generated_message_table_driven.h> +#include <google/protobuf/generated_message_util.h> +#include <google/protobuf/metadata.h> +#include <google/protobuf/message.h> +#include <google/protobuf/repeated_field.h> // IWYU pragma: export +#include <google/protobuf/extension_set.h> // IWYU pragma: export +#include <google/protobuf/unknown_field_set.h> +// @@protoc_insertion_point(includes) +namespace Tango { +namespace PMR { +namespace Stubs { +class StubGPIOWriteByteRequest; +class StubGPIOWriteByteRequestDefaultTypeInternal; +extern StubGPIOWriteByteRequestDefaultTypeInternal _StubGPIOWriteByteRequest_default_instance_; +} // namespace Stubs +} // namespace PMR +} // namespace Tango + +namespace Tango { +namespace PMR { +namespace Stubs { + +namespace protobuf_StubGPIOWriteByteRequest_2eproto { +// Internal implementation detail -- do not call these. +struct TableStruct { + static const ::google::protobuf::internal::ParseTableField entries[]; + static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; + static const ::google::protobuf::internal::ParseTable schema[]; + static const ::google::protobuf::uint32 offsets[]; + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static void InitDefaultsImpl(); +}; +void AddDescriptors(); +void InitDefaults(); +} // namespace protobuf_StubGPIOWriteByteRequest_2eproto + +// =================================================================== + +class StubGPIOWriteByteRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Tango.PMR.Stubs.StubGPIOWriteByteRequest) */ { + public: + StubGPIOWriteByteRequest(); + virtual ~StubGPIOWriteByteRequest(); + + StubGPIOWriteByteRequest(const StubGPIOWriteByteRequest& from); + + inline StubGPIOWriteByteRequest& operator=(const StubGPIOWriteByteRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + StubGPIOWriteByteRequest(StubGPIOWriteByteRequest&& from) noexcept + : StubGPIOWriteByteRequest() { + *this = ::std::move(from); + } + + inline StubGPIOWriteByteRequest& operator=(StubGPIOWriteByteRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const StubGPIOWriteByteRequest& default_instance(); + + static inline const StubGPIOWriteByteRequest* internal_default_instance() { + return reinterpret_cast<const StubGPIOWriteByteRequest*>( + &_StubGPIOWriteByteRequest_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 0; + + void Swap(StubGPIOWriteByteRequest* other); + friend void swap(StubGPIOWriteByteRequest& a, StubGPIOWriteByteRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline StubGPIOWriteByteRequest* New() const PROTOBUF_FINAL { return New(NULL); } + + StubGPIOWriteByteRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const StubGPIOWriteByteRequest& from); + void MergeFrom(const StubGPIOWriteByteRequest& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(StubGPIOWriteByteRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string PortId = 1; + void clear_portid(); + static const int kPortIdFieldNumber = 1; + const ::std::string& portid() const; + void set_portid(const ::std::string& value); + #if LANG_CXX11 + void set_portid(::std::string&& value); + #endif + void set_portid(const char* value); + void set_portid(const char* value, size_t size); + ::std::string* mutable_portid(); + ::std::string* release_portid(); + void set_allocated_portid(::std::string* portid); + + // uint32 DataToWrite = 3; + void clear_datatowrite(); + static const int kDataToWriteFieldNumber = 3; + ::google::protobuf::uint32 datatowrite() const; + void set_datatowrite(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:Tango.PMR.Stubs.StubGPIOWriteByteRequest) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr portid_; + ::google::protobuf::uint32 datatowrite_; + mutable int _cached_size_; + friend struct protobuf_StubGPIOWriteByteRequest_2eproto::TableStruct; +}; +// =================================================================== + + +// =================================================================== + +#if !PROTOBUF_INLINE_NOT_IN_HEADERS +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// StubGPIOWriteByteRequest + +// string PortId = 1; +inline void StubGPIOWriteByteRequest::clear_portid() { + portid_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& StubGPIOWriteByteRequest::portid() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubGPIOWriteByteRequest.PortId) + return portid_.GetNoArena(); +} +inline void StubGPIOWriteByteRequest::set_portid(const ::std::string& value) { + + portid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubGPIOWriteByteRequest.PortId) +} +#if LANG_CXX11 +inline void StubGPIOWriteByteRequest::set_portid(::std::string&& value) { + + portid_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:Tango.PMR.Stubs.StubGPIOWriteByteRequest.PortId) +} +#endif +inline void StubGPIOWriteByteRequest::set_portid(const char* value) { + GOOGLE_DCHECK(value != NULL); + + portid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:Tango.PMR.Stubs.StubGPIOWriteByteRequest.PortId) +} +inline void StubGPIOWriteByteRequest::set_portid(const char* value, size_t size) { + + portid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast<const char*>(value), size)); + // @@protoc_insertion_point(field_set_pointer:Tango.PMR.Stubs.StubGPIOWriteByteRequest.PortId) +} +inline ::std::string* StubGPIOWriteByteRequest::mutable_portid() { + + // @@protoc_insertion_point(field_mutable:Tango.PMR.Stubs.StubGPIOWriteByteRequest.PortId) + return portid_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* StubGPIOWriteByteRequest::release_portid() { + // @@protoc_insertion_point(field_release:Tango.PMR.Stubs.StubGPIOWriteByteRequest.PortId) + + return portid_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void StubGPIOWriteByteRequest::set_allocated_portid(::std::string* portid) { + if (portid != NULL) { + + } else { + + } + portid_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), portid); + // @@protoc_insertion_point(field_set_allocated:Tango.PMR.Stubs.StubGPIOWriteByteRequest.PortId) +} + +// uint32 DataToWrite = 3; +inline void StubGPIOWriteByteRequest::clear_datatowrite() { + datatowrite_ = 0u; +} +inline ::google::protobuf::uint32 StubGPIOWriteByteRequest::datatowrite() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubGPIOWriteByteRequest.DataToWrite) + return datatowrite_; +} +inline void StubGPIOWriteByteRequest::set_datatowrite(::google::protobuf::uint32 value) { + + datatowrite_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubGPIOWriteByteRequest.DataToWrite) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +#endif // !PROTOBUF_INLINE_NOT_IN_HEADERS + +// @@protoc_insertion_point(namespace_scope) + + +} // namespace Stubs +} // namespace PMR +} // namespace Tango + +// @@protoc_insertion_point(global_scope) + +#endif // PROTOBUF_StubGPIOWriteByteRequest_2eproto__INCLUDED diff --git a/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubGPIOWriteByteResponse.pb.cc b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubGPIOWriteByteResponse.pb.cc new file mode 100644 index 000000000..583b199af --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubGPIOWriteByteResponse.pb.cc @@ -0,0 +1,503 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StubGPIOWriteByteResponse.proto + +#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION +#include "StubGPIOWriteByteResponse.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 StubGPIOWriteByteResponseDefaultTypeInternal { +public: + ::google::protobuf::internal::ExplicitlyConstructed<StubGPIOWriteByteResponse> + _instance; +} _StubGPIOWriteByteResponse_default_instance_; + +namespace protobuf_StubGPIOWriteByteResponse_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(StubGPIOWriteByteResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubGPIOWriteByteResponse, portid_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubGPIOWriteByteResponse, status_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(StubGPIOWriteByteResponse)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast<const ::google::protobuf::Message*>(&_StubGPIOWriteByteResponse_default_instance_), +}; + +namespace { + +void protobuf_AssignDescriptors() { + AddDescriptors(); + ::google::protobuf::MessageFactory* factory = NULL; + AssignDescriptors( + "StubGPIOWriteByteResponse.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(); + _StubGPIOWriteByteResponse_default_instance_._instance.DefaultConstruct(); + ::google::protobuf::internal::OnShutdownDestroyMessage( + &_StubGPIOWriteByteResponse_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\037StubGPIOWriteByteResponse.proto\022\017Tango" + ".PMR.Stubs\";\n\031StubGPIOWriteByteResponse\022" + "\016\n\006PortId\030\001 \001(\t\022\016\n\006status\030\003 \001(\rB\033\n\031com.t" + "wine.tango.pmr.stubsb\006proto3" + }; + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + descriptor, 148); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "StubGPIOWriteByteResponse.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_StubGPIOWriteByteResponse_2eproto + + +// =================================================================== + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int StubGPIOWriteByteResponse::kPortIdFieldNumber; +const int StubGPIOWriteByteResponse::kStatusFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +StubGPIOWriteByteResponse::StubGPIOWriteByteResponse() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_StubGPIOWriteByteResponse_2eproto::InitDefaults(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:Tango.PMR.Stubs.StubGPIOWriteByteResponse) +} +StubGPIOWriteByteResponse::StubGPIOWriteByteResponse(const StubGPIOWriteByteResponse& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + portid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.portid().size() > 0) { + portid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.portid_); + } + status_ = from.status_; + // @@protoc_insertion_point(copy_constructor:Tango.PMR.Stubs.StubGPIOWriteByteResponse) +} + +void StubGPIOWriteByteResponse::SharedCtor() { + portid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + status_ = 0u; + _cached_size_ = 0; +} + +StubGPIOWriteByteResponse::~StubGPIOWriteByteResponse() { + // @@protoc_insertion_point(destructor:Tango.PMR.Stubs.StubGPIOWriteByteResponse) + SharedDtor(); +} + +void StubGPIOWriteByteResponse::SharedDtor() { + portid_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void StubGPIOWriteByteResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* StubGPIOWriteByteResponse::descriptor() { + protobuf_StubGPIOWriteByteResponse_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_StubGPIOWriteByteResponse_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const StubGPIOWriteByteResponse& StubGPIOWriteByteResponse::default_instance() { + protobuf_StubGPIOWriteByteResponse_2eproto::InitDefaults(); + return *internal_default_instance(); +} + +StubGPIOWriteByteResponse* StubGPIOWriteByteResponse::New(::google::protobuf::Arena* arena) const { + StubGPIOWriteByteResponse* n = new StubGPIOWriteByteResponse; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void StubGPIOWriteByteResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:Tango.PMR.Stubs.StubGPIOWriteByteResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + portid_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + status_ = 0u; + _internal_metadata_.Clear(); +} + +bool StubGPIOWriteByteResponse::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.StubGPIOWriteByteResponse) + 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)) { + // string PortId = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_portid())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->portid().data(), static_cast<int>(this->portid().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "Tango.PMR.Stubs.StubGPIOWriteByteResponse.PortId")); + } else { + goto handle_unusual; + } + break; + } + + // uint32 status = 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, &status_))); + } 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.StubGPIOWriteByteResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:Tango.PMR.Stubs.StubGPIOWriteByteResponse) + return false; +#undef DO_ +} + +void StubGPIOWriteByteResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Tango.PMR.Stubs.StubGPIOWriteByteResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string PortId = 1; + if (this->portid().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->portid().data(), static_cast<int>(this->portid().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "Tango.PMR.Stubs.StubGPIOWriteByteResponse.PortId"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->portid(), output); + } + + // uint32 status = 3; + if (this->status() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->status(), 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.StubGPIOWriteByteResponse) +} + +::google::protobuf::uint8* StubGPIOWriteByteResponse::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:Tango.PMR.Stubs.StubGPIOWriteByteResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string PortId = 1; + if (this->portid().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->portid().data(), static_cast<int>(this->portid().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "Tango.PMR.Stubs.StubGPIOWriteByteResponse.PortId"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->portid(), target); + } + + // uint32 status = 3; + if (this->status() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->status(), 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.StubGPIOWriteByteResponse) + return target; +} + +size_t StubGPIOWriteByteResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:Tango.PMR.Stubs.StubGPIOWriteByteResponse) + 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 PortId = 1; + if (this->portid().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->portid()); + } + + // uint32 status = 3; + if (this->status() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->status()); + } + + 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 StubGPIOWriteByteResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:Tango.PMR.Stubs.StubGPIOWriteByteResponse) + GOOGLE_DCHECK_NE(&from, this); + const StubGPIOWriteByteResponse* source = + ::google::protobuf::internal::DynamicCastToGenerated<const StubGPIOWriteByteResponse>( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:Tango.PMR.Stubs.StubGPIOWriteByteResponse) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:Tango.PMR.Stubs.StubGPIOWriteByteResponse) + MergeFrom(*source); + } +} + +void StubGPIOWriteByteResponse::MergeFrom(const StubGPIOWriteByteResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:Tango.PMR.Stubs.StubGPIOWriteByteResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.portid().size() > 0) { + + portid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.portid_); + } + if (from.status() != 0) { + set_status(from.status()); + } +} + +void StubGPIOWriteByteResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:Tango.PMR.Stubs.StubGPIOWriteByteResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void StubGPIOWriteByteResponse::CopyFrom(const StubGPIOWriteByteResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:Tango.PMR.Stubs.StubGPIOWriteByteResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool StubGPIOWriteByteResponse::IsInitialized() const { + return true; +} + +void StubGPIOWriteByteResponse::Swap(StubGPIOWriteByteResponse* other) { + if (other == this) return; + InternalSwap(other); +} +void StubGPIOWriteByteResponse::InternalSwap(StubGPIOWriteByteResponse* other) { + using std::swap; + portid_.Swap(&other->portid_); + swap(status_, other->status_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata StubGPIOWriteByteResponse::GetMetadata() const { + protobuf_StubGPIOWriteByteResponse_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_StubGPIOWriteByteResponse_2eproto::file_level_metadata[kIndexInFileMessages]; +} + +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// StubGPIOWriteByteResponse + +// string PortId = 1; +void StubGPIOWriteByteResponse::clear_portid() { + portid_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +const ::std::string& StubGPIOWriteByteResponse::portid() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubGPIOWriteByteResponse.PortId) + return portid_.GetNoArena(); +} +void StubGPIOWriteByteResponse::set_portid(const ::std::string& value) { + + portid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubGPIOWriteByteResponse.PortId) +} +#if LANG_CXX11 +void StubGPIOWriteByteResponse::set_portid(::std::string&& value) { + + portid_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:Tango.PMR.Stubs.StubGPIOWriteByteResponse.PortId) +} +#endif +void StubGPIOWriteByteResponse::set_portid(const char* value) { + GOOGLE_DCHECK(value != NULL); + + portid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:Tango.PMR.Stubs.StubGPIOWriteByteResponse.PortId) +} +void StubGPIOWriteByteResponse::set_portid(const char* value, size_t size) { + + portid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast<const char*>(value), size)); + // @@protoc_insertion_point(field_set_pointer:Tango.PMR.Stubs.StubGPIOWriteByteResponse.PortId) +} +::std::string* StubGPIOWriteByteResponse::mutable_portid() { + + // @@protoc_insertion_point(field_mutable:Tango.PMR.Stubs.StubGPIOWriteByteResponse.PortId) + return portid_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +::std::string* StubGPIOWriteByteResponse::release_portid() { + // @@protoc_insertion_point(field_release:Tango.PMR.Stubs.StubGPIOWriteByteResponse.PortId) + + return portid_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +void StubGPIOWriteByteResponse::set_allocated_portid(::std::string* portid) { + if (portid != NULL) { + + } else { + + } + portid_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), portid); + // @@protoc_insertion_point(field_set_allocated:Tango.PMR.Stubs.StubGPIOWriteByteResponse.PortId) +} + +// uint32 status = 3; +void StubGPIOWriteByteResponse::clear_status() { + status_ = 0u; +} +::google::protobuf::uint32 StubGPIOWriteByteResponse::status() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubGPIOWriteByteResponse.status) + return status_; +} +void StubGPIOWriteByteResponse::set_status(::google::protobuf::uint32 value) { + + status_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubGPIOWriteByteResponse.status) +} + +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS + +// @@protoc_insertion_point(namespace_scope) + +} // namespace Stubs +} // namespace PMR +} // namespace Tango + +// @@protoc_insertion_point(global_scope) diff --git a/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubGPIOWriteByteResponse.pb.h b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubGPIOWriteByteResponse.pb.h new file mode 100644 index 000000000..ec03d4043 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubGPIOWriteByteResponse.pb.h @@ -0,0 +1,267 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StubGPIOWriteByteResponse.proto + +#ifndef PROTOBUF_StubGPIOWriteByteResponse_2eproto__INCLUDED +#define PROTOBUF_StubGPIOWriteByteResponse_2eproto__INCLUDED + +#include <string> + +#include <google/protobuf/stubs/common.h> + +#if GOOGLE_PROTOBUF_VERSION < 3004000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3004000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include <google/protobuf/io/coded_stream.h> +#include <google/protobuf/arena.h> +#include <google/protobuf/arenastring.h> +#include <google/protobuf/generated_message_table_driven.h> +#include <google/protobuf/generated_message_util.h> +#include <google/protobuf/metadata.h> +#include <google/protobuf/message.h> +#include <google/protobuf/repeated_field.h> // IWYU pragma: export +#include <google/protobuf/extension_set.h> // IWYU pragma: export +#include <google/protobuf/unknown_field_set.h> +// @@protoc_insertion_point(includes) +namespace Tango { +namespace PMR { +namespace Stubs { +class StubGPIOWriteByteResponse; +class StubGPIOWriteByteResponseDefaultTypeInternal; +extern StubGPIOWriteByteResponseDefaultTypeInternal _StubGPIOWriteByteResponse_default_instance_; +} // namespace Stubs +} // namespace PMR +} // namespace Tango + +namespace Tango { +namespace PMR { +namespace Stubs { + +namespace protobuf_StubGPIOWriteByteResponse_2eproto { +// Internal implementation detail -- do not call these. +struct TableStruct { + static const ::google::protobuf::internal::ParseTableField entries[]; + static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; + static const ::google::protobuf::internal::ParseTable schema[]; + static const ::google::protobuf::uint32 offsets[]; + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static void InitDefaultsImpl(); +}; +void AddDescriptors(); +void InitDefaults(); +} // namespace protobuf_StubGPIOWriteByteResponse_2eproto + +// =================================================================== + +class StubGPIOWriteByteResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Tango.PMR.Stubs.StubGPIOWriteByteResponse) */ { + public: + StubGPIOWriteByteResponse(); + virtual ~StubGPIOWriteByteResponse(); + + StubGPIOWriteByteResponse(const StubGPIOWriteByteResponse& from); + + inline StubGPIOWriteByteResponse& operator=(const StubGPIOWriteByteResponse& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + StubGPIOWriteByteResponse(StubGPIOWriteByteResponse&& from) noexcept + : StubGPIOWriteByteResponse() { + *this = ::std::move(from); + } + + inline StubGPIOWriteByteResponse& operator=(StubGPIOWriteByteResponse&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const StubGPIOWriteByteResponse& default_instance(); + + static inline const StubGPIOWriteByteResponse* internal_default_instance() { + return reinterpret_cast<const StubGPIOWriteByteResponse*>( + &_StubGPIOWriteByteResponse_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 0; + + void Swap(StubGPIOWriteByteResponse* other); + friend void swap(StubGPIOWriteByteResponse& a, StubGPIOWriteByteResponse& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline StubGPIOWriteByteResponse* New() const PROTOBUF_FINAL { return New(NULL); } + + StubGPIOWriteByteResponse* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const StubGPIOWriteByteResponse& from); + void MergeFrom(const StubGPIOWriteByteResponse& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(StubGPIOWriteByteResponse* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string PortId = 1; + void clear_portid(); + static const int kPortIdFieldNumber = 1; + const ::std::string& portid() const; + void set_portid(const ::std::string& value); + #if LANG_CXX11 + void set_portid(::std::string&& value); + #endif + void set_portid(const char* value); + void set_portid(const char* value, size_t size); + ::std::string* mutable_portid(); + ::std::string* release_portid(); + void set_allocated_portid(::std::string* portid); + + // uint32 status = 3; + void clear_status(); + static const int kStatusFieldNumber = 3; + ::google::protobuf::uint32 status() const; + void set_status(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:Tango.PMR.Stubs.StubGPIOWriteByteResponse) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr portid_; + ::google::protobuf::uint32 status_; + mutable int _cached_size_; + friend struct protobuf_StubGPIOWriteByteResponse_2eproto::TableStruct; +}; +// =================================================================== + + +// =================================================================== + +#if !PROTOBUF_INLINE_NOT_IN_HEADERS +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// StubGPIOWriteByteResponse + +// string PortId = 1; +inline void StubGPIOWriteByteResponse::clear_portid() { + portid_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& StubGPIOWriteByteResponse::portid() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubGPIOWriteByteResponse.PortId) + return portid_.GetNoArena(); +} +inline void StubGPIOWriteByteResponse::set_portid(const ::std::string& value) { + + portid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubGPIOWriteByteResponse.PortId) +} +#if LANG_CXX11 +inline void StubGPIOWriteByteResponse::set_portid(::std::string&& value) { + + portid_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:Tango.PMR.Stubs.StubGPIOWriteByteResponse.PortId) +} +#endif +inline void StubGPIOWriteByteResponse::set_portid(const char* value) { + GOOGLE_DCHECK(value != NULL); + + portid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:Tango.PMR.Stubs.StubGPIOWriteByteResponse.PortId) +} +inline void StubGPIOWriteByteResponse::set_portid(const char* value, size_t size) { + + portid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast<const char*>(value), size)); + // @@protoc_insertion_point(field_set_pointer:Tango.PMR.Stubs.StubGPIOWriteByteResponse.PortId) +} +inline ::std::string* StubGPIOWriteByteResponse::mutable_portid() { + + // @@protoc_insertion_point(field_mutable:Tango.PMR.Stubs.StubGPIOWriteByteResponse.PortId) + return portid_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* StubGPIOWriteByteResponse::release_portid() { + // @@protoc_insertion_point(field_release:Tango.PMR.Stubs.StubGPIOWriteByteResponse.PortId) + + return portid_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void StubGPIOWriteByteResponse::set_allocated_portid(::std::string* portid) { + if (portid != NULL) { + + } else { + + } + portid_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), portid); + // @@protoc_insertion_point(field_set_allocated:Tango.PMR.Stubs.StubGPIOWriteByteResponse.PortId) +} + +// uint32 status = 3; +inline void StubGPIOWriteByteResponse::clear_status() { + status_ = 0u; +} +inline ::google::protobuf::uint32 StubGPIOWriteByteResponse::status() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubGPIOWriteByteResponse.status) + return status_; +} +inline void StubGPIOWriteByteResponse::set_status(::google::protobuf::uint32 value) { + + status_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubGPIOWriteByteResponse.status) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +#endif // !PROTOBUF_INLINE_NOT_IN_HEADERS + +// @@protoc_insertion_point(namespace_scope) + + +} // namespace Stubs +} // namespace PMR +} // namespace Tango + +// @@protoc_insertion_point(global_scope) + +#endif // PROTOBUF_StubGPIOWriteByteResponse_2eproto__INCLUDED diff --git a/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubHeaterRequest.pb.cc b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubHeaterRequest.pb.cc new file mode 100644 index 000000000..66dfb613b --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubHeaterRequest.pb.cc @@ -0,0 +1,499 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StubHeaterRequest.proto + +#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION +#include "StubHeaterRequest.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 StubHeaterRequestDefaultTypeInternal { +public: + ::google::protobuf::internal::ExplicitlyConstructed<StubHeaterRequest> + _instance; +} _StubHeaterRequest_default_instance_; + +namespace protobuf_StubHeaterRequest_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(StubHeaterRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubHeaterRequest, heatergroupid_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubHeaterRequest, heatergroupon_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubHeaterRequest, heatertemperaturereq_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(StubHeaterRequest)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast<const ::google::protobuf::Message*>(&_StubHeaterRequest_default_instance_), +}; + +namespace { + +void protobuf_AssignDescriptors() { + AddDescriptors(); + ::google::protobuf::MessageFactory* factory = NULL; + AssignDescriptors( + "StubHeaterRequest.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(); + _StubHeaterRequest_default_instance_._instance.DefaultConstruct(); + ::google::protobuf::internal::OnShutdownDestroyMessage( + &_StubHeaterRequest_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\027StubHeaterRequest.proto\022\017Tango.PMR.Stu" + "bs\"_\n\021StubHeaterRequest\022\025\n\rHeaterGroupId" + "\030\001 \001(\r\022\025\n\rHeaterGroupOn\030\002 \001(\010\022\034\n\024HeaterT" + "emperatureReq\030\003 \001(\rB\033\n\031com.twine.tango.p" + "mr.stubsb\006proto3" + }; + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + descriptor, 176); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "StubHeaterRequest.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_StubHeaterRequest_2eproto + + +// =================================================================== + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int StubHeaterRequest::kHeaterGroupIdFieldNumber; +const int StubHeaterRequest::kHeaterGroupOnFieldNumber; +const int StubHeaterRequest::kHeaterTemperatureReqFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +StubHeaterRequest::StubHeaterRequest() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_StubHeaterRequest_2eproto::InitDefaults(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:Tango.PMR.Stubs.StubHeaterRequest) +} +StubHeaterRequest::StubHeaterRequest(const StubHeaterRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&heatergroupid_, &from.heatergroupid_, + static_cast<size_t>(reinterpret_cast<char*>(&heatertemperaturereq_) - + reinterpret_cast<char*>(&heatergroupid_)) + sizeof(heatertemperaturereq_)); + // @@protoc_insertion_point(copy_constructor:Tango.PMR.Stubs.StubHeaterRequest) +} + +void StubHeaterRequest::SharedCtor() { + ::memset(&heatergroupid_, 0, static_cast<size_t>( + reinterpret_cast<char*>(&heatertemperaturereq_) - + reinterpret_cast<char*>(&heatergroupid_)) + sizeof(heatertemperaturereq_)); + _cached_size_ = 0; +} + +StubHeaterRequest::~StubHeaterRequest() { + // @@protoc_insertion_point(destructor:Tango.PMR.Stubs.StubHeaterRequest) + SharedDtor(); +} + +void StubHeaterRequest::SharedDtor() { +} + +void StubHeaterRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* StubHeaterRequest::descriptor() { + protobuf_StubHeaterRequest_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_StubHeaterRequest_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const StubHeaterRequest& StubHeaterRequest::default_instance() { + protobuf_StubHeaterRequest_2eproto::InitDefaults(); + return *internal_default_instance(); +} + +StubHeaterRequest* StubHeaterRequest::New(::google::protobuf::Arena* arena) const { + StubHeaterRequest* n = new StubHeaterRequest; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void StubHeaterRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:Tango.PMR.Stubs.StubHeaterRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + ::memset(&heatergroupid_, 0, static_cast<size_t>( + reinterpret_cast<char*>(&heatertemperaturereq_) - + reinterpret_cast<char*>(&heatergroupid_)) + sizeof(heatertemperaturereq_)); + _internal_metadata_.Clear(); +} + +bool StubHeaterRequest::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.StubHeaterRequest) + 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; + } + + // bool HeaterGroupOn = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &heatergroupon_))); + } else { + goto handle_unusual; + } + break; + } + + // uint32 HeaterTemperatureReq = 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, &heatertemperaturereq_))); + } 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.StubHeaterRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:Tango.PMR.Stubs.StubHeaterRequest) + return false; +#undef DO_ +} + +void StubHeaterRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Tango.PMR.Stubs.StubHeaterRequest) + ::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); + } + + // bool HeaterGroupOn = 2; + if (this->heatergroupon() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->heatergroupon(), output); + } + + // uint32 HeaterTemperatureReq = 3; + if (this->heatertemperaturereq() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->heatertemperaturereq(), 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.StubHeaterRequest) +} + +::google::protobuf::uint8* StubHeaterRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:Tango.PMR.Stubs.StubHeaterRequest) + ::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); + } + + // bool HeaterGroupOn = 2; + if (this->heatergroupon() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->heatergroupon(), target); + } + + // uint32 HeaterTemperatureReq = 3; + if (this->heatertemperaturereq() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->heatertemperaturereq(), 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.StubHeaterRequest) + return target; +} + +size_t StubHeaterRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:Tango.PMR.Stubs.StubHeaterRequest) + 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())); + } + // uint32 HeaterGroupId = 1; + if (this->heatergroupid() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->heatergroupid()); + } + + // bool HeaterGroupOn = 2; + if (this->heatergroupon() != 0) { + total_size += 1 + 1; + } + + // uint32 HeaterTemperatureReq = 3; + if (this->heatertemperaturereq() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->heatertemperaturereq()); + } + + 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 StubHeaterRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:Tango.PMR.Stubs.StubHeaterRequest) + GOOGLE_DCHECK_NE(&from, this); + const StubHeaterRequest* source = + ::google::protobuf::internal::DynamicCastToGenerated<const StubHeaterRequest>( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:Tango.PMR.Stubs.StubHeaterRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:Tango.PMR.Stubs.StubHeaterRequest) + MergeFrom(*source); + } +} + +void StubHeaterRequest::MergeFrom(const StubHeaterRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:Tango.PMR.Stubs.StubHeaterRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.heatergroupid() != 0) { + set_heatergroupid(from.heatergroupid()); + } + if (from.heatergroupon() != 0) { + set_heatergroupon(from.heatergroupon()); + } + if (from.heatertemperaturereq() != 0) { + set_heatertemperaturereq(from.heatertemperaturereq()); + } +} + +void StubHeaterRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:Tango.PMR.Stubs.StubHeaterRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void StubHeaterRequest::CopyFrom(const StubHeaterRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:Tango.PMR.Stubs.StubHeaterRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool StubHeaterRequest::IsInitialized() const { + return true; +} + +void StubHeaterRequest::Swap(StubHeaterRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void StubHeaterRequest::InternalSwap(StubHeaterRequest* other) { + using std::swap; + swap(heatergroupid_, other->heatergroupid_); + swap(heatergroupon_, other->heatergroupon_); + swap(heatertemperaturereq_, other->heatertemperaturereq_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata StubHeaterRequest::GetMetadata() const { + protobuf_StubHeaterRequest_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_StubHeaterRequest_2eproto::file_level_metadata[kIndexInFileMessages]; +} + +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// StubHeaterRequest + +// uint32 HeaterGroupId = 1; +void StubHeaterRequest::clear_heatergroupid() { + heatergroupid_ = 0u; +} +::google::protobuf::uint32 StubHeaterRequest::heatergroupid() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubHeaterRequest.HeaterGroupId) + return heatergroupid_; +} +void StubHeaterRequest::set_heatergroupid(::google::protobuf::uint32 value) { + + heatergroupid_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubHeaterRequest.HeaterGroupId) +} + +// bool HeaterGroupOn = 2; +void StubHeaterRequest::clear_heatergroupon() { + heatergroupon_ = false; +} +bool StubHeaterRequest::heatergroupon() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubHeaterRequest.HeaterGroupOn) + return heatergroupon_; +} +void StubHeaterRequest::set_heatergroupon(bool value) { + + heatergroupon_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubHeaterRequest.HeaterGroupOn) +} + +// uint32 HeaterTemperatureReq = 3; +void StubHeaterRequest::clear_heatertemperaturereq() { + heatertemperaturereq_ = 0u; +} +::google::protobuf::uint32 StubHeaterRequest::heatertemperaturereq() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubHeaterRequest.HeaterTemperatureReq) + return heatertemperaturereq_; +} +void StubHeaterRequest::set_heatertemperaturereq(::google::protobuf::uint32 value) { + + heatertemperaturereq_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubHeaterRequest.HeaterTemperatureReq) +} + +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS + +// @@protoc_insertion_point(namespace_scope) + +} // namespace Stubs +} // namespace PMR +} // namespace Tango + +// @@protoc_insertion_point(global_scope) diff --git a/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubHeaterRequest.pb.h b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubHeaterRequest.pb.h new file mode 100644 index 000000000..559901691 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubHeaterRequest.pb.h @@ -0,0 +1,241 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StubHeaterRequest.proto + +#ifndef PROTOBUF_StubHeaterRequest_2eproto__INCLUDED +#define PROTOBUF_StubHeaterRequest_2eproto__INCLUDED + +#include <string> + +#include <google/protobuf/stubs/common.h> + +#if GOOGLE_PROTOBUF_VERSION < 3004000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3004000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include <google/protobuf/io/coded_stream.h> +#include <google/protobuf/arena.h> +#include <google/protobuf/arenastring.h> +#include <google/protobuf/generated_message_table_driven.h> +#include <google/protobuf/generated_message_util.h> +#include <google/protobuf/metadata.h> +#include <google/protobuf/message.h> +#include <google/protobuf/repeated_field.h> // IWYU pragma: export +#include <google/protobuf/extension_set.h> // IWYU pragma: export +#include <google/protobuf/unknown_field_set.h> +// @@protoc_insertion_point(includes) +namespace Tango { +namespace PMR { +namespace Stubs { +class StubHeaterRequest; +class StubHeaterRequestDefaultTypeInternal; +extern StubHeaterRequestDefaultTypeInternal _StubHeaterRequest_default_instance_; +} // namespace Stubs +} // namespace PMR +} // namespace Tango + +namespace Tango { +namespace PMR { +namespace Stubs { + +namespace protobuf_StubHeaterRequest_2eproto { +// Internal implementation detail -- do not call these. +struct TableStruct { + static const ::google::protobuf::internal::ParseTableField entries[]; + static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; + static const ::google::protobuf::internal::ParseTable schema[]; + static const ::google::protobuf::uint32 offsets[]; + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static void InitDefaultsImpl(); +}; +void AddDescriptors(); +void InitDefaults(); +} // namespace protobuf_StubHeaterRequest_2eproto + +// =================================================================== + +class StubHeaterRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Tango.PMR.Stubs.StubHeaterRequest) */ { + public: + StubHeaterRequest(); + virtual ~StubHeaterRequest(); + + StubHeaterRequest(const StubHeaterRequest& from); + + inline StubHeaterRequest& operator=(const StubHeaterRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + StubHeaterRequest(StubHeaterRequest&& from) noexcept + : StubHeaterRequest() { + *this = ::std::move(from); + } + + inline StubHeaterRequest& operator=(StubHeaterRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const StubHeaterRequest& default_instance(); + + static inline const StubHeaterRequest* internal_default_instance() { + return reinterpret_cast<const StubHeaterRequest*>( + &_StubHeaterRequest_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 0; + + void Swap(StubHeaterRequest* other); + friend void swap(StubHeaterRequest& a, StubHeaterRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline StubHeaterRequest* New() const PROTOBUF_FINAL { return New(NULL); } + + StubHeaterRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const StubHeaterRequest& from); + void MergeFrom(const StubHeaterRequest& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(StubHeaterRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // uint32 HeaterGroupId = 1; + void clear_heatergroupid(); + static const int kHeaterGroupIdFieldNumber = 1; + ::google::protobuf::uint32 heatergroupid() const; + void set_heatergroupid(::google::protobuf::uint32 value); + + // bool HeaterGroupOn = 2; + void clear_heatergroupon(); + static const int kHeaterGroupOnFieldNumber = 2; + bool heatergroupon() const; + void set_heatergroupon(bool value); + + // uint32 HeaterTemperatureReq = 3; + void clear_heatertemperaturereq(); + static const int kHeaterTemperatureReqFieldNumber = 3; + ::google::protobuf::uint32 heatertemperaturereq() const; + void set_heatertemperaturereq(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:Tango.PMR.Stubs.StubHeaterRequest) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::uint32 heatergroupid_; + bool heatergroupon_; + ::google::protobuf::uint32 heatertemperaturereq_; + mutable int _cached_size_; + friend struct protobuf_StubHeaterRequest_2eproto::TableStruct; +}; +// =================================================================== + + +// =================================================================== + +#if !PROTOBUF_INLINE_NOT_IN_HEADERS +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// StubHeaterRequest + +// uint32 HeaterGroupId = 1; +inline void StubHeaterRequest::clear_heatergroupid() { + heatergroupid_ = 0u; +} +inline ::google::protobuf::uint32 StubHeaterRequest::heatergroupid() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubHeaterRequest.HeaterGroupId) + return heatergroupid_; +} +inline void StubHeaterRequest::set_heatergroupid(::google::protobuf::uint32 value) { + + heatergroupid_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubHeaterRequest.HeaterGroupId) +} + +// bool HeaterGroupOn = 2; +inline void StubHeaterRequest::clear_heatergroupon() { + heatergroupon_ = false; +} +inline bool StubHeaterRequest::heatergroupon() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubHeaterRequest.HeaterGroupOn) + return heatergroupon_; +} +inline void StubHeaterRequest::set_heatergroupon(bool value) { + + heatergroupon_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubHeaterRequest.HeaterGroupOn) +} + +// uint32 HeaterTemperatureReq = 3; +inline void StubHeaterRequest::clear_heatertemperaturereq() { + heatertemperaturereq_ = 0u; +} +inline ::google::protobuf::uint32 StubHeaterRequest::heatertemperaturereq() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubHeaterRequest.HeaterTemperatureReq) + return heatertemperaturereq_; +} +inline void StubHeaterRequest::set_heatertemperaturereq(::google::protobuf::uint32 value) { + + heatertemperaturereq_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubHeaterRequest.HeaterTemperatureReq) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +#endif // !PROTOBUF_INLINE_NOT_IN_HEADERS + +// @@protoc_insertion_point(namespace_scope) + + +} // namespace Stubs +} // namespace PMR +} // namespace Tango + +// @@protoc_insertion_point(global_scope) + +#endif // PROTOBUF_StubHeaterRequest_2eproto__INCLUDED diff --git a/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubHeaterResponse.pb.cc b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubHeaterResponse.pb.cc new file mode 100644 index 000000000..33c1cb390 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubHeaterResponse.pb.cc @@ -0,0 +1,499 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StubHeaterResponse.proto + +#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION +#include "StubHeaterResponse.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 StubHeaterResponseDefaultTypeInternal { +public: + ::google::protobuf::internal::ExplicitlyConstructed<StubHeaterResponse> + _instance; +} _StubHeaterResponse_default_instance_; + +namespace protobuf_StubHeaterResponse_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(StubHeaterResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubHeaterResponse, heatergroupid_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubHeaterResponse, heatertemperaturesensor_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubHeaterResponse, status_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(StubHeaterResponse)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast<const ::google::protobuf::Message*>(&_StubHeaterResponse_default_instance_), +}; + +namespace { + +void protobuf_AssignDescriptors() { + AddDescriptors(); + ::google::protobuf::MessageFactory* factory = NULL; + AssignDescriptors( + "StubHeaterResponse.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(); + _StubHeaterResponse_default_instance_._instance.DefaultConstruct(); + ::google::protobuf::internal::OnShutdownDestroyMessage( + &_StubHeaterResponse_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\030StubHeaterResponse.proto\022\017Tango.PMR.St" + "ubs\"\\\n\022StubHeaterResponse\022\025\n\rHeaterGroup" + "Id\030\001 \001(\r\022\037\n\027HeaterTemperatureSensor\030\002 \001(" + "\r\022\016\n\006Status\030\003 \001(\010B\033\n\031com.twine.tango.pmr" + ".stubsb\006proto3" + }; + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + descriptor, 174); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "StubHeaterResponse.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_StubHeaterResponse_2eproto + + +// =================================================================== + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int StubHeaterResponse::kHeaterGroupIdFieldNumber; +const int StubHeaterResponse::kHeaterTemperatureSensorFieldNumber; +const int StubHeaterResponse::kStatusFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +StubHeaterResponse::StubHeaterResponse() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_StubHeaterResponse_2eproto::InitDefaults(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:Tango.PMR.Stubs.StubHeaterResponse) +} +StubHeaterResponse::StubHeaterResponse(const StubHeaterResponse& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&heatergroupid_, &from.heatergroupid_, + static_cast<size_t>(reinterpret_cast<char*>(&status_) - + reinterpret_cast<char*>(&heatergroupid_)) + sizeof(status_)); + // @@protoc_insertion_point(copy_constructor:Tango.PMR.Stubs.StubHeaterResponse) +} + +void StubHeaterResponse::SharedCtor() { + ::memset(&heatergroupid_, 0, static_cast<size_t>( + reinterpret_cast<char*>(&status_) - + reinterpret_cast<char*>(&heatergroupid_)) + sizeof(status_)); + _cached_size_ = 0; +} + +StubHeaterResponse::~StubHeaterResponse() { + // @@protoc_insertion_point(destructor:Tango.PMR.Stubs.StubHeaterResponse) + SharedDtor(); +} + +void StubHeaterResponse::SharedDtor() { +} + +void StubHeaterResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* StubHeaterResponse::descriptor() { + protobuf_StubHeaterResponse_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_StubHeaterResponse_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const StubHeaterResponse& StubHeaterResponse::default_instance() { + protobuf_StubHeaterResponse_2eproto::InitDefaults(); + return *internal_default_instance(); +} + +StubHeaterResponse* StubHeaterResponse::New(::google::protobuf::Arena* arena) const { + StubHeaterResponse* n = new StubHeaterResponse; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void StubHeaterResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:Tango.PMR.Stubs.StubHeaterResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + ::memset(&heatergroupid_, 0, static_cast<size_t>( + reinterpret_cast<char*>(&status_) - + reinterpret_cast<char*>(&heatergroupid_)) + sizeof(status_)); + _internal_metadata_.Clear(); +} + +bool StubHeaterResponse::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.StubHeaterResponse) + 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 HeaterTemperatureSensor = 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, &heatertemperaturesensor_))); + } else { + goto handle_unusual; + } + break; + } + + // bool Status = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &status_))); + } 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.StubHeaterResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:Tango.PMR.Stubs.StubHeaterResponse) + return false; +#undef DO_ +} + +void StubHeaterResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Tango.PMR.Stubs.StubHeaterResponse) + ::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 HeaterTemperatureSensor = 2; + if (this->heatertemperaturesensor() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->heatertemperaturesensor(), output); + } + + // bool Status = 3; + if (this->status() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->status(), 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.StubHeaterResponse) +} + +::google::protobuf::uint8* StubHeaterResponse::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:Tango.PMR.Stubs.StubHeaterResponse) + ::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 HeaterTemperatureSensor = 2; + if (this->heatertemperaturesensor() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->heatertemperaturesensor(), target); + } + + // bool Status = 3; + if (this->status() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->status(), 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.StubHeaterResponse) + return target; +} + +size_t StubHeaterResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:Tango.PMR.Stubs.StubHeaterResponse) + 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())); + } + // uint32 HeaterGroupId = 1; + if (this->heatergroupid() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->heatergroupid()); + } + + // uint32 HeaterTemperatureSensor = 2; + if (this->heatertemperaturesensor() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->heatertemperaturesensor()); + } + + // bool Status = 3; + if (this->status() != 0) { + total_size += 1 + 1; + } + + 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 StubHeaterResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:Tango.PMR.Stubs.StubHeaterResponse) + GOOGLE_DCHECK_NE(&from, this); + const StubHeaterResponse* source = + ::google::protobuf::internal::DynamicCastToGenerated<const StubHeaterResponse>( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:Tango.PMR.Stubs.StubHeaterResponse) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:Tango.PMR.Stubs.StubHeaterResponse) + MergeFrom(*source); + } +} + +void StubHeaterResponse::MergeFrom(const StubHeaterResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:Tango.PMR.Stubs.StubHeaterResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.heatergroupid() != 0) { + set_heatergroupid(from.heatergroupid()); + } + if (from.heatertemperaturesensor() != 0) { + set_heatertemperaturesensor(from.heatertemperaturesensor()); + } + if (from.status() != 0) { + set_status(from.status()); + } +} + +void StubHeaterResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:Tango.PMR.Stubs.StubHeaterResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void StubHeaterResponse::CopyFrom(const StubHeaterResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:Tango.PMR.Stubs.StubHeaterResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool StubHeaterResponse::IsInitialized() const { + return true; +} + +void StubHeaterResponse::Swap(StubHeaterResponse* other) { + if (other == this) return; + InternalSwap(other); +} +void StubHeaterResponse::InternalSwap(StubHeaterResponse* other) { + using std::swap; + swap(heatergroupid_, other->heatergroupid_); + swap(heatertemperaturesensor_, other->heatertemperaturesensor_); + swap(status_, other->status_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata StubHeaterResponse::GetMetadata() const { + protobuf_StubHeaterResponse_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_StubHeaterResponse_2eproto::file_level_metadata[kIndexInFileMessages]; +} + +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// StubHeaterResponse + +// uint32 HeaterGroupId = 1; +void StubHeaterResponse::clear_heatergroupid() { + heatergroupid_ = 0u; +} +::google::protobuf::uint32 StubHeaterResponse::heatergroupid() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubHeaterResponse.HeaterGroupId) + return heatergroupid_; +} +void StubHeaterResponse::set_heatergroupid(::google::protobuf::uint32 value) { + + heatergroupid_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubHeaterResponse.HeaterGroupId) +} + +// uint32 HeaterTemperatureSensor = 2; +void StubHeaterResponse::clear_heatertemperaturesensor() { + heatertemperaturesensor_ = 0u; +} +::google::protobuf::uint32 StubHeaterResponse::heatertemperaturesensor() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubHeaterResponse.HeaterTemperatureSensor) + return heatertemperaturesensor_; +} +void StubHeaterResponse::set_heatertemperaturesensor(::google::protobuf::uint32 value) { + + heatertemperaturesensor_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubHeaterResponse.HeaterTemperatureSensor) +} + +// bool Status = 3; +void StubHeaterResponse::clear_status() { + status_ = false; +} +bool StubHeaterResponse::status() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubHeaterResponse.Status) + return status_; +} +void StubHeaterResponse::set_status(bool value) { + + status_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubHeaterResponse.Status) +} + +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS + +// @@protoc_insertion_point(namespace_scope) + +} // namespace Stubs +} // namespace PMR +} // namespace Tango + +// @@protoc_insertion_point(global_scope) diff --git a/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubHeaterResponse.pb.h b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubHeaterResponse.pb.h new file mode 100644 index 000000000..c545f78f6 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubHeaterResponse.pb.h @@ -0,0 +1,241 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StubHeaterResponse.proto + +#ifndef PROTOBUF_StubHeaterResponse_2eproto__INCLUDED +#define PROTOBUF_StubHeaterResponse_2eproto__INCLUDED + +#include <string> + +#include <google/protobuf/stubs/common.h> + +#if GOOGLE_PROTOBUF_VERSION < 3004000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3004000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include <google/protobuf/io/coded_stream.h> +#include <google/protobuf/arena.h> +#include <google/protobuf/arenastring.h> +#include <google/protobuf/generated_message_table_driven.h> +#include <google/protobuf/generated_message_util.h> +#include <google/protobuf/metadata.h> +#include <google/protobuf/message.h> +#include <google/protobuf/repeated_field.h> // IWYU pragma: export +#include <google/protobuf/extension_set.h> // IWYU pragma: export +#include <google/protobuf/unknown_field_set.h> +// @@protoc_insertion_point(includes) +namespace Tango { +namespace PMR { +namespace Stubs { +class StubHeaterResponse; +class StubHeaterResponseDefaultTypeInternal; +extern StubHeaterResponseDefaultTypeInternal _StubHeaterResponse_default_instance_; +} // namespace Stubs +} // namespace PMR +} // namespace Tango + +namespace Tango { +namespace PMR { +namespace Stubs { + +namespace protobuf_StubHeaterResponse_2eproto { +// Internal implementation detail -- do not call these. +struct TableStruct { + static const ::google::protobuf::internal::ParseTableField entries[]; + static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; + static const ::google::protobuf::internal::ParseTable schema[]; + static const ::google::protobuf::uint32 offsets[]; + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static void InitDefaultsImpl(); +}; +void AddDescriptors(); +void InitDefaults(); +} // namespace protobuf_StubHeaterResponse_2eproto + +// =================================================================== + +class StubHeaterResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Tango.PMR.Stubs.StubHeaterResponse) */ { + public: + StubHeaterResponse(); + virtual ~StubHeaterResponse(); + + StubHeaterResponse(const StubHeaterResponse& from); + + inline StubHeaterResponse& operator=(const StubHeaterResponse& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + StubHeaterResponse(StubHeaterResponse&& from) noexcept + : StubHeaterResponse() { + *this = ::std::move(from); + } + + inline StubHeaterResponse& operator=(StubHeaterResponse&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const StubHeaterResponse& default_instance(); + + static inline const StubHeaterResponse* internal_default_instance() { + return reinterpret_cast<const StubHeaterResponse*>( + &_StubHeaterResponse_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 0; + + void Swap(StubHeaterResponse* other); + friend void swap(StubHeaterResponse& a, StubHeaterResponse& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline StubHeaterResponse* New() const PROTOBUF_FINAL { return New(NULL); } + + StubHeaterResponse* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const StubHeaterResponse& from); + void MergeFrom(const StubHeaterResponse& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(StubHeaterResponse* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // uint32 HeaterGroupId = 1; + void clear_heatergroupid(); + static const int kHeaterGroupIdFieldNumber = 1; + ::google::protobuf::uint32 heatergroupid() const; + void set_heatergroupid(::google::protobuf::uint32 value); + + // uint32 HeaterTemperatureSensor = 2; + void clear_heatertemperaturesensor(); + static const int kHeaterTemperatureSensorFieldNumber = 2; + ::google::protobuf::uint32 heatertemperaturesensor() const; + void set_heatertemperaturesensor(::google::protobuf::uint32 value); + + // bool Status = 3; + void clear_status(); + static const int kStatusFieldNumber = 3; + bool status() const; + void set_status(bool value); + + // @@protoc_insertion_point(class_scope:Tango.PMR.Stubs.StubHeaterResponse) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::uint32 heatergroupid_; + ::google::protobuf::uint32 heatertemperaturesensor_; + bool status_; + mutable int _cached_size_; + friend struct protobuf_StubHeaterResponse_2eproto::TableStruct; +}; +// =================================================================== + + +// =================================================================== + +#if !PROTOBUF_INLINE_NOT_IN_HEADERS +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// StubHeaterResponse + +// uint32 HeaterGroupId = 1; +inline void StubHeaterResponse::clear_heatergroupid() { + heatergroupid_ = 0u; +} +inline ::google::protobuf::uint32 StubHeaterResponse::heatergroupid() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubHeaterResponse.HeaterGroupId) + return heatergroupid_; +} +inline void StubHeaterResponse::set_heatergroupid(::google::protobuf::uint32 value) { + + heatergroupid_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubHeaterResponse.HeaterGroupId) +} + +// uint32 HeaterTemperatureSensor = 2; +inline void StubHeaterResponse::clear_heatertemperaturesensor() { + heatertemperaturesensor_ = 0u; +} +inline ::google::protobuf::uint32 StubHeaterResponse::heatertemperaturesensor() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubHeaterResponse.HeaterTemperatureSensor) + return heatertemperaturesensor_; +} +inline void StubHeaterResponse::set_heatertemperaturesensor(::google::protobuf::uint32 value) { + + heatertemperaturesensor_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubHeaterResponse.HeaterTemperatureSensor) +} + +// bool Status = 3; +inline void StubHeaterResponse::clear_status() { + status_ = false; +} +inline bool StubHeaterResponse::status() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubHeaterResponse.Status) + return status_; +} +inline void StubHeaterResponse::set_status(bool value) { + + status_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubHeaterResponse.Status) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +#endif // !PROTOBUF_INLINE_NOT_IN_HEADERS + +// @@protoc_insertion_point(namespace_scope) + + +} // namespace Stubs +} // namespace PMR +} // namespace Tango + +// @@protoc_insertion_point(global_scope) + +#endif // PROTOBUF_StubHeaterResponse_2eproto__INCLUDED diff --git a/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubMotorEncoderRequest.pb.cc b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubMotorEncoderRequest.pb.cc new file mode 100644 index 000000000..69a608de4 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubMotorEncoderRequest.pb.cc @@ -0,0 +1,546 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StubMotorEncoderRequest.proto + +#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION +#include "StubMotorEncoderRequest.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 StubMotorEncoderRequestDefaultTypeInternal { +public: + ::google::protobuf::internal::ExplicitlyConstructed<StubMotorEncoderRequest> + _instance; +} _StubMotorEncoderRequest_default_instance_; + +namespace protobuf_StubMotorEncoderRequest_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(StubMotorEncoderRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubMotorEncoderRequest, motorid_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubMotorEncoderRequest, readencspeed_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubMotorEncoderRequest, readdirection_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubMotorEncoderRequest, motion_control_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(StubMotorEncoderRequest)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast<const ::google::protobuf::Message*>(&_StubMotorEncoderRequest_default_instance_), +}; + +namespace { + +void protobuf_AssignDescriptors() { + AddDescriptors(); + ::google::protobuf::MessageFactory* factory = NULL; + AssignDescriptors( + "StubMotorEncoderRequest.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(); + _StubMotorEncoderRequest_default_instance_._instance.DefaultConstruct(); + ::google::protobuf::internal::OnShutdownDestroyMessage( + &_StubMotorEncoderRequest_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\035StubMotorEncoderRequest.proto\022\017Tango.P" + "MR.Stubs\"o\n\027StubMotorEncoderRequest\022\017\n\007M" + "otorId\030\001 \001(\r\022\024\n\014ReadEncSpeed\030\002 \001(\010\022\025\n\rRe" + "adDirection\030\003 \001(\010\022\026\n\016Motion_Control\030\004 \001(" + "\010B\033\n\031com.twine.tango.pmr.stubsb\006proto3" + }; + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + descriptor, 198); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "StubMotorEncoderRequest.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_StubMotorEncoderRequest_2eproto + + +// =================================================================== + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int StubMotorEncoderRequest::kMotorIdFieldNumber; +const int StubMotorEncoderRequest::kReadEncSpeedFieldNumber; +const int StubMotorEncoderRequest::kReadDirectionFieldNumber; +const int StubMotorEncoderRequest::kMotionControlFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +StubMotorEncoderRequest::StubMotorEncoderRequest() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_StubMotorEncoderRequest_2eproto::InitDefaults(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:Tango.PMR.Stubs.StubMotorEncoderRequest) +} +StubMotorEncoderRequest::StubMotorEncoderRequest(const StubMotorEncoderRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&motorid_, &from.motorid_, + static_cast<size_t>(reinterpret_cast<char*>(&motion_control_) - + reinterpret_cast<char*>(&motorid_)) + sizeof(motion_control_)); + // @@protoc_insertion_point(copy_constructor:Tango.PMR.Stubs.StubMotorEncoderRequest) +} + +void StubMotorEncoderRequest::SharedCtor() { + ::memset(&motorid_, 0, static_cast<size_t>( + reinterpret_cast<char*>(&motion_control_) - + reinterpret_cast<char*>(&motorid_)) + sizeof(motion_control_)); + _cached_size_ = 0; +} + +StubMotorEncoderRequest::~StubMotorEncoderRequest() { + // @@protoc_insertion_point(destructor:Tango.PMR.Stubs.StubMotorEncoderRequest) + SharedDtor(); +} + +void StubMotorEncoderRequest::SharedDtor() { +} + +void StubMotorEncoderRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* StubMotorEncoderRequest::descriptor() { + protobuf_StubMotorEncoderRequest_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_StubMotorEncoderRequest_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const StubMotorEncoderRequest& StubMotorEncoderRequest::default_instance() { + protobuf_StubMotorEncoderRequest_2eproto::InitDefaults(); + return *internal_default_instance(); +} + +StubMotorEncoderRequest* StubMotorEncoderRequest::New(::google::protobuf::Arena* arena) const { + StubMotorEncoderRequest* n = new StubMotorEncoderRequest; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void StubMotorEncoderRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:Tango.PMR.Stubs.StubMotorEncoderRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + ::memset(&motorid_, 0, static_cast<size_t>( + reinterpret_cast<char*>(&motion_control_) - + reinterpret_cast<char*>(&motorid_)) + sizeof(motion_control_)); + _internal_metadata_.Clear(); +} + +bool StubMotorEncoderRequest::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.StubMotorEncoderRequest) + 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 MotorId = 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, &motorid_))); + } else { + goto handle_unusual; + } + break; + } + + // bool ReadEncSpeed = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &readencspeed_))); + } else { + goto handle_unusual; + } + break; + } + + // bool ReadDirection = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &readdirection_))); + } else { + goto handle_unusual; + } + break; + } + + // bool Motion_Control = 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, &motion_control_))); + } 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.StubMotorEncoderRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:Tango.PMR.Stubs.StubMotorEncoderRequest) + return false; +#undef DO_ +} + +void StubMotorEncoderRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Tango.PMR.Stubs.StubMotorEncoderRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // uint32 MotorId = 1; + if (this->motorid() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->motorid(), output); + } + + // bool ReadEncSpeed = 2; + if (this->readencspeed() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->readencspeed(), output); + } + + // bool ReadDirection = 3; + if (this->readdirection() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->readdirection(), output); + } + + // bool Motion_Control = 4; + if (this->motion_control() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteBool(4, this->motion_control(), 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.StubMotorEncoderRequest) +} + +::google::protobuf::uint8* StubMotorEncoderRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:Tango.PMR.Stubs.StubMotorEncoderRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // uint32 MotorId = 1; + if (this->motorid() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->motorid(), target); + } + + // bool ReadEncSpeed = 2; + if (this->readencspeed() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->readencspeed(), target); + } + + // bool ReadDirection = 3; + if (this->readdirection() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->readdirection(), target); + } + + // bool Motion_Control = 4; + if (this->motion_control() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(4, this->motion_control(), 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.StubMotorEncoderRequest) + return target; +} + +size_t StubMotorEncoderRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:Tango.PMR.Stubs.StubMotorEncoderRequest) + 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())); + } + // uint32 MotorId = 1; + if (this->motorid() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->motorid()); + } + + // bool ReadEncSpeed = 2; + if (this->readencspeed() != 0) { + total_size += 1 + 1; + } + + // bool ReadDirection = 3; + if (this->readdirection() != 0) { + total_size += 1 + 1; + } + + // bool Motion_Control = 4; + if (this->motion_control() != 0) { + total_size += 1 + 1; + } + + 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 StubMotorEncoderRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:Tango.PMR.Stubs.StubMotorEncoderRequest) + GOOGLE_DCHECK_NE(&from, this); + const StubMotorEncoderRequest* source = + ::google::protobuf::internal::DynamicCastToGenerated<const StubMotorEncoderRequest>( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:Tango.PMR.Stubs.StubMotorEncoderRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:Tango.PMR.Stubs.StubMotorEncoderRequest) + MergeFrom(*source); + } +} + +void StubMotorEncoderRequest::MergeFrom(const StubMotorEncoderRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:Tango.PMR.Stubs.StubMotorEncoderRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.motorid() != 0) { + set_motorid(from.motorid()); + } + if (from.readencspeed() != 0) { + set_readencspeed(from.readencspeed()); + } + if (from.readdirection() != 0) { + set_readdirection(from.readdirection()); + } + if (from.motion_control() != 0) { + set_motion_control(from.motion_control()); + } +} + +void StubMotorEncoderRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:Tango.PMR.Stubs.StubMotorEncoderRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void StubMotorEncoderRequest::CopyFrom(const StubMotorEncoderRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:Tango.PMR.Stubs.StubMotorEncoderRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool StubMotorEncoderRequest::IsInitialized() const { + return true; +} + +void StubMotorEncoderRequest::Swap(StubMotorEncoderRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void StubMotorEncoderRequest::InternalSwap(StubMotorEncoderRequest* other) { + using std::swap; + swap(motorid_, other->motorid_); + swap(readencspeed_, other->readencspeed_); + swap(readdirection_, other->readdirection_); + swap(motion_control_, other->motion_control_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata StubMotorEncoderRequest::GetMetadata() const { + protobuf_StubMotorEncoderRequest_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_StubMotorEncoderRequest_2eproto::file_level_metadata[kIndexInFileMessages]; +} + +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// StubMotorEncoderRequest + +// uint32 MotorId = 1; +void StubMotorEncoderRequest::clear_motorid() { + motorid_ = 0u; +} +::google::protobuf::uint32 StubMotorEncoderRequest::motorid() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubMotorEncoderRequest.MotorId) + return motorid_; +} +void StubMotorEncoderRequest::set_motorid(::google::protobuf::uint32 value) { + + motorid_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubMotorEncoderRequest.MotorId) +} + +// bool ReadEncSpeed = 2; +void StubMotorEncoderRequest::clear_readencspeed() { + readencspeed_ = false; +} +bool StubMotorEncoderRequest::readencspeed() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubMotorEncoderRequest.ReadEncSpeed) + return readencspeed_; +} +void StubMotorEncoderRequest::set_readencspeed(bool value) { + + readencspeed_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubMotorEncoderRequest.ReadEncSpeed) +} + +// bool ReadDirection = 3; +void StubMotorEncoderRequest::clear_readdirection() { + readdirection_ = false; +} +bool StubMotorEncoderRequest::readdirection() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubMotorEncoderRequest.ReadDirection) + return readdirection_; +} +void StubMotorEncoderRequest::set_readdirection(bool value) { + + readdirection_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubMotorEncoderRequest.ReadDirection) +} + +// bool Motion_Control = 4; +void StubMotorEncoderRequest::clear_motion_control() { + motion_control_ = false; +} +bool StubMotorEncoderRequest::motion_control() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubMotorEncoderRequest.Motion_Control) + return motion_control_; +} +void StubMotorEncoderRequest::set_motion_control(bool value) { + + motion_control_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubMotorEncoderRequest.Motion_Control) +} + +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS + +// @@protoc_insertion_point(namespace_scope) + +} // namespace Stubs +} // namespace PMR +} // namespace Tango + +// @@protoc_insertion_point(global_scope) diff --git a/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubMotorEncoderRequest.pb.h b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubMotorEncoderRequest.pb.h new file mode 100644 index 000000000..7d6364139 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubMotorEncoderRequest.pb.h @@ -0,0 +1,262 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StubMotorEncoderRequest.proto + +#ifndef PROTOBUF_StubMotorEncoderRequest_2eproto__INCLUDED +#define PROTOBUF_StubMotorEncoderRequest_2eproto__INCLUDED + +#include <string> + +#include <google/protobuf/stubs/common.h> + +#if GOOGLE_PROTOBUF_VERSION < 3004000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3004000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include <google/protobuf/io/coded_stream.h> +#include <google/protobuf/arena.h> +#include <google/protobuf/arenastring.h> +#include <google/protobuf/generated_message_table_driven.h> +#include <google/protobuf/generated_message_util.h> +#include <google/protobuf/metadata.h> +#include <google/protobuf/message.h> +#include <google/protobuf/repeated_field.h> // IWYU pragma: export +#include <google/protobuf/extension_set.h> // IWYU pragma: export +#include <google/protobuf/unknown_field_set.h> +// @@protoc_insertion_point(includes) +namespace Tango { +namespace PMR { +namespace Stubs { +class StubMotorEncoderRequest; +class StubMotorEncoderRequestDefaultTypeInternal; +extern StubMotorEncoderRequestDefaultTypeInternal _StubMotorEncoderRequest_default_instance_; +} // namespace Stubs +} // namespace PMR +} // namespace Tango + +namespace Tango { +namespace PMR { +namespace Stubs { + +namespace protobuf_StubMotorEncoderRequest_2eproto { +// Internal implementation detail -- do not call these. +struct TableStruct { + static const ::google::protobuf::internal::ParseTableField entries[]; + static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; + static const ::google::protobuf::internal::ParseTable schema[]; + static const ::google::protobuf::uint32 offsets[]; + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static void InitDefaultsImpl(); +}; +void AddDescriptors(); +void InitDefaults(); +} // namespace protobuf_StubMotorEncoderRequest_2eproto + +// =================================================================== + +class StubMotorEncoderRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Tango.PMR.Stubs.StubMotorEncoderRequest) */ { + public: + StubMotorEncoderRequest(); + virtual ~StubMotorEncoderRequest(); + + StubMotorEncoderRequest(const StubMotorEncoderRequest& from); + + inline StubMotorEncoderRequest& operator=(const StubMotorEncoderRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + StubMotorEncoderRequest(StubMotorEncoderRequest&& from) noexcept + : StubMotorEncoderRequest() { + *this = ::std::move(from); + } + + inline StubMotorEncoderRequest& operator=(StubMotorEncoderRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const StubMotorEncoderRequest& default_instance(); + + static inline const StubMotorEncoderRequest* internal_default_instance() { + return reinterpret_cast<const StubMotorEncoderRequest*>( + &_StubMotorEncoderRequest_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 0; + + void Swap(StubMotorEncoderRequest* other); + friend void swap(StubMotorEncoderRequest& a, StubMotorEncoderRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline StubMotorEncoderRequest* New() const PROTOBUF_FINAL { return New(NULL); } + + StubMotorEncoderRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const StubMotorEncoderRequest& from); + void MergeFrom(const StubMotorEncoderRequest& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(StubMotorEncoderRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // uint32 MotorId = 1; + void clear_motorid(); + static const int kMotorIdFieldNumber = 1; + ::google::protobuf::uint32 motorid() const; + void set_motorid(::google::protobuf::uint32 value); + + // bool ReadEncSpeed = 2; + void clear_readencspeed(); + static const int kReadEncSpeedFieldNumber = 2; + bool readencspeed() const; + void set_readencspeed(bool value); + + // bool ReadDirection = 3; + void clear_readdirection(); + static const int kReadDirectionFieldNumber = 3; + bool readdirection() const; + void set_readdirection(bool value); + + // bool Motion_Control = 4; + void clear_motion_control(); + static const int kMotionControlFieldNumber = 4; + bool motion_control() const; + void set_motion_control(bool value); + + // @@protoc_insertion_point(class_scope:Tango.PMR.Stubs.StubMotorEncoderRequest) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::uint32 motorid_; + bool readencspeed_; + bool readdirection_; + bool motion_control_; + mutable int _cached_size_; + friend struct protobuf_StubMotorEncoderRequest_2eproto::TableStruct; +}; +// =================================================================== + + +// =================================================================== + +#if !PROTOBUF_INLINE_NOT_IN_HEADERS +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// StubMotorEncoderRequest + +// uint32 MotorId = 1; +inline void StubMotorEncoderRequest::clear_motorid() { + motorid_ = 0u; +} +inline ::google::protobuf::uint32 StubMotorEncoderRequest::motorid() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubMotorEncoderRequest.MotorId) + return motorid_; +} +inline void StubMotorEncoderRequest::set_motorid(::google::protobuf::uint32 value) { + + motorid_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubMotorEncoderRequest.MotorId) +} + +// bool ReadEncSpeed = 2; +inline void StubMotorEncoderRequest::clear_readencspeed() { + readencspeed_ = false; +} +inline bool StubMotorEncoderRequest::readencspeed() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubMotorEncoderRequest.ReadEncSpeed) + return readencspeed_; +} +inline void StubMotorEncoderRequest::set_readencspeed(bool value) { + + readencspeed_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubMotorEncoderRequest.ReadEncSpeed) +} + +// bool ReadDirection = 3; +inline void StubMotorEncoderRequest::clear_readdirection() { + readdirection_ = false; +} +inline bool StubMotorEncoderRequest::readdirection() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubMotorEncoderRequest.ReadDirection) + return readdirection_; +} +inline void StubMotorEncoderRequest::set_readdirection(bool value) { + + readdirection_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubMotorEncoderRequest.ReadDirection) +} + +// bool Motion_Control = 4; +inline void StubMotorEncoderRequest::clear_motion_control() { + motion_control_ = false; +} +inline bool StubMotorEncoderRequest::motion_control() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubMotorEncoderRequest.Motion_Control) + return motion_control_; +} +inline void StubMotorEncoderRequest::set_motion_control(bool value) { + + motion_control_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubMotorEncoderRequest.Motion_Control) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +#endif // !PROTOBUF_INLINE_NOT_IN_HEADERS + +// @@protoc_insertion_point(namespace_scope) + + +} // namespace Stubs +} // namespace PMR +} // namespace Tango + +// @@protoc_insertion_point(global_scope) + +#endif // PROTOBUF_StubMotorEncoderRequest_2eproto__INCLUDED diff --git a/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubMotorEncoderResponse.pb.cc b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubMotorEncoderResponse.pb.cc new file mode 100644 index 000000000..220d70a86 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubMotorEncoderResponse.pb.cc @@ -0,0 +1,600 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StubMotorEncoderResponse.proto + +#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION +#include "StubMotorEncoderResponse.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 StubMotorEncoderResponseDefaultTypeInternal { +public: + ::google::protobuf::internal::ExplicitlyConstructed<StubMotorEncoderResponse> + _instance; +} _StubMotorEncoderResponse_default_instance_; + +namespace protobuf_StubMotorEncoderResponse_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(StubMotorEncoderResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubMotorEncoderResponse, encoderid_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubMotorEncoderResponse, encoderversion_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubMotorEncoderResponse, motorspeed_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubMotorEncoderResponse, motordirection_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubMotorEncoderResponse, status_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(StubMotorEncoderResponse)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast<const ::google::protobuf::Message*>(&_StubMotorEncoderResponse_default_instance_), +}; + +namespace { + +void protobuf_AssignDescriptors() { + AddDescriptors(); + ::google::protobuf::MessageFactory* factory = NULL; + AssignDescriptors( + "StubMotorEncoderResponse.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(); + _StubMotorEncoderResponse_default_instance_._instance.DefaultConstruct(); + ::google::protobuf::internal::OnShutdownDestroyMessage( + &_StubMotorEncoderResponse_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\036StubMotorEncoderResponse.proto\022\017Tango." + "PMR.Stubs\"\201\001\n\030StubMotorEncoderResponse\022\021" + "\n\tEncoderId\030\001 \001(\r\022\026\n\016EncoderVersion\030\002 \001(" + "\r\022\022\n\nMotorSpeed\030\003 \001(\005\022\026\n\016MotorDirection\030" + "\004 \001(\010\022\016\n\006Status\030\005 \001(\010B\033\n\031com.twine.tango" + ".pmr.stubsb\006proto3" + }; + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + descriptor, 218); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "StubMotorEncoderResponse.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_StubMotorEncoderResponse_2eproto + + +// =================================================================== + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int StubMotorEncoderResponse::kEncoderIdFieldNumber; +const int StubMotorEncoderResponse::kEncoderVersionFieldNumber; +const int StubMotorEncoderResponse::kMotorSpeedFieldNumber; +const int StubMotorEncoderResponse::kMotorDirectionFieldNumber; +const int StubMotorEncoderResponse::kStatusFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +StubMotorEncoderResponse::StubMotorEncoderResponse() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_StubMotorEncoderResponse_2eproto::InitDefaults(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:Tango.PMR.Stubs.StubMotorEncoderResponse) +} +StubMotorEncoderResponse::StubMotorEncoderResponse(const StubMotorEncoderResponse& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&encoderid_, &from.encoderid_, + static_cast<size_t>(reinterpret_cast<char*>(&status_) - + reinterpret_cast<char*>(&encoderid_)) + sizeof(status_)); + // @@protoc_insertion_point(copy_constructor:Tango.PMR.Stubs.StubMotorEncoderResponse) +} + +void StubMotorEncoderResponse::SharedCtor() { + ::memset(&encoderid_, 0, static_cast<size_t>( + reinterpret_cast<char*>(&status_) - + reinterpret_cast<char*>(&encoderid_)) + sizeof(status_)); + _cached_size_ = 0; +} + +StubMotorEncoderResponse::~StubMotorEncoderResponse() { + // @@protoc_insertion_point(destructor:Tango.PMR.Stubs.StubMotorEncoderResponse) + SharedDtor(); +} + +void StubMotorEncoderResponse::SharedDtor() { +} + +void StubMotorEncoderResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* StubMotorEncoderResponse::descriptor() { + protobuf_StubMotorEncoderResponse_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_StubMotorEncoderResponse_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const StubMotorEncoderResponse& StubMotorEncoderResponse::default_instance() { + protobuf_StubMotorEncoderResponse_2eproto::InitDefaults(); + return *internal_default_instance(); +} + +StubMotorEncoderResponse* StubMotorEncoderResponse::New(::google::protobuf::Arena* arena) const { + StubMotorEncoderResponse* n = new StubMotorEncoderResponse; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void StubMotorEncoderResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:Tango.PMR.Stubs.StubMotorEncoderResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + ::memset(&encoderid_, 0, static_cast<size_t>( + reinterpret_cast<char*>(&status_) - + reinterpret_cast<char*>(&encoderid_)) + sizeof(status_)); + _internal_metadata_.Clear(); +} + +bool StubMotorEncoderResponse::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.StubMotorEncoderResponse) + 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 EncoderId = 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, &encoderid_))); + } else { + goto handle_unusual; + } + break; + } + + // uint32 EncoderVersion = 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, &encoderversion_))); + } else { + goto handle_unusual; + } + break; + } + + // int32 MotorSpeed = 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::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + input, &motorspeed_))); + } else { + goto handle_unusual; + } + break; + } + + // bool MotorDirection = 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, &motordirection_))); + } else { + goto handle_unusual; + } + break; + } + + // bool Status = 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, &status_))); + } 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.StubMotorEncoderResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:Tango.PMR.Stubs.StubMotorEncoderResponse) + return false; +#undef DO_ +} + +void StubMotorEncoderResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Tango.PMR.Stubs.StubMotorEncoderResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // uint32 EncoderId = 1; + if (this->encoderid() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->encoderid(), output); + } + + // uint32 EncoderVersion = 2; + if (this->encoderversion() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->encoderversion(), output); + } + + // int32 MotorSpeed = 3; + if (this->motorspeed() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->motorspeed(), output); + } + + // bool MotorDirection = 4; + if (this->motordirection() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteBool(4, this->motordirection(), output); + } + + // bool Status = 5; + if (this->status() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteBool(5, this->status(), 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.StubMotorEncoderResponse) +} + +::google::protobuf::uint8* StubMotorEncoderResponse::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:Tango.PMR.Stubs.StubMotorEncoderResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // uint32 EncoderId = 1; + if (this->encoderid() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->encoderid(), target); + } + + // uint32 EncoderVersion = 2; + if (this->encoderversion() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->encoderversion(), target); + } + + // int32 MotorSpeed = 3; + if (this->motorspeed() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->motorspeed(), target); + } + + // bool MotorDirection = 4; + if (this->motordirection() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(4, this->motordirection(), target); + } + + // bool Status = 5; + if (this->status() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(5, this->status(), 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.StubMotorEncoderResponse) + return target; +} + +size_t StubMotorEncoderResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:Tango.PMR.Stubs.StubMotorEncoderResponse) + 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())); + } + // uint32 EncoderId = 1; + if (this->encoderid() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->encoderid()); + } + + // uint32 EncoderVersion = 2; + if (this->encoderversion() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->encoderversion()); + } + + // int32 MotorSpeed = 3; + if (this->motorspeed() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->motorspeed()); + } + + // bool MotorDirection = 4; + if (this->motordirection() != 0) { + total_size += 1 + 1; + } + + // bool Status = 5; + if (this->status() != 0) { + total_size += 1 + 1; + } + + 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 StubMotorEncoderResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:Tango.PMR.Stubs.StubMotorEncoderResponse) + GOOGLE_DCHECK_NE(&from, this); + const StubMotorEncoderResponse* source = + ::google::protobuf::internal::DynamicCastToGenerated<const StubMotorEncoderResponse>( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:Tango.PMR.Stubs.StubMotorEncoderResponse) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:Tango.PMR.Stubs.StubMotorEncoderResponse) + MergeFrom(*source); + } +} + +void StubMotorEncoderResponse::MergeFrom(const StubMotorEncoderResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:Tango.PMR.Stubs.StubMotorEncoderResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.encoderid() != 0) { + set_encoderid(from.encoderid()); + } + if (from.encoderversion() != 0) { + set_encoderversion(from.encoderversion()); + } + if (from.motorspeed() != 0) { + set_motorspeed(from.motorspeed()); + } + if (from.motordirection() != 0) { + set_motordirection(from.motordirection()); + } + if (from.status() != 0) { + set_status(from.status()); + } +} + +void StubMotorEncoderResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:Tango.PMR.Stubs.StubMotorEncoderResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void StubMotorEncoderResponse::CopyFrom(const StubMotorEncoderResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:Tango.PMR.Stubs.StubMotorEncoderResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool StubMotorEncoderResponse::IsInitialized() const { + return true; +} + +void StubMotorEncoderResponse::Swap(StubMotorEncoderResponse* other) { + if (other == this) return; + InternalSwap(other); +} +void StubMotorEncoderResponse::InternalSwap(StubMotorEncoderResponse* other) { + using std::swap; + swap(encoderid_, other->encoderid_); + swap(encoderversion_, other->encoderversion_); + swap(motorspeed_, other->motorspeed_); + swap(motordirection_, other->motordirection_); + swap(status_, other->status_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata StubMotorEncoderResponse::GetMetadata() const { + protobuf_StubMotorEncoderResponse_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_StubMotorEncoderResponse_2eproto::file_level_metadata[kIndexInFileMessages]; +} + +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// StubMotorEncoderResponse + +// uint32 EncoderId = 1; +void StubMotorEncoderResponse::clear_encoderid() { + encoderid_ = 0u; +} +::google::protobuf::uint32 StubMotorEncoderResponse::encoderid() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubMotorEncoderResponse.EncoderId) + return encoderid_; +} +void StubMotorEncoderResponse::set_encoderid(::google::protobuf::uint32 value) { + + encoderid_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubMotorEncoderResponse.EncoderId) +} + +// uint32 EncoderVersion = 2; +void StubMotorEncoderResponse::clear_encoderversion() { + encoderversion_ = 0u; +} +::google::protobuf::uint32 StubMotorEncoderResponse::encoderversion() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubMotorEncoderResponse.EncoderVersion) + return encoderversion_; +} +void StubMotorEncoderResponse::set_encoderversion(::google::protobuf::uint32 value) { + + encoderversion_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubMotorEncoderResponse.EncoderVersion) +} + +// int32 MotorSpeed = 3; +void StubMotorEncoderResponse::clear_motorspeed() { + motorspeed_ = 0; +} +::google::protobuf::int32 StubMotorEncoderResponse::motorspeed() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubMotorEncoderResponse.MotorSpeed) + return motorspeed_; +} +void StubMotorEncoderResponse::set_motorspeed(::google::protobuf::int32 value) { + + motorspeed_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubMotorEncoderResponse.MotorSpeed) +} + +// bool MotorDirection = 4; +void StubMotorEncoderResponse::clear_motordirection() { + motordirection_ = false; +} +bool StubMotorEncoderResponse::motordirection() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubMotorEncoderResponse.MotorDirection) + return motordirection_; +} +void StubMotorEncoderResponse::set_motordirection(bool value) { + + motordirection_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubMotorEncoderResponse.MotorDirection) +} + +// bool Status = 5; +void StubMotorEncoderResponse::clear_status() { + status_ = false; +} +bool StubMotorEncoderResponse::status() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubMotorEncoderResponse.Status) + return status_; +} +void StubMotorEncoderResponse::set_status(bool value) { + + status_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubMotorEncoderResponse.Status) +} + +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS + +// @@protoc_insertion_point(namespace_scope) + +} // namespace Stubs +} // namespace PMR +} // namespace Tango + +// @@protoc_insertion_point(global_scope) diff --git a/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubMotorEncoderResponse.pb.h b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubMotorEncoderResponse.pb.h new file mode 100644 index 000000000..41c8f240c --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubMotorEncoderResponse.pb.h @@ -0,0 +1,283 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StubMotorEncoderResponse.proto + +#ifndef PROTOBUF_StubMotorEncoderResponse_2eproto__INCLUDED +#define PROTOBUF_StubMotorEncoderResponse_2eproto__INCLUDED + +#include <string> + +#include <google/protobuf/stubs/common.h> + +#if GOOGLE_PROTOBUF_VERSION < 3004000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3004000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include <google/protobuf/io/coded_stream.h> +#include <google/protobuf/arena.h> +#include <google/protobuf/arenastring.h> +#include <google/protobuf/generated_message_table_driven.h> +#include <google/protobuf/generated_message_util.h> +#include <google/protobuf/metadata.h> +#include <google/protobuf/message.h> +#include <google/protobuf/repeated_field.h> // IWYU pragma: export +#include <google/protobuf/extension_set.h> // IWYU pragma: export +#include <google/protobuf/unknown_field_set.h> +// @@protoc_insertion_point(includes) +namespace Tango { +namespace PMR { +namespace Stubs { +class StubMotorEncoderResponse; +class StubMotorEncoderResponseDefaultTypeInternal; +extern StubMotorEncoderResponseDefaultTypeInternal _StubMotorEncoderResponse_default_instance_; +} // namespace Stubs +} // namespace PMR +} // namespace Tango + +namespace Tango { +namespace PMR { +namespace Stubs { + +namespace protobuf_StubMotorEncoderResponse_2eproto { +// Internal implementation detail -- do not call these. +struct TableStruct { + static const ::google::protobuf::internal::ParseTableField entries[]; + static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; + static const ::google::protobuf::internal::ParseTable schema[]; + static const ::google::protobuf::uint32 offsets[]; + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static void InitDefaultsImpl(); +}; +void AddDescriptors(); +void InitDefaults(); +} // namespace protobuf_StubMotorEncoderResponse_2eproto + +// =================================================================== + +class StubMotorEncoderResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Tango.PMR.Stubs.StubMotorEncoderResponse) */ { + public: + StubMotorEncoderResponse(); + virtual ~StubMotorEncoderResponse(); + + StubMotorEncoderResponse(const StubMotorEncoderResponse& from); + + inline StubMotorEncoderResponse& operator=(const StubMotorEncoderResponse& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + StubMotorEncoderResponse(StubMotorEncoderResponse&& from) noexcept + : StubMotorEncoderResponse() { + *this = ::std::move(from); + } + + inline StubMotorEncoderResponse& operator=(StubMotorEncoderResponse&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const StubMotorEncoderResponse& default_instance(); + + static inline const StubMotorEncoderResponse* internal_default_instance() { + return reinterpret_cast<const StubMotorEncoderResponse*>( + &_StubMotorEncoderResponse_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 0; + + void Swap(StubMotorEncoderResponse* other); + friend void swap(StubMotorEncoderResponse& a, StubMotorEncoderResponse& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline StubMotorEncoderResponse* New() const PROTOBUF_FINAL { return New(NULL); } + + StubMotorEncoderResponse* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const StubMotorEncoderResponse& from); + void MergeFrom(const StubMotorEncoderResponse& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(StubMotorEncoderResponse* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // uint32 EncoderId = 1; + void clear_encoderid(); + static const int kEncoderIdFieldNumber = 1; + ::google::protobuf::uint32 encoderid() const; + void set_encoderid(::google::protobuf::uint32 value); + + // uint32 EncoderVersion = 2; + void clear_encoderversion(); + static const int kEncoderVersionFieldNumber = 2; + ::google::protobuf::uint32 encoderversion() const; + void set_encoderversion(::google::protobuf::uint32 value); + + // int32 MotorSpeed = 3; + void clear_motorspeed(); + static const int kMotorSpeedFieldNumber = 3; + ::google::protobuf::int32 motorspeed() const; + void set_motorspeed(::google::protobuf::int32 value); + + // bool MotorDirection = 4; + void clear_motordirection(); + static const int kMotorDirectionFieldNumber = 4; + bool motordirection() const; + void set_motordirection(bool value); + + // bool Status = 5; + void clear_status(); + static const int kStatusFieldNumber = 5; + bool status() const; + void set_status(bool value); + + // @@protoc_insertion_point(class_scope:Tango.PMR.Stubs.StubMotorEncoderResponse) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::uint32 encoderid_; + ::google::protobuf::uint32 encoderversion_; + ::google::protobuf::int32 motorspeed_; + bool motordirection_; + bool status_; + mutable int _cached_size_; + friend struct protobuf_StubMotorEncoderResponse_2eproto::TableStruct; +}; +// =================================================================== + + +// =================================================================== + +#if !PROTOBUF_INLINE_NOT_IN_HEADERS +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// StubMotorEncoderResponse + +// uint32 EncoderId = 1; +inline void StubMotorEncoderResponse::clear_encoderid() { + encoderid_ = 0u; +} +inline ::google::protobuf::uint32 StubMotorEncoderResponse::encoderid() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubMotorEncoderResponse.EncoderId) + return encoderid_; +} +inline void StubMotorEncoderResponse::set_encoderid(::google::protobuf::uint32 value) { + + encoderid_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubMotorEncoderResponse.EncoderId) +} + +// uint32 EncoderVersion = 2; +inline void StubMotorEncoderResponse::clear_encoderversion() { + encoderversion_ = 0u; +} +inline ::google::protobuf::uint32 StubMotorEncoderResponse::encoderversion() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubMotorEncoderResponse.EncoderVersion) + return encoderversion_; +} +inline void StubMotorEncoderResponse::set_encoderversion(::google::protobuf::uint32 value) { + + encoderversion_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubMotorEncoderResponse.EncoderVersion) +} + +// int32 MotorSpeed = 3; +inline void StubMotorEncoderResponse::clear_motorspeed() { + motorspeed_ = 0; +} +inline ::google::protobuf::int32 StubMotorEncoderResponse::motorspeed() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubMotorEncoderResponse.MotorSpeed) + return motorspeed_; +} +inline void StubMotorEncoderResponse::set_motorspeed(::google::protobuf::int32 value) { + + motorspeed_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubMotorEncoderResponse.MotorSpeed) +} + +// bool MotorDirection = 4; +inline void StubMotorEncoderResponse::clear_motordirection() { + motordirection_ = false; +} +inline bool StubMotorEncoderResponse::motordirection() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubMotorEncoderResponse.MotorDirection) + return motordirection_; +} +inline void StubMotorEncoderResponse::set_motordirection(bool value) { + + motordirection_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubMotorEncoderResponse.MotorDirection) +} + +// bool Status = 5; +inline void StubMotorEncoderResponse::clear_status() { + status_ = false; +} +inline bool StubMotorEncoderResponse::status() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubMotorEncoderResponse.Status) + return status_; +} +inline void StubMotorEncoderResponse::set_status(bool value) { + + status_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubMotorEncoderResponse.Status) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +#endif // !PROTOBUF_INLINE_NOT_IN_HEADERS + +// @@protoc_insertion_point(namespace_scope) + + +} // namespace Stubs +} // namespace PMR +} // namespace Tango + +// @@protoc_insertion_point(global_scope) + +#endif // PROTOBUF_StubMotorEncoderResponse_2eproto__INCLUDED diff --git a/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubOptLimitSwitchRequest.pb.cc b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubOptLimitSwitchRequest.pb.cc new file mode 100644 index 000000000..648a753c0 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubOptLimitSwitchRequest.pb.cc @@ -0,0 +1,448 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StubOptLimitSwitchRequest.proto + +#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION +#include "StubOptLimitSwitchRequest.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 StubOptLimitSwitchRequestDefaultTypeInternal { +public: + ::google::protobuf::internal::ExplicitlyConstructed<StubOptLimitSwitchRequest> + _instance; +} _StubOptLimitSwitchRequest_default_instance_; + +namespace protobuf_StubOptLimitSwitchRequest_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(StubOptLimitSwitchRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubOptLimitSwitchRequest, limitswitchrid_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubOptLimitSwitchRequest, limitswitchrdisable_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(StubOptLimitSwitchRequest)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast<const ::google::protobuf::Message*>(&_StubOptLimitSwitchRequest_default_instance_), +}; + +namespace { + +void protobuf_AssignDescriptors() { + AddDescriptors(); + ::google::protobuf::MessageFactory* factory = NULL; + AssignDescriptors( + "StubOptLimitSwitchRequest.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(); + _StubOptLimitSwitchRequest_default_instance_._instance.DefaultConstruct(); + ::google::protobuf::internal::OnShutdownDestroyMessage( + &_StubOptLimitSwitchRequest_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\037StubOptLimitSwitchRequest.proto\022\017Tango" + ".PMR.Stubs\"P\n\031StubOptLimitSwitchRequest\022" + "\026\n\016LimitSwitchrId\030\001 \001(\r\022\033\n\023LimitSwitchrD" + "isable\030\002 \001(\010B\033\n\031com.twine.tango.pmr.stub" + "sb\006proto3" + }; + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + descriptor, 169); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "StubOptLimitSwitchRequest.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_StubOptLimitSwitchRequest_2eproto + + +// =================================================================== + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int StubOptLimitSwitchRequest::kLimitSwitchrIdFieldNumber; +const int StubOptLimitSwitchRequest::kLimitSwitchrDisableFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +StubOptLimitSwitchRequest::StubOptLimitSwitchRequest() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_StubOptLimitSwitchRequest_2eproto::InitDefaults(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:Tango.PMR.Stubs.StubOptLimitSwitchRequest) +} +StubOptLimitSwitchRequest::StubOptLimitSwitchRequest(const StubOptLimitSwitchRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&limitswitchrid_, &from.limitswitchrid_, + static_cast<size_t>(reinterpret_cast<char*>(&limitswitchrdisable_) - + reinterpret_cast<char*>(&limitswitchrid_)) + sizeof(limitswitchrdisable_)); + // @@protoc_insertion_point(copy_constructor:Tango.PMR.Stubs.StubOptLimitSwitchRequest) +} + +void StubOptLimitSwitchRequest::SharedCtor() { + ::memset(&limitswitchrid_, 0, static_cast<size_t>( + reinterpret_cast<char*>(&limitswitchrdisable_) - + reinterpret_cast<char*>(&limitswitchrid_)) + sizeof(limitswitchrdisable_)); + _cached_size_ = 0; +} + +StubOptLimitSwitchRequest::~StubOptLimitSwitchRequest() { + // @@protoc_insertion_point(destructor:Tango.PMR.Stubs.StubOptLimitSwitchRequest) + SharedDtor(); +} + +void StubOptLimitSwitchRequest::SharedDtor() { +} + +void StubOptLimitSwitchRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* StubOptLimitSwitchRequest::descriptor() { + protobuf_StubOptLimitSwitchRequest_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_StubOptLimitSwitchRequest_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const StubOptLimitSwitchRequest& StubOptLimitSwitchRequest::default_instance() { + protobuf_StubOptLimitSwitchRequest_2eproto::InitDefaults(); + return *internal_default_instance(); +} + +StubOptLimitSwitchRequest* StubOptLimitSwitchRequest::New(::google::protobuf::Arena* arena) const { + StubOptLimitSwitchRequest* n = new StubOptLimitSwitchRequest; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void StubOptLimitSwitchRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:Tango.PMR.Stubs.StubOptLimitSwitchRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + ::memset(&limitswitchrid_, 0, static_cast<size_t>( + reinterpret_cast<char*>(&limitswitchrdisable_) - + reinterpret_cast<char*>(&limitswitchrid_)) + sizeof(limitswitchrdisable_)); + _internal_metadata_.Clear(); +} + +bool StubOptLimitSwitchRequest::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.StubOptLimitSwitchRequest) + 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 LimitSwitchrId = 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, &limitswitchrid_))); + } else { + goto handle_unusual; + } + break; + } + + // bool LimitSwitchrDisable = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &limitswitchrdisable_))); + } 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.StubOptLimitSwitchRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:Tango.PMR.Stubs.StubOptLimitSwitchRequest) + return false; +#undef DO_ +} + +void StubOptLimitSwitchRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Tango.PMR.Stubs.StubOptLimitSwitchRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // uint32 LimitSwitchrId = 1; + if (this->limitswitchrid() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->limitswitchrid(), output); + } + + // bool LimitSwitchrDisable = 2; + if (this->limitswitchrdisable() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->limitswitchrdisable(), 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.StubOptLimitSwitchRequest) +} + +::google::protobuf::uint8* StubOptLimitSwitchRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:Tango.PMR.Stubs.StubOptLimitSwitchRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // uint32 LimitSwitchrId = 1; + if (this->limitswitchrid() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->limitswitchrid(), target); + } + + // bool LimitSwitchrDisable = 2; + if (this->limitswitchrdisable() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->limitswitchrdisable(), 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.StubOptLimitSwitchRequest) + return target; +} + +size_t StubOptLimitSwitchRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:Tango.PMR.Stubs.StubOptLimitSwitchRequest) + 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())); + } + // uint32 LimitSwitchrId = 1; + if (this->limitswitchrid() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->limitswitchrid()); + } + + // bool LimitSwitchrDisable = 2; + if (this->limitswitchrdisable() != 0) { + total_size += 1 + 1; + } + + 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 StubOptLimitSwitchRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:Tango.PMR.Stubs.StubOptLimitSwitchRequest) + GOOGLE_DCHECK_NE(&from, this); + const StubOptLimitSwitchRequest* source = + ::google::protobuf::internal::DynamicCastToGenerated<const StubOptLimitSwitchRequest>( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:Tango.PMR.Stubs.StubOptLimitSwitchRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:Tango.PMR.Stubs.StubOptLimitSwitchRequest) + MergeFrom(*source); + } +} + +void StubOptLimitSwitchRequest::MergeFrom(const StubOptLimitSwitchRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:Tango.PMR.Stubs.StubOptLimitSwitchRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.limitswitchrid() != 0) { + set_limitswitchrid(from.limitswitchrid()); + } + if (from.limitswitchrdisable() != 0) { + set_limitswitchrdisable(from.limitswitchrdisable()); + } +} + +void StubOptLimitSwitchRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:Tango.PMR.Stubs.StubOptLimitSwitchRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void StubOptLimitSwitchRequest::CopyFrom(const StubOptLimitSwitchRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:Tango.PMR.Stubs.StubOptLimitSwitchRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool StubOptLimitSwitchRequest::IsInitialized() const { + return true; +} + +void StubOptLimitSwitchRequest::Swap(StubOptLimitSwitchRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void StubOptLimitSwitchRequest::InternalSwap(StubOptLimitSwitchRequest* other) { + using std::swap; + swap(limitswitchrid_, other->limitswitchrid_); + swap(limitswitchrdisable_, other->limitswitchrdisable_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata StubOptLimitSwitchRequest::GetMetadata() const { + protobuf_StubOptLimitSwitchRequest_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_StubOptLimitSwitchRequest_2eproto::file_level_metadata[kIndexInFileMessages]; +} + +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// StubOptLimitSwitchRequest + +// uint32 LimitSwitchrId = 1; +void StubOptLimitSwitchRequest::clear_limitswitchrid() { + limitswitchrid_ = 0u; +} +::google::protobuf::uint32 StubOptLimitSwitchRequest::limitswitchrid() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubOptLimitSwitchRequest.LimitSwitchrId) + return limitswitchrid_; +} +void StubOptLimitSwitchRequest::set_limitswitchrid(::google::protobuf::uint32 value) { + + limitswitchrid_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubOptLimitSwitchRequest.LimitSwitchrId) +} + +// bool LimitSwitchrDisable = 2; +void StubOptLimitSwitchRequest::clear_limitswitchrdisable() { + limitswitchrdisable_ = false; +} +bool StubOptLimitSwitchRequest::limitswitchrdisable() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubOptLimitSwitchRequest.LimitSwitchrDisable) + return limitswitchrdisable_; +} +void StubOptLimitSwitchRequest::set_limitswitchrdisable(bool value) { + + limitswitchrdisable_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubOptLimitSwitchRequest.LimitSwitchrDisable) +} + +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS + +// @@protoc_insertion_point(namespace_scope) + +} // namespace Stubs +} // namespace PMR +} // namespace Tango + +// @@protoc_insertion_point(global_scope) diff --git a/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubOptLimitSwitchRequest.pb.h b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubOptLimitSwitchRequest.pb.h new file mode 100644 index 000000000..5cf5b107e --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubOptLimitSwitchRequest.pb.h @@ -0,0 +1,220 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StubOptLimitSwitchRequest.proto + +#ifndef PROTOBUF_StubOptLimitSwitchRequest_2eproto__INCLUDED +#define PROTOBUF_StubOptLimitSwitchRequest_2eproto__INCLUDED + +#include <string> + +#include <google/protobuf/stubs/common.h> + +#if GOOGLE_PROTOBUF_VERSION < 3004000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3004000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include <google/protobuf/io/coded_stream.h> +#include <google/protobuf/arena.h> +#include <google/protobuf/arenastring.h> +#include <google/protobuf/generated_message_table_driven.h> +#include <google/protobuf/generated_message_util.h> +#include <google/protobuf/metadata.h> +#include <google/protobuf/message.h> +#include <google/protobuf/repeated_field.h> // IWYU pragma: export +#include <google/protobuf/extension_set.h> // IWYU pragma: export +#include <google/protobuf/unknown_field_set.h> +// @@protoc_insertion_point(includes) +namespace Tango { +namespace PMR { +namespace Stubs { +class StubOptLimitSwitchRequest; +class StubOptLimitSwitchRequestDefaultTypeInternal; +extern StubOptLimitSwitchRequestDefaultTypeInternal _StubOptLimitSwitchRequest_default_instance_; +} // namespace Stubs +} // namespace PMR +} // namespace Tango + +namespace Tango { +namespace PMR { +namespace Stubs { + +namespace protobuf_StubOptLimitSwitchRequest_2eproto { +// Internal implementation detail -- do not call these. +struct TableStruct { + static const ::google::protobuf::internal::ParseTableField entries[]; + static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; + static const ::google::protobuf::internal::ParseTable schema[]; + static const ::google::protobuf::uint32 offsets[]; + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static void InitDefaultsImpl(); +}; +void AddDescriptors(); +void InitDefaults(); +} // namespace protobuf_StubOptLimitSwitchRequest_2eproto + +// =================================================================== + +class StubOptLimitSwitchRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Tango.PMR.Stubs.StubOptLimitSwitchRequest) */ { + public: + StubOptLimitSwitchRequest(); + virtual ~StubOptLimitSwitchRequest(); + + StubOptLimitSwitchRequest(const StubOptLimitSwitchRequest& from); + + inline StubOptLimitSwitchRequest& operator=(const StubOptLimitSwitchRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + StubOptLimitSwitchRequest(StubOptLimitSwitchRequest&& from) noexcept + : StubOptLimitSwitchRequest() { + *this = ::std::move(from); + } + + inline StubOptLimitSwitchRequest& operator=(StubOptLimitSwitchRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const StubOptLimitSwitchRequest& default_instance(); + + static inline const StubOptLimitSwitchRequest* internal_default_instance() { + return reinterpret_cast<const StubOptLimitSwitchRequest*>( + &_StubOptLimitSwitchRequest_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 0; + + void Swap(StubOptLimitSwitchRequest* other); + friend void swap(StubOptLimitSwitchRequest& a, StubOptLimitSwitchRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline StubOptLimitSwitchRequest* New() const PROTOBUF_FINAL { return New(NULL); } + + StubOptLimitSwitchRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const StubOptLimitSwitchRequest& from); + void MergeFrom(const StubOptLimitSwitchRequest& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(StubOptLimitSwitchRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // uint32 LimitSwitchrId = 1; + void clear_limitswitchrid(); + static const int kLimitSwitchrIdFieldNumber = 1; + ::google::protobuf::uint32 limitswitchrid() const; + void set_limitswitchrid(::google::protobuf::uint32 value); + + // bool LimitSwitchrDisable = 2; + void clear_limitswitchrdisable(); + static const int kLimitSwitchrDisableFieldNumber = 2; + bool limitswitchrdisable() const; + void set_limitswitchrdisable(bool value); + + // @@protoc_insertion_point(class_scope:Tango.PMR.Stubs.StubOptLimitSwitchRequest) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::uint32 limitswitchrid_; + bool limitswitchrdisable_; + mutable int _cached_size_; + friend struct protobuf_StubOptLimitSwitchRequest_2eproto::TableStruct; +}; +// =================================================================== + + +// =================================================================== + +#if !PROTOBUF_INLINE_NOT_IN_HEADERS +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// StubOptLimitSwitchRequest + +// uint32 LimitSwitchrId = 1; +inline void StubOptLimitSwitchRequest::clear_limitswitchrid() { + limitswitchrid_ = 0u; +} +inline ::google::protobuf::uint32 StubOptLimitSwitchRequest::limitswitchrid() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubOptLimitSwitchRequest.LimitSwitchrId) + return limitswitchrid_; +} +inline void StubOptLimitSwitchRequest::set_limitswitchrid(::google::protobuf::uint32 value) { + + limitswitchrid_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubOptLimitSwitchRequest.LimitSwitchrId) +} + +// bool LimitSwitchrDisable = 2; +inline void StubOptLimitSwitchRequest::clear_limitswitchrdisable() { + limitswitchrdisable_ = false; +} +inline bool StubOptLimitSwitchRequest::limitswitchrdisable() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubOptLimitSwitchRequest.LimitSwitchrDisable) + return limitswitchrdisable_; +} +inline void StubOptLimitSwitchRequest::set_limitswitchrdisable(bool value) { + + limitswitchrdisable_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubOptLimitSwitchRequest.LimitSwitchrDisable) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +#endif // !PROTOBUF_INLINE_NOT_IN_HEADERS + +// @@protoc_insertion_point(namespace_scope) + + +} // namespace Stubs +} // namespace PMR +} // namespace Tango + +// @@protoc_insertion_point(global_scope) + +#endif // PROTOBUF_StubOptLimitSwitchRequest_2eproto__INCLUDED diff --git a/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubOptLimitSwitchResponse.pb.cc b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubOptLimitSwitchResponse.pb.cc new file mode 100644 index 000000000..68cac840a --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubOptLimitSwitchResponse.pb.cc @@ -0,0 +1,497 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StubOptLimitSwitchResponse.proto + +#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION +#include "StubOptLimitSwitchResponse.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 StubOptLimitSwitchResponseDefaultTypeInternal { +public: + ::google::protobuf::internal::ExplicitlyConstructed<StubOptLimitSwitchResponse> + _instance; +} _StubOptLimitSwitchResponse_default_instance_; + +namespace protobuf_StubOptLimitSwitchResponse_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(StubOptLimitSwitchResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubOptLimitSwitchResponse, limitswitchrid_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubOptLimitSwitchResponse, limitswitchditection_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubOptLimitSwitchResponse, status_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(StubOptLimitSwitchResponse)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast<const ::google::protobuf::Message*>(&_StubOptLimitSwitchResponse_default_instance_), +}; + +namespace { + +void protobuf_AssignDescriptors() { + AddDescriptors(); + ::google::protobuf::MessageFactory* factory = NULL; + AssignDescriptors( + "StubOptLimitSwitchResponse.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(); + _StubOptLimitSwitchResponse_default_instance_._instance.DefaultConstruct(); + ::google::protobuf::internal::OnShutdownDestroyMessage( + &_StubOptLimitSwitchResponse_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 StubOptLimitSwitchResponse.proto\022\017Tang" + "o.PMR.Stubs\"b\n\032StubOptLimitSwitchRespons" + "e\022\026\n\016LimitSwitchrId\030\001 \001(\r\022\034\n\024LimitSwitch" + "Ditection\030\002 \001(\010\022\016\n\006Status\030\003 \001(\010B\033\n\031com.t" + "wine.tango.pmr.stubsb\006proto3" + }; + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + descriptor, 188); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "StubOptLimitSwitchResponse.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_StubOptLimitSwitchResponse_2eproto + + +// =================================================================== + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int StubOptLimitSwitchResponse::kLimitSwitchrIdFieldNumber; +const int StubOptLimitSwitchResponse::kLimitSwitchDitectionFieldNumber; +const int StubOptLimitSwitchResponse::kStatusFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +StubOptLimitSwitchResponse::StubOptLimitSwitchResponse() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_StubOptLimitSwitchResponse_2eproto::InitDefaults(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:Tango.PMR.Stubs.StubOptLimitSwitchResponse) +} +StubOptLimitSwitchResponse::StubOptLimitSwitchResponse(const StubOptLimitSwitchResponse& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&limitswitchrid_, &from.limitswitchrid_, + static_cast<size_t>(reinterpret_cast<char*>(&status_) - + reinterpret_cast<char*>(&limitswitchrid_)) + sizeof(status_)); + // @@protoc_insertion_point(copy_constructor:Tango.PMR.Stubs.StubOptLimitSwitchResponse) +} + +void StubOptLimitSwitchResponse::SharedCtor() { + ::memset(&limitswitchrid_, 0, static_cast<size_t>( + reinterpret_cast<char*>(&status_) - + reinterpret_cast<char*>(&limitswitchrid_)) + sizeof(status_)); + _cached_size_ = 0; +} + +StubOptLimitSwitchResponse::~StubOptLimitSwitchResponse() { + // @@protoc_insertion_point(destructor:Tango.PMR.Stubs.StubOptLimitSwitchResponse) + SharedDtor(); +} + +void StubOptLimitSwitchResponse::SharedDtor() { +} + +void StubOptLimitSwitchResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* StubOptLimitSwitchResponse::descriptor() { + protobuf_StubOptLimitSwitchResponse_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_StubOptLimitSwitchResponse_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const StubOptLimitSwitchResponse& StubOptLimitSwitchResponse::default_instance() { + protobuf_StubOptLimitSwitchResponse_2eproto::InitDefaults(); + return *internal_default_instance(); +} + +StubOptLimitSwitchResponse* StubOptLimitSwitchResponse::New(::google::protobuf::Arena* arena) const { + StubOptLimitSwitchResponse* n = new StubOptLimitSwitchResponse; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void StubOptLimitSwitchResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:Tango.PMR.Stubs.StubOptLimitSwitchResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + ::memset(&limitswitchrid_, 0, static_cast<size_t>( + reinterpret_cast<char*>(&status_) - + reinterpret_cast<char*>(&limitswitchrid_)) + sizeof(status_)); + _internal_metadata_.Clear(); +} + +bool StubOptLimitSwitchResponse::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.StubOptLimitSwitchResponse) + 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 LimitSwitchrId = 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, &limitswitchrid_))); + } else { + goto handle_unusual; + } + break; + } + + // bool LimitSwitchDitection = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &limitswitchditection_))); + } else { + goto handle_unusual; + } + break; + } + + // bool Status = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &status_))); + } 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.StubOptLimitSwitchResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:Tango.PMR.Stubs.StubOptLimitSwitchResponse) + return false; +#undef DO_ +} + +void StubOptLimitSwitchResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Tango.PMR.Stubs.StubOptLimitSwitchResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // uint32 LimitSwitchrId = 1; + if (this->limitswitchrid() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->limitswitchrid(), output); + } + + // bool LimitSwitchDitection = 2; + if (this->limitswitchditection() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->limitswitchditection(), output); + } + + // bool Status = 3; + if (this->status() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->status(), 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.StubOptLimitSwitchResponse) +} + +::google::protobuf::uint8* StubOptLimitSwitchResponse::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:Tango.PMR.Stubs.StubOptLimitSwitchResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // uint32 LimitSwitchrId = 1; + if (this->limitswitchrid() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->limitswitchrid(), target); + } + + // bool LimitSwitchDitection = 2; + if (this->limitswitchditection() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->limitswitchditection(), target); + } + + // bool Status = 3; + if (this->status() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->status(), 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.StubOptLimitSwitchResponse) + return target; +} + +size_t StubOptLimitSwitchResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:Tango.PMR.Stubs.StubOptLimitSwitchResponse) + 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())); + } + // uint32 LimitSwitchrId = 1; + if (this->limitswitchrid() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->limitswitchrid()); + } + + // bool LimitSwitchDitection = 2; + if (this->limitswitchditection() != 0) { + total_size += 1 + 1; + } + + // bool Status = 3; + if (this->status() != 0) { + total_size += 1 + 1; + } + + 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 StubOptLimitSwitchResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:Tango.PMR.Stubs.StubOptLimitSwitchResponse) + GOOGLE_DCHECK_NE(&from, this); + const StubOptLimitSwitchResponse* source = + ::google::protobuf::internal::DynamicCastToGenerated<const StubOptLimitSwitchResponse>( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:Tango.PMR.Stubs.StubOptLimitSwitchResponse) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:Tango.PMR.Stubs.StubOptLimitSwitchResponse) + MergeFrom(*source); + } +} + +void StubOptLimitSwitchResponse::MergeFrom(const StubOptLimitSwitchResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:Tango.PMR.Stubs.StubOptLimitSwitchResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.limitswitchrid() != 0) { + set_limitswitchrid(from.limitswitchrid()); + } + if (from.limitswitchditection() != 0) { + set_limitswitchditection(from.limitswitchditection()); + } + if (from.status() != 0) { + set_status(from.status()); + } +} + +void StubOptLimitSwitchResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:Tango.PMR.Stubs.StubOptLimitSwitchResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void StubOptLimitSwitchResponse::CopyFrom(const StubOptLimitSwitchResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:Tango.PMR.Stubs.StubOptLimitSwitchResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool StubOptLimitSwitchResponse::IsInitialized() const { + return true; +} + +void StubOptLimitSwitchResponse::Swap(StubOptLimitSwitchResponse* other) { + if (other == this) return; + InternalSwap(other); +} +void StubOptLimitSwitchResponse::InternalSwap(StubOptLimitSwitchResponse* other) { + using std::swap; + swap(limitswitchrid_, other->limitswitchrid_); + swap(limitswitchditection_, other->limitswitchditection_); + swap(status_, other->status_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata StubOptLimitSwitchResponse::GetMetadata() const { + protobuf_StubOptLimitSwitchResponse_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_StubOptLimitSwitchResponse_2eproto::file_level_metadata[kIndexInFileMessages]; +} + +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// StubOptLimitSwitchResponse + +// uint32 LimitSwitchrId = 1; +void StubOptLimitSwitchResponse::clear_limitswitchrid() { + limitswitchrid_ = 0u; +} +::google::protobuf::uint32 StubOptLimitSwitchResponse::limitswitchrid() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubOptLimitSwitchResponse.LimitSwitchrId) + return limitswitchrid_; +} +void StubOptLimitSwitchResponse::set_limitswitchrid(::google::protobuf::uint32 value) { + + limitswitchrid_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubOptLimitSwitchResponse.LimitSwitchrId) +} + +// bool LimitSwitchDitection = 2; +void StubOptLimitSwitchResponse::clear_limitswitchditection() { + limitswitchditection_ = false; +} +bool StubOptLimitSwitchResponse::limitswitchditection() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubOptLimitSwitchResponse.LimitSwitchDitection) + return limitswitchditection_; +} +void StubOptLimitSwitchResponse::set_limitswitchditection(bool value) { + + limitswitchditection_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubOptLimitSwitchResponse.LimitSwitchDitection) +} + +// bool Status = 3; +void StubOptLimitSwitchResponse::clear_status() { + status_ = false; +} +bool StubOptLimitSwitchResponse::status() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubOptLimitSwitchResponse.Status) + return status_; +} +void StubOptLimitSwitchResponse::set_status(bool value) { + + status_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubOptLimitSwitchResponse.Status) +} + +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS + +// @@protoc_insertion_point(namespace_scope) + +} // namespace Stubs +} // namespace PMR +} // namespace Tango + +// @@protoc_insertion_point(global_scope) diff --git a/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubOptLimitSwitchResponse.pb.h b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubOptLimitSwitchResponse.pb.h new file mode 100644 index 000000000..25457b3ac --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubOptLimitSwitchResponse.pb.h @@ -0,0 +1,241 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StubOptLimitSwitchResponse.proto + +#ifndef PROTOBUF_StubOptLimitSwitchResponse_2eproto__INCLUDED +#define PROTOBUF_StubOptLimitSwitchResponse_2eproto__INCLUDED + +#include <string> + +#include <google/protobuf/stubs/common.h> + +#if GOOGLE_PROTOBUF_VERSION < 3004000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3004000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include <google/protobuf/io/coded_stream.h> +#include <google/protobuf/arena.h> +#include <google/protobuf/arenastring.h> +#include <google/protobuf/generated_message_table_driven.h> +#include <google/protobuf/generated_message_util.h> +#include <google/protobuf/metadata.h> +#include <google/protobuf/message.h> +#include <google/protobuf/repeated_field.h> // IWYU pragma: export +#include <google/protobuf/extension_set.h> // IWYU pragma: export +#include <google/protobuf/unknown_field_set.h> +// @@protoc_insertion_point(includes) +namespace Tango { +namespace PMR { +namespace Stubs { +class StubOptLimitSwitchResponse; +class StubOptLimitSwitchResponseDefaultTypeInternal; +extern StubOptLimitSwitchResponseDefaultTypeInternal _StubOptLimitSwitchResponse_default_instance_; +} // namespace Stubs +} // namespace PMR +} // namespace Tango + +namespace Tango { +namespace PMR { +namespace Stubs { + +namespace protobuf_StubOptLimitSwitchResponse_2eproto { +// Internal implementation detail -- do not call these. +struct TableStruct { + static const ::google::protobuf::internal::ParseTableField entries[]; + static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; + static const ::google::protobuf::internal::ParseTable schema[]; + static const ::google::protobuf::uint32 offsets[]; + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static void InitDefaultsImpl(); +}; +void AddDescriptors(); +void InitDefaults(); +} // namespace protobuf_StubOptLimitSwitchResponse_2eproto + +// =================================================================== + +class StubOptLimitSwitchResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Tango.PMR.Stubs.StubOptLimitSwitchResponse) */ { + public: + StubOptLimitSwitchResponse(); + virtual ~StubOptLimitSwitchResponse(); + + StubOptLimitSwitchResponse(const StubOptLimitSwitchResponse& from); + + inline StubOptLimitSwitchResponse& operator=(const StubOptLimitSwitchResponse& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + StubOptLimitSwitchResponse(StubOptLimitSwitchResponse&& from) noexcept + : StubOptLimitSwitchResponse() { + *this = ::std::move(from); + } + + inline StubOptLimitSwitchResponse& operator=(StubOptLimitSwitchResponse&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const StubOptLimitSwitchResponse& default_instance(); + + static inline const StubOptLimitSwitchResponse* internal_default_instance() { + return reinterpret_cast<const StubOptLimitSwitchResponse*>( + &_StubOptLimitSwitchResponse_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 0; + + void Swap(StubOptLimitSwitchResponse* other); + friend void swap(StubOptLimitSwitchResponse& a, StubOptLimitSwitchResponse& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline StubOptLimitSwitchResponse* New() const PROTOBUF_FINAL { return New(NULL); } + + StubOptLimitSwitchResponse* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const StubOptLimitSwitchResponse& from); + void MergeFrom(const StubOptLimitSwitchResponse& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(StubOptLimitSwitchResponse* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // uint32 LimitSwitchrId = 1; + void clear_limitswitchrid(); + static const int kLimitSwitchrIdFieldNumber = 1; + ::google::protobuf::uint32 limitswitchrid() const; + void set_limitswitchrid(::google::protobuf::uint32 value); + + // bool LimitSwitchDitection = 2; + void clear_limitswitchditection(); + static const int kLimitSwitchDitectionFieldNumber = 2; + bool limitswitchditection() const; + void set_limitswitchditection(bool value); + + // bool Status = 3; + void clear_status(); + static const int kStatusFieldNumber = 3; + bool status() const; + void set_status(bool value); + + // @@protoc_insertion_point(class_scope:Tango.PMR.Stubs.StubOptLimitSwitchResponse) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::uint32 limitswitchrid_; + bool limitswitchditection_; + bool status_; + mutable int _cached_size_; + friend struct protobuf_StubOptLimitSwitchResponse_2eproto::TableStruct; +}; +// =================================================================== + + +// =================================================================== + +#if !PROTOBUF_INLINE_NOT_IN_HEADERS +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// StubOptLimitSwitchResponse + +// uint32 LimitSwitchrId = 1; +inline void StubOptLimitSwitchResponse::clear_limitswitchrid() { + limitswitchrid_ = 0u; +} +inline ::google::protobuf::uint32 StubOptLimitSwitchResponse::limitswitchrid() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubOptLimitSwitchResponse.LimitSwitchrId) + return limitswitchrid_; +} +inline void StubOptLimitSwitchResponse::set_limitswitchrid(::google::protobuf::uint32 value) { + + limitswitchrid_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubOptLimitSwitchResponse.LimitSwitchrId) +} + +// bool LimitSwitchDitection = 2; +inline void StubOptLimitSwitchResponse::clear_limitswitchditection() { + limitswitchditection_ = false; +} +inline bool StubOptLimitSwitchResponse::limitswitchditection() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubOptLimitSwitchResponse.LimitSwitchDitection) + return limitswitchditection_; +} +inline void StubOptLimitSwitchResponse::set_limitswitchditection(bool value) { + + limitswitchditection_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubOptLimitSwitchResponse.LimitSwitchDitection) +} + +// bool Status = 3; +inline void StubOptLimitSwitchResponse::clear_status() { + status_ = false; +} +inline bool StubOptLimitSwitchResponse::status() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubOptLimitSwitchResponse.Status) + return status_; +} +inline void StubOptLimitSwitchResponse::set_status(bool value) { + + status_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubOptLimitSwitchResponse.Status) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +#endif // !PROTOBUF_INLINE_NOT_IN_HEADERS + +// @@protoc_insertion_point(namespace_scope) + + +} // namespace Stubs +} // namespace PMR +} // namespace Tango + +// @@protoc_insertion_point(global_scope) + +#endif // PROTOBUF_StubOptLimitSwitchResponse_2eproto__INCLUDED diff --git a/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubSteperMotorRequest.pb.cc b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubSteperMotorRequest.pb.cc new file mode 100644 index 000000000..c342f27a2 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubSteperMotorRequest.pb.cc @@ -0,0 +1,600 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StubSteperMotorRequest.proto + +#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION +#include "StubSteperMotorRequest.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 StubSteperMotorRequestDefaultTypeInternal { +public: + ::google::protobuf::internal::ExplicitlyConstructed<StubSteperMotorRequest> + _instance; +} _StubSteperMotorRequest_default_instance_; + +namespace protobuf_StubSteperMotorRequest_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(StubSteperMotorRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubSteperMotorRequest, motorid_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubSteperMotorRequest, start_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubSteperMotorRequest, setdirection_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubSteperMotorRequest, setmicrostepdivision_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubSteperMotorRequest, setspeed_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(StubSteperMotorRequest)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast<const ::google::protobuf::Message*>(&_StubSteperMotorRequest_default_instance_), +}; + +namespace { + +void protobuf_AssignDescriptors() { + AddDescriptors(); + ::google::protobuf::MessageFactory* factory = NULL; + AssignDescriptors( + "StubSteperMotorRequest.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(); + _StubSteperMotorRequest_default_instance_._instance.DefaultConstruct(); + ::google::protobuf::internal::OnShutdownDestroyMessage( + &_StubSteperMotorRequest_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\034StubSteperMotorRequest.proto\022\017Tango.PM" + "R.Stubs\"~\n\026StubSteperMotorRequest\022\017\n\007Mot" + "orId\030\001 \001(\r\022\r\n\005Start\030\002 \001(\010\022\024\n\014SetDirectio" + "n\030\003 \001(\010\022\034\n\024SetMicrostepDivision\030\004 \001(\r\022\020\n" + "\010SetSpeed\030\005 \001(\005B\033\n\031com.twine.tango.pmr.s" + "tubsb\006proto3" + }; + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + descriptor, 212); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "StubSteperMotorRequest.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_StubSteperMotorRequest_2eproto + + +// =================================================================== + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int StubSteperMotorRequest::kMotorIdFieldNumber; +const int StubSteperMotorRequest::kStartFieldNumber; +const int StubSteperMotorRequest::kSetDirectionFieldNumber; +const int StubSteperMotorRequest::kSetMicrostepDivisionFieldNumber; +const int StubSteperMotorRequest::kSetSpeedFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +StubSteperMotorRequest::StubSteperMotorRequest() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_StubSteperMotorRequest_2eproto::InitDefaults(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:Tango.PMR.Stubs.StubSteperMotorRequest) +} +StubSteperMotorRequest::StubSteperMotorRequest(const StubSteperMotorRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&motorid_, &from.motorid_, + static_cast<size_t>(reinterpret_cast<char*>(&setspeed_) - + reinterpret_cast<char*>(&motorid_)) + sizeof(setspeed_)); + // @@protoc_insertion_point(copy_constructor:Tango.PMR.Stubs.StubSteperMotorRequest) +} + +void StubSteperMotorRequest::SharedCtor() { + ::memset(&motorid_, 0, static_cast<size_t>( + reinterpret_cast<char*>(&setspeed_) - + reinterpret_cast<char*>(&motorid_)) + sizeof(setspeed_)); + _cached_size_ = 0; +} + +StubSteperMotorRequest::~StubSteperMotorRequest() { + // @@protoc_insertion_point(destructor:Tango.PMR.Stubs.StubSteperMotorRequest) + SharedDtor(); +} + +void StubSteperMotorRequest::SharedDtor() { +} + +void StubSteperMotorRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* StubSteperMotorRequest::descriptor() { + protobuf_StubSteperMotorRequest_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_StubSteperMotorRequest_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const StubSteperMotorRequest& StubSteperMotorRequest::default_instance() { + protobuf_StubSteperMotorRequest_2eproto::InitDefaults(); + return *internal_default_instance(); +} + +StubSteperMotorRequest* StubSteperMotorRequest::New(::google::protobuf::Arena* arena) const { + StubSteperMotorRequest* n = new StubSteperMotorRequest; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void StubSteperMotorRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:Tango.PMR.Stubs.StubSteperMotorRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + ::memset(&motorid_, 0, static_cast<size_t>( + reinterpret_cast<char*>(&setspeed_) - + reinterpret_cast<char*>(&motorid_)) + sizeof(setspeed_)); + _internal_metadata_.Clear(); +} + +bool StubSteperMotorRequest::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.StubSteperMotorRequest) + 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 MotorId = 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, &motorid_))); + } else { + goto handle_unusual; + } + break; + } + + // bool Start = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &start_))); + } else { + goto handle_unusual; + } + break; + } + + // bool SetDirection = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &setdirection_))); + } else { + goto handle_unusual; + } + break; + } + + // uint32 SetMicrostepDivision = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &setmicrostepdivision_))); + } else { + goto handle_unusual; + } + break; + } + + // int32 SetSpeed = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + input, &setspeed_))); + } 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.StubSteperMotorRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:Tango.PMR.Stubs.StubSteperMotorRequest) + return false; +#undef DO_ +} + +void StubSteperMotorRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Tango.PMR.Stubs.StubSteperMotorRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // uint32 MotorId = 1; + if (this->motorid() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->motorid(), output); + } + + // bool Start = 2; + if (this->start() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->start(), output); + } + + // bool SetDirection = 3; + if (this->setdirection() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->setdirection(), output); + } + + // uint32 SetMicrostepDivision = 4; + if (this->setmicrostepdivision() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->setmicrostepdivision(), output); + } + + // int32 SetSpeed = 5; + if (this->setspeed() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->setspeed(), 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.StubSteperMotorRequest) +} + +::google::protobuf::uint8* StubSteperMotorRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:Tango.PMR.Stubs.StubSteperMotorRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // uint32 MotorId = 1; + if (this->motorid() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->motorid(), target); + } + + // bool Start = 2; + if (this->start() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->start(), target); + } + + // bool SetDirection = 3; + if (this->setdirection() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->setdirection(), target); + } + + // uint32 SetMicrostepDivision = 4; + if (this->setmicrostepdivision() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(4, this->setmicrostepdivision(), target); + } + + // int32 SetSpeed = 5; + if (this->setspeed() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->setspeed(), 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.StubSteperMotorRequest) + return target; +} + +size_t StubSteperMotorRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:Tango.PMR.Stubs.StubSteperMotorRequest) + 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())); + } + // uint32 MotorId = 1; + if (this->motorid() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->motorid()); + } + + // bool Start = 2; + if (this->start() != 0) { + total_size += 1 + 1; + } + + // bool SetDirection = 3; + if (this->setdirection() != 0) { + total_size += 1 + 1; + } + + // uint32 SetMicrostepDivision = 4; + if (this->setmicrostepdivision() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->setmicrostepdivision()); + } + + // int32 SetSpeed = 5; + if (this->setspeed() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->setspeed()); + } + + 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 StubSteperMotorRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:Tango.PMR.Stubs.StubSteperMotorRequest) + GOOGLE_DCHECK_NE(&from, this); + const StubSteperMotorRequest* source = + ::google::protobuf::internal::DynamicCastToGenerated<const StubSteperMotorRequest>( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:Tango.PMR.Stubs.StubSteperMotorRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:Tango.PMR.Stubs.StubSteperMotorRequest) + MergeFrom(*source); + } +} + +void StubSteperMotorRequest::MergeFrom(const StubSteperMotorRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:Tango.PMR.Stubs.StubSteperMotorRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.motorid() != 0) { + set_motorid(from.motorid()); + } + if (from.start() != 0) { + set_start(from.start()); + } + if (from.setdirection() != 0) { + set_setdirection(from.setdirection()); + } + if (from.setmicrostepdivision() != 0) { + set_setmicrostepdivision(from.setmicrostepdivision()); + } + if (from.setspeed() != 0) { + set_setspeed(from.setspeed()); + } +} + +void StubSteperMotorRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:Tango.PMR.Stubs.StubSteperMotorRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void StubSteperMotorRequest::CopyFrom(const StubSteperMotorRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:Tango.PMR.Stubs.StubSteperMotorRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool StubSteperMotorRequest::IsInitialized() const { + return true; +} + +void StubSteperMotorRequest::Swap(StubSteperMotorRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void StubSteperMotorRequest::InternalSwap(StubSteperMotorRequest* other) { + using std::swap; + swap(motorid_, other->motorid_); + swap(start_, other->start_); + swap(setdirection_, other->setdirection_); + swap(setmicrostepdivision_, other->setmicrostepdivision_); + swap(setspeed_, other->setspeed_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata StubSteperMotorRequest::GetMetadata() const { + protobuf_StubSteperMotorRequest_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_StubSteperMotorRequest_2eproto::file_level_metadata[kIndexInFileMessages]; +} + +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// StubSteperMotorRequest + +// uint32 MotorId = 1; +void StubSteperMotorRequest::clear_motorid() { + motorid_ = 0u; +} +::google::protobuf::uint32 StubSteperMotorRequest::motorid() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubSteperMotorRequest.MotorId) + return motorid_; +} +void StubSteperMotorRequest::set_motorid(::google::protobuf::uint32 value) { + + motorid_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubSteperMotorRequest.MotorId) +} + +// bool Start = 2; +void StubSteperMotorRequest::clear_start() { + start_ = false; +} +bool StubSteperMotorRequest::start() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubSteperMotorRequest.Start) + return start_; +} +void StubSteperMotorRequest::set_start(bool value) { + + start_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubSteperMotorRequest.Start) +} + +// bool SetDirection = 3; +void StubSteperMotorRequest::clear_setdirection() { + setdirection_ = false; +} +bool StubSteperMotorRequest::setdirection() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubSteperMotorRequest.SetDirection) + return setdirection_; +} +void StubSteperMotorRequest::set_setdirection(bool value) { + + setdirection_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubSteperMotorRequest.SetDirection) +} + +// uint32 SetMicrostepDivision = 4; +void StubSteperMotorRequest::clear_setmicrostepdivision() { + setmicrostepdivision_ = 0u; +} +::google::protobuf::uint32 StubSteperMotorRequest::setmicrostepdivision() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubSteperMotorRequest.SetMicrostepDivision) + return setmicrostepdivision_; +} +void StubSteperMotorRequest::set_setmicrostepdivision(::google::protobuf::uint32 value) { + + setmicrostepdivision_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubSteperMotorRequest.SetMicrostepDivision) +} + +// int32 SetSpeed = 5; +void StubSteperMotorRequest::clear_setspeed() { + setspeed_ = 0; +} +::google::protobuf::int32 StubSteperMotorRequest::setspeed() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubSteperMotorRequest.SetSpeed) + return setspeed_; +} +void StubSteperMotorRequest::set_setspeed(::google::protobuf::int32 value) { + + setspeed_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubSteperMotorRequest.SetSpeed) +} + +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS + +// @@protoc_insertion_point(namespace_scope) + +} // namespace Stubs +} // namespace PMR +} // namespace Tango + +// @@protoc_insertion_point(global_scope) diff --git a/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubSteperMotorRequest.pb.h b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubSteperMotorRequest.pb.h new file mode 100644 index 000000000..d6c0b7d33 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubSteperMotorRequest.pb.h @@ -0,0 +1,283 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StubSteperMotorRequest.proto + +#ifndef PROTOBUF_StubSteperMotorRequest_2eproto__INCLUDED +#define PROTOBUF_StubSteperMotorRequest_2eproto__INCLUDED + +#include <string> + +#include <google/protobuf/stubs/common.h> + +#if GOOGLE_PROTOBUF_VERSION < 3004000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3004000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include <google/protobuf/io/coded_stream.h> +#include <google/protobuf/arena.h> +#include <google/protobuf/arenastring.h> +#include <google/protobuf/generated_message_table_driven.h> +#include <google/protobuf/generated_message_util.h> +#include <google/protobuf/metadata.h> +#include <google/protobuf/message.h> +#include <google/protobuf/repeated_field.h> // IWYU pragma: export +#include <google/protobuf/extension_set.h> // IWYU pragma: export +#include <google/protobuf/unknown_field_set.h> +// @@protoc_insertion_point(includes) +namespace Tango { +namespace PMR { +namespace Stubs { +class StubSteperMotorRequest; +class StubSteperMotorRequestDefaultTypeInternal; +extern StubSteperMotorRequestDefaultTypeInternal _StubSteperMotorRequest_default_instance_; +} // namespace Stubs +} // namespace PMR +} // namespace Tango + +namespace Tango { +namespace PMR { +namespace Stubs { + +namespace protobuf_StubSteperMotorRequest_2eproto { +// Internal implementation detail -- do not call these. +struct TableStruct { + static const ::google::protobuf::internal::ParseTableField entries[]; + static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; + static const ::google::protobuf::internal::ParseTable schema[]; + static const ::google::protobuf::uint32 offsets[]; + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static void InitDefaultsImpl(); +}; +void AddDescriptors(); +void InitDefaults(); +} // namespace protobuf_StubSteperMotorRequest_2eproto + +// =================================================================== + +class StubSteperMotorRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Tango.PMR.Stubs.StubSteperMotorRequest) */ { + public: + StubSteperMotorRequest(); + virtual ~StubSteperMotorRequest(); + + StubSteperMotorRequest(const StubSteperMotorRequest& from); + + inline StubSteperMotorRequest& operator=(const StubSteperMotorRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + StubSteperMotorRequest(StubSteperMotorRequest&& from) noexcept + : StubSteperMotorRequest() { + *this = ::std::move(from); + } + + inline StubSteperMotorRequest& operator=(StubSteperMotorRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const StubSteperMotorRequest& default_instance(); + + static inline const StubSteperMotorRequest* internal_default_instance() { + return reinterpret_cast<const StubSteperMotorRequest*>( + &_StubSteperMotorRequest_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 0; + + void Swap(StubSteperMotorRequest* other); + friend void swap(StubSteperMotorRequest& a, StubSteperMotorRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline StubSteperMotorRequest* New() const PROTOBUF_FINAL { return New(NULL); } + + StubSteperMotorRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const StubSteperMotorRequest& from); + void MergeFrom(const StubSteperMotorRequest& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(StubSteperMotorRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // uint32 MotorId = 1; + void clear_motorid(); + static const int kMotorIdFieldNumber = 1; + ::google::protobuf::uint32 motorid() const; + void set_motorid(::google::protobuf::uint32 value); + + // bool Start = 2; + void clear_start(); + static const int kStartFieldNumber = 2; + bool start() const; + void set_start(bool value); + + // bool SetDirection = 3; + void clear_setdirection(); + static const int kSetDirectionFieldNumber = 3; + bool setdirection() const; + void set_setdirection(bool value); + + // uint32 SetMicrostepDivision = 4; + void clear_setmicrostepdivision(); + static const int kSetMicrostepDivisionFieldNumber = 4; + ::google::protobuf::uint32 setmicrostepdivision() const; + void set_setmicrostepdivision(::google::protobuf::uint32 value); + + // int32 SetSpeed = 5; + void clear_setspeed(); + static const int kSetSpeedFieldNumber = 5; + ::google::protobuf::int32 setspeed() const; + void set_setspeed(::google::protobuf::int32 value); + + // @@protoc_insertion_point(class_scope:Tango.PMR.Stubs.StubSteperMotorRequest) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::uint32 motorid_; + bool start_; + bool setdirection_; + ::google::protobuf::uint32 setmicrostepdivision_; + ::google::protobuf::int32 setspeed_; + mutable int _cached_size_; + friend struct protobuf_StubSteperMotorRequest_2eproto::TableStruct; +}; +// =================================================================== + + +// =================================================================== + +#if !PROTOBUF_INLINE_NOT_IN_HEADERS +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// StubSteperMotorRequest + +// uint32 MotorId = 1; +inline void StubSteperMotorRequest::clear_motorid() { + motorid_ = 0u; +} +inline ::google::protobuf::uint32 StubSteperMotorRequest::motorid() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubSteperMotorRequest.MotorId) + return motorid_; +} +inline void StubSteperMotorRequest::set_motorid(::google::protobuf::uint32 value) { + + motorid_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubSteperMotorRequest.MotorId) +} + +// bool Start = 2; +inline void StubSteperMotorRequest::clear_start() { + start_ = false; +} +inline bool StubSteperMotorRequest::start() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubSteperMotorRequest.Start) + return start_; +} +inline void StubSteperMotorRequest::set_start(bool value) { + + start_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubSteperMotorRequest.Start) +} + +// bool SetDirection = 3; +inline void StubSteperMotorRequest::clear_setdirection() { + setdirection_ = false; +} +inline bool StubSteperMotorRequest::setdirection() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubSteperMotorRequest.SetDirection) + return setdirection_; +} +inline void StubSteperMotorRequest::set_setdirection(bool value) { + + setdirection_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubSteperMotorRequest.SetDirection) +} + +// uint32 SetMicrostepDivision = 4; +inline void StubSteperMotorRequest::clear_setmicrostepdivision() { + setmicrostepdivision_ = 0u; +} +inline ::google::protobuf::uint32 StubSteperMotorRequest::setmicrostepdivision() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubSteperMotorRequest.SetMicrostepDivision) + return setmicrostepdivision_; +} +inline void StubSteperMotorRequest::set_setmicrostepdivision(::google::protobuf::uint32 value) { + + setmicrostepdivision_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubSteperMotorRequest.SetMicrostepDivision) +} + +// int32 SetSpeed = 5; +inline void StubSteperMotorRequest::clear_setspeed() { + setspeed_ = 0; +} +inline ::google::protobuf::int32 StubSteperMotorRequest::setspeed() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubSteperMotorRequest.SetSpeed) + return setspeed_; +} +inline void StubSteperMotorRequest::set_setspeed(::google::protobuf::int32 value) { + + setspeed_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubSteperMotorRequest.SetSpeed) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +#endif // !PROTOBUF_INLINE_NOT_IN_HEADERS + +// @@protoc_insertion_point(namespace_scope) + + +} // namespace Stubs +} // namespace PMR +} // namespace Tango + +// @@protoc_insertion_point(global_scope) + +#endif // PROTOBUF_StubSteperMotorRequest_2eproto__INCLUDED diff --git a/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubSteperMotorResponse.pb.cc b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubSteperMotorResponse.pb.cc new file mode 100644 index 000000000..adb2c384a --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubSteperMotorResponse.pb.cc @@ -0,0 +1,499 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StubSteperMotorResponse.proto + +#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION +#include "StubSteperMotorResponse.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 StubSteperMotorResponseDefaultTypeInternal { +public: + ::google::protobuf::internal::ExplicitlyConstructed<StubSteperMotorResponse> + _instance; +} _StubSteperMotorResponse_default_instance_; + +namespace protobuf_StubSteperMotorResponse_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(StubSteperMotorResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubSteperMotorResponse, motorid_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubSteperMotorResponse, motorversion_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubSteperMotorResponse, status_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(StubSteperMotorResponse)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast<const ::google::protobuf::Message*>(&_StubSteperMotorResponse_default_instance_), +}; + +namespace { + +void protobuf_AssignDescriptors() { + AddDescriptors(); + ::google::protobuf::MessageFactory* factory = NULL; + AssignDescriptors( + "StubSteperMotorResponse.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(); + _StubSteperMotorResponse_default_instance_._instance.DefaultConstruct(); + ::google::protobuf::internal::OnShutdownDestroyMessage( + &_StubSteperMotorResponse_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\035StubSteperMotorResponse.proto\022\017Tango.P" + "MR.Stubs\"P\n\027StubSteperMotorResponse\022\017\n\007M" + "otorId\030\001 \001(\r\022\024\n\014MotorVersion\030\002 \001(\r\022\016\n\006St" + "atus\030\003 \001(\010B\033\n\031com.twine.tango.pmr.stubsb" + "\006proto3" + }; + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + descriptor, 167); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "StubSteperMotorResponse.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_StubSteperMotorResponse_2eproto + + +// =================================================================== + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int StubSteperMotorResponse::kMotorIdFieldNumber; +const int StubSteperMotorResponse::kMotorVersionFieldNumber; +const int StubSteperMotorResponse::kStatusFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +StubSteperMotorResponse::StubSteperMotorResponse() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_StubSteperMotorResponse_2eproto::InitDefaults(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:Tango.PMR.Stubs.StubSteperMotorResponse) +} +StubSteperMotorResponse::StubSteperMotorResponse(const StubSteperMotorResponse& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&motorid_, &from.motorid_, + static_cast<size_t>(reinterpret_cast<char*>(&status_) - + reinterpret_cast<char*>(&motorid_)) + sizeof(status_)); + // @@protoc_insertion_point(copy_constructor:Tango.PMR.Stubs.StubSteperMotorResponse) +} + +void StubSteperMotorResponse::SharedCtor() { + ::memset(&motorid_, 0, static_cast<size_t>( + reinterpret_cast<char*>(&status_) - + reinterpret_cast<char*>(&motorid_)) + sizeof(status_)); + _cached_size_ = 0; +} + +StubSteperMotorResponse::~StubSteperMotorResponse() { + // @@protoc_insertion_point(destructor:Tango.PMR.Stubs.StubSteperMotorResponse) + SharedDtor(); +} + +void StubSteperMotorResponse::SharedDtor() { +} + +void StubSteperMotorResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* StubSteperMotorResponse::descriptor() { + protobuf_StubSteperMotorResponse_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_StubSteperMotorResponse_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const StubSteperMotorResponse& StubSteperMotorResponse::default_instance() { + protobuf_StubSteperMotorResponse_2eproto::InitDefaults(); + return *internal_default_instance(); +} + +StubSteperMotorResponse* StubSteperMotorResponse::New(::google::protobuf::Arena* arena) const { + StubSteperMotorResponse* n = new StubSteperMotorResponse; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void StubSteperMotorResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:Tango.PMR.Stubs.StubSteperMotorResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + ::memset(&motorid_, 0, static_cast<size_t>( + reinterpret_cast<char*>(&status_) - + reinterpret_cast<char*>(&motorid_)) + sizeof(status_)); + _internal_metadata_.Clear(); +} + +bool StubSteperMotorResponse::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.StubSteperMotorResponse) + 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 MotorId = 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, &motorid_))); + } else { + goto handle_unusual; + } + break; + } + + // uint32 MotorVersion = 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, &motorversion_))); + } else { + goto handle_unusual; + } + break; + } + + // bool Status = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &status_))); + } 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.StubSteperMotorResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:Tango.PMR.Stubs.StubSteperMotorResponse) + return false; +#undef DO_ +} + +void StubSteperMotorResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Tango.PMR.Stubs.StubSteperMotorResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // uint32 MotorId = 1; + if (this->motorid() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->motorid(), output); + } + + // uint32 MotorVersion = 2; + if (this->motorversion() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->motorversion(), output); + } + + // bool Status = 3; + if (this->status() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->status(), 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.StubSteperMotorResponse) +} + +::google::protobuf::uint8* StubSteperMotorResponse::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:Tango.PMR.Stubs.StubSteperMotorResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // uint32 MotorId = 1; + if (this->motorid() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->motorid(), target); + } + + // uint32 MotorVersion = 2; + if (this->motorversion() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->motorversion(), target); + } + + // bool Status = 3; + if (this->status() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->status(), 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.StubSteperMotorResponse) + return target; +} + +size_t StubSteperMotorResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:Tango.PMR.Stubs.StubSteperMotorResponse) + 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())); + } + // uint32 MotorId = 1; + if (this->motorid() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->motorid()); + } + + // uint32 MotorVersion = 2; + if (this->motorversion() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->motorversion()); + } + + // bool Status = 3; + if (this->status() != 0) { + total_size += 1 + 1; + } + + 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 StubSteperMotorResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:Tango.PMR.Stubs.StubSteperMotorResponse) + GOOGLE_DCHECK_NE(&from, this); + const StubSteperMotorResponse* source = + ::google::protobuf::internal::DynamicCastToGenerated<const StubSteperMotorResponse>( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:Tango.PMR.Stubs.StubSteperMotorResponse) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:Tango.PMR.Stubs.StubSteperMotorResponse) + MergeFrom(*source); + } +} + +void StubSteperMotorResponse::MergeFrom(const StubSteperMotorResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:Tango.PMR.Stubs.StubSteperMotorResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.motorid() != 0) { + set_motorid(from.motorid()); + } + if (from.motorversion() != 0) { + set_motorversion(from.motorversion()); + } + if (from.status() != 0) { + set_status(from.status()); + } +} + +void StubSteperMotorResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:Tango.PMR.Stubs.StubSteperMotorResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void StubSteperMotorResponse::CopyFrom(const StubSteperMotorResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:Tango.PMR.Stubs.StubSteperMotorResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool StubSteperMotorResponse::IsInitialized() const { + return true; +} + +void StubSteperMotorResponse::Swap(StubSteperMotorResponse* other) { + if (other == this) return; + InternalSwap(other); +} +void StubSteperMotorResponse::InternalSwap(StubSteperMotorResponse* other) { + using std::swap; + swap(motorid_, other->motorid_); + swap(motorversion_, other->motorversion_); + swap(status_, other->status_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata StubSteperMotorResponse::GetMetadata() const { + protobuf_StubSteperMotorResponse_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_StubSteperMotorResponse_2eproto::file_level_metadata[kIndexInFileMessages]; +} + +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// StubSteperMotorResponse + +// uint32 MotorId = 1; +void StubSteperMotorResponse::clear_motorid() { + motorid_ = 0u; +} +::google::protobuf::uint32 StubSteperMotorResponse::motorid() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubSteperMotorResponse.MotorId) + return motorid_; +} +void StubSteperMotorResponse::set_motorid(::google::protobuf::uint32 value) { + + motorid_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubSteperMotorResponse.MotorId) +} + +// uint32 MotorVersion = 2; +void StubSteperMotorResponse::clear_motorversion() { + motorversion_ = 0u; +} +::google::protobuf::uint32 StubSteperMotorResponse::motorversion() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubSteperMotorResponse.MotorVersion) + return motorversion_; +} +void StubSteperMotorResponse::set_motorversion(::google::protobuf::uint32 value) { + + motorversion_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubSteperMotorResponse.MotorVersion) +} + +// bool Status = 3; +void StubSteperMotorResponse::clear_status() { + status_ = false; +} +bool StubSteperMotorResponse::status() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubSteperMotorResponse.Status) + return status_; +} +void StubSteperMotorResponse::set_status(bool value) { + + status_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubSteperMotorResponse.Status) +} + +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS + +// @@protoc_insertion_point(namespace_scope) + +} // namespace Stubs +} // namespace PMR +} // namespace Tango + +// @@protoc_insertion_point(global_scope) diff --git a/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubSteperMotorResponse.pb.h b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubSteperMotorResponse.pb.h new file mode 100644 index 000000000..5bb45a6d3 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubSteperMotorResponse.pb.h @@ -0,0 +1,241 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StubSteperMotorResponse.proto + +#ifndef PROTOBUF_StubSteperMotorResponse_2eproto__INCLUDED +#define PROTOBUF_StubSteperMotorResponse_2eproto__INCLUDED + +#include <string> + +#include <google/protobuf/stubs/common.h> + +#if GOOGLE_PROTOBUF_VERSION < 3004000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3004000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include <google/protobuf/io/coded_stream.h> +#include <google/protobuf/arena.h> +#include <google/protobuf/arenastring.h> +#include <google/protobuf/generated_message_table_driven.h> +#include <google/protobuf/generated_message_util.h> +#include <google/protobuf/metadata.h> +#include <google/protobuf/message.h> +#include <google/protobuf/repeated_field.h> // IWYU pragma: export +#include <google/protobuf/extension_set.h> // IWYU pragma: export +#include <google/protobuf/unknown_field_set.h> +// @@protoc_insertion_point(includes) +namespace Tango { +namespace PMR { +namespace Stubs { +class StubSteperMotorResponse; +class StubSteperMotorResponseDefaultTypeInternal; +extern StubSteperMotorResponseDefaultTypeInternal _StubSteperMotorResponse_default_instance_; +} // namespace Stubs +} // namespace PMR +} // namespace Tango + +namespace Tango { +namespace PMR { +namespace Stubs { + +namespace protobuf_StubSteperMotorResponse_2eproto { +// Internal implementation detail -- do not call these. +struct TableStruct { + static const ::google::protobuf::internal::ParseTableField entries[]; + static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; + static const ::google::protobuf::internal::ParseTable schema[]; + static const ::google::protobuf::uint32 offsets[]; + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static void InitDefaultsImpl(); +}; +void AddDescriptors(); +void InitDefaults(); +} // namespace protobuf_StubSteperMotorResponse_2eproto + +// =================================================================== + +class StubSteperMotorResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Tango.PMR.Stubs.StubSteperMotorResponse) */ { + public: + StubSteperMotorResponse(); + virtual ~StubSteperMotorResponse(); + + StubSteperMotorResponse(const StubSteperMotorResponse& from); + + inline StubSteperMotorResponse& operator=(const StubSteperMotorResponse& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + StubSteperMotorResponse(StubSteperMotorResponse&& from) noexcept + : StubSteperMotorResponse() { + *this = ::std::move(from); + } + + inline StubSteperMotorResponse& operator=(StubSteperMotorResponse&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const StubSteperMotorResponse& default_instance(); + + static inline const StubSteperMotorResponse* internal_default_instance() { + return reinterpret_cast<const StubSteperMotorResponse*>( + &_StubSteperMotorResponse_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 0; + + void Swap(StubSteperMotorResponse* other); + friend void swap(StubSteperMotorResponse& a, StubSteperMotorResponse& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline StubSteperMotorResponse* New() const PROTOBUF_FINAL { return New(NULL); } + + StubSteperMotorResponse* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const StubSteperMotorResponse& from); + void MergeFrom(const StubSteperMotorResponse& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(StubSteperMotorResponse* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // uint32 MotorId = 1; + void clear_motorid(); + static const int kMotorIdFieldNumber = 1; + ::google::protobuf::uint32 motorid() const; + void set_motorid(::google::protobuf::uint32 value); + + // uint32 MotorVersion = 2; + void clear_motorversion(); + static const int kMotorVersionFieldNumber = 2; + ::google::protobuf::uint32 motorversion() const; + void set_motorversion(::google::protobuf::uint32 value); + + // bool Status = 3; + void clear_status(); + static const int kStatusFieldNumber = 3; + bool status() const; + void set_status(bool value); + + // @@protoc_insertion_point(class_scope:Tango.PMR.Stubs.StubSteperMotorResponse) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::uint32 motorid_; + ::google::protobuf::uint32 motorversion_; + bool status_; + mutable int _cached_size_; + friend struct protobuf_StubSteperMotorResponse_2eproto::TableStruct; +}; +// =================================================================== + + +// =================================================================== + +#if !PROTOBUF_INLINE_NOT_IN_HEADERS +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// StubSteperMotorResponse + +// uint32 MotorId = 1; +inline void StubSteperMotorResponse::clear_motorid() { + motorid_ = 0u; +} +inline ::google::protobuf::uint32 StubSteperMotorResponse::motorid() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubSteperMotorResponse.MotorId) + return motorid_; +} +inline void StubSteperMotorResponse::set_motorid(::google::protobuf::uint32 value) { + + motorid_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubSteperMotorResponse.MotorId) +} + +// uint32 MotorVersion = 2; +inline void StubSteperMotorResponse::clear_motorversion() { + motorversion_ = 0u; +} +inline ::google::protobuf::uint32 StubSteperMotorResponse::motorversion() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubSteperMotorResponse.MotorVersion) + return motorversion_; +} +inline void StubSteperMotorResponse::set_motorversion(::google::protobuf::uint32 value) { + + motorversion_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubSteperMotorResponse.MotorVersion) +} + +// bool Status = 3; +inline void StubSteperMotorResponse::clear_status() { + status_ = false; +} +inline bool StubSteperMotorResponse::status() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubSteperMotorResponse.Status) + return status_; +} +inline void StubSteperMotorResponse::set_status(bool value) { + + status_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubSteperMotorResponse.Status) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +#endif // !PROTOBUF_INLINE_NOT_IN_HEADERS + +// @@protoc_insertion_point(namespace_scope) + + +} // namespace Stubs +} // namespace PMR +} // namespace Tango + +// @@protoc_insertion_point(global_scope) + +#endif // PROTOBUF_StubSteperMotorResponse_2eproto__INCLUDED diff --git a/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubValveRequest.pb.cc b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubValveRequest.pb.cc new file mode 100644 index 000000000..489971fe9 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubValveRequest.pb.cc @@ -0,0 +1,498 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StubValveRequest.proto + +#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION +#include "StubValveRequest.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 StubValveRequestDefaultTypeInternal { +public: + ::google::protobuf::internal::ExplicitlyConstructed<StubValveRequest> + _instance; +} _StubValveRequest_default_instance_; + +namespace protobuf_StubValveRequest_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(StubValveRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubValveRequest, valveid_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubValveRequest, inkflow_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubValveRequest, valveon_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(StubValveRequest)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast<const ::google::protobuf::Message*>(&_StubValveRequest_default_instance_), +}; + +namespace { + +void protobuf_AssignDescriptors() { + AddDescriptors(); + ::google::protobuf::MessageFactory* factory = NULL; + AssignDescriptors( + "StubValveRequest.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(); + _StubValveRequest_default_instance_._instance.DefaultConstruct(); + ::google::protobuf::internal::OnShutdownDestroyMessage( + &_StubValveRequest_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\026StubValveRequest.proto\022\017Tango.PMR.Stub" + "s\"E\n\020StubValveRequest\022\017\n\007ValveId\030\001 \001(\r\022\017" + "\n\007Inkflow\030\002 \001(\r\022\017\n\007ValveOn\030\003 \001(\010B\033\n\031com." + "twine.tango.pmr.stubsb\006proto3" + }; + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + descriptor, 149); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "StubValveRequest.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_StubValveRequest_2eproto + + +// =================================================================== + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int StubValveRequest::kValveIdFieldNumber; +const int StubValveRequest::kInkflowFieldNumber; +const int StubValveRequest::kValveOnFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +StubValveRequest::StubValveRequest() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_StubValveRequest_2eproto::InitDefaults(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:Tango.PMR.Stubs.StubValveRequest) +} +StubValveRequest::StubValveRequest(const StubValveRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&valveid_, &from.valveid_, + static_cast<size_t>(reinterpret_cast<char*>(&valveon_) - + reinterpret_cast<char*>(&valveid_)) + sizeof(valveon_)); + // @@protoc_insertion_point(copy_constructor:Tango.PMR.Stubs.StubValveRequest) +} + +void StubValveRequest::SharedCtor() { + ::memset(&valveid_, 0, static_cast<size_t>( + reinterpret_cast<char*>(&valveon_) - + reinterpret_cast<char*>(&valveid_)) + sizeof(valveon_)); + _cached_size_ = 0; +} + +StubValveRequest::~StubValveRequest() { + // @@protoc_insertion_point(destructor:Tango.PMR.Stubs.StubValveRequest) + SharedDtor(); +} + +void StubValveRequest::SharedDtor() { +} + +void StubValveRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* StubValveRequest::descriptor() { + protobuf_StubValveRequest_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_StubValveRequest_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const StubValveRequest& StubValveRequest::default_instance() { + protobuf_StubValveRequest_2eproto::InitDefaults(); + return *internal_default_instance(); +} + +StubValveRequest* StubValveRequest::New(::google::protobuf::Arena* arena) const { + StubValveRequest* n = new StubValveRequest; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void StubValveRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:Tango.PMR.Stubs.StubValveRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + ::memset(&valveid_, 0, static_cast<size_t>( + reinterpret_cast<char*>(&valveon_) - + reinterpret_cast<char*>(&valveid_)) + sizeof(valveon_)); + _internal_metadata_.Clear(); +} + +bool StubValveRequest::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.StubValveRequest) + 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 ValveId = 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, &valveid_))); + } else { + goto handle_unusual; + } + break; + } + + // uint32 Inkflow = 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, &inkflow_))); + } else { + goto handle_unusual; + } + break; + } + + // bool ValveOn = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &valveon_))); + } 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.StubValveRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:Tango.PMR.Stubs.StubValveRequest) + return false; +#undef DO_ +} + +void StubValveRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Tango.PMR.Stubs.StubValveRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // uint32 ValveId = 1; + if (this->valveid() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->valveid(), output); + } + + // uint32 Inkflow = 2; + if (this->inkflow() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->inkflow(), output); + } + + // bool ValveOn = 3; + if (this->valveon() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->valveon(), 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.StubValveRequest) +} + +::google::protobuf::uint8* StubValveRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:Tango.PMR.Stubs.StubValveRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // uint32 ValveId = 1; + if (this->valveid() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->valveid(), target); + } + + // uint32 Inkflow = 2; + if (this->inkflow() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->inkflow(), target); + } + + // bool ValveOn = 3; + if (this->valveon() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->valveon(), 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.StubValveRequest) + return target; +} + +size_t StubValveRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:Tango.PMR.Stubs.StubValveRequest) + 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())); + } + // uint32 ValveId = 1; + if (this->valveid() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->valveid()); + } + + // uint32 Inkflow = 2; + if (this->inkflow() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->inkflow()); + } + + // bool ValveOn = 3; + if (this->valveon() != 0) { + total_size += 1 + 1; + } + + 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 StubValveRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:Tango.PMR.Stubs.StubValveRequest) + GOOGLE_DCHECK_NE(&from, this); + const StubValveRequest* source = + ::google::protobuf::internal::DynamicCastToGenerated<const StubValveRequest>( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:Tango.PMR.Stubs.StubValveRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:Tango.PMR.Stubs.StubValveRequest) + MergeFrom(*source); + } +} + +void StubValveRequest::MergeFrom(const StubValveRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:Tango.PMR.Stubs.StubValveRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.valveid() != 0) { + set_valveid(from.valveid()); + } + if (from.inkflow() != 0) { + set_inkflow(from.inkflow()); + } + if (from.valveon() != 0) { + set_valveon(from.valveon()); + } +} + +void StubValveRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:Tango.PMR.Stubs.StubValveRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void StubValveRequest::CopyFrom(const StubValveRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:Tango.PMR.Stubs.StubValveRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool StubValveRequest::IsInitialized() const { + return true; +} + +void StubValveRequest::Swap(StubValveRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void StubValveRequest::InternalSwap(StubValveRequest* other) { + using std::swap; + swap(valveid_, other->valveid_); + swap(inkflow_, other->inkflow_); + swap(valveon_, other->valveon_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata StubValveRequest::GetMetadata() const { + protobuf_StubValveRequest_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_StubValveRequest_2eproto::file_level_metadata[kIndexInFileMessages]; +} + +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// StubValveRequest + +// uint32 ValveId = 1; +void StubValveRequest::clear_valveid() { + valveid_ = 0u; +} +::google::protobuf::uint32 StubValveRequest::valveid() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubValveRequest.ValveId) + return valveid_; +} +void StubValveRequest::set_valveid(::google::protobuf::uint32 value) { + + valveid_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubValveRequest.ValveId) +} + +// uint32 Inkflow = 2; +void StubValveRequest::clear_inkflow() { + inkflow_ = 0u; +} +::google::protobuf::uint32 StubValveRequest::inkflow() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubValveRequest.Inkflow) + return inkflow_; +} +void StubValveRequest::set_inkflow(::google::protobuf::uint32 value) { + + inkflow_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubValveRequest.Inkflow) +} + +// bool ValveOn = 3; +void StubValveRequest::clear_valveon() { + valveon_ = false; +} +bool StubValveRequest::valveon() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubValveRequest.ValveOn) + return valveon_; +} +void StubValveRequest::set_valveon(bool value) { + + valveon_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubValveRequest.ValveOn) +} + +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS + +// @@protoc_insertion_point(namespace_scope) + +} // namespace Stubs +} // namespace PMR +} // namespace Tango + +// @@protoc_insertion_point(global_scope) diff --git a/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubValveRequest.pb.h b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubValveRequest.pb.h new file mode 100644 index 000000000..42a48e773 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubValveRequest.pb.h @@ -0,0 +1,241 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StubValveRequest.proto + +#ifndef PROTOBUF_StubValveRequest_2eproto__INCLUDED +#define PROTOBUF_StubValveRequest_2eproto__INCLUDED + +#include <string> + +#include <google/protobuf/stubs/common.h> + +#if GOOGLE_PROTOBUF_VERSION < 3004000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3004000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include <google/protobuf/io/coded_stream.h> +#include <google/protobuf/arena.h> +#include <google/protobuf/arenastring.h> +#include <google/protobuf/generated_message_table_driven.h> +#include <google/protobuf/generated_message_util.h> +#include <google/protobuf/metadata.h> +#include <google/protobuf/message.h> +#include <google/protobuf/repeated_field.h> // IWYU pragma: export +#include <google/protobuf/extension_set.h> // IWYU pragma: export +#include <google/protobuf/unknown_field_set.h> +// @@protoc_insertion_point(includes) +namespace Tango { +namespace PMR { +namespace Stubs { +class StubValveRequest; +class StubValveRequestDefaultTypeInternal; +extern StubValveRequestDefaultTypeInternal _StubValveRequest_default_instance_; +} // namespace Stubs +} // namespace PMR +} // namespace Tango + +namespace Tango { +namespace PMR { +namespace Stubs { + +namespace protobuf_StubValveRequest_2eproto { +// Internal implementation detail -- do not call these. +struct TableStruct { + static const ::google::protobuf::internal::ParseTableField entries[]; + static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; + static const ::google::protobuf::internal::ParseTable schema[]; + static const ::google::protobuf::uint32 offsets[]; + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static void InitDefaultsImpl(); +}; +void AddDescriptors(); +void InitDefaults(); +} // namespace protobuf_StubValveRequest_2eproto + +// =================================================================== + +class StubValveRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Tango.PMR.Stubs.StubValveRequest) */ { + public: + StubValveRequest(); + virtual ~StubValveRequest(); + + StubValveRequest(const StubValveRequest& from); + + inline StubValveRequest& operator=(const StubValveRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + StubValveRequest(StubValveRequest&& from) noexcept + : StubValveRequest() { + *this = ::std::move(from); + } + + inline StubValveRequest& operator=(StubValveRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const StubValveRequest& default_instance(); + + static inline const StubValveRequest* internal_default_instance() { + return reinterpret_cast<const StubValveRequest*>( + &_StubValveRequest_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 0; + + void Swap(StubValveRequest* other); + friend void swap(StubValveRequest& a, StubValveRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline StubValveRequest* New() const PROTOBUF_FINAL { return New(NULL); } + + StubValveRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const StubValveRequest& from); + void MergeFrom(const StubValveRequest& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(StubValveRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // uint32 ValveId = 1; + void clear_valveid(); + static const int kValveIdFieldNumber = 1; + ::google::protobuf::uint32 valveid() const; + void set_valveid(::google::protobuf::uint32 value); + + // uint32 Inkflow = 2; + void clear_inkflow(); + static const int kInkflowFieldNumber = 2; + ::google::protobuf::uint32 inkflow() const; + void set_inkflow(::google::protobuf::uint32 value); + + // bool ValveOn = 3; + void clear_valveon(); + static const int kValveOnFieldNumber = 3; + bool valveon() const; + void set_valveon(bool value); + + // @@protoc_insertion_point(class_scope:Tango.PMR.Stubs.StubValveRequest) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::uint32 valveid_; + ::google::protobuf::uint32 inkflow_; + bool valveon_; + mutable int _cached_size_; + friend struct protobuf_StubValveRequest_2eproto::TableStruct; +}; +// =================================================================== + + +// =================================================================== + +#if !PROTOBUF_INLINE_NOT_IN_HEADERS +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// StubValveRequest + +// uint32 ValveId = 1; +inline void StubValveRequest::clear_valveid() { + valveid_ = 0u; +} +inline ::google::protobuf::uint32 StubValveRequest::valveid() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubValveRequest.ValveId) + return valveid_; +} +inline void StubValveRequest::set_valveid(::google::protobuf::uint32 value) { + + valveid_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubValveRequest.ValveId) +} + +// uint32 Inkflow = 2; +inline void StubValveRequest::clear_inkflow() { + inkflow_ = 0u; +} +inline ::google::protobuf::uint32 StubValveRequest::inkflow() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubValveRequest.Inkflow) + return inkflow_; +} +inline void StubValveRequest::set_inkflow(::google::protobuf::uint32 value) { + + inkflow_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubValveRequest.Inkflow) +} + +// bool ValveOn = 3; +inline void StubValveRequest::clear_valveon() { + valveon_ = false; +} +inline bool StubValveRequest::valveon() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubValveRequest.ValveOn) + return valveon_; +} +inline void StubValveRequest::set_valveon(bool value) { + + valveon_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubValveRequest.ValveOn) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +#endif // !PROTOBUF_INLINE_NOT_IN_HEADERS + +// @@protoc_insertion_point(namespace_scope) + + +} // namespace Stubs +} // namespace PMR +} // namespace Tango + +// @@protoc_insertion_point(global_scope) + +#endif // PROTOBUF_StubValveRequest_2eproto__INCLUDED diff --git a/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubValveResponse.pb.cc b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubValveResponse.pb.cc new file mode 100644 index 000000000..ce2c3af34 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubValveResponse.pb.cc @@ -0,0 +1,389 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StubValveResponse.proto + +#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION +#include "StubValveResponse.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 StubValveResponseDefaultTypeInternal { +public: + ::google::protobuf::internal::ExplicitlyConstructed<StubValveResponse> + _instance; +} _StubValveResponse_default_instance_; + +namespace protobuf_StubValveResponse_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(StubValveResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubValveResponse, status_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(StubValveResponse)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast<const ::google::protobuf::Message*>(&_StubValveResponse_default_instance_), +}; + +namespace { + +void protobuf_AssignDescriptors() { + AddDescriptors(); + ::google::protobuf::MessageFactory* factory = NULL; + AssignDescriptors( + "StubValveResponse.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(); + _StubValveResponse_default_instance_._instance.DefaultConstruct(); + ::google::protobuf::internal::OnShutdownDestroyMessage( + &_StubValveResponse_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\027StubValveResponse.proto\022\017Tango.PMR.Stu" + "bs\"#\n\021StubValveResponse\022\016\n\006Status\030\003 \001(\010B" + "\033\n\031com.twine.tango.pmr.stubsb\006proto3" + }; + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + descriptor, 116); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "StubValveResponse.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_StubValveResponse_2eproto + + +// =================================================================== + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int StubValveResponse::kStatusFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +StubValveResponse::StubValveResponse() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_StubValveResponse_2eproto::InitDefaults(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:Tango.PMR.Stubs.StubValveResponse) +} +StubValveResponse::StubValveResponse(const StubValveResponse& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + status_ = from.status_; + // @@protoc_insertion_point(copy_constructor:Tango.PMR.Stubs.StubValveResponse) +} + +void StubValveResponse::SharedCtor() { + status_ = false; + _cached_size_ = 0; +} + +StubValveResponse::~StubValveResponse() { + // @@protoc_insertion_point(destructor:Tango.PMR.Stubs.StubValveResponse) + SharedDtor(); +} + +void StubValveResponse::SharedDtor() { +} + +void StubValveResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* StubValveResponse::descriptor() { + protobuf_StubValveResponse_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_StubValveResponse_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const StubValveResponse& StubValveResponse::default_instance() { + protobuf_StubValveResponse_2eproto::InitDefaults(); + return *internal_default_instance(); +} + +StubValveResponse* StubValveResponse::New(::google::protobuf::Arena* arena) const { + StubValveResponse* n = new StubValveResponse; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void StubValveResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:Tango.PMR.Stubs.StubValveResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + status_ = false; + _internal_metadata_.Clear(); +} + +bool StubValveResponse::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.StubValveResponse) + 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)) { + // bool Status = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &status_))); + } 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.StubValveResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:Tango.PMR.Stubs.StubValveResponse) + return false; +#undef DO_ +} + +void StubValveResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Tango.PMR.Stubs.StubValveResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // bool Status = 3; + if (this->status() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->status(), 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.StubValveResponse) +} + +::google::protobuf::uint8* StubValveResponse::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:Tango.PMR.Stubs.StubValveResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // bool Status = 3; + if (this->status() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->status(), 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.StubValveResponse) + return target; +} + +size_t StubValveResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:Tango.PMR.Stubs.StubValveResponse) + 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())); + } + // bool Status = 3; + if (this->status() != 0) { + total_size += 1 + 1; + } + + 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 StubValveResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:Tango.PMR.Stubs.StubValveResponse) + GOOGLE_DCHECK_NE(&from, this); + const StubValveResponse* source = + ::google::protobuf::internal::DynamicCastToGenerated<const StubValveResponse>( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:Tango.PMR.Stubs.StubValveResponse) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:Tango.PMR.Stubs.StubValveResponse) + MergeFrom(*source); + } +} + +void StubValveResponse::MergeFrom(const StubValveResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:Tango.PMR.Stubs.StubValveResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.status() != 0) { + set_status(from.status()); + } +} + +void StubValveResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:Tango.PMR.Stubs.StubValveResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void StubValveResponse::CopyFrom(const StubValveResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:Tango.PMR.Stubs.StubValveResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool StubValveResponse::IsInitialized() const { + return true; +} + +void StubValveResponse::Swap(StubValveResponse* other) { + if (other == this) return; + InternalSwap(other); +} +void StubValveResponse::InternalSwap(StubValveResponse* other) { + using std::swap; + swap(status_, other->status_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata StubValveResponse::GetMetadata() const { + protobuf_StubValveResponse_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_StubValveResponse_2eproto::file_level_metadata[kIndexInFileMessages]; +} + +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// StubValveResponse + +// bool Status = 3; +void StubValveResponse::clear_status() { + status_ = false; +} +bool StubValveResponse::status() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubValveResponse.Status) + return status_; +} +void StubValveResponse::set_status(bool value) { + + status_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubValveResponse.Status) +} + +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS + +// @@protoc_insertion_point(namespace_scope) + +} // namespace Stubs +} // namespace PMR +} // namespace Tango + +// @@protoc_insertion_point(global_scope) diff --git a/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubValveResponse.pb.h b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubValveResponse.pb.h new file mode 100644 index 000000000..a61437a3a --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubValveResponse.pb.h @@ -0,0 +1,199 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StubValveResponse.proto + +#ifndef PROTOBUF_StubValveResponse_2eproto__INCLUDED +#define PROTOBUF_StubValveResponse_2eproto__INCLUDED + +#include <string> + +#include <google/protobuf/stubs/common.h> + +#if GOOGLE_PROTOBUF_VERSION < 3004000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3004000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include <google/protobuf/io/coded_stream.h> +#include <google/protobuf/arena.h> +#include <google/protobuf/arenastring.h> +#include <google/protobuf/generated_message_table_driven.h> +#include <google/protobuf/generated_message_util.h> +#include <google/protobuf/metadata.h> +#include <google/protobuf/message.h> +#include <google/protobuf/repeated_field.h> // IWYU pragma: export +#include <google/protobuf/extension_set.h> // IWYU pragma: export +#include <google/protobuf/unknown_field_set.h> +// @@protoc_insertion_point(includes) +namespace Tango { +namespace PMR { +namespace Stubs { +class StubValveResponse; +class StubValveResponseDefaultTypeInternal; +extern StubValveResponseDefaultTypeInternal _StubValveResponse_default_instance_; +} // namespace Stubs +} // namespace PMR +} // namespace Tango + +namespace Tango { +namespace PMR { +namespace Stubs { + +namespace protobuf_StubValveResponse_2eproto { +// Internal implementation detail -- do not call these. +struct TableStruct { + static const ::google::protobuf::internal::ParseTableField entries[]; + static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; + static const ::google::protobuf::internal::ParseTable schema[]; + static const ::google::protobuf::uint32 offsets[]; + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static void InitDefaultsImpl(); +}; +void AddDescriptors(); +void InitDefaults(); +} // namespace protobuf_StubValveResponse_2eproto + +// =================================================================== + +class StubValveResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Tango.PMR.Stubs.StubValveResponse) */ { + public: + StubValveResponse(); + virtual ~StubValveResponse(); + + StubValveResponse(const StubValveResponse& from); + + inline StubValveResponse& operator=(const StubValveResponse& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + StubValveResponse(StubValveResponse&& from) noexcept + : StubValveResponse() { + *this = ::std::move(from); + } + + inline StubValveResponse& operator=(StubValveResponse&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const StubValveResponse& default_instance(); + + static inline const StubValveResponse* internal_default_instance() { + return reinterpret_cast<const StubValveResponse*>( + &_StubValveResponse_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 0; + + void Swap(StubValveResponse* other); + friend void swap(StubValveResponse& a, StubValveResponse& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline StubValveResponse* New() const PROTOBUF_FINAL { return New(NULL); } + + StubValveResponse* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const StubValveResponse& from); + void MergeFrom(const StubValveResponse& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(StubValveResponse* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // bool Status = 3; + void clear_status(); + static const int kStatusFieldNumber = 3; + bool status() const; + void set_status(bool value); + + // @@protoc_insertion_point(class_scope:Tango.PMR.Stubs.StubValveResponse) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + bool status_; + mutable int _cached_size_; + friend struct protobuf_StubValveResponse_2eproto::TableStruct; +}; +// =================================================================== + + +// =================================================================== + +#if !PROTOBUF_INLINE_NOT_IN_HEADERS +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// StubValveResponse + +// bool Status = 3; +inline void StubValveResponse::clear_status() { + status_ = false; +} +inline bool StubValveResponse::status() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubValveResponse.Status) + return status_; +} +inline void StubValveResponse::set_status(bool value) { + + status_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubValveResponse.Status) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +#endif // !PROTOBUF_INLINE_NOT_IN_HEADERS + +// @@protoc_insertion_point(namespace_scope) + + +} // namespace Stubs +} // namespace PMR +} // namespace Tango + +// @@protoc_insertion_point(global_scope) + +#endif // PROTOBUF_StubValveResponse_2eproto__INCLUDED diff --git a/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/SynchronizeDBRequest.pb.cc b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/SynchronizeDBRequest.pb.cc new file mode 100644 index 000000000..9ce6dcfae --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/SynchronizeDBRequest.pb.cc @@ -0,0 +1,549 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: SynchronizeDBRequest.proto + +#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION +#include "SynchronizeDBRequest.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 Synchronization { +class SynchronizeDBRequestDefaultTypeInternal { +public: + ::google::protobuf::internal::ExplicitlyConstructed<SynchronizeDBRequest> + _instance; +} _SynchronizeDBRequest_default_instance_; + +namespace protobuf_SynchronizeDBRequest_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(SynchronizeDBRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SynchronizeDBRequest, serialnumber_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SynchronizeDBRequest, localdb_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(SynchronizeDBRequest)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast<const ::google::protobuf::Message*>(&_SynchronizeDBRequest_default_instance_), +}; + +namespace { + +void protobuf_AssignDescriptors() { + AddDescriptors(); + ::google::protobuf::MessageFactory* factory = NULL; + AssignDescriptors( + "SynchronizeDBRequest.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(); + _SynchronizeDBRequest_default_instance_._instance.DefaultConstruct(); + ::google::protobuf::internal::OnShutdownDestroyMessage( + &_SynchronizeDBRequest_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\032SynchronizeDBRequest.proto\022\031Tango.PMR." + "Synchronization\"=\n\024SynchronizeDBRequest\022" + "\024\n\014SerialNumber\030\001 \001(\t\022\017\n\007LocalDB\030\002 \001(\014B%" + "\n#com.twine.tango.pmr.synchronizationb\006p" + "roto3" + }; + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + descriptor, 165); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "SynchronizeDBRequest.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_SynchronizeDBRequest_2eproto + + +// =================================================================== + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int SynchronizeDBRequest::kSerialNumberFieldNumber; +const int SynchronizeDBRequest::kLocalDBFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +SynchronizeDBRequest::SynchronizeDBRequest() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_SynchronizeDBRequest_2eproto::InitDefaults(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:Tango.PMR.Synchronization.SynchronizeDBRequest) +} +SynchronizeDBRequest::SynchronizeDBRequest(const SynchronizeDBRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + serialnumber_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.serialnumber().size() > 0) { + serialnumber_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.serialnumber_); + } + localdb_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.localdb().size() > 0) { + localdb_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.localdb_); + } + // @@protoc_insertion_point(copy_constructor:Tango.PMR.Synchronization.SynchronizeDBRequest) +} + +void SynchronizeDBRequest::SharedCtor() { + serialnumber_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + localdb_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _cached_size_ = 0; +} + +SynchronizeDBRequest::~SynchronizeDBRequest() { + // @@protoc_insertion_point(destructor:Tango.PMR.Synchronization.SynchronizeDBRequest) + SharedDtor(); +} + +void SynchronizeDBRequest::SharedDtor() { + serialnumber_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + localdb_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void SynchronizeDBRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* SynchronizeDBRequest::descriptor() { + protobuf_SynchronizeDBRequest_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_SynchronizeDBRequest_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const SynchronizeDBRequest& SynchronizeDBRequest::default_instance() { + protobuf_SynchronizeDBRequest_2eproto::InitDefaults(); + return *internal_default_instance(); +} + +SynchronizeDBRequest* SynchronizeDBRequest::New(::google::protobuf::Arena* arena) const { + SynchronizeDBRequest* n = new SynchronizeDBRequest; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void SynchronizeDBRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:Tango.PMR.Synchronization.SynchronizeDBRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + serialnumber_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + localdb_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _internal_metadata_.Clear(); +} + +bool SynchronizeDBRequest::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.Synchronization.SynchronizeDBRequest) + 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)) { + // string SerialNumber = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_serialnumber())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->serialnumber().data(), static_cast<int>(this->serialnumber().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "Tango.PMR.Synchronization.SynchronizeDBRequest.SerialNumber")); + } else { + goto handle_unusual; + } + break; + } + + // bytes LocalDB = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_localdb())); + } 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.Synchronization.SynchronizeDBRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:Tango.PMR.Synchronization.SynchronizeDBRequest) + return false; +#undef DO_ +} + +void SynchronizeDBRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Tango.PMR.Synchronization.SynchronizeDBRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string SerialNumber = 1; + if (this->serialnumber().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->serialnumber().data(), static_cast<int>(this->serialnumber().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "Tango.PMR.Synchronization.SynchronizeDBRequest.SerialNumber"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->serialnumber(), output); + } + + // bytes LocalDB = 2; + if (this->localdb().size() > 0) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 2, this->localdb(), 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.Synchronization.SynchronizeDBRequest) +} + +::google::protobuf::uint8* SynchronizeDBRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:Tango.PMR.Synchronization.SynchronizeDBRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string SerialNumber = 1; + if (this->serialnumber().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->serialnumber().data(), static_cast<int>(this->serialnumber().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "Tango.PMR.Synchronization.SynchronizeDBRequest.SerialNumber"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->serialnumber(), target); + } + + // bytes LocalDB = 2; + if (this->localdb().size() > 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->localdb(), 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.Synchronization.SynchronizeDBRequest) + return target; +} + +size_t SynchronizeDBRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:Tango.PMR.Synchronization.SynchronizeDBRequest) + 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 SerialNumber = 1; + if (this->serialnumber().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->serialnumber()); + } + + // bytes LocalDB = 2; + if (this->localdb().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->localdb()); + } + + 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 SynchronizeDBRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:Tango.PMR.Synchronization.SynchronizeDBRequest) + GOOGLE_DCHECK_NE(&from, this); + const SynchronizeDBRequest* source = + ::google::protobuf::internal::DynamicCastToGenerated<const SynchronizeDBRequest>( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:Tango.PMR.Synchronization.SynchronizeDBRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:Tango.PMR.Synchronization.SynchronizeDBRequest) + MergeFrom(*source); + } +} + +void SynchronizeDBRequest::MergeFrom(const SynchronizeDBRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:Tango.PMR.Synchronization.SynchronizeDBRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.serialnumber().size() > 0) { + + serialnumber_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.serialnumber_); + } + if (from.localdb().size() > 0) { + + localdb_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.localdb_); + } +} + +void SynchronizeDBRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:Tango.PMR.Synchronization.SynchronizeDBRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void SynchronizeDBRequest::CopyFrom(const SynchronizeDBRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:Tango.PMR.Synchronization.SynchronizeDBRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool SynchronizeDBRequest::IsInitialized() const { + return true; +} + +void SynchronizeDBRequest::Swap(SynchronizeDBRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void SynchronizeDBRequest::InternalSwap(SynchronizeDBRequest* other) { + using std::swap; + serialnumber_.Swap(&other->serialnumber_); + localdb_.Swap(&other->localdb_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata SynchronizeDBRequest::GetMetadata() const { + protobuf_SynchronizeDBRequest_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_SynchronizeDBRequest_2eproto::file_level_metadata[kIndexInFileMessages]; +} + +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// SynchronizeDBRequest + +// string SerialNumber = 1; +void SynchronizeDBRequest::clear_serialnumber() { + serialnumber_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +const ::std::string& SynchronizeDBRequest::serialnumber() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Synchronization.SynchronizeDBRequest.SerialNumber) + return serialnumber_.GetNoArena(); +} +void SynchronizeDBRequest::set_serialnumber(const ::std::string& value) { + + serialnumber_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Tango.PMR.Synchronization.SynchronizeDBRequest.SerialNumber) +} +#if LANG_CXX11 +void SynchronizeDBRequest::set_serialnumber(::std::string&& value) { + + serialnumber_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:Tango.PMR.Synchronization.SynchronizeDBRequest.SerialNumber) +} +#endif +void SynchronizeDBRequest::set_serialnumber(const char* value) { + GOOGLE_DCHECK(value != NULL); + + serialnumber_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:Tango.PMR.Synchronization.SynchronizeDBRequest.SerialNumber) +} +void SynchronizeDBRequest::set_serialnumber(const char* value, size_t size) { + + serialnumber_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast<const char*>(value), size)); + // @@protoc_insertion_point(field_set_pointer:Tango.PMR.Synchronization.SynchronizeDBRequest.SerialNumber) +} +::std::string* SynchronizeDBRequest::mutable_serialnumber() { + + // @@protoc_insertion_point(field_mutable:Tango.PMR.Synchronization.SynchronizeDBRequest.SerialNumber) + return serialnumber_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +::std::string* SynchronizeDBRequest::release_serialnumber() { + // @@protoc_insertion_point(field_release:Tango.PMR.Synchronization.SynchronizeDBRequest.SerialNumber) + + return serialnumber_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +void SynchronizeDBRequest::set_allocated_serialnumber(::std::string* serialnumber) { + if (serialnumber != NULL) { + + } else { + + } + serialnumber_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), serialnumber); + // @@protoc_insertion_point(field_set_allocated:Tango.PMR.Synchronization.SynchronizeDBRequest.SerialNumber) +} + +// bytes LocalDB = 2; +void SynchronizeDBRequest::clear_localdb() { + localdb_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +const ::std::string& SynchronizeDBRequest::localdb() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Synchronization.SynchronizeDBRequest.LocalDB) + return localdb_.GetNoArena(); +} +void SynchronizeDBRequest::set_localdb(const ::std::string& value) { + + localdb_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Tango.PMR.Synchronization.SynchronizeDBRequest.LocalDB) +} +#if LANG_CXX11 +void SynchronizeDBRequest::set_localdb(::std::string&& value) { + + localdb_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:Tango.PMR.Synchronization.SynchronizeDBRequest.LocalDB) +} +#endif +void SynchronizeDBRequest::set_localdb(const char* value) { + GOOGLE_DCHECK(value != NULL); + + localdb_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:Tango.PMR.Synchronization.SynchronizeDBRequest.LocalDB) +} +void SynchronizeDBRequest::set_localdb(const void* value, size_t size) { + + localdb_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast<const char*>(value), size)); + // @@protoc_insertion_point(field_set_pointer:Tango.PMR.Synchronization.SynchronizeDBRequest.LocalDB) +} +::std::string* SynchronizeDBRequest::mutable_localdb() { + + // @@protoc_insertion_point(field_mutable:Tango.PMR.Synchronization.SynchronizeDBRequest.LocalDB) + return localdb_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +::std::string* SynchronizeDBRequest::release_localdb() { + // @@protoc_insertion_point(field_release:Tango.PMR.Synchronization.SynchronizeDBRequest.LocalDB) + + return localdb_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +void SynchronizeDBRequest::set_allocated_localdb(::std::string* localdb) { + if (localdb != NULL) { + + } else { + + } + localdb_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), localdb); + // @@protoc_insertion_point(field_set_allocated:Tango.PMR.Synchronization.SynchronizeDBRequest.LocalDB) +} + +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS + +// @@protoc_insertion_point(namespace_scope) + +} // namespace Synchronization +} // namespace PMR +} // namespace Tango + +// @@protoc_insertion_point(global_scope) diff --git a/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/SynchronizeDBRequest.pb.h b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/SynchronizeDBRequest.pb.h new file mode 100644 index 000000000..a69950dae --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/SynchronizeDBRequest.pb.h @@ -0,0 +1,314 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: SynchronizeDBRequest.proto + +#ifndef PROTOBUF_SynchronizeDBRequest_2eproto__INCLUDED +#define PROTOBUF_SynchronizeDBRequest_2eproto__INCLUDED + +#include <string> + +#include <google/protobuf/stubs/common.h> + +#if GOOGLE_PROTOBUF_VERSION < 3004000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3004000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include <google/protobuf/io/coded_stream.h> +#include <google/protobuf/arena.h> +#include <google/protobuf/arenastring.h> +#include <google/protobuf/generated_message_table_driven.h> +#include <google/protobuf/generated_message_util.h> +#include <google/protobuf/metadata.h> +#include <google/protobuf/message.h> +#include <google/protobuf/repeated_field.h> // IWYU pragma: export +#include <google/protobuf/extension_set.h> // IWYU pragma: export +#include <google/protobuf/unknown_field_set.h> +// @@protoc_insertion_point(includes) +namespace Tango { +namespace PMR { +namespace Synchronization { +class SynchronizeDBRequest; +class SynchronizeDBRequestDefaultTypeInternal; +extern SynchronizeDBRequestDefaultTypeInternal _SynchronizeDBRequest_default_instance_; +} // namespace Synchronization +} // namespace PMR +} // namespace Tango + +namespace Tango { +namespace PMR { +namespace Synchronization { + +namespace protobuf_SynchronizeDBRequest_2eproto { +// Internal implementation detail -- do not call these. +struct TableStruct { + static const ::google::protobuf::internal::ParseTableField entries[]; + static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; + static const ::google::protobuf::internal::ParseTable schema[]; + static const ::google::protobuf::uint32 offsets[]; + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static void InitDefaultsImpl(); +}; +void AddDescriptors(); +void InitDefaults(); +} // namespace protobuf_SynchronizeDBRequest_2eproto + +// =================================================================== + +class SynchronizeDBRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Tango.PMR.Synchronization.SynchronizeDBRequest) */ { + public: + SynchronizeDBRequest(); + virtual ~SynchronizeDBRequest(); + + SynchronizeDBRequest(const SynchronizeDBRequest& from); + + inline SynchronizeDBRequest& operator=(const SynchronizeDBRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + SynchronizeDBRequest(SynchronizeDBRequest&& from) noexcept + : SynchronizeDBRequest() { + *this = ::std::move(from); + } + + inline SynchronizeDBRequest& operator=(SynchronizeDBRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const SynchronizeDBRequest& default_instance(); + + static inline const SynchronizeDBRequest* internal_default_instance() { + return reinterpret_cast<const SynchronizeDBRequest*>( + &_SynchronizeDBRequest_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 0; + + void Swap(SynchronizeDBRequest* other); + friend void swap(SynchronizeDBRequest& a, SynchronizeDBRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline SynchronizeDBRequest* New() const PROTOBUF_FINAL { return New(NULL); } + + SynchronizeDBRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const SynchronizeDBRequest& from); + void MergeFrom(const SynchronizeDBRequest& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(SynchronizeDBRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string SerialNumber = 1; + void clear_serialnumber(); + static const int kSerialNumberFieldNumber = 1; + const ::std::string& serialnumber() const; + void set_serialnumber(const ::std::string& value); + #if LANG_CXX11 + void set_serialnumber(::std::string&& value); + #endif + void set_serialnumber(const char* value); + void set_serialnumber(const char* value, size_t size); + ::std::string* mutable_serialnumber(); + ::std::string* release_serialnumber(); + void set_allocated_serialnumber(::std::string* serialnumber); + + // bytes LocalDB = 2; + void clear_localdb(); + static const int kLocalDBFieldNumber = 2; + const ::std::string& localdb() const; + void set_localdb(const ::std::string& value); + #if LANG_CXX11 + void set_localdb(::std::string&& value); + #endif + void set_localdb(const char* value); + void set_localdb(const void* value, size_t size); + ::std::string* mutable_localdb(); + ::std::string* release_localdb(); + void set_allocated_localdb(::std::string* localdb); + + // @@protoc_insertion_point(class_scope:Tango.PMR.Synchronization.SynchronizeDBRequest) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr serialnumber_; + ::google::protobuf::internal::ArenaStringPtr localdb_; + mutable int _cached_size_; + friend struct protobuf_SynchronizeDBRequest_2eproto::TableStruct; +}; +// =================================================================== + + +// =================================================================== + +#if !PROTOBUF_INLINE_NOT_IN_HEADERS +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// SynchronizeDBRequest + +// string SerialNumber = 1; +inline void SynchronizeDBRequest::clear_serialnumber() { + serialnumber_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& SynchronizeDBRequest::serialnumber() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Synchronization.SynchronizeDBRequest.SerialNumber) + return serialnumber_.GetNoArena(); +} +inline void SynchronizeDBRequest::set_serialnumber(const ::std::string& value) { + + serialnumber_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Tango.PMR.Synchronization.SynchronizeDBRequest.SerialNumber) +} +#if LANG_CXX11 +inline void SynchronizeDBRequest::set_serialnumber(::std::string&& value) { + + serialnumber_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:Tango.PMR.Synchronization.SynchronizeDBRequest.SerialNumber) +} +#endif +inline void SynchronizeDBRequest::set_serialnumber(const char* value) { + GOOGLE_DCHECK(value != NULL); + + serialnumber_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:Tango.PMR.Synchronization.SynchronizeDBRequest.SerialNumber) +} +inline void SynchronizeDBRequest::set_serialnumber(const char* value, size_t size) { + + serialnumber_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast<const char*>(value), size)); + // @@protoc_insertion_point(field_set_pointer:Tango.PMR.Synchronization.SynchronizeDBRequest.SerialNumber) +} +inline ::std::string* SynchronizeDBRequest::mutable_serialnumber() { + + // @@protoc_insertion_point(field_mutable:Tango.PMR.Synchronization.SynchronizeDBRequest.SerialNumber) + return serialnumber_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* SynchronizeDBRequest::release_serialnumber() { + // @@protoc_insertion_point(field_release:Tango.PMR.Synchronization.SynchronizeDBRequest.SerialNumber) + + return serialnumber_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void SynchronizeDBRequest::set_allocated_serialnumber(::std::string* serialnumber) { + if (serialnumber != NULL) { + + } else { + + } + serialnumber_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), serialnumber); + // @@protoc_insertion_point(field_set_allocated:Tango.PMR.Synchronization.SynchronizeDBRequest.SerialNumber) +} + +// bytes LocalDB = 2; +inline void SynchronizeDBRequest::clear_localdb() { + localdb_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& SynchronizeDBRequest::localdb() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Synchronization.SynchronizeDBRequest.LocalDB) + return localdb_.GetNoArena(); +} +inline void SynchronizeDBRequest::set_localdb(const ::std::string& value) { + + localdb_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Tango.PMR.Synchronization.SynchronizeDBRequest.LocalDB) +} +#if LANG_CXX11 +inline void SynchronizeDBRequest::set_localdb(::std::string&& value) { + + localdb_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:Tango.PMR.Synchronization.SynchronizeDBRequest.LocalDB) +} +#endif +inline void SynchronizeDBRequest::set_localdb(const char* value) { + GOOGLE_DCHECK(value != NULL); + + localdb_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:Tango.PMR.Synchronization.SynchronizeDBRequest.LocalDB) +} +inline void SynchronizeDBRequest::set_localdb(const void* value, size_t size) { + + localdb_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast<const char*>(value), size)); + // @@protoc_insertion_point(field_set_pointer:Tango.PMR.Synchronization.SynchronizeDBRequest.LocalDB) +} +inline ::std::string* SynchronizeDBRequest::mutable_localdb() { + + // @@protoc_insertion_point(field_mutable:Tango.PMR.Synchronization.SynchronizeDBRequest.LocalDB) + return localdb_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* SynchronizeDBRequest::release_localdb() { + // @@protoc_insertion_point(field_release:Tango.PMR.Synchronization.SynchronizeDBRequest.LocalDB) + + return localdb_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void SynchronizeDBRequest::set_allocated_localdb(::std::string* localdb) { + if (localdb != NULL) { + + } else { + + } + localdb_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), localdb); + // @@protoc_insertion_point(field_set_allocated:Tango.PMR.Synchronization.SynchronizeDBRequest.LocalDB) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +#endif // !PROTOBUF_INLINE_NOT_IN_HEADERS + +// @@protoc_insertion_point(namespace_scope) + + +} // namespace Synchronization +} // namespace PMR +} // namespace Tango + +// @@protoc_insertion_point(global_scope) + +#endif // PROTOBUF_SynchronizeDBRequest_2eproto__INCLUDED diff --git a/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/SynchronizeDBResponse.pb.cc b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/SynchronizeDBResponse.pb.cc new file mode 100644 index 000000000..3974e2601 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/SynchronizeDBResponse.pb.cc @@ -0,0 +1,437 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: SynchronizeDBResponse.proto + +#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION +#include "SynchronizeDBResponse.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 Synchronization { +class SynchronizeDBResponseDefaultTypeInternal { +public: + ::google::protobuf::internal::ExplicitlyConstructed<SynchronizeDBResponse> + _instance; +} _SynchronizeDBResponse_default_instance_; + +namespace protobuf_SynchronizeDBResponse_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(SynchronizeDBResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SynchronizeDBResponse, remotedb_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(SynchronizeDBResponse)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast<const ::google::protobuf::Message*>(&_SynchronizeDBResponse_default_instance_), +}; + +namespace { + +void protobuf_AssignDescriptors() { + AddDescriptors(); + ::google::protobuf::MessageFactory* factory = NULL; + AssignDescriptors( + "SynchronizeDBResponse.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(); + _SynchronizeDBResponse_default_instance_._instance.DefaultConstruct(); + ::google::protobuf::internal::OnShutdownDestroyMessage( + &_SynchronizeDBResponse_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\033SynchronizeDBResponse.proto\022\031Tango.PMR" + ".Synchronization\")\n\025SynchronizeDBRespons" + "e\022\020\n\010RemoteDB\030\001 \001(\014B%\n#com.twine.tango.p" + "mr.synchronizationb\006proto3" + }; + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + descriptor, 146); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "SynchronizeDBResponse.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_SynchronizeDBResponse_2eproto + + +// =================================================================== + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int SynchronizeDBResponse::kRemoteDBFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +SynchronizeDBResponse::SynchronizeDBResponse() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_SynchronizeDBResponse_2eproto::InitDefaults(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:Tango.PMR.Synchronization.SynchronizeDBResponse) +} +SynchronizeDBResponse::SynchronizeDBResponse(const SynchronizeDBResponse& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + remotedb_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.remotedb().size() > 0) { + remotedb_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.remotedb_); + } + // @@protoc_insertion_point(copy_constructor:Tango.PMR.Synchronization.SynchronizeDBResponse) +} + +void SynchronizeDBResponse::SharedCtor() { + remotedb_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _cached_size_ = 0; +} + +SynchronizeDBResponse::~SynchronizeDBResponse() { + // @@protoc_insertion_point(destructor:Tango.PMR.Synchronization.SynchronizeDBResponse) + SharedDtor(); +} + +void SynchronizeDBResponse::SharedDtor() { + remotedb_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void SynchronizeDBResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* SynchronizeDBResponse::descriptor() { + protobuf_SynchronizeDBResponse_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_SynchronizeDBResponse_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const SynchronizeDBResponse& SynchronizeDBResponse::default_instance() { + protobuf_SynchronizeDBResponse_2eproto::InitDefaults(); + return *internal_default_instance(); +} + +SynchronizeDBResponse* SynchronizeDBResponse::New(::google::protobuf::Arena* arena) const { + SynchronizeDBResponse* n = new SynchronizeDBResponse; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void SynchronizeDBResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:Tango.PMR.Synchronization.SynchronizeDBResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + remotedb_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _internal_metadata_.Clear(); +} + +bool SynchronizeDBResponse::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.Synchronization.SynchronizeDBResponse) + 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)) { + // bytes RemoteDB = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_remotedb())); + } 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.Synchronization.SynchronizeDBResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:Tango.PMR.Synchronization.SynchronizeDBResponse) + return false; +#undef DO_ +} + +void SynchronizeDBResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Tango.PMR.Synchronization.SynchronizeDBResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // bytes RemoteDB = 1; + if (this->remotedb().size() > 0) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 1, this->remotedb(), 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.Synchronization.SynchronizeDBResponse) +} + +::google::protobuf::uint8* SynchronizeDBResponse::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:Tango.PMR.Synchronization.SynchronizeDBResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // bytes RemoteDB = 1; + if (this->remotedb().size() > 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->remotedb(), 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.Synchronization.SynchronizeDBResponse) + return target; +} + +size_t SynchronizeDBResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:Tango.PMR.Synchronization.SynchronizeDBResponse) + 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())); + } + // bytes RemoteDB = 1; + if (this->remotedb().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->remotedb()); + } + + 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 SynchronizeDBResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:Tango.PMR.Synchronization.SynchronizeDBResponse) + GOOGLE_DCHECK_NE(&from, this); + const SynchronizeDBResponse* source = + ::google::protobuf::internal::DynamicCastToGenerated<const SynchronizeDBResponse>( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:Tango.PMR.Synchronization.SynchronizeDBResponse) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:Tango.PMR.Synchronization.SynchronizeDBResponse) + MergeFrom(*source); + } +} + +void SynchronizeDBResponse::MergeFrom(const SynchronizeDBResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:Tango.PMR.Synchronization.SynchronizeDBResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.remotedb().size() > 0) { + + remotedb_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.remotedb_); + } +} + +void SynchronizeDBResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:Tango.PMR.Synchronization.SynchronizeDBResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void SynchronizeDBResponse::CopyFrom(const SynchronizeDBResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:Tango.PMR.Synchronization.SynchronizeDBResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool SynchronizeDBResponse::IsInitialized() const { + return true; +} + +void SynchronizeDBResponse::Swap(SynchronizeDBResponse* other) { + if (other == this) return; + InternalSwap(other); +} +void SynchronizeDBResponse::InternalSwap(SynchronizeDBResponse* other) { + using std::swap; + remotedb_.Swap(&other->remotedb_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata SynchronizeDBResponse::GetMetadata() const { + protobuf_SynchronizeDBResponse_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_SynchronizeDBResponse_2eproto::file_level_metadata[kIndexInFileMessages]; +} + +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// SynchronizeDBResponse + +// bytes RemoteDB = 1; +void SynchronizeDBResponse::clear_remotedb() { + remotedb_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +const ::std::string& SynchronizeDBResponse::remotedb() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Synchronization.SynchronizeDBResponse.RemoteDB) + return remotedb_.GetNoArena(); +} +void SynchronizeDBResponse::set_remotedb(const ::std::string& value) { + + remotedb_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Tango.PMR.Synchronization.SynchronizeDBResponse.RemoteDB) +} +#if LANG_CXX11 +void SynchronizeDBResponse::set_remotedb(::std::string&& value) { + + remotedb_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:Tango.PMR.Synchronization.SynchronizeDBResponse.RemoteDB) +} +#endif +void SynchronizeDBResponse::set_remotedb(const char* value) { + GOOGLE_DCHECK(value != NULL); + + remotedb_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:Tango.PMR.Synchronization.SynchronizeDBResponse.RemoteDB) +} +void SynchronizeDBResponse::set_remotedb(const void* value, size_t size) { + + remotedb_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast<const char*>(value), size)); + // @@protoc_insertion_point(field_set_pointer:Tango.PMR.Synchronization.SynchronizeDBResponse.RemoteDB) +} +::std::string* SynchronizeDBResponse::mutable_remotedb() { + + // @@protoc_insertion_point(field_mutable:Tango.PMR.Synchronization.SynchronizeDBResponse.RemoteDB) + return remotedb_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +::std::string* SynchronizeDBResponse::release_remotedb() { + // @@protoc_insertion_point(field_release:Tango.PMR.Synchronization.SynchronizeDBResponse.RemoteDB) + + return remotedb_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +void SynchronizeDBResponse::set_allocated_remotedb(::std::string* remotedb) { + if (remotedb != NULL) { + + } else { + + } + remotedb_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), remotedb); + // @@protoc_insertion_point(field_set_allocated:Tango.PMR.Synchronization.SynchronizeDBResponse.RemoteDB) +} + +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS + +// @@protoc_insertion_point(namespace_scope) + +} // namespace Synchronization +} // namespace PMR +} // namespace Tango + +// @@protoc_insertion_point(global_scope) diff --git a/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/SynchronizeDBResponse.pb.h b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/SynchronizeDBResponse.pb.h new file mode 100644 index 000000000..4efe57baa --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/SynchronizeDBResponse.pb.h @@ -0,0 +1,246 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: SynchronizeDBResponse.proto + +#ifndef PROTOBUF_SynchronizeDBResponse_2eproto__INCLUDED +#define PROTOBUF_SynchronizeDBResponse_2eproto__INCLUDED + +#include <string> + +#include <google/protobuf/stubs/common.h> + +#if GOOGLE_PROTOBUF_VERSION < 3004000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3004000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include <google/protobuf/io/coded_stream.h> +#include <google/protobuf/arena.h> +#include <google/protobuf/arenastring.h> +#include <google/protobuf/generated_message_table_driven.h> +#include <google/protobuf/generated_message_util.h> +#include <google/protobuf/metadata.h> +#include <google/protobuf/message.h> +#include <google/protobuf/repeated_field.h> // IWYU pragma: export +#include <google/protobuf/extension_set.h> // IWYU pragma: export +#include <google/protobuf/unknown_field_set.h> +// @@protoc_insertion_point(includes) +namespace Tango { +namespace PMR { +namespace Synchronization { +class SynchronizeDBResponse; +class SynchronizeDBResponseDefaultTypeInternal; +extern SynchronizeDBResponseDefaultTypeInternal _SynchronizeDBResponse_default_instance_; +} // namespace Synchronization +} // namespace PMR +} // namespace Tango + +namespace Tango { +namespace PMR { +namespace Synchronization { + +namespace protobuf_SynchronizeDBResponse_2eproto { +// Internal implementation detail -- do not call these. +struct TableStruct { + static const ::google::protobuf::internal::ParseTableField entries[]; + static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; + static const ::google::protobuf::internal::ParseTable schema[]; + static const ::google::protobuf::uint32 offsets[]; + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static void InitDefaultsImpl(); +}; +void AddDescriptors(); +void InitDefaults(); +} // namespace protobuf_SynchronizeDBResponse_2eproto + +// =================================================================== + +class SynchronizeDBResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Tango.PMR.Synchronization.SynchronizeDBResponse) */ { + public: + SynchronizeDBResponse(); + virtual ~SynchronizeDBResponse(); + + SynchronizeDBResponse(const SynchronizeDBResponse& from); + + inline SynchronizeDBResponse& operator=(const SynchronizeDBResponse& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + SynchronizeDBResponse(SynchronizeDBResponse&& from) noexcept + : SynchronizeDBResponse() { + *this = ::std::move(from); + } + + inline SynchronizeDBResponse& operator=(SynchronizeDBResponse&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const SynchronizeDBResponse& default_instance(); + + static inline const SynchronizeDBResponse* internal_default_instance() { + return reinterpret_cast<const SynchronizeDBResponse*>( + &_SynchronizeDBResponse_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 0; + + void Swap(SynchronizeDBResponse* other); + friend void swap(SynchronizeDBResponse& a, SynchronizeDBResponse& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline SynchronizeDBResponse* New() const PROTOBUF_FINAL { return New(NULL); } + + SynchronizeDBResponse* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const SynchronizeDBResponse& from); + void MergeFrom(const SynchronizeDBResponse& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(SynchronizeDBResponse* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // bytes RemoteDB = 1; + void clear_remotedb(); + static const int kRemoteDBFieldNumber = 1; + const ::std::string& remotedb() const; + void set_remotedb(const ::std::string& value); + #if LANG_CXX11 + void set_remotedb(::std::string&& value); + #endif + void set_remotedb(const char* value); + void set_remotedb(const void* value, size_t size); + ::std::string* mutable_remotedb(); + ::std::string* release_remotedb(); + void set_allocated_remotedb(::std::string* remotedb); + + // @@protoc_insertion_point(class_scope:Tango.PMR.Synchronization.SynchronizeDBResponse) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr remotedb_; + mutable int _cached_size_; + friend struct protobuf_SynchronizeDBResponse_2eproto::TableStruct; +}; +// =================================================================== + + +// =================================================================== + +#if !PROTOBUF_INLINE_NOT_IN_HEADERS +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// SynchronizeDBResponse + +// bytes RemoteDB = 1; +inline void SynchronizeDBResponse::clear_remotedb() { + remotedb_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& SynchronizeDBResponse::remotedb() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Synchronization.SynchronizeDBResponse.RemoteDB) + return remotedb_.GetNoArena(); +} +inline void SynchronizeDBResponse::set_remotedb(const ::std::string& value) { + + remotedb_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Tango.PMR.Synchronization.SynchronizeDBResponse.RemoteDB) +} +#if LANG_CXX11 +inline void SynchronizeDBResponse::set_remotedb(::std::string&& value) { + + remotedb_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:Tango.PMR.Synchronization.SynchronizeDBResponse.RemoteDB) +} +#endif +inline void SynchronizeDBResponse::set_remotedb(const char* value) { + GOOGLE_DCHECK(value != NULL); + + remotedb_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:Tango.PMR.Synchronization.SynchronizeDBResponse.RemoteDB) +} +inline void SynchronizeDBResponse::set_remotedb(const void* value, size_t size) { + + remotedb_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast<const char*>(value), size)); + // @@protoc_insertion_point(field_set_pointer:Tango.PMR.Synchronization.SynchronizeDBResponse.RemoteDB) +} +inline ::std::string* SynchronizeDBResponse::mutable_remotedb() { + + // @@protoc_insertion_point(field_mutable:Tango.PMR.Synchronization.SynchronizeDBResponse.RemoteDB) + return remotedb_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* SynchronizeDBResponse::release_remotedb() { + // @@protoc_insertion_point(field_release:Tango.PMR.Synchronization.SynchronizeDBResponse.RemoteDB) + + return remotedb_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void SynchronizeDBResponse::set_allocated_remotedb(::std::string* remotedb) { + if (remotedb != NULL) { + + } else { + + } + remotedb_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), remotedb); + // @@protoc_insertion_point(field_set_allocated:Tango.PMR.Synchronization.SynchronizeDBResponse.RemoteDB) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +#endif // !PROTOBUF_INLINE_NOT_IN_HEADERS + +// @@protoc_insertion_point(namespace_scope) + + +} // namespace Synchronization +} // namespace PMR +} // namespace Tango + +// @@protoc_insertion_point(global_scope) + +#endif // PROTOBUF_SynchronizeDBResponse_2eproto__INCLUDED diff --git a/Software/Visual_Studio/Native/Tango.ProtoTest/Tango.ProtoTest.vcxproj b/Software/Visual_Studio/Native/Tango.ProtoTest/Tango.ProtoTest.vcxproj index 4959792e2..e657d78b8 100644 --- a/Software/Visual_Studio/Native/Tango.ProtoTest/Tango.ProtoTest.vcxproj +++ b/Software/Visual_Studio/Native/Tango.ProtoTest/Tango.ProtoTest.vcxproj @@ -72,7 +72,7 @@ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> <TargetExt>.dll</TargetExt> <OutDir>$(SolutionDir)Build\Debug</OutDir> - <IncludePath>..\..\..\External Repositories\Protobuf\protobuf-3.4.1\src;$(IncludePath)</IncludePath> + <IncludePath>..\..\..\External_Repositories\Protobuf\protobuf-3.4.1\src;$(IncludePath)</IncludePath> </PropertyGroup> <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> <ClCompile> @@ -121,6 +121,7 @@ <ItemGroup> <ClInclude Include="PMR\CalculateRequest.pb.h" /> <ClInclude Include="PMR\CalculateResponse.pb.h" /> + <ClInclude Include="PMR\ErrorCode.pb.h" /> <ClInclude Include="PMR\Job.pb.h" /> <ClInclude Include="PMR\MessageContainer.pb.h" /> <ClInclude Include="PMR\MessageType.pb.h" /> @@ -133,6 +134,7 @@ <ItemGroup> <ClCompile Include="PMR\CalculateRequest.pb.cc" /> <ClCompile Include="PMR\CalculateResponse.pb.cc" /> + <ClCompile Include="PMR\ErrorCode.pb.cc" /> <ClCompile Include="PMR\Job.pb.cc" /> <ClCompile Include="PMR\MessageContainer.pb.cc" /> <ClCompile Include="PMR\MessageType.pb.cc" /> diff --git a/Software/Visual_Studio/Native/Tango.ProtoTest/Tango.ProtoTest.vcxproj.filters b/Software/Visual_Studio/Native/Tango.ProtoTest/Tango.ProtoTest.vcxproj.filters index 0b835c2c4..ed9a45953 100644 --- a/Software/Visual_Studio/Native/Tango.ProtoTest/Tango.ProtoTest.vcxproj.filters +++ b/Software/Visual_Studio/Native/Tango.ProtoTest/Tango.ProtoTest.vcxproj.filters @@ -45,6 +45,9 @@ <ClInclude Include="PMR\Segment.pb.h"> <Filter>Header Files</Filter> </ClInclude> + <ClInclude Include="PMR\ErrorCode.pb.h"> + <Filter>Header Files</Filter> + </ClInclude> </ItemGroup> <ItemGroup> <ClCompile Include="ProtoTester.cpp"> @@ -77,6 +80,9 @@ <ClCompile Include="PMR\Segment.pb.cc"> <Filter>Source Files</Filter> </ClCompile> + <ClCompile Include="PMR\ErrorCode.pb.cc"> + <Filter>Source Files</Filter> + </ClCompile> </ItemGroup> <ItemGroup> <Library Include="libprotobuf.lib" /> |
