aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubMotorStopRequest.pb.cc
blob: 3e148d007747597affee754225e9316170696be6 (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
3
using System.Reflection;
using System.Resources;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Windows;

[assembly: AssemblyTitle("Tango - Machine Studio Stubs Module")]
[assembly: AssemblyVersion("2.0.7.1633")]

[assembly: ComVisible(false)]

[assembly:ThemeInfo(
    ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
                             //(used if a resource is not found in the page,
                             // or application resource dictionaries)
    ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
                                      //(used if a resource is not found in the page,
                                      // app, or any theme specific resource dictionaries)
)]
='n254' href='#n254'>254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: StubMotorStopRequest.proto

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

namespace protobuf_StubMotorStopRequest_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(StubMotorStopRequest, _internal_metadata_),
  ~0u,  // no _extensions_
  ~0u,  // no _oneof_case_
  ~0u,  // no _weak_field_map_
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubMotorStopRequest, motor_id_),
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubMotorStopRequest, stop_cmd_),
};
static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  { 0, -1, sizeof(StubMotorStopRequest)},
};

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

namespace {

void protobuf_AssignDescriptors() {
  AddDescriptors();
  ::google::protobuf::MessageFactory* factory = NULL;
  AssignDescriptors(
      "StubMotorStopRequest.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();
  _StubMotorStopRequest_default_instance_._instance.DefaultConstruct();
  ::google::protobuf::internal::OnShutdownDestroyMessage(
      &_StubMotorStopRequest_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\032StubMotorStopRequest.proto\022\017Tango.PMR."
      "Stubs\":\n\024StubMotorStopRequest\022\020\n\010Motor_I"
      "D\030\001 \001(\r\022\020\n\010Stop_CMD\030\002 \001(\rB\033\n\031com.twine.t"
      "ango.pmr.stubsb\006proto3"
  };
  ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
      descriptor, 142);
  ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
    "StubMotorStopRequest.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_StubMotorStopRequest_2eproto


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

#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int StubMotorStopRequest::kMotorIDFieldNumber;
const int StubMotorStopRequest::kStopCMDFieldNumber;
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900

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

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

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

void StubMotorStopRequest::SharedDtor() {
}

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

const StubMotorStopRequest& StubMotorStopRequest::default_instance() {
  protobuf_StubMotorStopRequest_2eproto::InitDefaults();
  return *internal_default_instance();
}

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

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

bool StubMotorStopRequest::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.StubMotorStopRequest)
  for (;;) {
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
    tag = p.first;
    if (!p.second) goto handle_unusual;
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
      // uint32 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 Stop_CMD = 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, &stop_cmd_)));
        } 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.StubMotorStopRequest)
  return true;
failure:
  // @@protoc_insertion_point(parse_failure:Tango.PMR.Stubs.StubMotorStopRequest)
  return false;
#undef DO_
}

void StubMotorStopRequest::SerializeWithCachedSizes(
    ::google::protobuf::io::CodedOutputStream* output) const {
  // @@protoc_insertion_point(serialize_start:Tango.PMR.Stubs.StubMotorStopRequest)
  ::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 Stop_CMD = 2;
  if (this->stop_cmd() != 0) {
    ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->stop_cmd(), 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.StubMotorStopRequest)
}

::google::protobuf::uint8* StubMotorStopRequest::InternalSerializeWithCachedSizesToArray(
    bool deterministic, ::google::protobuf::uint8* target) const {
  (void)deterministic; // Unused
  // @@protoc_insertion_point(serialize_to_array_start:Tango.PMR.Stubs.StubMotorStopRequest)
  ::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 Stop_CMD = 2;
  if (this->stop_cmd() != 0) {
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->stop_cmd(), 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.StubMotorStopRequest)
  return target;
}

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

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

void StubMotorStopRequest::MergeFrom(const StubMotorStopRequest& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:Tango.PMR.Stubs.StubMotorStopRequest)
  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.stop_cmd() != 0) {
    set_stop_cmd(from.stop_cmd());
  }
}

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

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

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

void StubMotorStopRequest::Swap(StubMotorStopRequest* other) {
  if (other == this) return;
  InternalSwap(other);
}
void StubMotorStopRequest::InternalSwap(StubMotorStopRequest* other) {
  using std::swap;
  swap(motor_id_, other->motor_id_);
  swap(stop_cmd_, other->stop_cmd_);
  _internal_metadata_.Swap(&other->_internal_metadata_);
  swap(_cached_size_, other->_cached_size_);
}

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

#if PROTOBUF_INLINE_NOT_IN_HEADERS
// StubMotorStopRequest

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

// uint32 Stop_CMD = 2;
void StubMotorStopRequest::clear_stop_cmd() {
  stop_cmd_ = 0u;
}
::google::protobuf::uint32 StubMotorStopRequest::stop_cmd() const {
  // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubMotorStopRequest.Stop_CMD)
  return stop_cmd_;
}
void StubMotorStopRequest::set_stop_cmd(::google::protobuf::uint32 value) {
  
  stop_cmd_ = value;
  // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubMotorStopRequest.Stop_CMD)
}

#endif  // PROTOBUF_INLINE_NOT_IN_HEADERS

// @@protoc_insertion_point(namespace_scope)

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

// @@protoc_insertion_point(global_scope)