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

#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
#include "trade/request/TradeQueryHistoryDeliverListRequest.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* TradeQueryHistoryDeliverListRequest_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
  TradeQueryHistoryDeliverListRequest_reflection_ = NULL;

}  // namespace


void protobuf_AssignDesc_trade_2frequest_2fTradeQueryHistoryDeliverListRequest_2eproto() GOOGLE_ATTRIBUTE_COLD;
void protobuf_AssignDesc_trade_2frequest_2fTradeQueryHistoryDeliverListRequest_2eproto() {
  protobuf_AddDesc_trade_2frequest_2fTradeQueryHistoryDeliverListRequest_2eproto();
  const ::google::protobuf::FileDescriptor* file =
    ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName(
      "trade/request/TradeQueryHistoryDeliverListRequest.proto");
  GOOGLE_CHECK(file != NULL);
  TradeQueryHistoryDeliverListRequest_descriptor_ = file->message_type(0);
  static const int TradeQueryHistoryDeliverListRequest_offsets_[5] = {
    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TradeQueryHistoryDeliverListRequest, exchangetype_),
    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TradeQueryHistoryDeliverListRequest, queryparamstr_),
    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TradeQueryHistoryDeliverListRequest, querycount_),
    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TradeQueryHistoryDeliverListRequest, startdate_),
    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TradeQueryHistoryDeliverListRequest, enddate_),
  };
  TradeQueryHistoryDeliverListRequest_reflection_ =
    ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
      TradeQueryHistoryDeliverListRequest_descriptor_,
      TradeQueryHistoryDeliverListRequest::internal_default_instance(),
      TradeQueryHistoryDeliverListRequest_offsets_,
      -1,
      -1,
      -1,
      sizeof(TradeQueryHistoryDeliverListRequest),
      GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TradeQueryHistoryDeliverListRequest, _internal_metadata_));
}

namespace {

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

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

}  // namespace

void protobuf_ShutdownFile_trade_2frequest_2fTradeQueryHistoryDeliverListRequest_2eproto() {
  TradeQueryHistoryDeliverListRequest_default_instance_.Shutdown();
  delete TradeQueryHistoryDeliverListRequest_reflection_;
}

void protobuf_InitDefaults_trade_2frequest_2fTradeQueryHistoryDeliverListRequest_2eproto_impl() {
  GOOGLE_PROTOBUF_VERIFY_VERSION;

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

GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_InitDefaults_trade_2frequest_2fTradeQueryHistoryDeliverListRequest_2eproto_once_);
void protobuf_InitDefaults_trade_2frequest_2fTradeQueryHistoryDeliverListRequest_2eproto() {
  ::google::protobuf::GoogleOnceInit(&protobuf_InitDefaults_trade_2frequest_2fTradeQueryHistoryDeliverListRequest_2eproto_once_,
                 &protobuf_InitDefaults_trade_2frequest_2fTradeQueryHistoryDeliverListRequest_2eproto_impl);
}
void protobuf_AddDesc_trade_2frequest_2fTradeQueryHistoryDeliverListRequest_2eproto_impl() {
  GOOGLE_PROTOBUF_VERIFY_VERSION;

  protobuf_InitDefaults_trade_2frequest_2fTradeQueryHistoryDeliverListRequest_2eproto();
  ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
    "\n7trade/request/TradeQueryHistoryDeliver"
    "ListRequest.proto\"\212\001\n#TradeQueryHistoryD"
    "eliverListRequest\022\024\n\014exchangeType\030\001 \001(\t\022"
    "\025\n\rqueryParamStr\030\002 \001(\t\022\022\n\nqueryCount\030\003 \001"
    "(\005\022\021\n\tstartDate\030\004 \001(\t\022\017\n\007endDate\030\005 \001(\tB^"
    "\n2com.huasheng.quant.open.sdk.protobuf.t"
    "rade.requestB(TradeQueryHistoryDeliverLi"
    "stRequestProtob\006proto3", 302);
  ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
    "trade/request/TradeQueryHistoryDeliverListRequest.proto", &protobuf_RegisterTypes);
  ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_trade_2frequest_2fTradeQueryHistoryDeliverListRequest_2eproto);
}

GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AddDesc_trade_2frequest_2fTradeQueryHistoryDeliverListRequest_2eproto_once_);
void protobuf_AddDesc_trade_2frequest_2fTradeQueryHistoryDeliverListRequest_2eproto() {
  ::google::protobuf::GoogleOnceInit(&protobuf_AddDesc_trade_2frequest_2fTradeQueryHistoryDeliverListRequest_2eproto_once_,
                 &protobuf_AddDesc_trade_2frequest_2fTradeQueryHistoryDeliverListRequest_2eproto_impl);
}
// Force AddDescriptors() to be called at static initialization time.
struct StaticDescriptorInitializer_trade_2frequest_2fTradeQueryHistoryDeliverListRequest_2eproto {
  StaticDescriptorInitializer_trade_2frequest_2fTradeQueryHistoryDeliverListRequest_2eproto() {
    protobuf_AddDesc_trade_2frequest_2fTradeQueryHistoryDeliverListRequest_2eproto();
  }
} static_descriptor_initializer_trade_2frequest_2fTradeQueryHistoryDeliverListRequest_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 TradeQueryHistoryDeliverListRequest::kExchangeTypeFieldNumber;
const int TradeQueryHistoryDeliverListRequest::kQueryParamStrFieldNumber;
const int TradeQueryHistoryDeliverListRequest::kQueryCountFieldNumber;
const int TradeQueryHistoryDeliverListRequest::kStartDateFieldNumber;
const int TradeQueryHistoryDeliverListRequest::kEndDateFieldNumber;
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900

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

void TradeQueryHistoryDeliverListRequest::InitAsDefaultInstance() {
}

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

void TradeQueryHistoryDeliverListRequest::SharedCtor() {
  exchangetype_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  queryparamstr_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  startdate_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  enddate_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  querycount_ = 0;
  _cached_size_ = 0;
}

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

void TradeQueryHistoryDeliverListRequest::SharedDtor() {
  exchangetype_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  queryparamstr_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  startdate_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  enddate_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}

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

const TradeQueryHistoryDeliverListRequest& TradeQueryHistoryDeliverListRequest::default_instance() {
  protobuf_InitDefaults_trade_2frequest_2fTradeQueryHistoryDeliverListRequest_2eproto();
  return *internal_default_instance();
}

::google::protobuf::internal::ExplicitlyConstructed<TradeQueryHistoryDeliverListRequest> TradeQueryHistoryDeliverListRequest_default_instance_;

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

void TradeQueryHistoryDeliverListRequest::Clear() {
// @@protoc_insertion_point(message_clear_start:TradeQueryHistoryDeliverListRequest)
  exchangetype_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  queryparamstr_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  querycount_ = 0;
  startdate_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  enddate_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}

bool TradeQueryHistoryDeliverListRequest::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:TradeQueryHistoryDeliverListRequest)
  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 exchangeType = 1;
      case 1: {
        if (tag == 10) {
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
                input, this->mutable_exchangetype()));
          DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
            this->exchangetype().data(), this->exchangetype().length(),
            ::google::protobuf::internal::WireFormatLite::PARSE,
            "TradeQueryHistoryDeliverListRequest.exchangeType"));
        } else {
          goto handle_unusual;
        }
        if (input->ExpectTag(18)) goto parse_queryParamStr;
        break;
      }

      // optional string queryParamStr = 2;
      case 2: {
        if (tag == 18) {
         parse_queryParamStr:
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
                input, this->mutable_queryparamstr()));
          DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
            this->queryparamstr().data(), this->queryparamstr().length(),
            ::google::protobuf::internal::WireFormatLite::PARSE,
            "TradeQueryHistoryDeliverListRequest.queryParamStr"));
        } else {
          goto handle_unusual;
        }
        if (input->ExpectTag(24)) goto parse_queryCount;
        break;
      }

      // optional int32 queryCount = 3;
      case 3: {
        if (tag == 24) {
         parse_queryCount:

          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
                 input, &querycount_)));
        } else {
          goto handle_unusual;
        }
        if (input->ExpectTag(34)) goto parse_startDate;
        break;
      }

      // optional string startDate = 4;
      case 4: {
        if (tag == 34) {
         parse_startDate:
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
                input, this->mutable_startdate()));
          DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
            this->startdate().data(), this->startdate().length(),
            ::google::protobuf::internal::WireFormatLite::PARSE,
            "TradeQueryHistoryDeliverListRequest.startDate"));
        } else {
          goto handle_unusual;
        }
        if (input->ExpectTag(42)) goto parse_endDate;
        break;
      }

      // optional string endDate = 5;
      case 5: {
        if (tag == 42) {
         parse_endDate:
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
                input, this->mutable_enddate()));
          DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
            this->enddate().data(), this->enddate().length(),
            ::google::protobuf::internal::WireFormatLite::PARSE,
            "TradeQueryHistoryDeliverListRequest.endDate"));
        } 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:TradeQueryHistoryDeliverListRequest)
  return true;
failure:
  // @@protoc_insertion_point(parse_failure:TradeQueryHistoryDeliverListRequest)
  return false;
#undef DO_
}

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

  // optional string queryParamStr = 2;
  if (this->queryparamstr().size() > 0) {
    ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
      this->queryparamstr().data(), this->queryparamstr().length(),
      ::google::protobuf::internal::WireFormatLite::SERIALIZE,
      "TradeQueryHistoryDeliverListRequest.queryParamStr");
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
      2, this->queryparamstr(), output);
  }

  // optional int32 queryCount = 3;
  if (this->querycount() != 0) {
    ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->querycount(), output);
  }

  // optional string startDate = 4;
  if (this->startdate().size() > 0) {
    ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
      this->startdate().data(), this->startdate().length(),
      ::google::protobuf::internal::WireFormatLite::SERIALIZE,
      "TradeQueryHistoryDeliverListRequest.startDate");
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
      4, this->startdate(), output);
  }

  // optional string endDate = 5;
  if (this->enddate().size() > 0) {
    ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
      this->enddate().data(), this->enddate().length(),
      ::google::protobuf::internal::WireFormatLite::SERIALIZE,
      "TradeQueryHistoryDeliverListRequest.endDate");
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
      5, this->enddate(), output);
  }

  // @@protoc_insertion_point(serialize_end:TradeQueryHistoryDeliverListRequest)
}

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

  // optional string queryParamStr = 2;
  if (this->queryparamstr().size() > 0) {
    ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
      this->queryparamstr().data(), this->queryparamstr().length(),
      ::google::protobuf::internal::WireFormatLite::SERIALIZE,
      "TradeQueryHistoryDeliverListRequest.queryParamStr");
    target =
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
        2, this->queryparamstr(), target);
  }

  // optional int32 queryCount = 3;
  if (this->querycount() != 0) {
    target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->querycount(), target);
  }

  // optional string startDate = 4;
  if (this->startdate().size() > 0) {
    ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
      this->startdate().data(), this->startdate().length(),
      ::google::protobuf::internal::WireFormatLite::SERIALIZE,
      "TradeQueryHistoryDeliverListRequest.startDate");
    target =
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
        4, this->startdate(), target);
  }

  // optional string endDate = 5;
  if (this->enddate().size() > 0) {
    ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
      this->enddate().data(), this->enddate().length(),
      ::google::protobuf::internal::WireFormatLite::SERIALIZE,
      "TradeQueryHistoryDeliverListRequest.endDate");
    target =
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
        5, this->enddate(), target);
  }

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

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

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

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

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

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

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

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

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

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

    exchangetype_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.exchangetype_);
  }
  if (from.queryparamstr().size() > 0) {

    queryparamstr_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.queryparamstr_);
  }
  if (from.querycount() != 0) {
    set_querycount(from.querycount());
  }
  if (from.startdate().size() > 0) {

    startdate_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.startdate_);
  }
  if (from.enddate().size() > 0) {

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

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

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

bool TradeQueryHistoryDeliverListRequest::IsInitialized() const {

  return true;
}

void TradeQueryHistoryDeliverListRequest::Swap(TradeQueryHistoryDeliverListRequest* other) {
  if (other == this) return;
  InternalSwap(other);
}
void TradeQueryHistoryDeliverListRequest::InternalSwap(TradeQueryHistoryDeliverListRequest* other) {
  exchangetype_.Swap(&other->exchangetype_);
  queryparamstr_.Swap(&other->queryparamstr_);
  std::swap(querycount_, other->querycount_);
  startdate_.Swap(&other->startdate_);
  enddate_.Swap(&other->enddate_);
  _internal_metadata_.Swap(&other->_internal_metadata_);
  std::swap(_cached_size_, other->_cached_size_);
}

::google::protobuf::Metadata TradeQueryHistoryDeliverListRequest::GetMetadata() const {
  protobuf_AssignDescriptorsOnce();
  ::google::protobuf::Metadata metadata;
  metadata.descriptor = TradeQueryHistoryDeliverListRequest_descriptor_;
  metadata.reflection = TradeQueryHistoryDeliverListRequest_reflection_;
  return metadata;
}

#if PROTOBUF_INLINE_NOT_IN_HEADERS
// TradeQueryHistoryDeliverListRequest

// optional string exchangeType = 1;
void TradeQueryHistoryDeliverListRequest::clear_exchangetype() {
  exchangetype_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
const ::std::string& TradeQueryHistoryDeliverListRequest::exchangetype() const {
  // @@protoc_insertion_point(field_get:TradeQueryHistoryDeliverListRequest.exchangeType)
  return exchangetype_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void TradeQueryHistoryDeliverListRequest::set_exchangetype(const ::std::string& value) {
  
  exchangetype_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  // @@protoc_insertion_point(field_set:TradeQueryHistoryDeliverListRequest.exchangeType)
}
void TradeQueryHistoryDeliverListRequest::set_exchangetype(const char* value) {
  
  exchangetype_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  // @@protoc_insertion_point(field_set_char:TradeQueryHistoryDeliverListRequest.exchangeType)
}
void TradeQueryHistoryDeliverListRequest::set_exchangetype(const char* value, size_t size) {
  
  exchangetype_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
      ::std::string(reinterpret_cast<const char*>(value), size));
  // @@protoc_insertion_point(field_set_pointer:TradeQueryHistoryDeliverListRequest.exchangeType)
}
::std::string* TradeQueryHistoryDeliverListRequest::mutable_exchangetype() {
  
  // @@protoc_insertion_point(field_mutable:TradeQueryHistoryDeliverListRequest.exchangeType)
  return exchangetype_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
::std::string* TradeQueryHistoryDeliverListRequest::release_exchangetype() {
  // @@protoc_insertion_point(field_release:TradeQueryHistoryDeliverListRequest.exchangeType)
  
  return exchangetype_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void TradeQueryHistoryDeliverListRequest::set_allocated_exchangetype(::std::string* exchangetype) {
  if (exchangetype != NULL) {
    
  } else {
    
  }
  exchangetype_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), exchangetype);
  // @@protoc_insertion_point(field_set_allocated:TradeQueryHistoryDeliverListRequest.exchangeType)
}

// optional string queryParamStr = 2;
void TradeQueryHistoryDeliverListRequest::clear_queryparamstr() {
  queryparamstr_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
const ::std::string& TradeQueryHistoryDeliverListRequest::queryparamstr() const {
  // @@protoc_insertion_point(field_get:TradeQueryHistoryDeliverListRequest.queryParamStr)
  return queryparamstr_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void TradeQueryHistoryDeliverListRequest::set_queryparamstr(const ::std::string& value) {
  
  queryparamstr_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  // @@protoc_insertion_point(field_set:TradeQueryHistoryDeliverListRequest.queryParamStr)
}
void TradeQueryHistoryDeliverListRequest::set_queryparamstr(const char* value) {
  
  queryparamstr_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  // @@protoc_insertion_point(field_set_char:TradeQueryHistoryDeliverListRequest.queryParamStr)
}
void TradeQueryHistoryDeliverListRequest::set_queryparamstr(const char* value, size_t size) {
  
  queryparamstr_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
      ::std::string(reinterpret_cast<const char*>(value), size));
  // @@protoc_insertion_point(field_set_pointer:TradeQueryHistoryDeliverListRequest.queryParamStr)
}
::std::string* TradeQueryHistoryDeliverListRequest::mutable_queryparamstr() {
  
  // @@protoc_insertion_point(field_mutable:TradeQueryHistoryDeliverListRequest.queryParamStr)
  return queryparamstr_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
::std::string* TradeQueryHistoryDeliverListRequest::release_queryparamstr() {
  // @@protoc_insertion_point(field_release:TradeQueryHistoryDeliverListRequest.queryParamStr)
  
  return queryparamstr_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void TradeQueryHistoryDeliverListRequest::set_allocated_queryparamstr(::std::string* queryparamstr) {
  if (queryparamstr != NULL) {
    
  } else {
    
  }
  queryparamstr_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), queryparamstr);
  // @@protoc_insertion_point(field_set_allocated:TradeQueryHistoryDeliverListRequest.queryParamStr)
}

// optional int32 queryCount = 3;
void TradeQueryHistoryDeliverListRequest::clear_querycount() {
  querycount_ = 0;
}
::google::protobuf::int32 TradeQueryHistoryDeliverListRequest::querycount() const {
  // @@protoc_insertion_point(field_get:TradeQueryHistoryDeliverListRequest.queryCount)
  return querycount_;
}
void TradeQueryHistoryDeliverListRequest::set_querycount(::google::protobuf::int32 value) {
  
  querycount_ = value;
  // @@protoc_insertion_point(field_set:TradeQueryHistoryDeliverListRequest.queryCount)
}

// optional string startDate = 4;
void TradeQueryHistoryDeliverListRequest::clear_startdate() {
  startdate_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
const ::std::string& TradeQueryHistoryDeliverListRequest::startdate() const {
  // @@protoc_insertion_point(field_get:TradeQueryHistoryDeliverListRequest.startDate)
  return startdate_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void TradeQueryHistoryDeliverListRequest::set_startdate(const ::std::string& value) {
  
  startdate_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  // @@protoc_insertion_point(field_set:TradeQueryHistoryDeliverListRequest.startDate)
}
void TradeQueryHistoryDeliverListRequest::set_startdate(const char* value) {
  
  startdate_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  // @@protoc_insertion_point(field_set_char:TradeQueryHistoryDeliverListRequest.startDate)
}
void TradeQueryHistoryDeliverListRequest::set_startdate(const char* value, size_t size) {
  
  startdate_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
      ::std::string(reinterpret_cast<const char*>(value), size));
  // @@protoc_insertion_point(field_set_pointer:TradeQueryHistoryDeliverListRequest.startDate)
}
::std::string* TradeQueryHistoryDeliverListRequest::mutable_startdate() {
  
  // @@protoc_insertion_point(field_mutable:TradeQueryHistoryDeliverListRequest.startDate)
  return startdate_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
::std::string* TradeQueryHistoryDeliverListRequest::release_startdate() {
  // @@protoc_insertion_point(field_release:TradeQueryHistoryDeliverListRequest.startDate)
  
  return startdate_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void TradeQueryHistoryDeliverListRequest::set_allocated_startdate(::std::string* startdate) {
  if (startdate != NULL) {
    
  } else {
    
  }
  startdate_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), startdate);
  // @@protoc_insertion_point(field_set_allocated:TradeQueryHistoryDeliverListRequest.startDate)
}

// optional string endDate = 5;
void TradeQueryHistoryDeliverListRequest::clear_enddate() {
  enddate_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
const ::std::string& TradeQueryHistoryDeliverListRequest::enddate() const {
  // @@protoc_insertion_point(field_get:TradeQueryHistoryDeliverListRequest.endDate)
  return enddate_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void TradeQueryHistoryDeliverListRequest::set_enddate(const ::std::string& value) {
  
  enddate_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  // @@protoc_insertion_point(field_set:TradeQueryHistoryDeliverListRequest.endDate)
}
void TradeQueryHistoryDeliverListRequest::set_enddate(const char* value) {
  
  enddate_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  // @@protoc_insertion_point(field_set_char:TradeQueryHistoryDeliverListRequest.endDate)
}
void TradeQueryHistoryDeliverListRequest::set_enddate(const char* value, size_t size) {
  
  enddate_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
      ::std::string(reinterpret_cast<const char*>(value), size));
  // @@protoc_insertion_point(field_set_pointer:TradeQueryHistoryDeliverListRequest.endDate)
}
::std::string* TradeQueryHistoryDeliverListRequest::mutable_enddate() {
  
  // @@protoc_insertion_point(field_mutable:TradeQueryHistoryDeliverListRequest.endDate)
  return enddate_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
::std::string* TradeQueryHistoryDeliverListRequest::release_enddate() {
  // @@protoc_insertion_point(field_release:TradeQueryHistoryDeliverListRequest.endDate)
  
  return enddate_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void TradeQueryHistoryDeliverListRequest::set_allocated_enddate(::std::string* enddate) {
  if (enddate != NULL) {
    
  } else {
    
  }
  enddate_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), enddate);
  // @@protoc_insertion_point(field_set_allocated:TradeQueryHistoryDeliverListRequest.endDate)
}

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

// @@protoc_insertion_point(namespace_scope)

// @@protoc_insertion_point(global_scope)
