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

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

}  // namespace


void protobuf_AssignDesc_trade_2frequest_2fTradeEntrustRequest_2eproto() GOOGLE_ATTRIBUTE_COLD;
void protobuf_AssignDesc_trade_2frequest_2fTradeEntrustRequest_2eproto() {
  protobuf_AddDesc_trade_2frequest_2fTradeEntrustRequest_2eproto();
  const ::google::protobuf::FileDescriptor* file =
    ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName(
      "trade/request/TradeEntrustRequest.proto");
  GOOGLE_CHECK(file != NULL);
  TradeEntrustRequest_descriptor_ = file->message_type(0);
  static const int TradeEntrustRequest_offsets_[9] = {
    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TradeEntrustRequest, stockcode_),
    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TradeEntrustRequest, exchangetype_),
    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TradeEntrustRequest, entrustamount_),
    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TradeEntrustRequest, entrustprice_),
    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TradeEntrustRequest, entrustbs_),
    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TradeEntrustRequest, entrusttype_),
    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TradeEntrustRequest, clienttype_),
    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TradeEntrustRequest, exchange_),
    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TradeEntrustRequest, sessiontype_),
  };
  TradeEntrustRequest_reflection_ =
    ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
      TradeEntrustRequest_descriptor_,
      TradeEntrustRequest::internal_default_instance(),
      TradeEntrustRequest_offsets_,
      -1,
      -1,
      -1,
      sizeof(TradeEntrustRequest),
      GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TradeEntrustRequest, _internal_metadata_));
}

namespace {

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

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

}  // namespace

void protobuf_ShutdownFile_trade_2frequest_2fTradeEntrustRequest_2eproto() {
  TradeEntrustRequest_default_instance_.Shutdown();
  delete TradeEntrustRequest_reflection_;
}

void protobuf_InitDefaults_trade_2frequest_2fTradeEntrustRequest_2eproto_impl() {
  GOOGLE_PROTOBUF_VERIFY_VERSION;

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

GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_InitDefaults_trade_2frequest_2fTradeEntrustRequest_2eproto_once_);
void protobuf_InitDefaults_trade_2frequest_2fTradeEntrustRequest_2eproto() {
  ::google::protobuf::GoogleOnceInit(&protobuf_InitDefaults_trade_2frequest_2fTradeEntrustRequest_2eproto_once_,
                 &protobuf_InitDefaults_trade_2frequest_2fTradeEntrustRequest_2eproto_impl);
}
void protobuf_AddDesc_trade_2frequest_2fTradeEntrustRequest_2eproto_impl() {
  GOOGLE_PROTOBUF_VERIFY_VERSION;

  protobuf_InitDefaults_trade_2frequest_2fTradeEntrustRequest_2eproto();
  ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
    "\n\'trade/request/TradeEntrustRequest.prot"
    "o\"\316\001\n\023TradeEntrustRequest\022\021\n\tstockCode\030\001"
    " \001(\t\022\024\n\014exchangeType\030\002 \001(\t\022\025\n\rentrustAmo"
    "unt\030\003 \001(\t\022\024\n\014entrustPrice\030\004 \001(\t\022\021\n\tentru"
    "stBs\030\005 \001(\t\022\023\n\013entrustType\030\006 \001(\t\022\022\n\nclien"
    "tType\030\007 \001(\005\022\020\n\010exchange\030\010 \001(\t\022\023\n\013session"
    "Type\030\t \001(\tBN\n2com.huasheng.quant.open.sd"
    "k.protobuf.trade.requestB\030TradeEntrustRe"
    "questProtob\006proto3", 338);
  ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
    "trade/request/TradeEntrustRequest.proto", &protobuf_RegisterTypes);
  ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_trade_2frequest_2fTradeEntrustRequest_2eproto);
}

GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AddDesc_trade_2frequest_2fTradeEntrustRequest_2eproto_once_);
void protobuf_AddDesc_trade_2frequest_2fTradeEntrustRequest_2eproto() {
  ::google::protobuf::GoogleOnceInit(&protobuf_AddDesc_trade_2frequest_2fTradeEntrustRequest_2eproto_once_,
                 &protobuf_AddDesc_trade_2frequest_2fTradeEntrustRequest_2eproto_impl);
}
// Force AddDescriptors() to be called at static initialization time.
struct StaticDescriptorInitializer_trade_2frequest_2fTradeEntrustRequest_2eproto {
  StaticDescriptorInitializer_trade_2frequest_2fTradeEntrustRequest_2eproto() {
    protobuf_AddDesc_trade_2frequest_2fTradeEntrustRequest_2eproto();
  }
} static_descriptor_initializer_trade_2frequest_2fTradeEntrustRequest_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 TradeEntrustRequest::kStockCodeFieldNumber;
const int TradeEntrustRequest::kExchangeTypeFieldNumber;
const int TradeEntrustRequest::kEntrustAmountFieldNumber;
const int TradeEntrustRequest::kEntrustPriceFieldNumber;
const int TradeEntrustRequest::kEntrustBsFieldNumber;
const int TradeEntrustRequest::kEntrustTypeFieldNumber;
const int TradeEntrustRequest::kClientTypeFieldNumber;
const int TradeEntrustRequest::kExchangeFieldNumber;
const int TradeEntrustRequest::kSessionTypeFieldNumber;
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900

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

void TradeEntrustRequest::InitAsDefaultInstance() {
}

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

void TradeEntrustRequest::SharedCtor() {
  stockcode_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  exchangetype_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  entrustamount_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  entrustprice_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  entrustbs_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  entrusttype_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  exchange_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  sessiontype_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  clienttype_ = 0;
  _cached_size_ = 0;
}

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

void TradeEntrustRequest::SharedDtor() {
  stockcode_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  exchangetype_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  entrustamount_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  entrustprice_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  entrustbs_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  entrusttype_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  exchange_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  sessiontype_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}

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

const TradeEntrustRequest& TradeEntrustRequest::default_instance() {
  protobuf_InitDefaults_trade_2frequest_2fTradeEntrustRequest_2eproto();
  return *internal_default_instance();
}

::google::protobuf::internal::ExplicitlyConstructed<TradeEntrustRequest> TradeEntrustRequest_default_instance_;

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

void TradeEntrustRequest::Clear() {
// @@protoc_insertion_point(message_clear_start:TradeEntrustRequest)
  stockcode_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  exchangetype_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  entrustamount_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  entrustprice_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  entrustbs_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  entrusttype_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  clienttype_ = 0;
  exchange_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  sessiontype_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}

bool TradeEntrustRequest::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:TradeEntrustRequest)
  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 stockCode = 1;
      case 1: {
        if (tag == 10) {
          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,
            "TradeEntrustRequest.stockCode"));
        } else {
          goto handle_unusual;
        }
        if (input->ExpectTag(18)) goto parse_exchangeType;
        break;
      }

      // optional string exchangeType = 2;
      case 2: {
        if (tag == 18) {
         parse_exchangeType:
          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,
            "TradeEntrustRequest.exchangeType"));
        } else {
          goto handle_unusual;
        }
        if (input->ExpectTag(26)) goto parse_entrustAmount;
        break;
      }

      // optional string entrustAmount = 3;
      case 3: {
        if (tag == 26) {
         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,
            "TradeEntrustRequest.entrustAmount"));
        } else {
          goto handle_unusual;
        }
        if (input->ExpectTag(34)) goto parse_entrustPrice;
        break;
      }

      // optional string entrustPrice = 4;
      case 4: {
        if (tag == 34) {
         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,
            "TradeEntrustRequest.entrustPrice"));
        } else {
          goto handle_unusual;
        }
        if (input->ExpectTag(42)) goto parse_entrustBs;
        break;
      }

      // optional string entrustBs = 5;
      case 5: {
        if (tag == 42) {
         parse_entrustBs:
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
                input, this->mutable_entrustbs()));
          DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
            this->entrustbs().data(), this->entrustbs().length(),
            ::google::protobuf::internal::WireFormatLite::PARSE,
            "TradeEntrustRequest.entrustBs"));
        } else {
          goto handle_unusual;
        }
        if (input->ExpectTag(50)) goto parse_entrustType;
        break;
      }

      // optional string entrustType = 6;
      case 6: {
        if (tag == 50) {
         parse_entrustType:
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
                input, this->mutable_entrusttype()));
          DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
            this->entrusttype().data(), this->entrusttype().length(),
            ::google::protobuf::internal::WireFormatLite::PARSE,
            "TradeEntrustRequest.entrustType"));
        } else {
          goto handle_unusual;
        }
        if (input->ExpectTag(56)) goto parse_clientType;
        break;
      }

      // optional int32 clientType = 7;
      case 7: {
        if (tag == 56) {
         parse_clientType:

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

      // optional string exchange = 8;
      case 8: {
        if (tag == 66) {
         parse_exchange:
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
                input, this->mutable_exchange()));
          DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
            this->exchange().data(), this->exchange().length(),
            ::google::protobuf::internal::WireFormatLite::PARSE,
            "TradeEntrustRequest.exchange"));
        } else {
          goto handle_unusual;
        }
        if (input->ExpectTag(74)) goto parse_sessionType;
        break;
      }

      // optional string sessionType = 9;
      case 9: {
        if (tag == 74) {
         parse_sessionType:
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
                input, this->mutable_sessiontype()));
          DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
            this->sessiontype().data(), this->sessiontype().length(),
            ::google::protobuf::internal::WireFormatLite::PARSE,
            "TradeEntrustRequest.sessionType"));
        } 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:TradeEntrustRequest)
  return true;
failure:
  // @@protoc_insertion_point(parse_failure:TradeEntrustRequest)
  return false;
#undef DO_
}

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

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

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

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

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

  // optional string entrustType = 6;
  if (this->entrusttype().size() > 0) {
    ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
      this->entrusttype().data(), this->entrusttype().length(),
      ::google::protobuf::internal::WireFormatLite::SERIALIZE,
      "TradeEntrustRequest.entrustType");
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
      6, this->entrusttype(), output);
  }

  // optional int32 clientType = 7;
  if (this->clienttype() != 0) {
    ::google::protobuf::internal::WireFormatLite::WriteInt32(7, this->clienttype(), output);
  }

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

  // optional string sessionType = 9;
  if (this->sessiontype().size() > 0) {
    ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
      this->sessiontype().data(), this->sessiontype().length(),
      ::google::protobuf::internal::WireFormatLite::SERIALIZE,
      "TradeEntrustRequest.sessionType");
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
      9, this->sessiontype(), output);
  }

  // @@protoc_insertion_point(serialize_end:TradeEntrustRequest)
}

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

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

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

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

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

  // optional string entrustType = 6;
  if (this->entrusttype().size() > 0) {
    ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
      this->entrusttype().data(), this->entrusttype().length(),
      ::google::protobuf::internal::WireFormatLite::SERIALIZE,
      "TradeEntrustRequest.entrustType");
    target =
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
        6, this->entrusttype(), target);
  }

  // optional int32 clientType = 7;
  if (this->clienttype() != 0) {
    target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(7, this->clienttype(), target);
  }

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

  // optional string sessionType = 9;
  if (this->sessiontype().size() > 0) {
    ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
      this->sessiontype().data(), this->sessiontype().length(),
      ::google::protobuf::internal::WireFormatLite::SERIALIZE,
      "TradeEntrustRequest.sessionType");
    target =
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
        9, this->sessiontype(), target);
  }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    stockcode_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.stockcode_);
  }
  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.entrustbs().size() > 0) {

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

    entrusttype_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.entrusttype_);
  }
  if (from.clienttype() != 0) {
    set_clienttype(from.clienttype());
  }
  if (from.exchange().size() > 0) {

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

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

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

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

bool TradeEntrustRequest::IsInitialized() const {

  return true;
}

void TradeEntrustRequest::Swap(TradeEntrustRequest* other) {
  if (other == this) return;
  InternalSwap(other);
}
void TradeEntrustRequest::InternalSwap(TradeEntrustRequest* other) {
  stockcode_.Swap(&other->stockcode_);
  exchangetype_.Swap(&other->exchangetype_);
  entrustamount_.Swap(&other->entrustamount_);
  entrustprice_.Swap(&other->entrustprice_);
  entrustbs_.Swap(&other->entrustbs_);
  entrusttype_.Swap(&other->entrusttype_);
  std::swap(clienttype_, other->clienttype_);
  exchange_.Swap(&other->exchange_);
  sessiontype_.Swap(&other->sessiontype_);
  _internal_metadata_.Swap(&other->_internal_metadata_);
  std::swap(_cached_size_, other->_cached_size_);
}

::google::protobuf::Metadata TradeEntrustRequest::GetMetadata() const {
  protobuf_AssignDescriptorsOnce();
  ::google::protobuf::Metadata metadata;
  metadata.descriptor = TradeEntrustRequest_descriptor_;
  metadata.reflection = TradeEntrustRequest_reflection_;
  return metadata;
}

#if PROTOBUF_INLINE_NOT_IN_HEADERS
// TradeEntrustRequest

// optional string stockCode = 1;
void TradeEntrustRequest::clear_stockcode() {
  stockcode_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
const ::std::string& TradeEntrustRequest::stockcode() const {
  // @@protoc_insertion_point(field_get:TradeEntrustRequest.stockCode)
  return stockcode_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void TradeEntrustRequest::set_stockcode(const ::std::string& value) {
  
  stockcode_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  // @@protoc_insertion_point(field_set:TradeEntrustRequest.stockCode)
}
void TradeEntrustRequest::set_stockcode(const char* value) {
  
  stockcode_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  // @@protoc_insertion_point(field_set_char:TradeEntrustRequest.stockCode)
}
void TradeEntrustRequest::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:TradeEntrustRequest.stockCode)
}
::std::string* TradeEntrustRequest::mutable_stockcode() {
  
  // @@protoc_insertion_point(field_mutable:TradeEntrustRequest.stockCode)
  return stockcode_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
::std::string* TradeEntrustRequest::release_stockcode() {
  // @@protoc_insertion_point(field_release:TradeEntrustRequest.stockCode)
  
  return stockcode_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void TradeEntrustRequest::set_allocated_stockcode(::std::string* stockcode) {
  if (stockcode != NULL) {
    
  } else {
    
  }
  stockcode_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), stockcode);
  // @@protoc_insertion_point(field_set_allocated:TradeEntrustRequest.stockCode)
}

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

// optional string entrustAmount = 3;
void TradeEntrustRequest::clear_entrustamount() {
  entrustamount_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
const ::std::string& TradeEntrustRequest::entrustamount() const {
  // @@protoc_insertion_point(field_get:TradeEntrustRequest.entrustAmount)
  return entrustamount_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void TradeEntrustRequest::set_entrustamount(const ::std::string& value) {
  
  entrustamount_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  // @@protoc_insertion_point(field_set:TradeEntrustRequest.entrustAmount)
}
void TradeEntrustRequest::set_entrustamount(const char* value) {
  
  entrustamount_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  // @@protoc_insertion_point(field_set_char:TradeEntrustRequest.entrustAmount)
}
void TradeEntrustRequest::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:TradeEntrustRequest.entrustAmount)
}
::std::string* TradeEntrustRequest::mutable_entrustamount() {
  
  // @@protoc_insertion_point(field_mutable:TradeEntrustRequest.entrustAmount)
  return entrustamount_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
::std::string* TradeEntrustRequest::release_entrustamount() {
  // @@protoc_insertion_point(field_release:TradeEntrustRequest.entrustAmount)
  
  return entrustamount_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void TradeEntrustRequest::set_allocated_entrustamount(::std::string* entrustamount) {
  if (entrustamount != NULL) {
    
  } else {
    
  }
  entrustamount_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), entrustamount);
  // @@protoc_insertion_point(field_set_allocated:TradeEntrustRequest.entrustAmount)
}

// optional string entrustPrice = 4;
void TradeEntrustRequest::clear_entrustprice() {
  entrustprice_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
const ::std::string& TradeEntrustRequest::entrustprice() const {
  // @@protoc_insertion_point(field_get:TradeEntrustRequest.entrustPrice)
  return entrustprice_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void TradeEntrustRequest::set_entrustprice(const ::std::string& value) {
  
  entrustprice_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  // @@protoc_insertion_point(field_set:TradeEntrustRequest.entrustPrice)
}
void TradeEntrustRequest::set_entrustprice(const char* value) {
  
  entrustprice_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  // @@protoc_insertion_point(field_set_char:TradeEntrustRequest.entrustPrice)
}
void TradeEntrustRequest::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:TradeEntrustRequest.entrustPrice)
}
::std::string* TradeEntrustRequest::mutable_entrustprice() {
  
  // @@protoc_insertion_point(field_mutable:TradeEntrustRequest.entrustPrice)
  return entrustprice_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
::std::string* TradeEntrustRequest::release_entrustprice() {
  // @@protoc_insertion_point(field_release:TradeEntrustRequest.entrustPrice)
  
  return entrustprice_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void TradeEntrustRequest::set_allocated_entrustprice(::std::string* entrustprice) {
  if (entrustprice != NULL) {
    
  } else {
    
  }
  entrustprice_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), entrustprice);
  // @@protoc_insertion_point(field_set_allocated:TradeEntrustRequest.entrustPrice)
}

// optional string entrustBs = 5;
void TradeEntrustRequest::clear_entrustbs() {
  entrustbs_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
const ::std::string& TradeEntrustRequest::entrustbs() const {
  // @@protoc_insertion_point(field_get:TradeEntrustRequest.entrustBs)
  return entrustbs_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void TradeEntrustRequest::set_entrustbs(const ::std::string& value) {
  
  entrustbs_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  // @@protoc_insertion_point(field_set:TradeEntrustRequest.entrustBs)
}
void TradeEntrustRequest::set_entrustbs(const char* value) {
  
  entrustbs_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  // @@protoc_insertion_point(field_set_char:TradeEntrustRequest.entrustBs)
}
void TradeEntrustRequest::set_entrustbs(const char* value, size_t size) {
  
  entrustbs_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
      ::std::string(reinterpret_cast<const char*>(value), size));
  // @@protoc_insertion_point(field_set_pointer:TradeEntrustRequest.entrustBs)
}
::std::string* TradeEntrustRequest::mutable_entrustbs() {
  
  // @@protoc_insertion_point(field_mutable:TradeEntrustRequest.entrustBs)
  return entrustbs_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
::std::string* TradeEntrustRequest::release_entrustbs() {
  // @@protoc_insertion_point(field_release:TradeEntrustRequest.entrustBs)
  
  return entrustbs_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void TradeEntrustRequest::set_allocated_entrustbs(::std::string* entrustbs) {
  if (entrustbs != NULL) {
    
  } else {
    
  }
  entrustbs_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), entrustbs);
  // @@protoc_insertion_point(field_set_allocated:TradeEntrustRequest.entrustBs)
}

// optional string entrustType = 6;
void TradeEntrustRequest::clear_entrusttype() {
  entrusttype_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
const ::std::string& TradeEntrustRequest::entrusttype() const {
  // @@protoc_insertion_point(field_get:TradeEntrustRequest.entrustType)
  return entrusttype_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void TradeEntrustRequest::set_entrusttype(const ::std::string& value) {
  
  entrusttype_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  // @@protoc_insertion_point(field_set:TradeEntrustRequest.entrustType)
}
void TradeEntrustRequest::set_entrusttype(const char* value) {
  
  entrusttype_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  // @@protoc_insertion_point(field_set_char:TradeEntrustRequest.entrustType)
}
void TradeEntrustRequest::set_entrusttype(const char* value, size_t size) {
  
  entrusttype_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
      ::std::string(reinterpret_cast<const char*>(value), size));
  // @@protoc_insertion_point(field_set_pointer:TradeEntrustRequest.entrustType)
}
::std::string* TradeEntrustRequest::mutable_entrusttype() {
  
  // @@protoc_insertion_point(field_mutable:TradeEntrustRequest.entrustType)
  return entrusttype_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
::std::string* TradeEntrustRequest::release_entrusttype() {
  // @@protoc_insertion_point(field_release:TradeEntrustRequest.entrustType)
  
  return entrusttype_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void TradeEntrustRequest::set_allocated_entrusttype(::std::string* entrusttype) {
  if (entrusttype != NULL) {
    
  } else {
    
  }
  entrusttype_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), entrusttype);
  // @@protoc_insertion_point(field_set_allocated:TradeEntrustRequest.entrustType)
}

// optional int32 clientType = 7;
void TradeEntrustRequest::clear_clienttype() {
  clienttype_ = 0;
}
::google::protobuf::int32 TradeEntrustRequest::clienttype() const {
  // @@protoc_insertion_point(field_get:TradeEntrustRequest.clientType)
  return clienttype_;
}
void TradeEntrustRequest::set_clienttype(::google::protobuf::int32 value) {
  
  clienttype_ = value;
  // @@protoc_insertion_point(field_set:TradeEntrustRequest.clientType)
}

// optional string exchange = 8;
void TradeEntrustRequest::clear_exchange() {
  exchange_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
const ::std::string& TradeEntrustRequest::exchange() const {
  // @@protoc_insertion_point(field_get:TradeEntrustRequest.exchange)
  return exchange_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void TradeEntrustRequest::set_exchange(const ::std::string& value) {
  
  exchange_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  // @@protoc_insertion_point(field_set:TradeEntrustRequest.exchange)
}
void TradeEntrustRequest::set_exchange(const char* value) {
  
  exchange_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  // @@protoc_insertion_point(field_set_char:TradeEntrustRequest.exchange)
}
void TradeEntrustRequest::set_exchange(const char* value, size_t size) {
  
  exchange_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
      ::std::string(reinterpret_cast<const char*>(value), size));
  // @@protoc_insertion_point(field_set_pointer:TradeEntrustRequest.exchange)
}
::std::string* TradeEntrustRequest::mutable_exchange() {
  
  // @@protoc_insertion_point(field_mutable:TradeEntrustRequest.exchange)
  return exchange_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
::std::string* TradeEntrustRequest::release_exchange() {
  // @@protoc_insertion_point(field_release:TradeEntrustRequest.exchange)
  
  return exchange_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void TradeEntrustRequest::set_allocated_exchange(::std::string* exchange) {
  if (exchange != NULL) {
    
  } else {
    
  }
  exchange_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), exchange);
  // @@protoc_insertion_point(field_set_allocated:TradeEntrustRequest.exchange)
}

// optional string sessionType = 9;
void TradeEntrustRequest::clear_sessiontype() {
  sessiontype_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
const ::std::string& TradeEntrustRequest::sessiontype() const {
  // @@protoc_insertion_point(field_get:TradeEntrustRequest.sessionType)
  return sessiontype_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void TradeEntrustRequest::set_sessiontype(const ::std::string& value) {
  
  sessiontype_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  // @@protoc_insertion_point(field_set:TradeEntrustRequest.sessionType)
}
void TradeEntrustRequest::set_sessiontype(const char* value) {
  
  sessiontype_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  // @@protoc_insertion_point(field_set_char:TradeEntrustRequest.sessionType)
}
void TradeEntrustRequest::set_sessiontype(const char* value, size_t size) {
  
  sessiontype_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
      ::std::string(reinterpret_cast<const char*>(value), size));
  // @@protoc_insertion_point(field_set_pointer:TradeEntrustRequest.sessionType)
}
::std::string* TradeEntrustRequest::mutable_sessiontype() {
  
  // @@protoc_insertion_point(field_mutable:TradeEntrustRequest.sessionType)
  return sessiontype_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
::std::string* TradeEntrustRequest::release_sessiontype() {
  // @@protoc_insertion_point(field_release:TradeEntrustRequest.sessionType)
  
  return sessiontype_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void TradeEntrustRequest::set_allocated_sessiontype(::std::string* sessiontype) {
  if (sessiontype != NULL) {
    
  } else {
    
  }
  sessiontype_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), sessiontype);
  // @@protoc_insertion_point(field_set_allocated:TradeEntrustRequest.sessionType)
}

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

// @@protoc_insertion_point(namespace_scope)

// @@protoc_insertion_point(global_scope)
