aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubGPIOWriteBitResponse.pb.cc
diff options
context:
space:
mode:
Diffstat (limited to 'Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubGPIOWriteBitResponse.pb.cc')
-rw-r--r--Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubGPIOWriteBitResponse.pb.cc173
1 files changed, 142 insertions, 31 deletions
diff --git a/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubGPIOWriteBitResponse.pb.cc b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubGPIOWriteBitResponse.pb.cc
index 6a8ebb57b..09765da5f 100644
--- a/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubGPIOWriteBitResponse.pb.cc
+++ b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubGPIOWriteBitResponse.pb.cc
@@ -58,6 +58,7 @@ const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_ATTRIBUTE_SECTION
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubGPIOWriteBitResponse, portid_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubGPIOWriteBitResponse, pinid_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubGPIOWriteBitResponse, status_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubGPIOWriteBitResponse, statusword_),
};
static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
{ 0, -1, sizeof(StubGPIOWriteBitResponse)},
@@ -106,13 +107,13 @@ 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"
+ "PMR.Stubs\"]\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"
+ " \001(\t\022\022\n\nStatusWord\030\004 \001(\rB\033\n\031com.twine.ta"
+ "ngo.pmr.stubsb\006proto3"
};
::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
- descriptor, 161);
+ descriptor, 181);
::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
"StubGPIOWriteBitResponse.proto", &protobuf_RegisterTypes);
}
@@ -138,6 +139,7 @@ struct StaticDescriptorInitializer {
const int StubGPIOWriteBitResponse::kPortIdFieldNumber;
const int StubGPIOWriteBitResponse::kPinIdFieldNumber;
const int StubGPIOWriteBitResponse::kStatusFieldNumber;
+const int StubGPIOWriteBitResponse::kStatusWordFieldNumber;
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
StubGPIOWriteBitResponse::StubGPIOWriteBitResponse()
@@ -157,17 +159,22 @@ StubGPIOWriteBitResponse::StubGPIOWriteBitResponse(const StubGPIOWriteBitRespons
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(&pinid_, &from.pinid_,
- static_cast<size_t>(reinterpret_cast<char*>(&status_) -
- reinterpret_cast<char*>(&pinid_)) + sizeof(status_));
+ static_cast<size_t>(reinterpret_cast<char*>(&statusword_) -
+ reinterpret_cast<char*>(&pinid_)) + sizeof(statusword_));
// @@protoc_insertion_point(copy_constructor:Tango.PMR.Stubs.StubGPIOWriteBitResponse)
}
void StubGPIOWriteBitResponse::SharedCtor() {
portid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ status_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
::memset(&pinid_, 0, static_cast<size_t>(
- reinterpret_cast<char*>(&status_) -
- reinterpret_cast<char*>(&pinid_)) + sizeof(status_));
+ reinterpret_cast<char*>(&statusword_) -
+ reinterpret_cast<char*>(&pinid_)) + sizeof(statusword_));
_cached_size_ = 0;
}
@@ -178,6 +185,7 @@ StubGPIOWriteBitResponse::~StubGPIOWriteBitResponse() {
void StubGPIOWriteBitResponse::SharedDtor() {
portid_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ status_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void StubGPIOWriteBitResponse::SetCachedSize(int size) const {
@@ -210,9 +218,10 @@ void StubGPIOWriteBitResponse::Clear() {
(void) cached_has_bits;
portid_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ status_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
::memset(&pinid_, 0, static_cast<size_t>(
- reinterpret_cast<char*>(&status_) -
- reinterpret_cast<char*>(&pinid_)) + sizeof(status_));
+ reinterpret_cast<char*>(&statusword_) -
+ reinterpret_cast<char*>(&pinid_)) + sizeof(statusword_));
_internal_metadata_.Clear();
}
@@ -256,14 +265,30 @@ bool StubGPIOWriteBitResponse::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.StubGPIOWriteBitResponse.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 StubGPIOWriteBitResponse::SerializeWithCachedSizes(
::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);
+ // 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.StubGPIOWriteBitResponse.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 StubGPIOWriteBitResponse::SerializeWithCachedSizes(
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);
+ // 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.StubGPIOWriteBitResponse.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 StubGPIOWriteBitResponse::ByteSizeLong() const {
this->portid());
}
+ // string Status = 3;
+ if (this->status().size() > 0) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::StringSize(
+ this->status());
+ }
+
// uint32 PinId = 2;
if (this->pinid() != 0) {
total_size += 1 +
@@ -382,11 +435,11 @@ size_t StubGPIOWriteBitResponse::ByteSizeLong() const {
this->pinid());
}
- // 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 StubGPIOWriteBitResponse::MergeFrom(const StubGPIOWriteBitResponse& from) {
portid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.portid_);
}
+ if (from.status().size() > 0) {
+
+ status_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.status_);
+ }
if (from.pinid() != 0) {
set_pinid(from.pinid());
}
- if (from.status() != 0) {
- set_status(from.status());
+ if (from.statusword() != 0) {
+ set_statusword(from.statusword());
}
}
@@ -455,8 +512,9 @@ void StubGPIOWriteBitResponse::Swap(StubGPIOWriteBitResponse* other) {
void StubGPIOWriteBitResponse::InternalSwap(StubGPIOWriteBitResponse* other) {
using std::swap;
portid_.Swap(&other->portid_);
+ status_.Swap(&other->status_);
swap(pinid_, other->pinid_);
- swap(status_, other->status_);
+ swap(statusword_, other->statusword_);
_internal_metadata_.Swap(&other->_internal_metadata_);
swap(_cached_size_, other->_cached_size_);
}
@@ -536,19 +594,72 @@ void StubGPIOWriteBitResponse::set_pinid(::google::protobuf::uint32 value) {
// @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubGPIOWriteBitResponse.PinId)
}
-// uint32 Status = 3;
+// string Status = 3;
void StubGPIOWriteBitResponse::clear_status() {
- status_ = 0u;
+ status_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
-::google::protobuf::uint32 StubGPIOWriteBitResponse::status() const {
+const ::std::string& StubGPIOWriteBitResponse::status() const {
// @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubGPIOWriteBitResponse.Status)
- return status_;
+ return status_.GetNoArena();
}
-void StubGPIOWriteBitResponse::set_status(::google::protobuf::uint32 value) {
+void StubGPIOWriteBitResponse::set_status(const ::std::string& value) {
- status_ = value;
+ status_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
// @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubGPIOWriteBitResponse.Status)
}
+#if LANG_CXX11
+void StubGPIOWriteBitResponse::set_status(::std::string&& value) {
+
+ status_.SetNoArena(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:Tango.PMR.Stubs.StubGPIOWriteBitResponse.Status)
+}
+#endif
+void StubGPIOWriteBitResponse::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.StubGPIOWriteBitResponse.Status)
+}
+void StubGPIOWriteBitResponse::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.StubGPIOWriteBitResponse.Status)
+}
+::std::string* StubGPIOWriteBitResponse::mutable_status() {
+
+ // @@protoc_insertion_point(field_mutable:Tango.PMR.Stubs.StubGPIOWriteBitResponse.Status)
+ return status_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+::std::string* StubGPIOWriteBitResponse::release_status() {
+ // @@protoc_insertion_point(field_release:Tango.PMR.Stubs.StubGPIOWriteBitResponse.Status)
+
+ return status_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+void StubGPIOWriteBitResponse::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.StubGPIOWriteBitResponse.Status)
+}
+
+// uint32 StatusWord = 4;
+void StubGPIOWriteBitResponse::clear_statusword() {
+ statusword_ = 0u;
+}
+::google::protobuf::uint32 StubGPIOWriteBitResponse::statusword() const {
+ // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubGPIOWriteBitResponse.StatusWord)
+ return statusword_;
+}
+void StubGPIOWriteBitResponse::set_statusword(::google::protobuf::uint32 value) {
+
+ statusword_ = value;
+ // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubGPIOWriteBitResponse.StatusWord)
+}
#endif // PROTOBUF_INLINE_NOT_IN_HEADERS