// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: trade/response/futures/FuturesQueryBuySellAmountResponse.proto

#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
#include "trade/response/futures/FuturesQueryBuySellAmountResponse.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* FuturesQueryBuySellAmountResponse_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
  FuturesQueryBuySellAmountResponse_reflection_ = NULL;

}  // namespace


void protobuf_AssignDesc_trade_2fresponse_2ffutures_2fFuturesQueryBuySellAmountResponse_2eproto() GOOGLE_ATTRIBUTE_COLD;
void protobuf_AssignDesc_trade_2fresponse_2ffutures_2fFuturesQueryBuySellAmountResponse_2eproto() {
  protobuf_AddDesc_trade_2fresponse_2ffutures_2fFuturesQueryBuySellAmountResponse_2eproto();
  const ::google::protobuf::FileDescriptor* file =
    ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName(
      "trade/response/futures/FuturesQueryBuySellAmountResponse.proto");
  GOOGLE_CHECK(file != NULL);
  FuturesQueryBuySellAmountResponse_descriptor_ = file->message_type(0);
  static const int FuturesQueryBuySellAmountResponse_offsets_[5] = {
    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FuturesQueryBuySellAmountResponse, positionstatus_),
    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FuturesQueryBuySellAmountResponse, maxbuyamount_),
    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FuturesQueryBuySellAmountResponse, maxsellamount_),
    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FuturesQueryBuySellAmountResponse, initialmargin_),
    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FuturesQueryBuySellAmountResponse, ccy_),
  };
  FuturesQueryBuySellAmountResponse_reflection_ =
    ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
      FuturesQueryBuySellAmountResponse_descriptor_,
      FuturesQueryBuySellAmountResponse::internal_default_instance(),
      FuturesQueryBuySellAmountResponse_offsets_,
      -1,
      -1,
      -1,
      sizeof(FuturesQueryBuySellAmountResponse),
      GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FuturesQueryBuySellAmountResponse, _internal_metadata_));
}

namespace {

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

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

}  // namespace

void protobuf_ShutdownFile_trade_2fresponse_2ffutures_2fFuturesQueryBuySellAmountResponse_2eproto() {
  FuturesQueryBuySellAmountResponse_default_instance_.Shutdown();
  delete FuturesQueryBuySellAmountResponse_reflection_;
}

void protobuf_InitDefaults_trade_2fresponse_2ffutures_2fFuturesQueryBuySellAmountResponse_2eproto_impl() {
  GOOGLE_PROTOBUF_VERIFY_VERSION;

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

GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_InitDefaults_trade_2fresponse_2ffutures_2fFuturesQueryBuySellAmountResponse_2eproto_once_);
void protobuf_InitDefaults_trade_2fresponse_2ffutures_2fFuturesQueryBuySellAmountResponse_2eproto() {
  ::google::protobuf::GoogleOnceInit(&protobuf_InitDefaults_trade_2fresponse_2ffutures_2fFuturesQueryBuySellAmountResponse_2eproto_once_,
                 &protobuf_InitDefaults_trade_2fresponse_2ffutures_2fFuturesQueryBuySellAmountResponse_2eproto_impl);
}
void protobuf_AddDesc_trade_2fresponse_2ffutures_2fFuturesQueryBuySellAmountResponse_2eproto_impl() {
  GOOGLE_PROTOBUF_VERIFY_VERSION;

  protobuf_InitDefaults_trade_2fresponse_2ffutures_2fFuturesQueryBuySellAmountResponse_2eproto();
  ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
    "\n>trade/response/futures/FuturesQueryBuy"
    "SellAmountResponse.proto\"\214\001\n!FuturesQuer"
    "yBuySellAmountResponse\022\026\n\016positionStatus"
    "\030\001 \001(\005\022\024\n\014maxBuyAmount\030\002 \001(\003\022\025\n\rmaxSellA"
    "mount\030\003 \001(\003\022\025\n\rinitialMargin\030\004 \001(\t\022\013\n\003cc"
    "y\030\005 \001(\tBe\n;com.huasheng.quant.open.sdk.p"
    "rotobuf.trade.response.futuresB&FuturesQ"
    "ueryBuySellAmountResponseProtob\006proto3", 318);
  ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
    "trade/response/futures/FuturesQueryBuySellAmountResponse.proto", &protobuf_RegisterTypes);
  ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_trade_2fresponse_2ffutures_2fFuturesQueryBuySellAmountResponse_2eproto);
}

GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AddDesc_trade_2fresponse_2ffutures_2fFuturesQueryBuySellAmountResponse_2eproto_once_);
void protobuf_AddDesc_trade_2fresponse_2ffutures_2fFuturesQueryBuySellAmountResponse_2eproto() {
  ::google::protobuf::GoogleOnceInit(&protobuf_AddDesc_trade_2fresponse_2ffutures_2fFuturesQueryBuySellAmountResponse_2eproto_once_,
                 &protobuf_AddDesc_trade_2fresponse_2ffutures_2fFuturesQueryBuySellAmountResponse_2eproto_impl);
}
// Force AddDescriptors() to be called at static initialization time.
struct StaticDescriptorInitializer_trade_2fresponse_2ffutures_2fFuturesQueryBuySellAmountResponse_2eproto {
  StaticDescriptorInitializer_trade_2fresponse_2ffutures_2fFuturesQueryBuySellAmountResponse_2eproto() {
    protobuf_AddDesc_trade_2fresponse_2ffutures_2fFuturesQueryBuySellAmountResponse_2eproto();
  }
} static_descriptor_initializer_trade_2fresponse_2ffutures_2fFuturesQueryBuySellAmountResponse_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 FuturesQueryBuySellAmountResponse::kPositionStatusFieldNumber;
const int FuturesQueryBuySellAmountResponse::kMaxBuyAmountFieldNumber;
const int FuturesQueryBuySellAmountResponse::kMaxSellAmountFieldNumber;
const int FuturesQueryBuySellAmountResponse::kInitialMarginFieldNumber;
const int FuturesQueryBuySellAmountResponse::kCcyFieldNumber;
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900

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

void FuturesQueryBuySellAmountResponse::InitAsDefaultInstance() {
}

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

void FuturesQueryBuySellAmountResponse::SharedCtor() {
  initialmargin_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  ccy_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  ::memset(&maxbuyamount_, 0, reinterpret_cast<char*>(&positionstatus_) -
    reinterpret_cast<char*>(&maxbuyamount_) + sizeof(positionstatus_));
  _cached_size_ = 0;
}

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

void FuturesQueryBuySellAmountResponse::SharedDtor() {
  initialmargin_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  ccy_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}

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

const FuturesQueryBuySellAmountResponse& FuturesQueryBuySellAmountResponse::default_instance() {
  protobuf_InitDefaults_trade_2fresponse_2ffutures_2fFuturesQueryBuySellAmountResponse_2eproto();
  return *internal_default_instance();
}

::google::protobuf::internal::ExplicitlyConstructed<FuturesQueryBuySellAmountResponse> FuturesQueryBuySellAmountResponse_default_instance_;

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

void FuturesQueryBuySellAmountResponse::Clear() {
// @@protoc_insertion_point(message_clear_start:FuturesQueryBuySellAmountResponse)
#if defined(__clang__)
#define ZR_HELPER_(f) \
  _Pragma("clang diagnostic push") \
  _Pragma("clang diagnostic ignored \"-Winvalid-offsetof\"") \
  __builtin_offsetof(FuturesQueryBuySellAmountResponse, f) \
  _Pragma("clang diagnostic pop")
#else
#define ZR_HELPER_(f) reinterpret_cast<char*>(\
  &reinterpret_cast<FuturesQueryBuySellAmountResponse*>(16)->f)
#endif

#define ZR_(first, last) do {\
  ::memset(&(first), 0,\
           ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\
} while (0)

  ZR_(maxbuyamount_, positionstatus_);
  initialmargin_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  ccy_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());

#undef ZR_HELPER_
#undef ZR_

}

bool FuturesQueryBuySellAmountResponse::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:FuturesQueryBuySellAmountResponse)
  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 int32 positionStatus = 1;
      case 1: {
        if (tag == 8) {

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

      // optional int64 maxBuyAmount = 2;
      case 2: {
        if (tag == 16) {
         parse_maxBuyAmount:

          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
                   ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
                 input, &maxbuyamount_)));
        } else {
          goto handle_unusual;
        }
        if (input->ExpectTag(24)) goto parse_maxSellAmount;
        break;
      }

      // optional int64 maxSellAmount = 3;
      case 3: {
        if (tag == 24) {
         parse_maxSellAmount:

          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
                   ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
                 input, &maxsellamount_)));
        } else {
          goto handle_unusual;
        }
        if (input->ExpectTag(34)) goto parse_initialMargin;
        break;
      }

      // optional string initialMargin = 4;
      case 4: {
        if (tag == 34) {
         parse_initialMargin:
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
                input, this->mutable_initialmargin()));
          DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
            this->initialmargin().data(), this->initialmargin().length(),
            ::google::protobuf::internal::WireFormatLite::PARSE,
            "FuturesQueryBuySellAmountResponse.initialMargin"));
        } else {
          goto handle_unusual;
        }
        if (input->ExpectTag(42)) goto parse_ccy;
        break;
      }

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

void FuturesQueryBuySellAmountResponse::SerializeWithCachedSizes(
    ::google::protobuf::io::CodedOutputStream* output) const {
  // @@protoc_insertion_point(serialize_start:FuturesQueryBuySellAmountResponse)
  // optional int32 positionStatus = 1;
  if (this->positionstatus() != 0) {
    ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->positionstatus(), output);
  }

  // optional int64 maxBuyAmount = 2;
  if (this->maxbuyamount() != 0) {
    ::google::protobuf::internal::WireFormatLite::WriteInt64(2, this->maxbuyamount(), output);
  }

  // optional int64 maxSellAmount = 3;
  if (this->maxsellamount() != 0) {
    ::google::protobuf::internal::WireFormatLite::WriteInt64(3, this->maxsellamount(), output);
  }

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

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

  // @@protoc_insertion_point(serialize_end:FuturesQueryBuySellAmountResponse)
}

::google::protobuf::uint8* FuturesQueryBuySellAmountResponse::InternalSerializeWithCachedSizesToArray(
    bool deterministic, ::google::protobuf::uint8* target) const {
  (void)deterministic; // Unused
  // @@protoc_insertion_point(serialize_to_array_start:FuturesQueryBuySellAmountResponse)
  // optional int32 positionStatus = 1;
  if (this->positionstatus() != 0) {
    target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->positionstatus(), target);
  }

  // optional int64 maxBuyAmount = 2;
  if (this->maxbuyamount() != 0) {
    target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(2, this->maxbuyamount(), target);
  }

  // optional int64 maxSellAmount = 3;
  if (this->maxsellamount() != 0) {
    target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(3, this->maxsellamount(), target);
  }

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

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

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

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

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

  // optional int64 maxBuyAmount = 2;
  if (this->maxbuyamount() != 0) {
    total_size += 1 +
      ::google::protobuf::internal::WireFormatLite::Int64Size(
        this->maxbuyamount());
  }

  // optional int64 maxSellAmount = 3;
  if (this->maxsellamount() != 0) {
    total_size += 1 +
      ::google::protobuf::internal::WireFormatLite::Int64Size(
        this->maxsellamount());
  }

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

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

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

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

void FuturesQueryBuySellAmountResponse::UnsafeMergeFrom(const FuturesQueryBuySellAmountResponse& from) {
  GOOGLE_DCHECK(&from != this);
  if (from.positionstatus() != 0) {
    set_positionstatus(from.positionstatus());
  }
  if (from.maxbuyamount() != 0) {
    set_maxbuyamount(from.maxbuyamount());
  }
  if (from.maxsellamount() != 0) {
    set_maxsellamount(from.maxsellamount());
  }
  if (from.initialmargin().size() > 0) {

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

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

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

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

bool FuturesQueryBuySellAmountResponse::IsInitialized() const {

  return true;
}

void FuturesQueryBuySellAmountResponse::Swap(FuturesQueryBuySellAmountResponse* other) {
  if (other == this) return;
  InternalSwap(other);
}
void FuturesQueryBuySellAmountResponse::InternalSwap(FuturesQueryBuySellAmountResponse* other) {
  std::swap(positionstatus_, other->positionstatus_);
  std::swap(maxbuyamount_, other->maxbuyamount_);
  std::swap(maxsellamount_, other->maxsellamount_);
  initialmargin_.Swap(&other->initialmargin_);
  ccy_.Swap(&other->ccy_);
  _internal_metadata_.Swap(&other->_internal_metadata_);
  std::swap(_cached_size_, other->_cached_size_);
}

::google::protobuf::Metadata FuturesQueryBuySellAmountResponse::GetMetadata() const {
  protobuf_AssignDescriptorsOnce();
  ::google::protobuf::Metadata metadata;
  metadata.descriptor = FuturesQueryBuySellAmountResponse_descriptor_;
  metadata.reflection = FuturesQueryBuySellAmountResponse_reflection_;
  return metadata;
}

#if PROTOBUF_INLINE_NOT_IN_HEADERS
// FuturesQueryBuySellAmountResponse

// optional int32 positionStatus = 1;
void FuturesQueryBuySellAmountResponse::clear_positionstatus() {
  positionstatus_ = 0;
}
::google::protobuf::int32 FuturesQueryBuySellAmountResponse::positionstatus() const {
  // @@protoc_insertion_point(field_get:FuturesQueryBuySellAmountResponse.positionStatus)
  return positionstatus_;
}
void FuturesQueryBuySellAmountResponse::set_positionstatus(::google::protobuf::int32 value) {
  
  positionstatus_ = value;
  // @@protoc_insertion_point(field_set:FuturesQueryBuySellAmountResponse.positionStatus)
}

// optional int64 maxBuyAmount = 2;
void FuturesQueryBuySellAmountResponse::clear_maxbuyamount() {
  maxbuyamount_ = GOOGLE_LONGLONG(0);
}
::google::protobuf::int64 FuturesQueryBuySellAmountResponse::maxbuyamount() const {
  // @@protoc_insertion_point(field_get:FuturesQueryBuySellAmountResponse.maxBuyAmount)
  return maxbuyamount_;
}
void FuturesQueryBuySellAmountResponse::set_maxbuyamount(::google::protobuf::int64 value) {
  
  maxbuyamount_ = value;
  // @@protoc_insertion_point(field_set:FuturesQueryBuySellAmountResponse.maxBuyAmount)
}

// optional int64 maxSellAmount = 3;
void FuturesQueryBuySellAmountResponse::clear_maxsellamount() {
  maxsellamount_ = GOOGLE_LONGLONG(0);
}
::google::protobuf::int64 FuturesQueryBuySellAmountResponse::maxsellamount() const {
  // @@protoc_insertion_point(field_get:FuturesQueryBuySellAmountResponse.maxSellAmount)
  return maxsellamount_;
}
void FuturesQueryBuySellAmountResponse::set_maxsellamount(::google::protobuf::int64 value) {
  
  maxsellamount_ = value;
  // @@protoc_insertion_point(field_set:FuturesQueryBuySellAmountResponse.maxSellAmount)
}

// optional string initialMargin = 4;
void FuturesQueryBuySellAmountResponse::clear_initialmargin() {
  initialmargin_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
const ::std::string& FuturesQueryBuySellAmountResponse::initialmargin() const {
  // @@protoc_insertion_point(field_get:FuturesQueryBuySellAmountResponse.initialMargin)
  return initialmargin_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void FuturesQueryBuySellAmountResponse::set_initialmargin(const ::std::string& value) {
  
  initialmargin_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  // @@protoc_insertion_point(field_set:FuturesQueryBuySellAmountResponse.initialMargin)
}
void FuturesQueryBuySellAmountResponse::set_initialmargin(const char* value) {
  
  initialmargin_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  // @@protoc_insertion_point(field_set_char:FuturesQueryBuySellAmountResponse.initialMargin)
}
void FuturesQueryBuySellAmountResponse::set_initialmargin(const char* value, size_t size) {
  
  initialmargin_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
      ::std::string(reinterpret_cast<const char*>(value), size));
  // @@protoc_insertion_point(field_set_pointer:FuturesQueryBuySellAmountResponse.initialMargin)
}
::std::string* FuturesQueryBuySellAmountResponse::mutable_initialmargin() {
  
  // @@protoc_insertion_point(field_mutable:FuturesQueryBuySellAmountResponse.initialMargin)
  return initialmargin_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
::std::string* FuturesQueryBuySellAmountResponse::release_initialmargin() {
  // @@protoc_insertion_point(field_release:FuturesQueryBuySellAmountResponse.initialMargin)
  
  return initialmargin_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void FuturesQueryBuySellAmountResponse::set_allocated_initialmargin(::std::string* initialmargin) {
  if (initialmargin != NULL) {
    
  } else {
    
  }
  initialmargin_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), initialmargin);
  // @@protoc_insertion_point(field_set_allocated:FuturesQueryBuySellAmountResponse.initialMargin)
}

// optional string ccy = 5;
void FuturesQueryBuySellAmountResponse::clear_ccy() {
  ccy_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
const ::std::string& FuturesQueryBuySellAmountResponse::ccy() const {
  // @@protoc_insertion_point(field_get:FuturesQueryBuySellAmountResponse.ccy)
  return ccy_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void FuturesQueryBuySellAmountResponse::set_ccy(const ::std::string& value) {
  
  ccy_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  // @@protoc_insertion_point(field_set:FuturesQueryBuySellAmountResponse.ccy)
}
void FuturesQueryBuySellAmountResponse::set_ccy(const char* value) {
  
  ccy_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  // @@protoc_insertion_point(field_set_char:FuturesQueryBuySellAmountResponse.ccy)
}
void FuturesQueryBuySellAmountResponse::set_ccy(const char* value, size_t size) {
  
  ccy_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
      ::std::string(reinterpret_cast<const char*>(value), size));
  // @@protoc_insertion_point(field_set_pointer:FuturesQueryBuySellAmountResponse.ccy)
}
::std::string* FuturesQueryBuySellAmountResponse::mutable_ccy() {
  
  // @@protoc_insertion_point(field_mutable:FuturesQueryBuySellAmountResponse.ccy)
  return ccy_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
::std::string* FuturesQueryBuySellAmountResponse::release_ccy() {
  // @@protoc_insertion_point(field_release:FuturesQueryBuySellAmountResponse.ccy)
  
  return ccy_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void FuturesQueryBuySellAmountResponse::set_allocated_ccy(::std::string* ccy) {
  if (ccy != NULL) {
    
  } else {
    
  }
  ccy_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ccy);
  // @@protoc_insertion_point(field_set_allocated:FuturesQueryBuySellAmountResponse.ccy)
}

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

// @@protoc_insertion_point(namespace_scope)

// @@protoc_insertion_point(global_scope)
