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

#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
#include "hq/request/GetOrderBookRequest.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* OrderBookRequest_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
  OrderBookRequest_reflection_ = NULL;

}  // namespace


void protobuf_AssignDesc_hq_2frequest_2fGetOrderBookRequest_2eproto() GOOGLE_ATTRIBUTE_COLD;
void protobuf_AssignDesc_hq_2frequest_2fGetOrderBookRequest_2eproto() {
  protobuf_AddDesc_hq_2frequest_2fGetOrderBookRequest_2eproto();
  const ::google::protobuf::FileDescriptor* file =
    ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName(
      "hq/request/GetOrderBookRequest.proto");
  GOOGLE_CHECK(file != NULL);
  OrderBookRequest_descriptor_ = file->message_type(0);
  static const int OrderBookRequest_offsets_[2] = {
    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OrderBookRequest, security_),
    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OrderBookRequest, mkttmtype_),
  };
  OrderBookRequest_reflection_ =
    ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
      OrderBookRequest_descriptor_,
      OrderBookRequest::internal_default_instance(),
      OrderBookRequest_offsets_,
      -1,
      -1,
      -1,
      sizeof(OrderBookRequest),
      GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OrderBookRequest, _internal_metadata_));
}

namespace {

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

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

}  // namespace

void protobuf_ShutdownFile_hq_2frequest_2fGetOrderBookRequest_2eproto() {
  OrderBookRequest_default_instance_.Shutdown();
  delete OrderBookRequest_reflection_;
}

void protobuf_InitDefaults_hq_2frequest_2fGetOrderBookRequest_2eproto_impl() {
  GOOGLE_PROTOBUF_VERIFY_VERSION;

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

GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_InitDefaults_hq_2frequest_2fGetOrderBookRequest_2eproto_once_);
void protobuf_InitDefaults_hq_2frequest_2fGetOrderBookRequest_2eproto() {
  ::google::protobuf::GoogleOnceInit(&protobuf_InitDefaults_hq_2frequest_2fGetOrderBookRequest_2eproto_once_,
                 &protobuf_InitDefaults_hq_2frequest_2fGetOrderBookRequest_2eproto_impl);
}
void protobuf_AddDesc_hq_2frequest_2fGetOrderBookRequest_2eproto_impl() {
  GOOGLE_PROTOBUF_VERIFY_VERSION;

  protobuf_InitDefaults_hq_2frequest_2fGetOrderBookRequest_2eproto();
  ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
    "\n$hq/request/GetOrderBookRequest.proto\032\025"
    "hq/dto/Security.proto\"B\n\020OrderBookReques"
    "t\022\033\n\010security\030\001 \001(\0132\t.Security\022\021\n\tmktTmT"
    "ype\030\002 \001(\005BH\n/com.huasheng.quant.open.sdk"
    ".protobuf.hq.requestB\025OrderBookRequestPr"
    "otob\006proto3", 211);
  ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
    "hq/request/GetOrderBookRequest.proto", &protobuf_RegisterTypes);
  ::protobuf_AddDesc_hq_2fdto_2fSecurity_2eproto();
  ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_hq_2frequest_2fGetOrderBookRequest_2eproto);
}

GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AddDesc_hq_2frequest_2fGetOrderBookRequest_2eproto_once_);
void protobuf_AddDesc_hq_2frequest_2fGetOrderBookRequest_2eproto() {
  ::google::protobuf::GoogleOnceInit(&protobuf_AddDesc_hq_2frequest_2fGetOrderBookRequest_2eproto_once_,
                 &protobuf_AddDesc_hq_2frequest_2fGetOrderBookRequest_2eproto_impl);
}
// Force AddDescriptors() to be called at static initialization time.
struct StaticDescriptorInitializer_hq_2frequest_2fGetOrderBookRequest_2eproto {
  StaticDescriptorInitializer_hq_2frequest_2fGetOrderBookRequest_2eproto() {
    protobuf_AddDesc_hq_2frequest_2fGetOrderBookRequest_2eproto();
  }
} static_descriptor_initializer_hq_2frequest_2fGetOrderBookRequest_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 OrderBookRequest::kSecurityFieldNumber;
const int OrderBookRequest::kMktTmTypeFieldNumber;
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900

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

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

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

void OrderBookRequest::SharedCtor() {
  security_ = NULL;
  mkttmtype_ = 0;
  _cached_size_ = 0;
}

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

void OrderBookRequest::SharedDtor() {
  if (this != &OrderBookRequest_default_instance_.get()) {
    delete security_;
  }
}

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

const OrderBookRequest& OrderBookRequest::default_instance() {
  protobuf_InitDefaults_hq_2frequest_2fGetOrderBookRequest_2eproto();
  return *internal_default_instance();
}

::google::protobuf::internal::ExplicitlyConstructed<OrderBookRequest> OrderBookRequest_default_instance_;

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

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

bool OrderBookRequest::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:OrderBookRequest)
  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(16)) goto parse_mktTmType;
        break;
      }

      // optional int32 mktTmType = 2;
      case 2: {
        if (tag == 16) {
         parse_mktTmType:

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

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

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

  // @@protoc_insertion_point(serialize_end:OrderBookRequest)
}

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

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

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

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

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

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

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

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

void OrderBookRequest::UnsafeMergeFrom(const OrderBookRequest& from) {
  GOOGLE_DCHECK(&from != this);
  if (from.has_security()) {
    mutable_security()->::Security::MergeFrom(from.security());
  }
  if (from.mkttmtype() != 0) {
    set_mkttmtype(from.mkttmtype());
  }
}

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

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

bool OrderBookRequest::IsInitialized() const {

  return true;
}

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

::google::protobuf::Metadata OrderBookRequest::GetMetadata() const {
  protobuf_AssignDescriptorsOnce();
  ::google::protobuf::Metadata metadata;
  metadata.descriptor = OrderBookRequest_descriptor_;
  metadata.reflection = OrderBookRequest_reflection_;
  return metadata;
}

#if PROTOBUF_INLINE_NOT_IN_HEADERS
// OrderBookRequest

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

// optional int32 mktTmType = 2;
void OrderBookRequest::clear_mkttmtype() {
  mkttmtype_ = 0;
}
::google::protobuf::int32 OrderBookRequest::mkttmtype() const {
  // @@protoc_insertion_point(field_get:OrderBookRequest.mktTmType)
  return mkttmtype_;
}
void OrderBookRequest::set_mkttmtype(::google::protobuf::int32 value) {
  
  mkttmtype_ = value;
  // @@protoc_insertion_point(field_set:OrderBookRequest.mktTmType)
}

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

// @@protoc_insertion_point(namespace_scope)

// @@protoc_insertion_point(global_scope)
