// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: common/init/InitConnectReq.proto

#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
#include "common/init/InitConnectReq.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 {

const ::google::protobuf::Descriptor* InitConnectReq_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
  InitConnectReq_reflection_ = NULL;

}  // namespace


void protobuf_AssignDesc_common_2finit_2fInitConnectReq_2eproto() GOOGLE_ATTRIBUTE_COLD;
void protobuf_AssignDesc_common_2finit_2fInitConnectReq_2eproto() {
  protobuf_AddDesc_common_2finit_2fInitConnectReq_2eproto();
  const ::google::protobuf::FileDescriptor* file =
    ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName(
      "common/init/InitConnectReq.proto");
  GOOGLE_CHECK(file != NULL);
  InitConnectReq_descriptor_ = file->message_type(0);
  static const int InitConnectReq_offsets_[1] = {
    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InitConnectReq, deviceno_),
  };
  InitConnectReq_reflection_ =
    ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
      InitConnectReq_descriptor_,
      InitConnectReq::internal_default_instance(),
      InitConnectReq_offsets_,
      -1,
      -1,
      -1,
      sizeof(InitConnectReq),
      GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InitConnectReq, _internal_metadata_));
}

namespace {

GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_);
void protobuf_AssignDescriptorsOnce() {
  ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_,
                 &protobuf_AssignDesc_common_2finit_2fInitConnectReq_2eproto);
}

void protobuf_RegisterTypes(const ::std::string&) GOOGLE_ATTRIBUTE_COLD;
void protobuf_RegisterTypes(const ::std::string&) {
  protobuf_AssignDescriptorsOnce();
  ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
      InitConnectReq_descriptor_, InitConnectReq::internal_default_instance());
}

}  // namespace

void protobuf_ShutdownFile_common_2finit_2fInitConnectReq_2eproto() {
  InitConnectReq_default_instance_.Shutdown();
  delete InitConnectReq_reflection_;
}

void protobuf_InitDefaults_common_2finit_2fInitConnectReq_2eproto_impl() {
  GOOGLE_PROTOBUF_VERIFY_VERSION;

  ::google::protobuf::internal::GetEmptyString();
  InitConnectReq_default_instance_.DefaultConstruct();
  InitConnectReq_default_instance_.get_mutable()->InitAsDefaultInstance();
}

GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_InitDefaults_common_2finit_2fInitConnectReq_2eproto_once_);
void protobuf_InitDefaults_common_2finit_2fInitConnectReq_2eproto() {
  ::google::protobuf::GoogleOnceInit(&protobuf_InitDefaults_common_2finit_2fInitConnectReq_2eproto_once_,
                 &protobuf_InitDefaults_common_2finit_2fInitConnectReq_2eproto_impl);
}
void protobuf_AddDesc_common_2finit_2fInitConnectReq_2eproto_impl() {
  GOOGLE_PROTOBUF_VERIFY_VERSION;

  protobuf_InitDefaults_common_2finit_2fInitConnectReq_2eproto();
  ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
    "\n common/init/InitConnectReq.proto\"\"\n\016In"
    "itConnectReq\022\020\n\010deviceNo\030\001 \001(\tBG\n0com.hu"
    "asheng.quant.open.sdk.protobuf.common.in"
    "itB\023InitConnectReqProtob\006proto3", 151);
  ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
    "common/init/InitConnectReq.proto", &protobuf_RegisterTypes);
  ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_common_2finit_2fInitConnectReq_2eproto);
}

GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AddDesc_common_2finit_2fInitConnectReq_2eproto_once_);
void protobuf_AddDesc_common_2finit_2fInitConnectReq_2eproto() {
  ::google::protobuf::GoogleOnceInit(&protobuf_AddDesc_common_2finit_2fInitConnectReq_2eproto_once_,
                 &protobuf_AddDesc_common_2finit_2fInitConnectReq_2eproto_impl);
}
// Force AddDescriptors() to be called at static initialization time.
struct StaticDescriptorInitializer_common_2finit_2fInitConnectReq_2eproto {
  StaticDescriptorInitializer_common_2finit_2fInitConnectReq_2eproto() {
    protobuf_AddDesc_common_2finit_2fInitConnectReq_2eproto();
  }
} static_descriptor_initializer_common_2finit_2fInitConnectReq_2eproto_;

namespace {

static void MergeFromFail(int line) GOOGLE_ATTRIBUTE_COLD GOOGLE_ATTRIBUTE_NORETURN;
static void MergeFromFail(int line) {
  ::google::protobuf::internal::MergeFromFail(__FILE__, line);
}

}  // namespace


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

#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int InitConnectReq::kDeviceNoFieldNumber;
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900

InitConnectReq::InitConnectReq()
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  if (this != internal_default_instance()) protobuf_InitDefaults_common_2finit_2fInitConnectReq_2eproto();
  SharedCtor();
  // @@protoc_insertion_point(constructor:InitConnectReq)
}

void InitConnectReq::InitAsDefaultInstance() {
}

InitConnectReq::InitConnectReq(const InitConnectReq& from)
  : ::google::protobuf::Message(),
    _internal_metadata_(NULL) {
  SharedCtor();
  UnsafeMergeFrom(from);
  // @@protoc_insertion_point(copy_constructor:InitConnectReq)
}

void InitConnectReq::SharedCtor() {
  deviceno_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  _cached_size_ = 0;
}

InitConnectReq::~InitConnectReq() {
  // @@protoc_insertion_point(destructor:InitConnectReq)
  SharedDtor();
}

void InitConnectReq::SharedDtor() {
  deviceno_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}

void InitConnectReq::SetCachedSize(int size) const {
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  _cached_size_ = size;
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* InitConnectReq::descriptor() {
  protobuf_AssignDescriptorsOnce();
  return InitConnectReq_descriptor_;
}

const InitConnectReq& InitConnectReq::default_instance() {
  protobuf_InitDefaults_common_2finit_2fInitConnectReq_2eproto();
  return *internal_default_instance();
}

::google::protobuf::internal::ExplicitlyConstructed<InitConnectReq> InitConnectReq_default_instance_;

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

void InitConnectReq::Clear() {
// @@protoc_insertion_point(message_clear_start:InitConnectReq)
  deviceno_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}

bool InitConnectReq::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:InitConnectReq)
  for (;;) {
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
    tag = p.first;
    if (!p.second) goto handle_unusual;
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
      // optional string deviceNo = 1;
      case 1: {
        if (tag == 10) {
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
                input, this->mutable_deviceno()));
          DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
            this->deviceno().data(), this->deviceno().length(),
            ::google::protobuf::internal::WireFormatLite::PARSE,
            "InitConnectReq.deviceNo"));
        } else {
          goto handle_unusual;
        }
        if (input->ExpectAtEnd()) goto success;
        break;
      }

      default: {
      handle_unusual:
        if (tag == 0 ||
            ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
            ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
          goto success;
        }
        DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag));
        break;
      }
    }
  }
success:
  // @@protoc_insertion_point(parse_success:InitConnectReq)
  return true;
failure:
  // @@protoc_insertion_point(parse_failure:InitConnectReq)
  return false;
#undef DO_
}

void InitConnectReq::SerializeWithCachedSizes(
    ::google::protobuf::io::CodedOutputStream* output) const {
  // @@protoc_insertion_point(serialize_start:InitConnectReq)
  // optional string deviceNo = 1;
  if (this->deviceno().size() > 0) {
    ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
      this->deviceno().data(), this->deviceno().length(),
      ::google::protobuf::internal::WireFormatLite::SERIALIZE,
      "InitConnectReq.deviceNo");
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
      1, this->deviceno(), output);
  }

  // @@protoc_insertion_point(serialize_end:InitConnectReq)
}

::google::protobuf::uint8* InitConnectReq::InternalSerializeWithCachedSizesToArray(
    bool deterministic, ::google::protobuf::uint8* target) const {
  (void)deterministic; // Unused
  // @@protoc_insertion_point(serialize_to_array_start:InitConnectReq)
  // optional string deviceNo = 1;
  if (this->deviceno().size() > 0) {
    ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
      this->deviceno().data(), this->deviceno().length(),
      ::google::protobuf::internal::WireFormatLite::SERIALIZE,
      "InitConnectReq.deviceNo");
    target =
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
        1, this->deviceno(), target);
  }

  // @@protoc_insertion_point(serialize_to_array_end:InitConnectReq)
  return target;
}

size_t InitConnectReq::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:InitConnectReq)
  size_t total_size = 0;

  // optional string deviceNo = 1;
  if (this->deviceno().size() > 0) {
    total_size += 1 +
      ::google::protobuf::internal::WireFormatLite::StringSize(
        this->deviceno());
  }

  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 InitConnectReq::MergeFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:InitConnectReq)
  if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
  const InitConnectReq* source =
      ::google::protobuf::internal::DynamicCastToGenerated<const InitConnectReq>(
          &from);
  if (source == NULL) {
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:InitConnectReq)
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  } else {
  // @@protoc_insertion_point(generalized_merge_from_cast_success:InitConnectReq)
    UnsafeMergeFrom(*source);
  }
}

void InitConnectReq::MergeFrom(const InitConnectReq& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:InitConnectReq)
  if (GOOGLE_PREDICT_TRUE(&from != this)) {
    UnsafeMergeFrom(from);
  } else {
    MergeFromFail(__LINE__);
  }
}

void InitConnectReq::UnsafeMergeFrom(const InitConnectReq& from) {
  GOOGLE_DCHECK(&from != this);
  if (from.deviceno().size() > 0) {

    deviceno_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.deviceno_);
  }
}

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

void InitConnectReq::CopyFrom(const InitConnectReq& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:InitConnectReq)
  if (&from == this) return;
  Clear();
  UnsafeMergeFrom(from);
}

bool InitConnectReq::IsInitialized() const {

  return true;
}

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

::google::protobuf::Metadata InitConnectReq::GetMetadata() const {
  protobuf_AssignDescriptorsOnce();
  ::google::protobuf::Metadata metadata;
  metadata.descriptor = InitConnectReq_descriptor_;
  metadata.reflection = InitConnectReq_reflection_;
  return metadata;
}

#if PROTOBUF_INLINE_NOT_IN_HEADERS
// InitConnectReq

// optional string deviceNo = 1;
void InitConnectReq::clear_deviceno() {
  deviceno_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
const ::std::string& InitConnectReq::deviceno() const {
  // @@protoc_insertion_point(field_get:InitConnectReq.deviceNo)
  return deviceno_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void InitConnectReq::set_deviceno(const ::std::string& value) {
  
  deviceno_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  // @@protoc_insertion_point(field_set:InitConnectReq.deviceNo)
}
void InitConnectReq::set_deviceno(const char* value) {
  
  deviceno_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  // @@protoc_insertion_point(field_set_char:InitConnectReq.deviceNo)
}
void InitConnectReq::set_deviceno(const char* value, size_t size) {
  
  deviceno_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
      ::std::string(reinterpret_cast<const char*>(value), size));
  // @@protoc_insertion_point(field_set_pointer:InitConnectReq.deviceNo)
}
::std::string* InitConnectReq::mutable_deviceno() {
  
  // @@protoc_insertion_point(field_mutable:InitConnectReq.deviceNo)
  return deviceno_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
::std::string* InitConnectReq::release_deviceno() {
  // @@protoc_insertion_point(field_release:InitConnectReq.deviceNo)
  
  return deviceno_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void InitConnectReq::set_allocated_deviceno(::std::string* deviceno) {
  if (deviceno != NULL) {
    
  } else {
    
  }
  deviceno_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), deviceno);
  // @@protoc_insertion_point(field_set_allocated:InitConnectReq.deviceNo)
}

inline const InitConnectReq* InitConnectReq::internal_default_instance() {
  return &InitConnectReq_default_instance_.get();
}
#endif  // PROTOBUF_INLINE_NOT_IN_HEADERS

// @@protoc_insertion_point(namespace_scope)

// @@protoc_insertion_point(global_scope)
