aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubMotorInitRequest.pb.cc
blob: 6a1aee28bcf0cf4251ff10a7872d2b05255a7b50 (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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119<
/* Generated by the protocol buffer compiler.  DO NOT EDIT! */
/* Generated from: HardwarePidControl.proto */

#ifndef PROTOBUF_C_HardwarePidControl_2eproto__INCLUDED
#define PROTOBUF_C_HardwarePidControl_2eproto__INCLUDED

#include <protobuf-c/protobuf-c.h>

PROTOBUF_C__BEGIN_DECLS

#if PROTOBUF_C_VERSION_NUMBER < 1003000
# error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers.
#elif 1003000 < PROTOBUF_C_MIN_COMPILER_VERSION
# error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c.
#endif

#include "HardwarePidControlType.pb-c.h"

typedef struct _HardwarePidControl HardwarePidControl;


/* --- enums --- */


/* --- messages --- */

struct  _HardwarePidControl
{
  ProtobufCMessage base;
  protobuf_c_boolean has_hardwarepidcontroltype;
  HardwarePidControlType hardwarepidcontroltype;
  protobuf_c_boolean has_outputproportionalpowerlimit;
  double outputproportionalpowerlimit;
  protobuf_c_boolean has_outputproportionalband;
  double outputproportionalband;
  protobuf_c_boolean has_integraltime;
  double integraltime;
  protobuf_c_boolean has_derivativetime;
  double derivativetime;
  protobuf_c_boolean has_sensorcorrectionadjustment;
  double sensorcorrectionadjustment;
  protobuf_c_boolean has_sensorminvalue;
  double sensorminvalue;
  protobuf_c_boolean has_sensormaxvalue;
  double sensormaxvalue;
  protobuf_c_boolean has_setpointramprateorsoftstartramp;
  double setpointramprateorsoftstartramp;
  protobuf_c_boolean has_setpointcontroloutputrate;
  double setpointcontroloutputrate;
  protobuf_c_boolean has_controloutputtype;
  double controloutputtype;
  protobuf_c_boolean has_ssrcontroloutputtype;
  double ssrcontroloutputtype;
  protobuf_c_boolean has_outputonoffhysteresisvalue;
  double outputonoffhysteresisvalue;
  protobuf_c_boolean has_processvariablesamplingrate;
  double processvariablesamplingrate;
  protobuf_c_boolean has_pvinputfilterfactormode;
  double pvinputfilterfactormode;
  protobuf_c_boolean has_outputproportionalcycletime;
  int32_t outputproportionalcycletime;
  protobuf_c_boolean has_acheatershalfcycletime;
  int32_t acheatershalfcycletime;
  protobuf_c_boolean has_proportionalgain;
  double proportionalgain;
};
#define HARDWARE_PID_CONTROL__INIT \
 { PROTOBUF_C_MESSAGE_INIT (&hardware_pid_control__descriptor) \
    , 0, HARDWARE_PID_CONTROL_TYPE__DryerHeater1000w, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }


/* HardwarePidControl methods */
void   hardware_pid_control__init
                     (HardwarePidControl         *message);
size_t hardware_pid_control__get_packed_size
                     (const HardwarePidControl   *message);
size_t hardware_pid_control__pack
                     (const HardwarePidControl   *message,
                      uint8_t             *out);
size_t hardware_pid_control__pack_to_buffer
                     (const HardwarePidControl   *message,
                      ProtobufCBuffer     *buffer);
HardwarePidControl *
       hardware_pid_control__unpack
                     (ProtobufCAllocator  *allocator,
                      size_t               len,
                      const uint8_t       *data);
void   hardware_pid_control__free_unpacked
                     (HardwarePidControl *message,
                      ProtobufCAllocator *allocator);
/* --- per-message closures --- */

typedef void (*HardwarePidControl_Closure)
                 (const HardwarePidControl *message,
                  void *closure_data);

/* --- services --- */


/* --- descriptors --- */

extern const ProtobufCMessageDescriptor hardware_pid_control__descriptor;

PROTOBUF_C__END_DECLS


#endif  /* PROTOBUF_C_HardwarePidControl_2eproto__INCLUDED */
44 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: StubMotorInitRequest.proto

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

namespace protobuf_StubMotorInitRequest_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(StubMotorInitRequest, _internal_metadata_),
  ~0u,  // no _extensions_
  ~0u,  // no _oneof_case_
  ~0u,  // no _weak_field_map_
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubMotorInitRequest, motor_id_),
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubMotorInitRequest, micro_steps_),
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubMotorInitRequest, set_micro_steps_),
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubMotorInitRequest, acc_),
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubMotorInitRequest, set_acc_),
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubMotorInitRequest, dec_),
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubMotorInitRequest, set_dec_),
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubMotorInitRequest, max_speed_),
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubMotorInitRequest, set_max_speed_),
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubMotorInitRequest, min_speed_lspd_opt_),
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubMotorInitRequest, set_min_speed_lspd_opt_),
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubMotorInitRequest, config_),
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubMotorInitRequest, kval_hold_),
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubMotorInitRequest, kval_run_),
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubMotorInitRequest, kval_acc_),
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubMotorInitRequest, kval_dec_),
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubMotorInitRequest, st_slp_),
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubMotorInitRequest, int_spd_),
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubMotorInitRequest, fn_slp_acc_),
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubMotorInitRequest, fn_slp_dec_),
};
static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  { 0, -1, sizeof(StubMotorInitRequest)},
};

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

namespace {

void protobuf_AssignDescriptors() {
  AddDescriptors();
  ::google::protobuf::MessageFactory* factory = NULL;
  AssignDescriptors(
      "StubMotorInitRequest.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();
  _StubMotorInitRequest_default_instance_._instance.DefaultConstruct();
  ::google::protobuf::internal::OnShutdownDestroyMessage(
      &_StubMotorInitRequest_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\032StubMotorInitRequest.proto\022\017Tango.PMR."
      "Stubs\"\232\003\n\024StubMotorInitRequest\022\020\n\010Motor_"
      "ID\030\001 \001(\r\022\023\n\013Micro_Steps\030\002 \001(\r\022\027\n\017Set_Mic"
      "ro_Steps\030\003 \001(\010\022\013\n\003ACC\030\004 \001(\r\022\017\n\007Set_ACC\030\005"
      " \001(\010\022\013\n\003DEC\030\006 \001(\r\022\017\n\007Set_Dec\030\007 \001(\010\022\021\n\tMa"
      "x_Speed\030\010 \001(\r\022\025\n\rSet_Max_Speed\030\t \001(\010\022\032\n\022"
      "Min_Speed_LSPD_OPT\030\n \001(\r\022\036\n\026Set_Min_Spee"
      "d_LSPD_OPT\030\013 \001(\010\022\016\n\006Config\030\014 \001(\r\022\021\n\tKVAL"
      "_HOLD\030\r \001(\r\022\020\n\010KVAL_RUN\030\016 \001(\r\022\020\n\010KVAL_AC"
      "C\030\017 \001(\r\022\020\n\010KVAL_DEC\030\020 \001(\r\022\016\n\006ST_SLP\030\021 \001("
      "\r\022\017\n\007INT_SPD\030\022 \001(\r\022\022\n\nFN_SLP_ACC\030\023 \001(\r\022\022"
      "\n\nFN_SLP_DEC\030\024 \001(\rB\033\n\031com.twine.tango.pm"
      "r.stubsb\006proto3"
  };
  ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
      descriptor, 495);
  ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
    "StubMotorInitRequest.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_StubMotorInitRequest_2eproto


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

#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int StubMotorInitRequest::kMotorIDFieldNumber;
const int StubMotorInitRequest::kMicroStepsFieldNumber;
const int StubMotorInitRequest::kSetMicroStepsFieldNumber;
const int StubMotorInitRequest::kACCFieldNumber;
const int StubMotorInitRequest::kSetACCFieldNumber;
const int StubMotorInitRequest::kDECFieldNumber;
const int StubMotorInitRequest::kSetDecFieldNumber;
const int StubMotorInitRequest::kMaxSpeedFieldNumber;
const int StubMotorInitRequest::kSetMaxSpeedFieldNumber;
const int StubMotorInitRequest::kMinSpeedLSPDOPTFieldNumber;
const int StubMotorInitRequest::kSetMinSpeedLSPDOPTFieldNumber;
const int StubMotorInitRequest::kConfigFieldNumber;
const int StubMotorInitRequest::kKVALHOLDFieldNumber;
const int StubMotorInitRequest::kKVALRUNFieldNumber;
const int StubMotorInitRequest::kKVALACCFieldNumber;
const int StubMotorInitRequest::kKVALDECFieldNumber;
const int StubMotorInitRequest::kSTSLPFieldNumber;
const int StubMotorInitRequest::kINTSPDFieldNumber;
const int StubMotorInitRequest::kFNSLPACCFieldNumber;
const int StubMotorInitRequest::kFNSLPDECFieldNumber;
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900

StubMotorInitRequest::StubMotorInitRequest()
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
    protobuf_StubMotorInitRequest_2eproto::InitDefaults();
  }
  SharedCtor();
  // @@protoc_insertion_point(constructor:Tango.PMR.Stubs.StubMotorInitRequest)
}
StubMotorInitRequest::StubMotorInitRequest(const StubMotorInitRequest& 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*>(&fn_slp_dec_) -
    reinterpret_cast<char*>(&motor_id_)) + sizeof(fn_slp_dec_));
  // @@protoc_insertion_point(copy_constructor:Tango.PMR.Stubs.StubMotorInitRequest)
}

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

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

void StubMotorInitRequest::SharedDtor() {
}

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

const StubMotorInitRequest& StubMotorInitRequest::default_instance() {
  protobuf_StubMotorInitRequest_2eproto::InitDefaults();
  return *internal_default_instance();
}

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

void StubMotorInitRequest::Clear() {
// @@protoc_insertion_point(message_clear_start:Tango.PMR.Stubs.StubMotorInitRequest)
  ::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*>(&fn_slp_dec_) -
      reinterpret_cast<char*>(&motor_id_)) + sizeof(fn_slp_dec_));
  _internal_metadata_.Clear();
}

bool StubMotorInitRequest::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.StubMotorInitRequest)
  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;
      }

      // uint32 Micro_Steps = 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, &micro_steps_)));
        } else {
          goto handle_unusual;
        }
        break;
      }

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

      // uint32 ACC = 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, &acc_)));
        } else {
          goto handle_unusual;
        }
        break;
      }

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

      // uint32 DEC = 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, &dec_)));
        } else {
          goto handle_unusual;
        }
        break;
      }

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

      // uint32 Max_Speed = 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, &max_speed_)));
        } else {
          goto handle_unusual;
        }
        break;
      }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      // uint32 ST_SLP = 17;
      case 17: {
        if (static_cast< ::google::protobuf::uint8>(tag) ==
            static_cast< ::google::protobuf::uint8>(136u /* 136 & 0xFF */)) {

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

      // uint32 INT_SPD = 18;
      case 18: {
        if (static_cast< ::google::protobuf::uint8>(tag) ==
            static_cast< ::google::protobuf::uint8>(144u /* 144 & 0xFF */)) {

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

      // uint32 FN_SLP_ACC = 19;
      case 19: {
        if (static_cast< ::google::protobuf::uint8>(tag) ==
            static_cast< ::google::protobuf::uint8>(152u /* 152 & 0xFF */)) {

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

      // uint32 FN_SLP_DEC = 20;
      case 20: {
        if (static_cast< ::google::protobuf::uint8>(tag) ==
            static_cast< ::google::protobuf::uint8>(160u /* 160 & 0xFF */)) {

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

void StubMotorInitRequest::SerializeWithCachedSizes(
    ::google::protobuf::io::CodedOutputStream* output) const {
  // @@protoc_insertion_point(serialize_start:Tango.PMR.Stubs.StubMotorInitRequest)
  ::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);
  }

  // uint32 Micro_Steps = 2;
  if (this->micro_steps() != 0) {
    ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->micro_steps(), output);
  }

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

  // uint32 ACC = 4;
  if (this->acc() != 0) {
    ::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->acc(), output);
  }

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

  // uint32 DEC = 6;
  if (this->dec() != 0) {
    ::google::protobuf::internal::WireFormatLite::WriteUInt32(6, this->dec(), output);
  }

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

  // uint32 Max_Speed = 8;
  if (this->max_speed() != 0) {
    ::google::protobuf::internal::WireFormatLite::WriteUInt32(8, this->max_speed(), output);
  }

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

  // uint32 Min_Speed_LSPD_OPT = 10;
  if (this->min_speed_lspd_opt() != 0) {
    ::google::protobuf::internal::WireFormatLite::WriteUInt32(10, this->min_speed_lspd_opt(), output);
  }

  // bool Set_Min_Speed_LSPD_OPT = 11;
  if (this->set_min_speed_lspd_opt() != 0) {
    ::google::protobuf::internal::WireFormatLite::WriteBool(11, this->set_min_speed_lspd_opt(), output);
  }

  // uint32 Config = 12;
  if (this->config() != 0) {
    ::google::protobuf::internal::WireFormatLite::WriteUInt32(12, this->config(), output);
  }

  // uint32 KVAL_HOLD = 13;
  if (this->kval_hold() != 0) {
    ::google::protobuf::internal::WireFormatLite::WriteUInt32(13, this->kval_hold(), output);
  }

  // uint32 KVAL_RUN = 14;
  if (this->kval_run() != 0) {
    ::google::protobuf::internal::WireFormatLite::WriteUInt32(14, this->kval_run(), output);
  }

  // uint32 KVAL_ACC = 15;
  if (this->kval_acc() != 0) {
    ::google::protobuf::internal::WireFormatLite::WriteUInt32(15, this->kval_acc(), output);
  }

  // uint32 KVAL_DEC = 16;
  if (this->kval_dec() != 0) {
    ::google::protobuf::internal::WireFormatLite::WriteUInt32(16, this->kval_dec(), output);
  }

  // uint32 ST_SLP = 17;
  if (this->st_slp() != 0) {
    ::google::protobuf::internal::WireFormatLite::WriteUInt32(17, this->st_slp(), output);
  }

  // uint32 INT_SPD = 18;
  if (this->int_spd() != 0) {
    ::google::protobuf::internal::WireFormatLite::WriteUInt32(18, this->int_spd(), output);
  }

  // uint32 FN_SLP_ACC = 19;
  if (this->fn_slp_acc() != 0) {
    ::google::protobuf::internal::WireFormatLite::WriteUInt32(19, this->fn_slp_acc(), output);
  }

  // uint32 FN_SLP_DEC = 20;
  if (this->fn_slp_dec() != 0) {
    ::google::protobuf::internal::WireFormatLite::WriteUInt32(20, this->fn_slp_dec(), 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.StubMotorInitRequest)
}

::google::protobuf::uint8* StubMotorInitRequest::InternalSerializeWithCachedSizesToArray(
    bool deterministic, ::google::protobuf::uint8* target) const {
  (void)deterministic; // Unused
  // @@protoc_insertion_point(serialize_to_array_start:Tango.PMR.Stubs.StubMotorInitRequest)
  ::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);
  }

  // uint32 Micro_Steps = 2;
  if (this->micro_steps() != 0) {
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->micro_steps(), target);
  }

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

  // uint32 ACC = 4;
  if (this->acc() != 0) {
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(4, this->acc(), target);
  }

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

  // uint32 DEC = 6;
  if (this->dec() != 0) {
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(6, this->dec(), target);
  }

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

  // uint32 Max_Speed = 8;
  if (this->max_speed() != 0) {
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(8, this->max_speed(), target);
  }

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

  // uint32 Min_Speed_LSPD_OPT = 10;
  if (this->min_speed_lspd_opt() != 0) {
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(10, this->min_speed_lspd_opt(), target);
  }

  // bool Set_Min_Speed_LSPD_OPT = 11;
  if (this->set_min_speed_lspd_opt() != 0) {
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(11, this->set_min_speed_lspd_opt(), target);
  }

  // uint32 Config = 12;
  if (this->config() != 0) {
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(12, this->config(), target);
  }

  // uint32 KVAL_HOLD = 13;
  if (this->kval_hold() != 0) {
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(13, this->kval_hold(), target);
  }

  // uint32 KVAL_RUN = 14;
  if (this->kval_run() != 0) {
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(14, this->kval_run(), target);
  }

  // uint32 KVAL_ACC = 15;
  if (this->kval_acc() != 0) {
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(15, this->kval_acc(), target);
  }

  // uint32 KVAL_DEC = 16;
  if (this->kval_dec() != 0) {
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(16, this->kval_dec(), target);
  }

  // uint32 ST_SLP = 17;
  if (this->st_slp() != 0) {
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(17, this->st_slp(), target);
  }

  // uint32 INT_SPD = 18;
  if (this->int_spd() != 0) {
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(18, this->int_spd(), target);
  }

  // uint32 FN_SLP_ACC = 19;
  if (this->fn_slp_acc() != 0) {
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(19, this->fn_slp_acc(), target);
  }

  // uint32 FN_SLP_DEC = 20;
  if (this->fn_slp_dec() != 0) {
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(20, this->fn_slp_dec(), 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.StubMotorInitRequest)
  return target;
}

size_t StubMotorInitRequest::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:Tango.PMR.Stubs.StubMotorInitRequest)
  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());
  }

  // uint32 Micro_Steps = 2;
  if (this->micro_steps() != 0) {
    total_size += 1 +
      ::google::protobuf::internal::WireFormatLite::UInt32Size(
        this->micro_steps());
  }

  // uint32 ACC = 4;
  if (this->acc() != 0) {
    total_size += 1 +
      ::google::protobuf::internal::WireFormatLite::UInt32Size(
        this->acc());
  }

  // uint32 DEC = 6;
  if (this->dec() != 0) {
    total_size += 1 +
      ::google::protobuf::internal::WireFormatLite::UInt32Size(
        this->dec());
  }

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

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

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

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

  // uint32 Max_Speed = 8;
  if (this->max_speed() != 0) {
    total_size += 1 +
      ::google::protobuf::internal::WireFormatLite::UInt32Size(
        this->max_speed());
  }

  // uint32 Min_Speed_LSPD_OPT = 10;
  if (this->min_speed_lspd_opt() != 0) {
    total_size += 1 +
      ::google::protobuf::internal::WireFormatLite::UInt32Size(
        this->min_speed_lspd_opt());
  }

  // bool Set_Min_Speed_LSPD_OPT = 11;
  if (this->set_min_speed_lspd_opt() != 0) {
    total_size += 1 + 1;
  }

  // uint32 Config = 12;
  if (this->config() != 0) {
    total_size += 1 +
      ::google::protobuf::internal::WireFormatLite::UInt32Size(
        this->config());
  }

  // uint32 KVAL_HOLD = 13;
  if (this->kval_hold() != 0) {
    total_size += 1 +
      ::google::protobuf::internal::WireFormatLite::UInt32Size(
        this->kval_hold());
  }

  // uint32 KVAL_RUN = 14;
  if (this->kval_run() != 0) {
    total_size += 1 +
      ::google::protobuf::internal::WireFormatLite::UInt32Size(
        this->kval_run());
  }

  // uint32 KVAL_ACC = 15;
  if (this->kval_acc() != 0) {
    total_size += 1 +
      ::google::protobuf::internal::WireFormatLite::UInt32Size(
        this->kval_acc());
  }

  // uint32 KVAL_DEC = 16;
  if (this->kval_dec() != 0) {
    total_size += 2 +
      ::google::protobuf::internal::WireFormatLite::UInt32Size(
        this->kval_dec());
  }

  // uint32 ST_SLP = 17;
  if (this->st_slp() != 0) {
    total_size += 2 +
      ::google::protobuf::internal::WireFormatLite::UInt32Size(
        this->st_slp());
  }

  // uint32 INT_SPD = 18;
  if (this->int_spd() != 0) {
    total_size += 2 +
      ::google::protobuf::internal::WireFormatLite::UInt32Size(
        this->int_spd());
  }

  // uint32 FN_SLP_ACC = 19;
  if (this->fn_slp_acc() != 0) {
    total_size += 2 +
      ::google::protobuf::internal::WireFormatLite::UInt32Size(
        this->fn_slp_acc());
  }

  // uint32 FN_SLP_DEC = 20;
  if (this->fn_slp_dec() != 0) {
    total_size += 2 +
      ::google::protobuf::internal::WireFormatLite::UInt32Size(
        this->fn_slp_dec());
  }

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

void StubMotorInitRequest::MergeFrom(const StubMotorInitRequest& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:Tango.PMR.Stubs.StubMotorInitRequest)
  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.micro_steps() != 0) {
    set_micro_steps(from.micro_steps());
  }
  if (from.acc() != 0) {
    set_acc(from.acc());
  }
  if (from.dec() != 0) {
    set_dec(from.dec());
  }
  if (from.set_micro_steps() != 0) {
    set_set_micro_steps(from.set_micro_steps());
  }
  if (from.set_acc() != 0) {
    set_set_acc(from.set_acc());
  }
  if (from.set_dec() != 0) {
    set_set_dec(from.set_dec());
  }
  if (from.set_max_speed() != 0) {
    set_set_max_speed(from.set_max_speed());
  }
  if (from.max_speed() != 0) {
    set_max_speed(from.max_speed());
  }
  if (from.min_speed_lspd_opt() != 0) {
    set_min_speed_lspd_opt(from.min_speed_lspd_opt());
  }
  if (from.set_min_speed_lspd_opt() != 0) {
    set_set_min_speed_lspd_opt(from.set_min_speed_lspd_opt());
  }
  if (from.config() != 0) {
    set_config(from.config());
  }
  if (from.kval_hold() != 0) {
    set_kval_hold(from.kval_hold());
  }
  if (from.kval_run() != 0) {
    set_kval_run(from.kval_run());
  }
  if (from.kval_acc() != 0) {
    set_kval_acc(from.kval_acc());
  }
  if (from.kval_dec() != 0) {
    set_kval_dec(from.kval_dec());
  }
  if (from.st_slp() != 0) {
    set_st_slp(from.st_slp());
  }
  if (from.int_spd() != 0) {
    set_int_spd(from.int_spd());
  }
  if (from.fn_slp_acc() != 0) {
    set_fn_slp_acc(from.fn_slp_acc());
  }
  if (from.fn_slp_dec() != 0) {
    set_fn_slp_dec(from.fn_slp_dec());
  }
}

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

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

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

void StubMotorInitRequest::Swap(StubMotorInitRequest* other) {
  if (other == this) return;
  InternalSwap(other);
}
void StubMotorInitRequest::InternalSwap(StubMotorInitRequest* other) {
  using std::swap;
  swap(motor_id_, other->motor_id_);
  swap(micro_steps_, other->micro_steps_);
  swap(acc_, other->acc_);
  swap(dec_, other->dec_);
  swap(set_micro_steps_, other->set_micro_steps_);
  swap(set_acc_, other->set_acc_);
  swap(set_dec_, other->set_dec_);
  swap(set_max_speed_, other->set_max_speed_);
  swap(max_speed_, other->max_speed_);
  swap(min_speed_lspd_opt_, other->min_speed_lspd_opt_);
  swap(set_min_speed_lspd_opt_, other->set_min_speed_lspd_opt_);
  swap(config_, other->config_);
  swap(kval_hold_, other->kval_hold_);
  swap(kval_run_, other->kval_run_);
  swap(kval_acc_, other->kval_acc_);
  swap(kval_dec_, other->kval_dec_);
  swap(st_slp_, other->st_slp_);
  swap(int_spd_, other->int_spd_);
  swap(fn_slp_acc_, other->fn_slp_acc_);
  swap(fn_slp_dec_, other->fn_slp_dec_);
  _internal_metadata_.Swap(&other->_internal_metadata_);
  swap(_cached_size_, other->_cached_size_);
}

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

#if PROTOBUF_INLINE_NOT_IN_HEADERS
// StubMotorInitRequest

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

// uint32 Micro_Steps = 2;
void StubMotorInitRequest::clear_micro_steps() {
  micro_steps_ = 0u;
}
::google::protobuf::uint32 StubMotorInitRequest::micro_steps() const {
  // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubMotorInitRequest.Micro_Steps)
  return micro_steps_;
}
void StubMotorInitRequest::set_micro_steps(::google::protobuf::uint32 value) {
  
  micro_steps_ = value;
  // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubMotorInitRequest.Micro_Steps)
}

// bool Set_Micro_Steps = 3;
void StubMotorInitRequest::clear_set_micro_steps() {
  set_micro_steps_ = false;
}
bool StubMotorInitRequest::set_micro_steps() const {
  // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubMotorInitRequest.Set_Micro_Steps)
  return set_micro_steps_;
}
void StubMotorInitRequest::set_set_micro_steps(bool value) {
  
  set_micro_steps_ = value;
  // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubMotorInitRequest.Set_Micro_Steps)
}

// uint32 ACC = 4;
void StubMotorInitRequest::clear_acc() {
  acc_ = 0u;
}
::google::protobuf::uint32 StubMotorInitRequest::acc() const {
  // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubMotorInitRequest.ACC)
  return acc_;
}
void StubMotorInitRequest::set_acc(::google::protobuf::uint32 value) {
  
  acc_ = value;
  // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubMotorInitRequest.ACC)
}

// bool Set_ACC = 5;
void StubMotorInitRequest::clear_set_acc() {
  set_acc_ = false;
}
bool StubMotorInitRequest::set_acc() const {
  // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubMotorInitRequest.Set_ACC)
  return set_acc_;
}
void StubMotorInitRequest::set_set_acc(bool value) {
  
  set_acc_ = value;
  // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubMotorInitRequest.Set_ACC)
}

// uint32 DEC = 6;
void StubMotorInitRequest::clear_dec() {
  dec_ = 0u;
}
::google::protobuf::uint32 StubMotorInitRequest::dec() const {
  // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubMotorInitRequest.DEC)
  return dec_;
}
void StubMotorInitRequest::set_dec(::google::protobuf::uint32 value) {
  
  dec_ = value;
  // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubMotorInitRequest.DEC)
}

// bool Set_Dec = 7;
void StubMotorInitRequest::clear_set_dec() {
  set_dec_ = false;
}
bool StubMotorInitRequest::set_dec() const {
  // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubMotorInitRequest.Set_Dec)
  return set_dec_;
}
void StubMotorInitRequest::set_set_dec(bool value) {
  
  set_dec_ = value;
  // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubMotorInitRequest.Set_Dec)
}

// uint32 Max_Speed = 8;
void StubMotorInitRequest::clear_max_speed() {
  max_speed_ = 0u;
}
::google::protobuf::uint32 StubMotorInitRequest::max_speed() const {
  // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubMotorInitRequest.Max_Speed)
  return max_speed_;
}
void StubMotorInitRequest::set_max_speed(::google::protobuf::uint32 value) {
  
  max_speed_ = value;
  // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubMotorInitRequest.Max_Speed)
}

// bool Set_Max_Speed = 9;
void StubMotorInitRequest::clear_set_max_speed() {
  set_max_speed_ = false;
}
bool StubMotorInitRequest::set_max_speed() const {
  // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubMotorInitRequest.Set_Max_Speed)
  return set_max_speed_;
}
void StubMotorInitRequest::set_set_max_speed(bool value) {
  
  set_max_speed_ = value;
  // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubMotorInitRequest.Set_Max_Speed)
}

// uint32 Min_Speed_LSPD_OPT = 10;
void StubMotorInitRequest::clear_min_speed_lspd_opt() {
  min_speed_lspd_opt_ = 0u;
}
::google::protobuf::uint32 StubMotorInitRequest::min_speed_lspd_opt() const {
  // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubMotorInitRequest.Min_Speed_LSPD_OPT)
  return min_speed_lspd_opt_;
}
void StubMotorInitRequest::set_min_speed_lspd_opt(::google::protobuf::uint32 value) {
  
  min_speed_lspd_opt_ = value;
  // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubMotorInitRequest.Min_Speed_LSPD_OPT)
}

// bool Set_Min_Speed_LSPD_OPT = 11;
void StubMotorInitRequest::clear_set_min_speed_lspd_opt() {
  set_min_speed_lspd_opt_ = false;
}
bool StubMotorInitRequest::set_min_speed_lspd_opt() const {
  // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubMotorInitRequest.Set_Min_Speed_LSPD_OPT)
  return set_min_speed_lspd_opt_;
}
void StubMotorInitRequest::set_set_min_speed_lspd_opt(bool value) {
  
  set_min_speed_lspd_opt_ = value;
  // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubMotorInitRequest.Set_Min_Speed_LSPD_OPT)
}

// uint32 Config = 12;
void StubMotorInitRequest::clear_config() {
  config_ = 0u;
}
::google::protobuf::uint32 StubMotorInitRequest::config() const {
  // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubMotorInitRequest.Config)
  return config_;
}
void StubMotorInitRequest::set_config(::google::protobuf::uint32 value) {
  
  config_ = value;
  // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubMotorInitRequest.Config)
}

// uint32 KVAL_HOLD = 13;
void StubMotorInitRequest::clear_kval_hold() {
  kval_hold_ = 0u;
}
::google::protobuf::uint32 StubMotorInitRequest::kval_hold() const {
  // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubMotorInitRequest.KVAL_HOLD)
  return kval_hold_;
}
void StubMotorInitRequest::set_kval_hold(::google::protobuf::uint32 value) {
  
  kval_hold_ = value;
  // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubMotorInitRequest.KVAL_HOLD)
}

// uint32 KVAL_RUN = 14;
void StubMotorInitRequest::clear_kval_run() {
  kval_run_ = 0u;
}
::google::protobuf::uint32 StubMotorInitRequest::kval_run() const {
  // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubMotorInitRequest.KVAL_RUN)
  return kval_run_;
}
void StubMotorInitRequest::set_kval_run(::google::protobuf::uint32 value) {
  
  kval_run_ = value;
  // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubMotorInitRequest.KVAL_RUN)
}

// uint32 KVAL_ACC = 15;
void StubMotorInitRequest::clear_kval_acc() {
  kval_acc_ = 0u;
}
::google::protobuf::uint32 StubMotorInitRequest::kval_acc() const {
  // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubMotorInitRequest.KVAL_ACC)
  return kval_acc_;
}
void StubMotorInitRequest::set_kval_acc(::google::protobuf::uint32 value) {
  
  kval_acc_ = value;
  // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubMotorInitRequest.KVAL_ACC)
}

// uint32 KVAL_DEC = 16;
void StubMotorInitRequest::clear_kval_dec() {
  kval_dec_ = 0u;
}
::google::protobuf::uint32 StubMotorInitRequest::kval_dec() const {
  // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubMotorInitRequest.KVAL_DEC)
  return kval_dec_;
}
void StubMotorInitRequest::set_kval_dec(::google::protobuf::uint32 value) {
  
  kval_dec_ = value;
  // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubMotorInitRequest.KVAL_DEC)
}

// uint32 ST_SLP = 17;
void StubMotorInitRequest::clear_st_slp() {
  st_slp_ = 0u;
}
::google::protobuf::uint32 StubMotorInitRequest::st_slp() const {
  // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubMotorInitRequest.ST_SLP)
  return st_slp_;
}
void StubMotorInitRequest::set_st_slp(::google::protobuf::uint32 value) {
  
  st_slp_ = value;
  // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubMotorInitRequest.ST_SLP)
}

// uint32 INT_SPD = 18;
void StubMotorInitRequest::clear_int_spd() {
  int_spd_ = 0u;
}
::google::protobuf::uint32 StubMotorInitRequest::int_spd() const {
  // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubMotorInitRequest.INT_SPD)
  return int_spd_;
}
void StubMotorInitRequest::set_int_spd(::google::protobuf::uint32 value) {
  
  int_spd_ = value;
  // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubMotorInitRequest.INT_SPD)
}

// uint32 FN_SLP_ACC = 19;
void StubMotorInitRequest::clear_fn_slp_acc() {
  fn_slp_acc_ = 0u;
}
::google::protobuf::uint32 StubMotorInitRequest::fn_slp_acc() const {
  // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubMotorInitRequest.FN_SLP_ACC)
  return fn_slp_acc_;
}
void StubMotorInitRequest::set_fn_slp_acc(::google::protobuf::uint32 value) {
  
  fn_slp_acc_ = value;
  // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubMotorInitRequest.FN_SLP_ACC)
}

// uint32 FN_SLP_DEC = 20;
void StubMotorInitRequest::clear_fn_slp_dec() {
  fn_slp_dec_ = 0u;
}
::google::protobuf::uint32 StubMotorInitRequest::fn_slp_dec() const {
  // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubMotorInitRequest.FN_SLP_DEC)
  return fn_slp_dec_;
}
void StubMotorInitRequest::set_fn_slp_dec(::google::protobuf::uint32 value) {
  
  fn_slp_dec_ = value;
  // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubMotorInitRequest.FN_SLP_DEC)
}

#endif  // PROTOBUF_INLINE_NOT_IN_HEADERS

// @@protoc_insertion_point(namespace_scope)

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

// @@protoc_insertion_point(global_scope)