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

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

}  // namespace


void protobuf_AssignDesc_trade_2frequest_2fTradeChangeEntrustRequest_2eproto() GOOGLE_ATTRIBUTE_COLD;
void protobuf_AssignDesc_trade_2frequest_2fTradeChangeEntrustRequest_2eproto() {
  protobuf_AddDesc_trade_2frequest_2fTradeChangeEntrustRequest_2eproto();
  const ::google::protobuf::FileDescriptor* file =
    ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName(
      "trade/request/TradeChangeEntrustRequest.proto");
  GOOGLE_CHECK(file != NULL);
  TradeChangeEntrustRequest_descriptor_ = file->message_type(0);
  static const int TradeChangeEntrustRequest_offsets_[5] = {
    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TradeChangeEntrustRequest, exchangetype_),
    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TradeChangeEntrustRequest, entrustamount_),
    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TradeChangeEntrustRequest, entrustprice_),
    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TradeChangeEntrustRequest, entrustid_),
    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TradeChangeEntrustRequest, stockcode_),
  };
  TradeChangeEntrustRequest_reflection_ =
    ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
      TradeChangeEntrustRequest_descriptor_,
      TradeChangeEntrustRequest::internal_default_instance(),
      TradeChangeEntrustRequest_offsets_,
      -1,
      -1,
      -1,
      sizeof(TradeChangeEntrustRequest),
      GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TradeChangeEntrustRequest, _internal_metadata_));
}

namespace {

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

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

}  // namespace

void protobuf_ShutdownFile_trade_2frequest_2fTradeChangeEntrustRequest_2eproto() {
  TradeChangeEntrustRequest_default_instance_.Shutdown();
  delete TradeChangeEntrustRequest_reflection_;
}

void protobuf_InitDefaults_trade_2frequest_2fTradeChangeEntrustRequest_2eproto_impl() {
  GOOGLE_PROTOBUF_VERIFY_VERSION;

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

GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_InitDefaults_trade_2frequest_2fTradeChangeEntrustRequest_2eproto_once_);
void protobuf_InitDefaults_trade_2frequest_2fTradeChangeEntrustRequest_2eproto() {
  ::google::protobuf::GoogleOnceInit(&protobuf_InitDefaults_trade_2frequest_2fTradeChangeEntrustRequest_2eproto_once_,
                 &protobuf_InitDefaults_trade_2frequest_2fTradeChangeEntrustRequest_2eproto_impl);
}
void protobuf_AddDesc_trade_2frequest_2fTradeChangeEntrustRequest_2eproto_impl() {
  GOOGLE_PROTOBUF_VERIFY_VERSION;

  protobuf_InitDefaults_trade_2frequest_2fTradeChangeEntrustRequest_2eproto();
  ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
    "\n-trade/request/TradeChangeEntrustReques"
    "t.proto\"\204\001\n\031TradeChangeEntrustRequest\022\024\n"
    "\014exchangeType\030\001 \001(\t\022\025\n\rentrustAmount\030\002 \001"
    "(\t\022\024\n\014entrustPrice\030\003 \001(\t\022\021\n\tentrustId\030\004 "
    "\001(\t\022\021\n\tstockCode\030\005 \001(\tBT\n2com.huasheng.q"
    "uant.open.sdk.protobuf.trade.requestB\036Tr"
    "adeChangeEntrustRequestProtob\006proto3", 276);
  ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
    "trade/request/TradeChangeEntrustRequest.proto", &protobuf_RegisterTypes);
  ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_trade_2frequest_2fTradeChangeEntrustRequest_2eproto);
}

GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AddDesc_trade_2frequest_2fTradeChangeEntrustRequest_2eproto_once_);
void protobuf_AddDesc_trade_2frequest_2fTradeChangeEntrustRequest_2eproto() {
  ::google::protobuf::GoogleOnceInit(&protobuf_AddDesc_trade_2frequest_2fTradeChangeEntrustRequest_2eproto_once_,
                 &protobuf_AddDesc_trade_2frequest_2fTradeChangeEntrustRequest_2eproto_impl);
}
// Force AddDescriptors() to be called at static initialization time.
struct StaticDescriptorInitializer_trade_2frequest_2fTradeChangeEntrustRequest_2eproto {
  StaticDescriptorInitializer_trade_2frequest_2fTradeChangeEntrustRequest_2eproto() {
    protobuf_AddDesc_trade_2frequest_2fTradeChangeEntrustRequest_2eproto();
  }
} static_descriptor_initializer_trade_2frequest_2fTradeChangeEntrustRequest_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 TradeChangeEntrustRequest::kExchangeTypeFieldNumber;
const int TradeChangeEntrustRequest::kEntrustAmountFieldNumber;
const int TradeChangeEntrustRequest::kEntrustPriceFieldNumber;
const int TradeChangeEntrustRequest::kEntrustIdFieldNumber;
const int TradeChangeEntrustRequest::kStockCodeFieldNumber;
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900

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

void TradeChangeEntrustRequest::InitAsDefaultInstance() {
}

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

void TradeChangeEntrustRequest::SharedCtor() {
  exchangetype_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  entrustamount_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  entrustprice_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  entrustid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  stockcode_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  _cached_size_ = 0;
}

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

void TradeChangeEntrustRequest::SharedDtor() {
  exchangetype_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  entrustamount_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  entrustprice_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  entrustid_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  stockcode_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}

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

const TradeChangeEntrustRequest& TradeChangeEntrustRequest::default_instance() {
  protobuf_InitDefaults_trade_2frequest_2fTradeChangeEntrustRequest_2eproto();
  return *internal_default_instance();
}

::google::protobuf::internal::ExplicitlyConstructed<TradeChangeEntrustRequest> TradeChangeEntrustRequest_default_instance_;

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

void TradeChangeEntrustRequest::Clear() {
// @@protoc_insertion_point(message_clear_start:TradeChangeEntrustRequest)
  exchangetype_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  entrustamount_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  entrustprice_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  entrustid_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  stockcode_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}

bool TradeChangeEntrustRequest::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:TradeChangeEntrustRequest)
  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,
            "TradeChangeEntrustRequest.exchangeType"));
        } else {
          goto handle_unusual;
        }
        if (input->ExpectTag(18)) goto parse_entrustAmount;
        break;
      }

      // optional string entrustAmount = 2;
      case 2: {
        if (tag == 18) {
         parse_entrustAmount:
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
                input, this->mutable_entrustamount()));
          DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
            this->entrustamount().data(), this->entrustamount().length(),
            ::google::protobuf::internal::WireFormatLite::PARSE,
            "TradeChangeEntrustRequest.entrustAmount"));
        } else {
          goto handle_unusual;
        }
        if (input->ExpectTag(26)) goto parse_entrustPrice;
        break;
      }

      // optional string entrustPrice = 3;
      case 3: {
        if (tag == 26) {
         parse_entrustPrice:
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
                input, this->mutable_entrustprice()));
          DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
            this->entrustprice().data(), this->entrustprice().length(),
            ::google::protobuf::internal::WireFormatLite::PARSE,
            "TradeChangeEntrustRequest.entrustPrice"));
        } else {
          goto handle_unusual;
        }
        if (input->ExpectTag(34)) goto parse_entrustId;
        break;
      }

      // optional string entrustId = 4;
      case 4: {
        if (tag == 34) {
         parse_entrustId:
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
                input, this->mutable_entrustid()));
          DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
            this->entrustid().data(), this->entrustid().length(),
            ::google::protobuf::internal::WireFormatLite::PARSE,
            "TradeChangeEntrustRequest.entrustId"));
        } else {
          goto handle_unusual;
        }
        if (input->ExpectTag(42)) goto parse_stockCode;
        break;
      }

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

void TradeChangeEntrustRequest::SerializeWithCachedSizes(
    ::google::protobuf::io::CodedOutputStream* output) const {
  // @@protoc_insertion_point(serialize_start:TradeChangeEntrustRequest)
  // 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,
      "TradeChangeEntrustRequest.exchangeType");
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
      1, this->exchangetype(), output);
  }

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

  // optional string entrustPrice = 3;
  if (this->entrustprice().size() > 0) {
    ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
      this->entrustprice().data(), this->entrustprice().length(),
      ::google::protobuf::internal::WireFormatLite::SERIALIZE,
      "TradeChangeEntrustRequest.entrustPrice");
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
      3, this->entrustprice(), output);
  }

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

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

  // @@protoc_insertion_point(serialize_end:TradeChangeEntrustRequest)
}

::google::protobuf::uint8* TradeChangeEntrustRequest::InternalSerializeWithCachedSizesToArray(
    bool deterministic, ::google::protobuf::uint8* target) const {
  (void)deterministic; // Unused
  // @@protoc_insertion_point(serialize_to_array_start:TradeChangeEntrustRequest)
  // 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,
      "TradeChangeEntrustRequest.exchangeType");
    target =
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
        1, this->exchangetype(), target);
  }

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

  // optional string entrustPrice = 3;
  if (this->entrustprice().size() > 0) {
    ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
      this->entrustprice().data(), this->entrustprice().length(),
      ::google::protobuf::internal::WireFormatLite::SERIALIZE,
      "TradeChangeEntrustRequest.entrustPrice");
    target =
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
        3, this->entrustprice(), target);
  }

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

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

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

size_t TradeChangeEntrustRequest::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:TradeChangeEntrustRequest)
  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 entrustAmount = 2;
  if (this->entrustamount().size() > 0) {
    total_size += 1 +
      ::google::protobuf::internal::WireFormatLite::StringSize(
        this->entrustamount());
  }

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

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

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

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

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

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

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

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

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

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

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

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

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

bool TradeChangeEntrustRequest::IsInitialized() const {

  return true;
}

void TradeChangeEntrustRequest::Swap(TradeChangeEntrustRequest* other) {
  if (other == this) return;
  InternalSwap(other);
}
void TradeChangeEntrustRequest::InternalSwap(TradeChangeEntrustRequest* other) {
  exchangetype_.Swap(&other->exchangetype_);
  entrustamount_.Swap(&other->entrustamount_);
  entrustprice_.Swap(&other->entrustprice_);
  entrustid_.Swap(&other->entrustid_);
  stockcode_.Swap(&other->stockcode_);
  _internal_metadata_.Swap(&other->_internal_metadata_);
  std::swap(_cached_size_, other->_cached_size_);
}

::google::protobuf::Metadata TradeChangeEntrustRequest::GetMetadata() const {
  protobuf_AssignDescriptorsOnce();
  ::google::protobuf::Metadata metadata;
  metadata.descriptor = TradeChangeEntrustRequest_descriptor_;
  metadata.reflection = TradeChangeEntrustRequest_reflection_;
  return metadata;
}

#if PROTOBUF_INLINE_NOT_IN_HEADERS
// TradeChangeEntrustRequest

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

// optional string entrustAmount = 2;
void TradeChangeEntrustRequest::clear_entrustamount() {
  entrustamount_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
const ::std::string& TradeChangeEntrustRequest::entrustamount() const {
  // @@protoc_insertion_point(field_get:TradeChangeEntrustRequest.entrustAmount)
  return entrustamount_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void TradeChangeEntrustRequest::set_entrustamount(const ::std::string& value) {
  
  entrustamount_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  // @@protoc_insertion_point(field_set:TradeChangeEntrustRequest.entrustAmount)
}
void TradeChangeEntrustRequest::set_entrustamount(const char* value) {
  
  entrustamount_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  // @@protoc_insertion_point(field_set_char:TradeChangeEntrustRequest.entrustAmount)
}
void TradeChangeEntrustRequest::set_entrustamount(const char* value, size_t size) {
  
  entrustamount_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
      ::std::string(reinterpret_cast<const char*>(value), size));
  // @@protoc_insertion_point(field_set_pointer:TradeChangeEntrustRequest.entrustAmount)
}
::std::string* TradeChangeEntrustRequest::mutable_entrustamount() {
  
  // @@protoc_insertion_point(field_mutable:TradeChangeEntrustRequest.entrustAmount)
  return entrustamount_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
::std::string* TradeChangeEntrustRequest::release_entrustamount() {
  // @@protoc_insertion_point(field_release:TradeChangeEntrustRequest.entrustAmount)
  
  return entrustamount_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void TradeChangeEntrustRequest::set_allocated_entrustamount(::std::string* entrustamount) {
  if (entrustamount != NULL) {
    
  } else {
    
  }
  entrustamount_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), entrustamount);
  // @@protoc_insertion_point(field_set_allocated:TradeChangeEntrustRequest.entrustAmount)
}

// optional string entrustPrice = 3;
void TradeChangeEntrustRequest::clear_entrustprice() {
  entrustprice_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
const ::std::string& TradeChangeEntrustRequest::entrustprice() const {
  // @@protoc_insertion_point(field_get:TradeChangeEntrustRequest.entrustPrice)
  return entrustprice_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void TradeChangeEntrustRequest::set_entrustprice(const ::std::string& value) {
  
  entrustprice_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  // @@protoc_insertion_point(field_set:TradeChangeEntrustRequest.entrustPrice)
}
void TradeChangeEntrustRequest::set_entrustprice(const char* value) {
  
  entrustprice_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  // @@protoc_insertion_point(field_set_char:TradeChangeEntrustRequest.entrustPrice)
}
void TradeChangeEntrustRequest::set_entrustprice(const char* value, size_t size) {
  
  entrustprice_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
      ::std::string(reinterpret_cast<const char*>(value), size));
  // @@protoc_insertion_point(field_set_pointer:TradeChangeEntrustRequest.entrustPrice)
}
::std::string* TradeChangeEntrustRequest::mutable_entrustprice() {
  
  // @@protoc_insertion_point(field_mutable:TradeChangeEntrustRequest.entrustPrice)
  return entrustprice_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
::std::string* TradeChangeEntrustRequest::release_entrustprice() {
  // @@protoc_insertion_point(field_release:TradeChangeEntrustRequest.entrustPrice)
  
  return entrustprice_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void TradeChangeEntrustRequest::set_allocated_entrustprice(::std::string* entrustprice) {
  if (entrustprice != NULL) {
    
  } else {
    
  }
  entrustprice_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), entrustprice);
  // @@protoc_insertion_point(field_set_allocated:TradeChangeEntrustRequest.entrustPrice)
}

// optional string entrustId = 4;
void TradeChangeEntrustRequest::clear_entrustid() {
  entrustid_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
const ::std::string& TradeChangeEntrustRequest::entrustid() const {
  // @@protoc_insertion_point(field_get:TradeChangeEntrustRequest.entrustId)
  return entrustid_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void TradeChangeEntrustRequest::set_entrustid(const ::std::string& value) {
  
  entrustid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  // @@protoc_insertion_point(field_set:TradeChangeEntrustRequest.entrustId)
}
void TradeChangeEntrustRequest::set_entrustid(const char* value) {
  
  entrustid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  // @@protoc_insertion_point(field_set_char:TradeChangeEntrustRequest.entrustId)
}
void TradeChangeEntrustRequest::set_entrustid(const char* value, size_t size) {
  
  entrustid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
      ::std::string(reinterpret_cast<const char*>(value), size));
  // @@protoc_insertion_point(field_set_pointer:TradeChangeEntrustRequest.entrustId)
}
::std::string* TradeChangeEntrustRequest::mutable_entrustid() {
  
  // @@protoc_insertion_point(field_mutable:TradeChangeEntrustRequest.entrustId)
  return entrustid_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
::std::string* TradeChangeEntrustRequest::release_entrustid() {
  // @@protoc_insertion_point(field_release:TradeChangeEntrustRequest.entrustId)
  
  return entrustid_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void TradeChangeEntrustRequest::set_allocated_entrustid(::std::string* entrustid) {
  if (entrustid != NULL) {
    
  } else {
    
  }
  entrustid_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), entrustid);
  // @@protoc_insertion_point(field_set_allocated:TradeChangeEntrustRequest.entrustId)
}

// optional string stockCode = 5;
void TradeChangeEntrustRequest::clear_stockcode() {
  stockcode_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
const ::std::string& TradeChangeEntrustRequest::stockcode() const {
  // @@protoc_insertion_point(field_get:TradeChangeEntrustRequest.stockCode)
  return stockcode_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void TradeChangeEntrustRequest::set_stockcode(const ::std::string& value) {
  
  stockcode_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  // @@protoc_insertion_point(field_set:TradeChangeEntrustRequest.stockCode)
}
void TradeChangeEntrustRequest::set_stockcode(const char* value) {
  
  stockcode_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  // @@protoc_insertion_point(field_set_char:TradeChangeEntrustRequest.stockCode)
}
void TradeChangeEntrustRequest::set_stockcode(const char* value, size_t size) {
  
  stockcode_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
      ::std::string(reinterpret_cast<const char*>(value), size));
  // @@protoc_insertion_point(field_set_pointer:TradeChangeEntrustRequest.stockCode)
}
::std::string* TradeChangeEntrustRequest::mutable_stockcode() {
  
  // @@protoc_insertion_point(field_mutable:TradeChangeEntrustRequest.stockCode)
  return stockcode_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
::std::string* TradeChangeEntrustRequest::release_stockcode() {
  // @@protoc_insertion_point(field_release:TradeChangeEntrustRequest.stockCode)
  
  return stockcode_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void TradeChangeEntrustRequest::set_allocated_stockcode(::std::string* stockcode) {
  if (stockcode != NULL) {
    
  } else {
    
  }
  stockcode_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), stockcode);
  // @@protoc_insertion_point(field_set_allocated:TradeChangeEntrustRequest.stockCode)
}

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

// @@protoc_insertion_point(namespace_scope)

// @@protoc_insertion_point(global_scope)
