aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubGPIOReadByteResponse.pb.cc
diff options
context:
space:
mode:
Diffstat (limited to 'Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubGPIOReadByteResponse.pb.cc')
-rw-r--r--Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubGPIOReadByteResponse.pb.cc179
1 files changed, 145 insertions, 34 deletions
diff --git a/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubGPIOReadByteResponse.pb.cc b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubGPIOReadByteResponse.pb.cc
index 5f22fffb7..e3b9508fd 100644
--- a/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubGPIOReadByteResponse.pb.cc
+++ b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubGPIOReadByteResponse.pb.cc
@@ -58,6 +58,7 @@ const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_ATTRIBUTE_SECTION
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubGPIOReadByteResponse, portid_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubGPIOReadByteResponse, bytevalue_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubGPIOReadByteResponse, status_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubGPIOReadByteResponse, statusword_),
};
static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
{ 0, -1, sizeof(StubGPIOReadByteResponse)},
@@ -106,13 +107,13 @@ 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"
+ "PMR.Stubs\"a\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(\t\022\022\n\nStatusWord\030\004 \001(\rB\033\n\031com.twin"
+ "e.tango.pmr.stubsb\006proto3"
};
::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
- descriptor, 165);
+ descriptor, 185);
::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
"StubGPIOReadByteResponse.proto", &protobuf_RegisterTypes);
}
@@ -138,6 +139,7 @@ struct StaticDescriptorInitializer {
const int StubGPIOReadByteResponse::kPortIdFieldNumber;
const int StubGPIOReadByteResponse::kByteValueFieldNumber;
const int StubGPIOReadByteResponse::kStatusFieldNumber;
+const int StubGPIOReadByteResponse::kStatusWordFieldNumber;
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
StubGPIOReadByteResponse::StubGPIOReadByteResponse()
@@ -157,17 +159,22 @@ StubGPIOReadByteResponse::StubGPIOReadByteResponse(const StubGPIOReadByteRespons
if (from.portid().size() > 0) {
portid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.portid_);
}
+ status_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.status().size() > 0) {
+ status_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.status_);
+ }
::memcpy(&bytevalue_, &from.bytevalue_,
- static_cast<size_t>(reinterpret_cast<char*>(&status_) -
- reinterpret_cast<char*>(&bytevalue_)) + sizeof(status_));
+ static_cast<size_t>(reinterpret_cast<char*>(&statusword_) -
+ reinterpret_cast<char*>(&bytevalue_)) + sizeof(statusword_));
// @@protoc_insertion_point(copy_constructor:Tango.PMR.Stubs.StubGPIOReadByteResponse)
}
void StubGPIOReadByteResponse::SharedCtor() {
portid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ status_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
::memset(&bytevalue_, 0, static_cast<size_t>(
- reinterpret_cast<char*>(&status_) -
- reinterpret_cast<char*>(&bytevalue_)) + sizeof(status_));
+ reinterpret_cast<char*>(&statusword_) -
+ reinterpret_cast<char*>(&bytevalue_)) + sizeof(statusword_));
_cached_size_ = 0;
}
@@ -178,6 +185,7 @@ StubGPIOReadByteResponse::~StubGPIOReadByteResponse() {
void StubGPIOReadByteResponse::SharedDtor() {
portid_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ status_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void StubGPIOReadByteResponse::SetCachedSize(int size) const {
@@ -210,9 +218,10 @@ void StubGPIOReadByteResponse::Clear() {
(void) cached_has_bits;
portid_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ status_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
::memset(&bytevalue_, 0, static_cast<size_t>(
- reinterpret_cast<char*>(&status_) -
- reinterpret_cast<char*>(&bytevalue_)) + sizeof(status_));
+ reinterpret_cast<char*>(&statusword_) -
+ reinterpret_cast<char*>(&bytevalue_)) + sizeof(statusword_));
_internal_metadata_.Clear();
}
@@ -256,14 +265,30 @@ bool StubGPIOReadByteResponse::MergePartialFromCodedStream(
break;
}
- // uint32 status = 3;
+ // string Status = 3;
case 3: {
if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
+ static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadString(
+ input, this->mutable_status()));
+ DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->status().data(), static_cast<int>(this->status().length()),
+ ::google::protobuf::internal::WireFormatLite::PARSE,
+ "Tango.PMR.Stubs.StubGPIOReadByteResponse.Status"));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // uint32 StatusWord = 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_)));
+ input, &statusword_)));
} else {
goto handle_unusual;
}
@@ -311,9 +336,19 @@ void StubGPIOReadByteResponse::SerializeWithCachedSizes(
::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);
+ // string Status = 3;
+ if (this->status().size() > 0) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->status().data(), static_cast<int>(this->status().length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "Tango.PMR.Stubs.StubGPIOReadByteResponse.Status");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
+ 3, this->status(), output);
+ }
+
+ // uint32 StatusWord = 4;
+ if (this->statusword() != 0) {
+ ::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->statusword(), output);
}
if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
@@ -346,9 +381,20 @@ void StubGPIOReadByteResponse::SerializeWithCachedSizes(
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);
+ // string Status = 3;
+ if (this->status().size() > 0) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->status().data(), static_cast<int>(this->status().length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "Tango.PMR.Stubs.StubGPIOReadByteResponse.Status");
+ target =
+ ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
+ 3, this->status(), target);
+ }
+
+ // uint32 StatusWord = 4;
+ if (this->statusword() != 0) {
+ target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(4, this->statusword(), target);
}
if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
@@ -375,6 +421,13 @@ size_t StubGPIOReadByteResponse::ByteSizeLong() const {
this->portid());
}
+ // string Status = 3;
+ if (this->status().size() > 0) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::StringSize(
+ this->status());
+ }
+
// uint32 ByteValue = 2;
if (this->bytevalue() != 0) {
total_size += 1 +
@@ -382,11 +435,11 @@ size_t StubGPIOReadByteResponse::ByteSizeLong() const {
this->bytevalue());
}
- // uint32 status = 3;
- if (this->status() != 0) {
+ // uint32 StatusWord = 4;
+ if (this->statusword() != 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::UInt32Size(
- this->status());
+ this->statusword());
}
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
@@ -422,11 +475,15 @@ void StubGPIOReadByteResponse::MergeFrom(const StubGPIOReadByteResponse& from) {
portid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.portid_);
}
+ if (from.status().size() > 0) {
+
+ status_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.status_);
+ }
if (from.bytevalue() != 0) {
set_bytevalue(from.bytevalue());
}
- if (from.status() != 0) {
- set_status(from.status());
+ if (from.statusword() != 0) {
+ set_statusword(from.statusword());
}
}
@@ -455,8 +512,9 @@ void StubGPIOReadByteResponse::Swap(StubGPIOReadByteResponse* other) {
void StubGPIOReadByteResponse::InternalSwap(StubGPIOReadByteResponse* other) {
using std::swap;
portid_.Swap(&other->portid_);
+ status_.Swap(&other->status_);
swap(bytevalue_, other->bytevalue_);
- swap(status_, other->status_);
+ swap(statusword_, other->statusword_);
_internal_metadata_.Swap(&other->_internal_metadata_);
swap(_cached_size_, other->_cached_size_);
}
@@ -536,18 +594,71 @@ void StubGPIOReadByteResponse::set_bytevalue(::google::protobuf::uint32 value) {
// @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubGPIOReadByteResponse.ByteValue)
}
-// uint32 status = 3;
+// string Status = 3;
void StubGPIOReadByteResponse::clear_status() {
- status_ = 0u;
+ status_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+const ::std::string& StubGPIOReadByteResponse::status() const {
+ // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubGPIOReadByteResponse.Status)
+ return status_.GetNoArena();
+}
+void StubGPIOReadByteResponse::set_status(const ::std::string& value) {
+
+ status_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
+ // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubGPIOReadByteResponse.Status)
+}
+#if LANG_CXX11
+void StubGPIOReadByteResponse::set_status(::std::string&& value) {
+
+ status_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:Tango.PMR.Stubs.StubGPIOReadByteResponse.Status)
+}
+#endif
+void StubGPIOReadByteResponse::set_status(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
+
+ status_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:Tango.PMR.Stubs.StubGPIOReadByteResponse.Status)
+}
+void StubGPIOReadByteResponse::set_status(const char* value, size_t size) {
+
+ status_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:Tango.PMR.Stubs.StubGPIOReadByteResponse.Status)
+}
+::std::string* StubGPIOReadByteResponse::mutable_status() {
+
+ // @@protoc_insertion_point(field_mutable:Tango.PMR.Stubs.StubGPIOReadByteResponse.Status)
+ return status_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+::std::string* StubGPIOReadByteResponse::release_status() {
+ // @@protoc_insertion_point(field_release:Tango.PMR.Stubs.StubGPIOReadByteResponse.Status)
+
+ return status_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+void StubGPIOReadByteResponse::set_allocated_status(::std::string* status) {
+ if (status != NULL) {
+
+ } else {
+
+ }
+ status_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), status);
+ // @@protoc_insertion_point(field_set_allocated:Tango.PMR.Stubs.StubGPIOReadByteResponse.Status)
+}
+
+// uint32 StatusWord = 4;
+void StubGPIOReadByteResponse::clear_statusword() {
+ statusword_ = 0u;
}
-::google::protobuf::uint32 StubGPIOReadByteResponse::status() const {
- // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubGPIOReadByteResponse.status)
- return status_;
+::google::protobuf::uint32 StubGPIOReadByteResponse::statusword() const {
+ // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubGPIOReadByteResponse.StatusWord)
+ return statusword_;
}
-void StubGPIOReadByteResponse::set_status(::google::protobuf::uint32 value) {
+void StubGPIOReadByteResponse::set_statusword(::google::protobuf::uint32 value) {
- status_ = value;
- // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubGPIOReadByteResponse.status)
+ statusword_ = value;
+ // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubGPIOReadByteResponse.StatusWord)
}
#endif // PROTOBUF_INLINE_NOT_IN_HEADERS