// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: hq/notify/TickerNotify.proto

#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
#include "hq/notify/TickerNotify.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* TickerNotify_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
  TickerNotify_reflection_ = NULL;

}  // namespace


void protobuf_AssignDesc_hq_2fnotify_2fTickerNotify_2eproto() GOOGLE_ATTRIBUTE_COLD;
void protobuf_AssignDesc_hq_2fnotify_2fTickerNotify_2eproto() {
  protobuf_AddDesc_hq_2fnotify_2fTickerNotify_2eproto();
  const ::google::protobuf::FileDescriptor* file =
    ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName(
      "hq/notify/TickerNotify.proto");
  GOOGLE_CHECK(file != NULL);
  TickerNotify_descriptor_ = file->message_type(0);
  static const int TickerNotify_offsets_[2] = {
    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TickerNotify, security_),
    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TickerNotify, ticker_),
  };
  TickerNotify_reflection_ =
    ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
      TickerNotify_descriptor_,
      TickerNotify::internal_default_instance(),
      TickerNotify_offsets_,
      -1,
      -1,
      -1,
      sizeof(TickerNotify),
      GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TickerNotify, _internal_metadata_));
}

namespace {

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

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

}  // namespace

void protobuf_ShutdownFile_hq_2fnotify_2fTickerNotify_2eproto() {
  TickerNotify_default_instance_.Shutdown();
  delete TickerNotify_reflection_;
}

void protobuf_InitDefaults_hq_2fnotify_2fTickerNotify_2eproto_impl() {
  GOOGLE_PROTOBUF_VERIFY_VERSION;

  ::protobuf_InitDefaults_hq_2fdto_2fSecurity_2eproto();
  ::protobuf_InitDefaults_hq_2fdto_2fTicker_2eproto();
  TickerNotify_default_instance_.DefaultConstruct();
  TickerNotify_default_instance_.get_mutable()->InitAsDefaultInstance();
}

GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_InitDefaults_hq_2fnotify_2fTickerNotify_2eproto_once_);
void protobuf_InitDefaults_hq_2fnotify_2fTickerNotify_2eproto() {
  ::google::protobuf::GoogleOnceInit(&protobuf_InitDefaults_hq_2fnotify_2fTickerNotify_2eproto_once_,
                 &protobuf_InitDefaults_hq_2fnotify_2fTickerNotify_2eproto_impl);
}
void protobuf_AddDesc_hq_2fnotify_2fTickerNotify_2eproto_impl() {
  GOOGLE_PROTOBUF_VERIFY_VERSION;

  protobuf_InitDefaults_hq_2fnotify_2fTickerNotify_2eproto();
  ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
    "\n\034hq/notify/TickerNotify.proto\032\025hq/dto/S"
    "ecurity.proto\032\023hq/dto/Ticker.proto\"D\n\014Ti"
    "ckerNotify\022\033\n\010security\030\001 \001(\0132\t.Security\022"
    "\027\n\006ticker\030\002 \001(\0132\007.TickerBC\n.com.huasheng"
    ".quant.open.sdk.protobuf.hq.notifyB\021Tick"
    "erNotifyProtob\006proto3", 221);
  ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
    "hq/notify/TickerNotify.proto", &protobuf_RegisterTypes);
  ::protobuf_AddDesc_hq_2fdto_2fSecurity_2eproto();
  ::protobuf_AddDesc_hq_2fdto_2fTicker_2eproto();
  ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_hq_2fnotify_2fTickerNotify_2eproto);
}

GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AddDesc_hq_2fnotify_2fTickerNotify_2eproto_once_);
void protobuf_AddDesc_hq_2fnotify_2fTickerNotify_2eproto() {
  ::google::protobuf::GoogleOnceInit(&protobuf_AddDesc_hq_2fnotify_2fTickerNotify_2eproto_once_,
                 &protobuf_AddDesc_hq_2fnotify_2fTickerNotify_2eproto_impl);
}
// Force AddDescriptors() to be called at static initialization time.
struct StaticDescriptorInitializer_hq_2fnotify_2fTickerNotify_2eproto {
  StaticDescriptorInitializer_hq_2fnotify_2fTickerNotify_2eproto() {
    protobuf_AddDesc_hq_2fnotify_2fTickerNotify_2eproto();
  }
} static_descriptor_initializer_hq_2fnotify_2fTickerNotify_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 TickerNotify::kSecurityFieldNumber;
const int TickerNotify::kTickerFieldNumber;
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900

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

void TickerNotify::InitAsDefaultInstance() {
  security_ = const_cast< ::Security*>(
      ::Security::internal_default_instance());
  ticker_ = const_cast< ::Ticker*>(
      ::Ticker::internal_default_instance());
}

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

void TickerNotify::SharedCtor() {
  security_ = NULL;
  ticker_ = NULL;
  _cached_size_ = 0;
}

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

void TickerNotify::SharedDtor() {
  if (this != &TickerNotify_default_instance_.get()) {
    delete security_;
    delete ticker_;
  }
}

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

const TickerNotify& TickerNotify::default_instance() {
  protobuf_InitDefaults_hq_2fnotify_2fTickerNotify_2eproto();
  return *internal_default_instance();
}

::google::protobuf::internal::ExplicitlyConstructed<TickerNotify> TickerNotify_default_instance_;

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

void TickerNotify::Clear() {
// @@protoc_insertion_point(message_clear_start:TickerNotify)
  if (GetArenaNoVirtual() == NULL && security_ != NULL) delete security_;
  security_ = NULL;
  if (GetArenaNoVirtual() == NULL && ticker_ != NULL) delete ticker_;
  ticker_ = NULL;
}

bool TickerNotify::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:TickerNotify)
  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 .Security security = 1;
      case 1: {
        if (tag == 10) {
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
               input, mutable_security()));
        } else {
          goto handle_unusual;
        }
        if (input->ExpectTag(18)) goto parse_ticker;
        break;
      }

      // optional .Ticker ticker = 2;
      case 2: {
        if (tag == 18) {
         parse_ticker:
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
               input, mutable_ticker()));
        } 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:TickerNotify)
  return true;
failure:
  // @@protoc_insertion_point(parse_failure:TickerNotify)
  return false;
#undef DO_
}

void TickerNotify::SerializeWithCachedSizes(
    ::google::protobuf::io::CodedOutputStream* output) const {
  // @@protoc_insertion_point(serialize_start:TickerNotify)
  // optional .Security security = 1;
  if (this->has_security()) {
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
      1, *this->security_, output);
  }

  // optional .Ticker ticker = 2;
  if (this->has_ticker()) {
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
      2, *this->ticker_, output);
  }

  // @@protoc_insertion_point(serialize_end:TickerNotify)
}

::google::protobuf::uint8* TickerNotify::InternalSerializeWithCachedSizesToArray(
    bool deterministic, ::google::protobuf::uint8* target) const {
  (void)deterministic; // Unused
  // @@protoc_insertion_point(serialize_to_array_start:TickerNotify)
  // optional .Security security = 1;
  if (this->has_security()) {
    target = ::google::protobuf::internal::WireFormatLite::
      InternalWriteMessageNoVirtualToArray(
        1, *this->security_, false, target);
  }

  // optional .Ticker ticker = 2;
  if (this->has_ticker()) {
    target = ::google::protobuf::internal::WireFormatLite::
      InternalWriteMessageNoVirtualToArray(
        2, *this->ticker_, false, target);
  }

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

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

  // optional .Security security = 1;
  if (this->has_security()) {
    total_size += 1 +
      ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
        *this->security_);
  }

  // optional .Ticker ticker = 2;
  if (this->has_ticker()) {
    total_size += 1 +
      ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
        *this->ticker_);
  }

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

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

void TickerNotify::UnsafeMergeFrom(const TickerNotify& from) {
  GOOGLE_DCHECK(&from != this);
  if (from.has_security()) {
    mutable_security()->::Security::MergeFrom(from.security());
  }
  if (from.has_ticker()) {
    mutable_ticker()->::Ticker::MergeFrom(from.ticker());
  }
}

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

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

bool TickerNotify::IsInitialized() const {

  return true;
}

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

::google::protobuf::Metadata TickerNotify::GetMetadata() const {
  protobuf_AssignDescriptorsOnce();
  ::google::protobuf::Metadata metadata;
  metadata.descriptor = TickerNotify_descriptor_;
  metadata.reflection = TickerNotify_reflection_;
  return metadata;
}

#if PROTOBUF_INLINE_NOT_IN_HEADERS
// TickerNotify

// optional .Security security = 1;
bool TickerNotify::has_security() const {
  return this != internal_default_instance() && security_ != NULL;
}
void TickerNotify::clear_security() {
  if (GetArenaNoVirtual() == NULL && security_ != NULL) delete security_;
  security_ = NULL;
}
const ::Security& TickerNotify::security() const {
  // @@protoc_insertion_point(field_get:TickerNotify.security)
  return security_ != NULL ? *security_
                         : *::Security::internal_default_instance();
}
::Security* TickerNotify::mutable_security() {
  
  if (security_ == NULL) {
    security_ = new ::Security;
  }
  // @@protoc_insertion_point(field_mutable:TickerNotify.security)
  return security_;
}
::Security* TickerNotify::release_security() {
  // @@protoc_insertion_point(field_release:TickerNotify.security)
  
  ::Security* temp = security_;
  security_ = NULL;
  return temp;
}
void TickerNotify::set_allocated_security(::Security* security) {
  delete security_;
  security_ = security;
  if (security) {
    
  } else {
    
  }
  // @@protoc_insertion_point(field_set_allocated:TickerNotify.security)
}

// optional .Ticker ticker = 2;
bool TickerNotify::has_ticker() const {
  return this != internal_default_instance() && ticker_ != NULL;
}
void TickerNotify::clear_ticker() {
  if (GetArenaNoVirtual() == NULL && ticker_ != NULL) delete ticker_;
  ticker_ = NULL;
}
const ::Ticker& TickerNotify::ticker() const {
  // @@protoc_insertion_point(field_get:TickerNotify.ticker)
  return ticker_ != NULL ? *ticker_
                         : *::Ticker::internal_default_instance();
}
::Ticker* TickerNotify::mutable_ticker() {
  
  if (ticker_ == NULL) {
    ticker_ = new ::Ticker;
  }
  // @@protoc_insertion_point(field_mutable:TickerNotify.ticker)
  return ticker_;
}
::Ticker* TickerNotify::release_ticker() {
  // @@protoc_insertion_point(field_release:TickerNotify.ticker)
  
  ::Ticker* temp = ticker_;
  ticker_ = NULL;
  return temp;
}
void TickerNotify::set_allocated_ticker(::Ticker* ticker) {
  delete ticker_;
  ticker_ = ticker;
  if (ticker) {
    
  } else {
    
  }
  // @@protoc_insertion_point(field_set_allocated:TickerNotify.ticker)
}

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

// @@protoc_insertion_point(namespace_scope)

// @@protoc_insertion_point(global_scope)
