aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.ActionLogs/Views/MainView.xaml.cs
blob: 67641e3fc069ec77096078cd4728cbcb07b65a92 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace Tango.MachineStudio.ActionLogs.Views
{
    /// <summary>
    /// Interaction logic for MainView.xaml
    /// </summary>
    public partial class MainView : UserControl
    {
        public MainView()
        {
            InitializeComponent();
        }
        
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            selectActionsButton.IsChecked = true;
            e.Handled = true;
        }
    }
}
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: StubMotorStatusResponse.proto

#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
#include "StubMotorStatusResponse.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 StubMotorStatusResponseDefaultTypeInternal {
public:
 ::google::protobuf::internal::ExplicitlyConstructed<StubMotorStatusResponse>
     _instance;
} _StubMotorStatusResponse_default_instance_;

namespace protobuf_StubMotorStatusResponse_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(StubMotorStatusResponse, _internal_metadata_),
  ~0u,  // no _extensions_
  ~0u,  // no _oneof_case_
  ~0u,  // no _weak_field_map_
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubMotorStatusResponse, motor_id_),
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubMotorStatusResponse, sck_mod_),
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubMotorStatusResponse, step_loss_b_),
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubMotorStatusResponse, step_loss_a_),
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubMotorStatusResponse, ocd_),
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubMotorStatusResponse, th_sd_),
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubMotorStatusResponse, th_wrn_),
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubMotorStatusResponse, uvlo_),
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubMotorStatusResponse, wrong_cmd_),
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubMotorStatusResponse, notperf_cmd_),
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubMotorStatusResponse, mot_status_),
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubMotorStatusResponse, dir_),
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubMotorStatusResponse, sw_evn_),
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubMotorStatusResponse, sw_f_),
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubMotorStatusResponse, busy_),
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubMotorStatusResponse, hiz_),
};
static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  { 0, -1, sizeof(StubMotorStatusResponse)},
};

static ::google::protobuf::Message const * const file_default_instances[] = {
  reinterpret_cast<const ::google::protobuf::Message*>(&_StubMotorStatusResponse_default_instance_),
};

namespace {

void protobuf_AssignDescriptors() {
  AddDescriptors();
  ::google::protobuf::MessageFactory* factory = NULL;
  AssignDescriptors(
      "StubMotorStatusResponse.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();
  _StubMotorStatusResponse_default_instance_._instance.DefaultConstruct();
  ::google::protobuf::internal::OnShutdownDestroyMessage(
      &_StubMotorStatusResponse_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\035StubMotorStatusResponse.proto\022\017Tango.P"
      "MR.Stubs\"\242\002\n\027StubMotorStatusResponse\022\020\n\010"
      "Motor_ID\030\001 \001(\r\022\017\n\007SCK_MOD\030\002 \001(\010\022\023\n\013STEP_"
      "LOSS_B\030\003 \001(\010\022\023\n\013STEP_LOSS_A\030\004 \001(\010\022\013\n\003OCD"
      "\030\005 \001(\010\022\r\n\005TH_SD\030\006 \001(\010\022\016\n\006TH_WRN\030\007 \001(\010\022\014\n"
      "\004UVLO\030\010 \001(\010\022\021\n\tWRONG_CMD\030\t \001(\010\022\023\n\013NOTPER"
      "F_CMD\030\n \001(\010\022\022\n\nMOT_STATUS\030\013 \001(\r\022\013\n\003DIR\030\014"
      " \001(\010\022\016\n\006SW_EVN\030\r \001(\010\022\014\n\004SW_F\030\016 \001(\010\022\014\n\004BU"
      "SY\030\017 \001(\010\022\013\n\003HiZ\030\020 \001(\010B\033\n\031com.twine.tango"
      ".pmr.stubsb\006proto3"
  };
  ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
      descriptor, 378);
  ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
    "StubMotorStatusResponse.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_StubMotorStatusResponse_2eproto


// ===================================================================

#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int StubMotorStatusResponse::kMotorIDFieldNumber;
const int StubMotorStatusResponse::kSCKMODFieldNumber;
const int StubMotorStatusResponse::kSTEPLOSSBFieldNumber;
const int StubMotorStatusResponse::kSTEPLOSSAFieldNumber;
const int StubMotorStatusResponse::kOCDFieldNumber;
const int StubMotorStatusResponse::kTHSDFieldNumber;
const int StubMotorStatusResponse::kTHWRNFieldNumber;
const int StubMotorStatusResponse::kUVLOFieldNumber;
const int StubMotorStatusResponse::kWRONGCMDFieldNumber;
const int StubMotorStatusResponse::kNOTPERFCMDFieldNumber;
const int StubMotorStatusResponse::kMOTSTATUSFieldNumber;
const int StubMotorStatusResponse::kDIRFieldNumber;
const int StubMotorStatusResponse::kSWEVNFieldNumber;
const int StubMotorStatusResponse::kSWFFieldNumber;
const int StubMotorStatusResponse::kBUSYFieldNumber;
const int StubMotorStatusResponse::kHiZFieldNumber;
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900

StubMotorStatusResponse::StubMotorStatusResponse()
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
    protobuf_StubMotorStatusResponse_2eproto::InitDefaults();
  }
  SharedCtor();
  // @@protoc_insertion_point(constructor:Tango.PMR.Stubs.StubMotorStatusResponse)
}
StubMotorStatusResponse::StubMotorStatusResponse(const StubMotorStatusResponse& from)
  : ::google::protobuf::Message(),
      _internal_metadata_(NULL),
      _cached_size_(0) {
  _internal_metadata_.MergeFrom(from._internal_metadata_);
  ::memcpy(&motor_id_, &from.motor_id_,
    static_cast<size_t>(reinterpret_cast<char*>(&hiz_) -
    reinterpret_cast<char*>(&motor_id_)) + sizeof(hiz_));
  // @@protoc_insertion_point(copy_constructor:Tango.PMR.Stubs.StubMotorStatusResponse)
}

void StubMotorStatusResponse::SharedCtor() {
  ::memset(&motor_id_, 0, static_cast<size_t>(
      reinterpret_cast<char*>(&hiz_) -
      reinterpret_cast<char*>(&motor_id_)) + sizeof(hiz_));
  _cached_size_ = 0;
}

StubMotorStatusResponse::~StubMotorStatusResponse() {
  // @@protoc_insertion_point(destructor:Tango.PMR.Stubs.StubMotorStatusResponse)
  SharedDtor();
}

void StubMotorStatusResponse::SharedDtor() {
}

void StubMotorStatusResponse::SetCachedSize(int size) const {
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  _cached_size_ = size;
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* StubMotorStatusResponse::descriptor() {
  protobuf_StubMotorStatusResponse_2eproto::protobuf_AssignDescriptorsOnce();
  return protobuf_StubMotorStatusResponse_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
}

const StubMotorStatusResponse& StubMotorStatusResponse::default_instance() {
  protobuf_StubMotorStatusResponse_2eproto::InitDefaults();
  return *internal_default_instance();
}

StubMotorStatusResponse* StubMotorStatusResponse::New(::google::protobuf::Arena* arena) const {
  StubMotorStatusResponse* n = new StubMotorStatusResponse;
  if (arena != NULL) {
    arena->Own(n);
  }
  return n;
}

void StubMotorStatusResponse::Clear() {
// @@protoc_insertion_point(message_clear_start:Tango.PMR.Stubs.StubMotorStatusResponse)
  ::google::protobuf::uint32 cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  ::memset(&motor_id_, 0, static_cast<size_t>(
      reinterpret_cast<char*>(&hiz_) -
      reinterpret_cast<char*>(&motor_id_)) + sizeof(hiz_));
  _internal_metadata_.Clear();
}

bool StubMotorStatusResponse::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.StubMotorStatusResponse)
  for (;;) {
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u);
    tag = p.first;
    if (!p.second) goto handle_unusual;
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
      // uint32 Motor_ID = 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, &motor_id_)));
        } else {
          goto handle_unusual;
        }
        break;
      }

      // bool SCK_MOD = 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, &sck_mod_)));
        } else {
          goto handle_unusual;
        }
        break;
      }

      // bool STEP_LOSS_B = 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, &step_loss_b_)));
        } else {
          goto handle_unusual;
        }
        break;
      }

      // bool STEP_LOSS_A = 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, &step_loss_a_)));
        } else {
          goto handle_unusual;
        }
        break;
      }

      // bool OCD = 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, &ocd_)));
        } else {
          goto handle_unusual;
        }
        break;
      }

      // bool TH_SD = 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, &th_sd_)));
        } else {
          goto handle_unusual;
        }
        break;
      }

      // bool TH_WRN = 7;
      case 7: {
        if (static_cast< ::google::protobuf::uint8>(tag) ==
            static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) {

          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
                 input, &th_wrn_)));
        } else {
          goto handle_unusual;
        }
        break;
      }

      // bool UVLO = 8;
      case 8: {
        if (static_cast< ::google::protobuf::uint8>(tag) ==
            static_cast< ::google::protobuf::uint8>(64u /* 64 & 0xFF */)) {

          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
                 input, &uvlo_)));
        } else {
          goto handle_unusual;
        }
        break;
      }

      // bool WRONG_CMD = 9;
      case 9: {
        if (static_cast< ::google::protobuf::uint8>(tag) ==
            static_cast< ::google::protobuf::uint8>(72u /* 72 & 0xFF */)) {

          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
                 input, &wrong_cmd_)));
        } else {
          goto handle_unusual;
        }
        break;
      }

      // bool NOTPERF_CMD = 10;
      case 10: {
        if (static_cast< ::google::protobuf::uint8>(tag) ==
            static_cast< ::google::protobuf::uint8>(80u /* 80 & 0xFF */)) {

          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
                 input, &notperf_cmd_)));
        } else {
          goto handle_unusual;
        }
        break;
      }

      // uint32 MOT_STATUS = 11;
      case 11: {
        if (static_cast< ::google::protobuf::uint8>(tag) ==
            static_cast< ::google::protobuf::uint8>(88u /* 88 & 0xFF */)) {

          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
                   ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
                 input, &mot_status_)));
        } else {
          goto handle_unusual;
        }
        break;
      }

      // bool DIR = 12;
      case 12: {
        if (static_cast< ::google::protobuf::uint8>(tag) ==
            static_cast< ::google::protobuf::uint8>(96u /* 96 & 0xFF */)) {

          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
                 input, &dir_)));
        } else {
          goto handle_unusual;
        }
        break;
      }

      // bool SW_EVN = 13;
      case 13: {
        if (static_cast< ::google::protobuf::uint8>(tag) ==
            static_cast< ::google::protobuf::uint8>(104u /* 104 & 0xFF */)) {

          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
                 input, &sw_evn_)));
        } else {
          goto handle_unusual;
        }
        break;
      }

      // bool SW_F = 14;
      case 14: {
        if (static_cast< ::google::protobuf::uint8>(tag) ==
            static_cast< ::google::protobuf::uint8>(112u /* 112 & 0xFF */)) {

          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
                 input, &sw_f_)));
        } else {
          goto handle_unusual;
        }
        break;
      }

      // bool BUSY = 15;
      case 15: {
        if (static_cast< ::google::protobuf::uint8>(tag) ==
            static_cast< ::google::protobuf::uint8>(120u /* 120 & 0xFF */)) {

          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
                 input, &busy_)));
        } else {
          goto handle_unusual;
        }
        break;
      }

      // bool HiZ = 16;
      case 16: {
        if (static_cast< ::google::protobuf::uint8>(tag) ==
            static_cast< ::google::protobuf::uint8>(128u /* 128 & 0xFF */)) {

          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
                 input, &hiz_)));
        } 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.StubMotorStatusResponse)
  return true;
failure:
  // @@protoc_insertion_point(parse_failure:Tango.PMR.Stubs.StubMotorStatusResponse)
  return false;
#undef DO_
}

void StubMotorStatusResponse::SerializeWithCachedSizes(
    ::google::protobuf::io::CodedOutputStream* output) const {
  // @@protoc_insertion_point(serialize_start:Tango.PMR.Stubs.StubMotorStatusResponse)
  ::google::protobuf::uint32 cached_has_bits = 0;
  (void) cached_has_bits;

  // uint32 Motor_ID = 1;
  if (this->motor_id() != 0) {
    ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->motor_id(), output);
  }

  // bool SCK_MOD = 2;
  if (this->sck_mod() != 0) {
    ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->sck_mod(), output);
  }

  // bool STEP_LOSS_B = 3;
  if (this->step_loss_b() != 0) {
    ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->step_loss_b(), output);
  }

  // bool STEP_LOSS_A = 4;
  if (this->step_loss_a() != 0) {
    ::google::protobuf::internal::WireFormatLite::WriteBool(4, this->step_loss_a(), output);
  }

  // bool OCD = 5;
  if (this->ocd() != 0) {
    ::google::protobuf::internal::WireFormatLite::WriteBool(5, this->ocd(), output);
  }

  // bool TH_SD = 6;
  if (this->th_sd() != 0) {
    ::google::protobuf::internal::WireFormatLite::WriteBool(6, this->th_sd(), output);
  }

  // bool TH_WRN = 7;
  if (this->th_wrn() != 0) {
    ::google::protobuf::internal::WireFormatLite::WriteBool(7, this->th_wrn(), output);
  }

  // bool UVLO = 8;
  if (this->uvlo() != 0) {
    ::google::protobuf::internal::WireFormatLite::WriteBool(8, this->uvlo(), output);
  }

  // bool WRONG_CMD = 9;
  if (this->wrong_cmd() != 0) {
    ::google::protobuf::internal::WireFormatLite::WriteBool(9, this->wrong_cmd(), output);
  }

  // bool NOTPERF_CMD = 10;
  if (this->notperf_cmd() != 0) {
    ::google::protobuf::internal::WireFormatLite::WriteBool(10, this->notperf_cmd(), output);
  }

  // uint32 MOT_STATUS = 11;
  if (this->mot_status() != 0) {
    ::google::protobuf::internal::WireFormatLite::WriteUInt32(11, this->mot_status(), output);
  }

  // bool DIR = 12;
  if (this->dir() != 0) {
    ::google::protobuf::internal::WireFormatLite::WriteBool(12, this->dir(), output);
  }

  // bool SW_EVN = 13;
  if (this->sw_evn() != 0) {
    ::google::protobuf::internal::WireFormatLite::WriteBool(13, this->sw_evn(), output);
  }

  // bool SW_F = 14;
  if (this->sw_f() != 0) {
    ::google::protobuf::internal::WireFormatLite::WriteBool(14, this->sw_f(), output);
  }

  // bool BUSY = 15;
  if (this->busy() != 0) {
    ::google::protobuf::internal::WireFormatLite::WriteBool(15, this->busy(), output);
  }

  // bool HiZ = 16;
  if (this->hiz() != 0) {
    ::google::protobuf::internal::WireFormatLite::WriteBool(16, this->hiz(), 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.StubMotorStatusResponse)
}

::google::protobuf::uint8* StubMotorStatusResponse::InternalSerializeWithCachedSizesToArray(
    bool deterministic, ::google::protobuf::uint8* target) const {
  (void)deterministic; // Unused
  // @@protoc_insertion_point(serialize_to_array_start:Tango.PMR.Stubs.StubMotorStatusResponse)
  ::google::protobuf::uint32 cached_has_bits = 0;
  (void) cached_has_bits;

  // uint32 Motor_ID = 1;
  if (this->motor_id() != 0) {
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->motor_id(), target);
  }

  // bool SCK_MOD = 2;
  if (this->sck_mod() != 0) {
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->sck_mod(), target);
  }

  // bool STEP_LOSS_B = 3;
  if (this->step_loss_b() != 0) {
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->step_loss_b(), target);
  }

  // bool STEP_LOSS_A = 4;
  if (this->step_loss_a() != 0) {
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(4, this->step_loss_a(), target);
  }

  // bool OCD = 5;
  if (this->ocd() != 0) {
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(5, this->ocd(), target);
  }

  // bool TH_SD = 6;
  if (this->th_sd() != 0) {
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(6, this->th_sd(), target);
  }

  // bool TH_WRN = 7;
  if (this->th_wrn() != 0) {
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(7, this->th_wrn(), target);
  }

  // bool UVLO = 8;
  if (this->uvlo() != 0) {
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(8, this->uvlo(), target);
  }

  // bool WRONG_CMD = 9;
  if (this->wrong_cmd() != 0) {
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(9, this->wrong_cmd(), target);
  }

  // bool NOTPERF_CMD = 10;
  if (this->notperf_cmd() != 0) {
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(10, this->notperf_cmd(), target);
  }

  // uint32 MOT_STATUS = 11;
  if (this->mot_status() != 0) {
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(11, this->mot_status(), target);
  }

  // bool DIR = 12;
  if (this->dir() != 0) {
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(12, this->dir(), target);
  }

  // bool SW_EVN = 13;
  if (this->sw_evn() != 0) {
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(13, this->sw_evn(), target);
  }

  // bool SW_F = 14;
  if (this->sw_f() != 0) {
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(14, this->sw_f(), target);
  }

  // bool BUSY = 15;
  if (this->busy() != 0) {
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(15, this->busy(), target);
  }

  // bool HiZ = 16;
  if (this->hiz() != 0) {
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(16, this->hiz(), 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.StubMotorStatusResponse)
  return target;
}

size_t StubMotorStatusResponse::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:Tango.PMR.Stubs.StubMotorStatusResponse)
  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 Motor_ID = 1;
  if (this->motor_id() != 0) {
    total_size += 1 +
      ::google::protobuf::internal::WireFormatLite::UInt32Size(
        this->motor_id());
  }

  // bool SCK_MOD = 2;
  if (this->sck_mod() != 0) {
    total_size += 1 + 1;
  }

  // bool STEP_LOSS_B = 3;
  if (this->step_loss_b() != 0) {
    total_size += 1 + 1;
  }

  // bool STEP_LOSS_A = 4;
  if (this->step_loss_a() != 0) {
    total_size += 1 + 1;
  }

  // bool OCD = 5;
  if (this->ocd() != 0) {
    total_size += 1 + 1;
  }

  // bool TH_SD = 6;
  if (this->th_sd() != 0) {
    total_size += 1 + 1;
  }

  // bool TH_WRN = 7;
  if (this->th_wrn() != 0) {
    total_size += 1 + 1;
  }

  // bool UVLO = 8;
  if (this->uvlo() != 0) {
    total_size += 1 + 1;
  }

  // bool WRONG_CMD = 9;
  if (this->wrong_cmd() != 0) {
    total_size += 1 + 1;
  }

  // uint32 MOT_STATUS = 11;
  if (this->mot_status() != 0) {
    total_size += 1 +
      ::google::protobuf::internal::WireFormatLite::UInt32Size(
        this->mot_status());
  }

  // bool NOTPERF_CMD = 10;
  if (this->notperf_cmd() != 0) {
    total_size += 1 + 1;
  }

  // bool DIR = 12;
  if (this->dir() != 0) {
    total_size += 1 + 1;
  }

  // bool SW_EVN = 13;
  if (this->sw_evn() != 0) {
    total_size += 1 + 1;
  }

  // bool SW_F = 14;
  if (this->sw_f() != 0) {
    total_size += 1 + 1;
  }

  // bool BUSY = 15;
  if (this->busy() != 0) {
    total_size += 1 + 1;
  }

  // bool HiZ = 16;
  if (this->hiz() != 0) {
    total_size += 2 + 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 StubMotorStatusResponse::MergeFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:Tango.PMR.Stubs.StubMotorStatusResponse)
  GOOGLE_DCHECK_NE(&from, this);
  const StubMotorStatusResponse* source =
      ::google::protobuf::internal::DynamicCastToGenerated<const StubMotorStatusResponse>(
          &from);
  if (source == NULL) {
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:Tango.PMR.Stubs.StubMotorStatusResponse)
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  } else {
  // @@protoc_insertion_point(generalized_merge_from_cast_success:Tango.PMR.Stubs.StubMotorStatusResponse)
    MergeFrom(*source);
  }
}

void StubMotorStatusResponse::MergeFrom(const StubMotorStatusResponse& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:Tango.PMR.Stubs.StubMotorStatusResponse)
  GOOGLE_DCHECK_NE(&from, this);
  _internal_metadata_.MergeFrom(from._internal_metadata_);
  ::google::protobuf::uint32 cached_has_bits = 0;
  (void) cached_has_bits;

  if (from.motor_id() != 0) {
    set_motor_id(from.motor_id());
  }
  if (from.sck_mod() != 0) {
    set_sck_mod(from.sck_mod());
  }
  if (from.step_loss_b() != 0) {
    set_step_loss_b(from.step_loss_b());
  }
  if (from.step_loss_a() != 0) {
    set_step_loss_a(from.step_loss_a());
  }
  if (from.ocd() != 0) {
    set_ocd(from.ocd());
  }
  if (from.th_sd() != 0) {
    set_th_sd(from.th_sd());
  }
  if (from.th_wrn() != 0) {
    set_th_wrn(from.th_wrn());
  }
  if (from.uvlo() != 0) {
    set_uvlo(from.uvlo());
  }
  if (from.wrong_cmd() != 0) {
    set_wrong_cmd(from.wrong_cmd());
  }
  if (from.mot_status() != 0) {
    set_mot_status(from.mot_status());
  }
  if (from.notperf_cmd() != 0) {
    set_notperf_cmd(from.notperf_cmd());
  }
  if (from.dir() != 0) {
    set_dir(from.dir());
  }
  if (from.sw_evn() != 0) {
    set_sw_evn(from.sw_evn());
  }
  if (from.sw_f() != 0) {
    set_sw_f(from.sw_f());
  }
  if (from.busy() != 0) {
    set_busy(from.busy());
  }
  if (from.hiz() != 0) {
    set_hiz(from.hiz());
  }
}

void StubMotorStatusResponse::CopyFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:Tango.PMR.Stubs.StubMotorStatusResponse)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

void StubMotorStatusResponse::CopyFrom(const StubMotorStatusResponse& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:Tango.PMR.Stubs.StubMotorStatusResponse)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

bool StubMotorStatusResponse::IsInitialized() const {
  return true;
}

void StubMotorStatusResponse::Swap(StubMotorStatusResponse* other) {
  if (other == this) return;
  InternalSwap(other);
}
void StubMotorStatusResponse::InternalSwap(StubMotorStatusResponse* other) {
  using std::swap;
  swap(motor_id_, other->motor_id_);
  swap(sck_mod_, other->sck_mod_);
  swap(step_loss_b_, other->step_loss_b_);
  swap(step_loss_a_, other->step_loss_a_);
  swap(ocd_, other->ocd_);
  swap(th_sd_, other->th_sd_);
  swap(th_wrn_, other->th_wrn_);
  swap(uvlo_, other->uvlo_);
  swap(wrong_cmd_, other->wrong_cmd_);
  swap(mot_status_, other->mot_status_);
  swap(notperf_cmd_, other->notperf_cmd_);
  swap(dir_, other->dir_);
  swap(sw_evn_, other->sw_evn_);
  swap(sw_f_, other->sw_f_);
  swap(busy_, other->busy_);
  swap(hiz_, other->hiz_);
  _internal_metadata_.Swap(&other->_internal_metadata_);
  swap(_cached_size_, other->_cached_size_);
}

::google::protobuf::Metadata StubMotorStatusResponse::GetMetadata() const {
  protobuf_StubMotorStatusResponse_2eproto::protobuf_AssignDescriptorsOnce();
  return protobuf_StubMotorStatusResponse_2eproto::file_level_metadata[kIndexInFileMessages];
}

#if PROTOBUF_INLINE_NOT_IN_HEADERS
// StubMotorStatusResponse

// uint32 Motor_ID = 1;
void StubMotorStatusResponse::clear_motor_id() {
  motor_id_ = 0u;
}
::google::protobuf::uint32 StubMotorStatusResponse::motor_id() const {
  // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubMotorStatusResponse.Motor_ID)
  return motor_id_;
}
void StubMotorStatusResponse::set_motor_id(::google::protobuf::uint32 value) {
  
  motor_id_ = value;
  // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubMotorStatusResponse.Motor_ID)
}

// bool SCK_MOD = 2;
void StubMotorStatusResponse::clear_sck_mod() {
  sck_mod_ = false;
}
bool StubMotorStatusResponse::sck_mod() const {
  // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubMotorStatusResponse.SCK_MOD)
  return sck_mod_;
}
void StubMotorStatusResponse::set_sck_mod(bool value) {
  
  sck_mod_ = value;
  // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubMotorStatusResponse.SCK_MOD)
}

// bool STEP_LOSS_B = 3;
void StubMotorStatusResponse::clear_step_loss_b() {
  step_loss_b_ = false;
}
bool StubMotorStatusResponse::step_loss_b() const {
  // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubMotorStatusResponse.STEP_LOSS_B)
  return step_loss_b_;
}
void StubMotorStatusResponse::set_step_loss_b(bool value) {
  
  step_loss_b_ = value;
  // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubMotorStatusResponse.STEP_LOSS_B)
}

// bool STEP_LOSS_A = 4;
void StubMotorStatusResponse::clear_step_loss_a() {
  step_loss_a_ = false;
}
bool StubMotorStatusResponse::step_loss_a() const {
  // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubMotorStatusResponse.STEP_LOSS_A)
  return step_loss_a_;
}
void StubMotorStatusResponse::set_step_loss_a(bool value) {
  
  step_loss_a_ = value;
  // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubMotorStatusResponse.STEP_LOSS_A)
}

// bool OCD = 5;
void StubMotorStatusResponse::clear_ocd() {
  ocd_ = false;
}
bool StubMotorStatusResponse::ocd() const {
  // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubMotorStatusResponse.OCD)
  return ocd_;
}
void StubMotorStatusResponse::set_ocd(bool value) {
  
  ocd_ = value;
  // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubMotorStatusResponse.OCD)
}

// bool TH_SD = 6;
void StubMotorStatusResponse::clear_th_sd() {
  th_sd_ = false;
}
bool StubMotorStatusResponse::th_sd() const {
  // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubMotorStatusResponse.TH_SD)
  return th_sd_;
}
void StubMotorStatusResponse::set_th_sd(bool value) {
  
  th_sd_ = value;
  // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubMotorStatusResponse.TH_SD)
}

// bool TH_WRN = 7;
void StubMotorStatusResponse::clear_th_wrn() {
  th_wrn_ = false;
}
bool StubMotorStatusResponse::th_wrn() const {
  // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubMotorStatusResponse.TH_WRN)
  return th_wrn_;
}
void StubMotorStatusResponse::set_th_wrn(bool value) {
  
  th_wrn_ = value;
  // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubMotorStatusResponse.TH_WRN)
}

// bool UVLO = 8;
void StubMotorStatusResponse::clear_uvlo() {
  uvlo_ = false;
}
bool StubMotorStatusResponse::uvlo() const {
  // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubMotorStatusResponse.UVLO)
  return uvlo_;
}
void StubMotorStatusResponse::set_uvlo(bool value) {
  
  uvlo_ = value;
  // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubMotorStatusResponse.UVLO)
}

// bool WRONG_CMD = 9;
void StubMotorStatusResponse::clear_wrong_cmd() {
  wrong_cmd_ = false;
}
bool StubMotorStatusResponse::wrong_cmd() const {
  // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubMotorStatusResponse.WRONG_CMD)
  return wrong_cmd_;
}
void StubMotorStatusResponse::set_wrong_cmd(bool value) {
  
  wrong_cmd_ = value;
  // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubMotorStatusResponse.WRONG_CMD)
}

// bool NOTPERF_CMD = 10;
void StubMotorStatusResponse::clear_notperf_cmd() {
  notperf_cmd_ = false;
}
bool StubMotorStatusResponse::notperf_cmd() const {
  // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubMotorStatusResponse.NOTPERF_CMD)
  return notperf_cmd_;
}
void StubMotorStatusResponse::set_notperf_cmd(bool value) {
  
  notperf_cmd_ = value;
  // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubMotorStatusResponse.NOTPERF_CMD)
}

// uint32 MOT_STATUS = 11;
void StubMotorStatusResponse::clear_mot_status() {
  mot_status_ = 0u;
}
::google::protobuf::uint32 StubMotorStatusResponse::mot_status() const {
  // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubMotorStatusResponse.MOT_STATUS)
  return mot_status_;
}
void StubMotorStatusResponse::set_mot_status(::google::protobuf::uint32 value) {
  
  mot_status_ = value;
  // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubMotorStatusResponse.MOT_STATUS)
}

// bool DIR = 12;
void StubMotorStatusResponse::clear_dir() {
  dir_ = false;
}
bool StubMotorStatusResponse::dir() const {
  // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubMotorStatusResponse.DIR)
  return dir_;
}
void StubMotorStatusResponse::set_dir(bool value) {
  
  dir_ = value;
  // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubMotorStatusResponse.DIR)
}

// bool SW_EVN = 13;
void StubMotorStatusResponse::clear_sw_evn() {
  sw_evn_ = false;
}
bool StubMotorStatusResponse::sw_evn() const {
  // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubMotorStatusResponse.SW_EVN)
  return sw_evn_;
}
void StubMotorStatusResponse::set_sw_evn(bool value) {
  
  sw_evn_ = value;
  // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubMotorStatusResponse.SW_EVN)
}

// bool SW_F = 14;
void StubMotorStatusResponse::clear_sw_f() {
  sw_f_ = false;
}
bool StubMotorStatusResponse::sw_f() const {
  // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubMotorStatusResponse.SW_F)
  return sw_f_;
}
void StubMotorStatusResponse::set_sw_f(bool value) {
  
  sw_f_ = value;
  // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubMotorStatusResponse.SW_F)
}

// bool BUSY = 15;
void StubMotorStatusResponse::clear_busy() {
  busy_ = false;
}
bool StubMotorStatusResponse::busy() const {
  // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubMotorStatusResponse.BUSY)
  return busy_;
}
void StubMotorStatusResponse::set_busy(bool value) {
  
  busy_ = value;
  // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubMotorStatusResponse.BUSY)
}

// bool HiZ = 16;
void StubMotorStatusResponse::clear_hiz() {
  hiz_ = false;
}
bool StubMotorStatusResponse::hiz() const {
  // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubMotorStatusResponse.HiZ)
  return hiz_;
}
void StubMotorStatusResponse::set_hiz(bool value) {
  
  hiz_ = value;
  // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubMotorStatusResponse.HiZ)
}

#endif  // PROTOBUF_INLINE_NOT_IN_HEADERS

// @@protoc_insertion_point(namespace_scope)

}  // namespace Stubs
}  // namespace PMR
}  // namespace Tango

// @@protoc_insertion_point(global_scope)