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

#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
#include "common/init/InitConnectResp.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* InitConnectResp_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
  InitConnectResp_reflection_ = NULL;

}  // namespace


void protobuf_AssignDesc_common_2finit_2fInitConnectResp_2eproto() GOOGLE_ATTRIBUTE_COLD;
void protobuf_AssignDesc_common_2finit_2fInitConnectResp_2eproto() {
  protobuf_AddDesc_common_2finit_2fInitConnectResp_2eproto();
  const ::google::protobuf::FileDescriptor* file =
    ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName(
      "common/init/InitConnectResp.proto");
  GOOGLE_CHECK(file != NULL);
  InitConnectResp_descriptor_ = file->message_type(0);
  static const int InitConnectResp_offsets_[2] = {
    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InitConnectResp, encryptedkey_),
    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InitConnectResp, heartbeatintervalsec_),
  };
  InitConnectResp_reflection_ =
    ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
      InitConnectResp_descriptor_,
      InitConnectResp::internal_default_instance(),
      InitConnectResp_offsets_,
      -1,
      -1,
      -1,
      sizeof(InitConnectResp),
      GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InitConnectResp, _internal_metadata_));
}

namespace {

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

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

}  // namespace

void protobuf_ShutdownFile_common_2finit_2fInitConnectResp_2eproto() {
  InitConnectResp_default_instance_.Shutdown();
  delete InitConnectResp_reflection_;
}

void protobuf_InitDefaults_common_2finit_2fInitConnectResp_2eproto_impl() {
  GOOGLE_PROTOBUF_VERIFY_VERSION;

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

GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_InitDefaults_common_2finit_2fInitConnectResp_2eproto_once_);
void protobuf_InitDefaults_common_2finit_2fInitConnectResp_2eproto() {
  ::google::protobuf::GoogleOnceInit(&protobuf_InitDefaults_common_2finit_2fInitConnectResp_2eproto_once_,
                 &protobuf_InitDefaults_common_2finit_2fInitConnectResp_2eproto_impl);
}
void protobuf_AddDesc_common_2finit_2fInitConnectResp_2eproto_impl() {
  GOOGLE_PROTOBUF_VERIFY_VERSION;

  protobuf_InitDefaults_common_2finit_2fInitConnectResp_2eproto();
  ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
    "\n!common/init/InitConnectResp.proto\"E\n\017I"
    "nitConnectResp\022\024\n\014encryptedKey\030\001 \001(\t\022\034\n\024"
    "heartbeatIntervalSec\030\002 \001(\005BH\n0com.huashe"
    "ng.quant.open.sdk.protobuf.common.initB\024"
    "InitConnectRespProtob\006proto3", 188);
  ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
    "common/init/InitConnectResp.proto", &protobuf_RegisterTypes);
  ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_common_2finit_2fInitConnectResp_2eproto);
}

GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AddDesc_common_2finit_2fInitConnectResp_2eproto_once_);
void protobuf_AddDesc_common_2finit_2fInitConnectResp_2eproto() {
  ::google::protobuf::GoogleOnceInit(&protobuf_AddDesc_common_2finit_2fInitConnectResp_2eproto_once_,
                 &protobuf_AddDesc_common_2finit_2fInitConnectResp_2eproto_impl);
}
// Force AddDescriptors() to be called at static initialization time.
struct StaticDescriptorInitializer_common_2finit_2fInitConnectResp_2eproto {
  StaticDescriptorInitializer_common_2finit_2fInitConnectResp_2eproto() {
    protobuf_AddDesc_common_2finit_2fInitConnectResp_2eproto();
  }
} static_descriptor_initializer_common_2finit_2fInitConnectResp_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 InitConnectResp::kEncryptedKeyFieldNumber;
const int InitConnectResp::kHeartbeatIntervalSecFieldNumber;
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900

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

void InitConnectResp::InitAsDefaultInstance() {
}

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

void InitConnectResp::SharedCtor() {
  encryptedkey_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  heartbeatintervalsec_ = 0;
  _cached_size_ = 0;
}

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

void InitConnectResp::SharedDtor() {
  encryptedkey_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}

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

const InitConnectResp& InitConnectResp::default_instance() {
  protobuf_InitDefaults_common_2finit_2fInitConnectResp_2eproto();
  return *internal_default_instance();
}

::google::protobuf::internal::ExplicitlyConstructed<InitConnectResp> InitConnectResp_default_instance_;

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

void InitConnectResp::Clear() {
// @@protoc_insertion_point(message_clear_start:InitConnectResp)
  encryptedkey_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  heartbeatintervalsec_ = 0;
}

bool InitConnectResp::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:InitConnectResp)
  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 encryptedKey = 1;
      case 1: {
        if (tag == 10) {
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
                input, this->mutable_encryptedkey()));
          DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
            this->encryptedkey().data(), this->encryptedkey().length(),
            ::google::protobuf::internal::WireFormatLite::PARSE,
            "InitConnectResp.encryptedKey"));
        } else {
          goto handle_unusual;
        }
        if (input->ExpectTag(16)) goto parse_heartbeatIntervalSec;
        break;
      }

      // optional int32 heartbeatIntervalSec = 2;
      case 2: {
        if (tag == 16) {
         parse_heartbeatIntervalSec:

          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
                 input, &heartbeatintervalsec_)));
        } 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:InitConnectResp)
  return true;
failure:
  // @@protoc_insertion_point(parse_failure:InitConnectResp)
  return false;
#undef DO_
}

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

  // optional int32 heartbeatIntervalSec = 2;
  if (this->heartbeatintervalsec() != 0) {
    ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->heartbeatintervalsec(), output);
  }

  // @@protoc_insertion_point(serialize_end:InitConnectResp)
}

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

  // optional int32 heartbeatIntervalSec = 2;
  if (this->heartbeatintervalsec() != 0) {
    target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->heartbeatintervalsec(), target);
  }

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

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

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

  // optional int32 heartbeatIntervalSec = 2;
  if (this->heartbeatintervalsec() != 0) {
    total_size += 1 +
      ::google::protobuf::internal::WireFormatLite::Int32Size(
        this->heartbeatintervalsec());
  }

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

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

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

    encryptedkey_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.encryptedkey_);
  }
  if (from.heartbeatintervalsec() != 0) {
    set_heartbeatintervalsec(from.heartbeatintervalsec());
  }
}

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

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

bool InitConnectResp::IsInitialized() const {

  return true;
}

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

::google::protobuf::Metadata InitConnectResp::GetMetadata() const {
  protobuf_AssignDescriptorsOnce();
  ::google::protobuf::Metadata metadata;
  metadata.descriptor = InitConnectResp_descriptor_;
  metadata.reflection = InitConnectResp_reflection_;
  return metadata;
}

#if PROTOBUF_INLINE_NOT_IN_HEADERS
// InitConnectResp

// optional string encryptedKey = 1;
void InitConnectResp::clear_encryptedkey() {
  encryptedkey_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
const ::std::string& InitConnectResp::encryptedkey() const {
  // @@protoc_insertion_point(field_get:InitConnectResp.encryptedKey)
  return encryptedkey_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void InitConnectResp::set_encryptedkey(const ::std::string& value) {
  
  encryptedkey_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  // @@protoc_insertion_point(field_set:InitConnectResp.encryptedKey)
}
void InitConnectResp::set_encryptedkey(const char* value) {
  
  encryptedkey_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  // @@protoc_insertion_point(field_set_char:InitConnectResp.encryptedKey)
}
void InitConnectResp::set_encryptedkey(const char* value, size_t size) {
  
  encryptedkey_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
      ::std::string(reinterpret_cast<const char*>(value), size));
  // @@protoc_insertion_point(field_set_pointer:InitConnectResp.encryptedKey)
}
::std::string* InitConnectResp::mutable_encryptedkey() {
  
  // @@protoc_insertion_point(field_mutable:InitConnectResp.encryptedKey)
  return encryptedkey_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
::std::string* InitConnectResp::release_encryptedkey() {
  // @@protoc_insertion_point(field_release:InitConnectResp.encryptedKey)
  
  return encryptedkey_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void InitConnectResp::set_allocated_encryptedkey(::std::string* encryptedkey) {
  if (encryptedkey != NULL) {
    
  } else {
    
  }
  encryptedkey_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), encryptedkey);
  // @@protoc_insertion_point(field_set_allocated:InitConnectResp.encryptedKey)
}

// optional int32 heartbeatIntervalSec = 2;
void InitConnectResp::clear_heartbeatintervalsec() {
  heartbeatintervalsec_ = 0;
}
::google::protobuf::int32 InitConnectResp::heartbeatintervalsec() const {
  // @@protoc_insertion_point(field_get:InitConnectResp.heartbeatIntervalSec)
  return heartbeatintervalsec_;
}
void InitConnectResp::set_heartbeatintervalsec(::google::protobuf::int32 value) {
  
  heartbeatintervalsec_ = value;
  // @@protoc_insertion_point(field_set:InitConnectResp.heartbeatIntervalSec)
}

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

// @@protoc_insertion_point(namespace_scope)

// @@protoc_insertion_point(global_scope)
