// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: plateform/vo/MemberOptStockGroup.proto

#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
#include "plateform/vo/MemberOptStockGroup.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* MemberOptStockGroup_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
  MemberOptStockGroup_reflection_ = NULL;

}  // namespace


void protobuf_AssignDesc_plateform_2fvo_2fMemberOptStockGroup_2eproto() GOOGLE_ATTRIBUTE_COLD;
void protobuf_AssignDesc_plateform_2fvo_2fMemberOptStockGroup_2eproto() {
  protobuf_AddDesc_plateform_2fvo_2fMemberOptStockGroup_2eproto();
  const ::google::protobuf::FileDescriptor* file =
    ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName(
      "plateform/vo/MemberOptStockGroup.proto");
  GOOGLE_CHECK(file != NULL);
  MemberOptStockGroup_descriptor_ = file->message_type(0);
  static const int MemberOptStockGroup_offsets_[7] = {
    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MemberOptStockGroup, id_),
    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MemberOptStockGroup, groupname_),
    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MemberOptStockGroup, groupftname_),
    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MemberOptStockGroup, issystem_),
    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MemberOptStockGroup, ordernum_),
    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MemberOptStockGroup, stocknum_),
    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MemberOptStockGroup, optionstocks_),
  };
  MemberOptStockGroup_reflection_ =
    ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
      MemberOptStockGroup_descriptor_,
      MemberOptStockGroup::internal_default_instance(),
      MemberOptStockGroup_offsets_,
      -1,
      -1,
      -1,
      sizeof(MemberOptStockGroup),
      GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MemberOptStockGroup, _internal_metadata_));
}

namespace {

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

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

}  // namespace

void protobuf_ShutdownFile_plateform_2fvo_2fMemberOptStockGroup_2eproto() {
  MemberOptStockGroup_default_instance_.Shutdown();
  delete MemberOptStockGroup_reflection_;
}

void protobuf_InitDefaults_plateform_2fvo_2fMemberOptStockGroup_2eproto_impl() {
  GOOGLE_PROTOBUF_VERIFY_VERSION;

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

GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_InitDefaults_plateform_2fvo_2fMemberOptStockGroup_2eproto_once_);
void protobuf_InitDefaults_plateform_2fvo_2fMemberOptStockGroup_2eproto() {
  ::google::protobuf::GoogleOnceInit(&protobuf_InitDefaults_plateform_2fvo_2fMemberOptStockGroup_2eproto_once_,
                 &protobuf_InitDefaults_plateform_2fvo_2fMemberOptStockGroup_2eproto_impl);
}
void protobuf_AddDesc_plateform_2fvo_2fMemberOptStockGroup_2eproto_impl() {
  GOOGLE_PROTOBUF_VERIFY_VERSION;

  protobuf_InitDefaults_plateform_2fvo_2fMemberOptStockGroup_2eproto();
  ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
    "\n&plateform/vo/MemberOptStockGroup.proto"
    "\032&plateform/vo/MemberOptionalStock.proto"
    "\"\253\001\n\023MemberOptStockGroup\022\n\n\002id\030\001 \001(\t\022\021\n\t"
    "groupName\030\002 \001(\t\022\023\n\013groupFtName\030\003 \001(\t\022\020\n\010"
    "isSystem\030\004 \001(\t\022\020\n\010orderNum\030\005 \001(\005\022\020\n\010stoc"
    "kNum\030\006 \001(\005\022*\n\014optionStocks\030\007 \003(\0132\024.Membe"
    "rOptionalStockBM\n1com.huasheng.quant.ope"
    "n.sdk.protobuf.plateform.voB\030MemberOptSt"
    "ockGroupProtob\006proto3", 341);
  ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
    "plateform/vo/MemberOptStockGroup.proto", &protobuf_RegisterTypes);
  ::protobuf_AddDesc_plateform_2fvo_2fMemberOptionalStock_2eproto();
  ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_plateform_2fvo_2fMemberOptStockGroup_2eproto);
}

GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AddDesc_plateform_2fvo_2fMemberOptStockGroup_2eproto_once_);
void protobuf_AddDesc_plateform_2fvo_2fMemberOptStockGroup_2eproto() {
  ::google::protobuf::GoogleOnceInit(&protobuf_AddDesc_plateform_2fvo_2fMemberOptStockGroup_2eproto_once_,
                 &protobuf_AddDesc_plateform_2fvo_2fMemberOptStockGroup_2eproto_impl);
}
// Force AddDescriptors() to be called at static initialization time.
struct StaticDescriptorInitializer_plateform_2fvo_2fMemberOptStockGroup_2eproto {
  StaticDescriptorInitializer_plateform_2fvo_2fMemberOptStockGroup_2eproto() {
    protobuf_AddDesc_plateform_2fvo_2fMemberOptStockGroup_2eproto();
  }
} static_descriptor_initializer_plateform_2fvo_2fMemberOptStockGroup_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 MemberOptStockGroup::kIdFieldNumber;
const int MemberOptStockGroup::kGroupNameFieldNumber;
const int MemberOptStockGroup::kGroupFtNameFieldNumber;
const int MemberOptStockGroup::kIsSystemFieldNumber;
const int MemberOptStockGroup::kOrderNumFieldNumber;
const int MemberOptStockGroup::kStockNumFieldNumber;
const int MemberOptStockGroup::kOptionStocksFieldNumber;
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900

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

void MemberOptStockGroup::InitAsDefaultInstance() {
}

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

void MemberOptStockGroup::SharedCtor() {
  id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  groupname_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  groupftname_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  issystem_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  ::memset(&ordernum_, 0, reinterpret_cast<char*>(&stocknum_) -
    reinterpret_cast<char*>(&ordernum_) + sizeof(stocknum_));
  _cached_size_ = 0;
}

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

void MemberOptStockGroup::SharedDtor() {
  id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  groupname_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  groupftname_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  issystem_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}

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

const MemberOptStockGroup& MemberOptStockGroup::default_instance() {
  protobuf_InitDefaults_plateform_2fvo_2fMemberOptStockGroup_2eproto();
  return *internal_default_instance();
}

::google::protobuf::internal::ExplicitlyConstructed<MemberOptStockGroup> MemberOptStockGroup_default_instance_;

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

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

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

  ZR_(ordernum_, stocknum_);
  id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  groupname_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  groupftname_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  issystem_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());

#undef ZR_HELPER_
#undef ZR_

  optionstocks_.Clear();
}

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

      // optional string groupName = 2;
      case 2: {
        if (tag == 18) {
         parse_groupName:
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
                input, this->mutable_groupname()));
          DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
            this->groupname().data(), this->groupname().length(),
            ::google::protobuf::internal::WireFormatLite::PARSE,
            "MemberOptStockGroup.groupName"));
        } else {
          goto handle_unusual;
        }
        if (input->ExpectTag(26)) goto parse_groupFtName;
        break;
      }

      // optional string groupFtName = 3;
      case 3: {
        if (tag == 26) {
         parse_groupFtName:
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
                input, this->mutable_groupftname()));
          DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
            this->groupftname().data(), this->groupftname().length(),
            ::google::protobuf::internal::WireFormatLite::PARSE,
            "MemberOptStockGroup.groupFtName"));
        } else {
          goto handle_unusual;
        }
        if (input->ExpectTag(34)) goto parse_isSystem;
        break;
      }

      // optional string isSystem = 4;
      case 4: {
        if (tag == 34) {
         parse_isSystem:
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
                input, this->mutable_issystem()));
          DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
            this->issystem().data(), this->issystem().length(),
            ::google::protobuf::internal::WireFormatLite::PARSE,
            "MemberOptStockGroup.isSystem"));
        } else {
          goto handle_unusual;
        }
        if (input->ExpectTag(40)) goto parse_orderNum;
        break;
      }

      // optional int32 orderNum = 5;
      case 5: {
        if (tag == 40) {
         parse_orderNum:

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

      // optional int32 stockNum = 6;
      case 6: {
        if (tag == 48) {
         parse_stockNum:

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

      // repeated .MemberOptionalStock optionStocks = 7;
      case 7: {
        if (tag == 58) {
         parse_optionStocks:
          DO_(input->IncrementRecursionDepth());
         parse_loop_optionStocks:
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth(
                input, add_optionstocks()));
        } else {
          goto handle_unusual;
        }
        if (input->ExpectTag(58)) goto parse_loop_optionStocks;
        input->UnsafeDecrementRecursionDepth();
        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:MemberOptStockGroup)
  return true;
failure:
  // @@protoc_insertion_point(parse_failure:MemberOptStockGroup)
  return false;
#undef DO_
}

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

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

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

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

  // optional int32 orderNum = 5;
  if (this->ordernum() != 0) {
    ::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->ordernum(), output);
  }

  // optional int32 stockNum = 6;
  if (this->stocknum() != 0) {
    ::google::protobuf::internal::WireFormatLite::WriteInt32(6, this->stocknum(), output);
  }

  // repeated .MemberOptionalStock optionStocks = 7;
  for (unsigned int i = 0, n = this->optionstocks_size(); i < n; i++) {
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
      7, this->optionstocks(i), output);
  }

  // @@protoc_insertion_point(serialize_end:MemberOptStockGroup)
}

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

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

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

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

  // optional int32 orderNum = 5;
  if (this->ordernum() != 0) {
    target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->ordernum(), target);
  }

  // optional int32 stockNum = 6;
  if (this->stocknum() != 0) {
    target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(6, this->stocknum(), target);
  }

  // repeated .MemberOptionalStock optionStocks = 7;
  for (unsigned int i = 0, n = this->optionstocks_size(); i < n; i++) {
    target = ::google::protobuf::internal::WireFormatLite::
      InternalWriteMessageNoVirtualToArray(
        7, this->optionstocks(i), false, target);
  }

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

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

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

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

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

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

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

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

  // repeated .MemberOptionalStock optionStocks = 7;
  {
    unsigned int count = this->optionstocks_size();
    total_size += 1UL * count;
    for (unsigned int i = 0; i < count; i++) {
      total_size +=
        ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
          this->optionstocks(i));
    }
  }

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

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

void MemberOptStockGroup::UnsafeMergeFrom(const MemberOptStockGroup& from) {
  GOOGLE_DCHECK(&from != this);
  optionstocks_.MergeFrom(from.optionstocks_);
  if (from.id().size() > 0) {

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

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

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

    issystem_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.issystem_);
  }
  if (from.ordernum() != 0) {
    set_ordernum(from.ordernum());
  }
  if (from.stocknum() != 0) {
    set_stocknum(from.stocknum());
  }
}

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

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

bool MemberOptStockGroup::IsInitialized() const {

  return true;
}

void MemberOptStockGroup::Swap(MemberOptStockGroup* other) {
  if (other == this) return;
  InternalSwap(other);
}
void MemberOptStockGroup::InternalSwap(MemberOptStockGroup* other) {
  id_.Swap(&other->id_);
  groupname_.Swap(&other->groupname_);
  groupftname_.Swap(&other->groupftname_);
  issystem_.Swap(&other->issystem_);
  std::swap(ordernum_, other->ordernum_);
  std::swap(stocknum_, other->stocknum_);
  optionstocks_.UnsafeArenaSwap(&other->optionstocks_);
  _internal_metadata_.Swap(&other->_internal_metadata_);
  std::swap(_cached_size_, other->_cached_size_);
}

::google::protobuf::Metadata MemberOptStockGroup::GetMetadata() const {
  protobuf_AssignDescriptorsOnce();
  ::google::protobuf::Metadata metadata;
  metadata.descriptor = MemberOptStockGroup_descriptor_;
  metadata.reflection = MemberOptStockGroup_reflection_;
  return metadata;
}

#if PROTOBUF_INLINE_NOT_IN_HEADERS
// MemberOptStockGroup

// optional string id = 1;
void MemberOptStockGroup::clear_id() {
  id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
const ::std::string& MemberOptStockGroup::id() const {
  // @@protoc_insertion_point(field_get:MemberOptStockGroup.id)
  return id_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void MemberOptStockGroup::set_id(const ::std::string& value) {
  
  id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  // @@protoc_insertion_point(field_set:MemberOptStockGroup.id)
}
void MemberOptStockGroup::set_id(const char* value) {
  
  id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  // @@protoc_insertion_point(field_set_char:MemberOptStockGroup.id)
}
void MemberOptStockGroup::set_id(const char* value, size_t size) {
  
  id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
      ::std::string(reinterpret_cast<const char*>(value), size));
  // @@protoc_insertion_point(field_set_pointer:MemberOptStockGroup.id)
}
::std::string* MemberOptStockGroup::mutable_id() {
  
  // @@protoc_insertion_point(field_mutable:MemberOptStockGroup.id)
  return id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
::std::string* MemberOptStockGroup::release_id() {
  // @@protoc_insertion_point(field_release:MemberOptStockGroup.id)
  
  return id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void MemberOptStockGroup::set_allocated_id(::std::string* id) {
  if (id != NULL) {
    
  } else {
    
  }
  id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), id);
  // @@protoc_insertion_point(field_set_allocated:MemberOptStockGroup.id)
}

// optional string groupName = 2;
void MemberOptStockGroup::clear_groupname() {
  groupname_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
const ::std::string& MemberOptStockGroup::groupname() const {
  // @@protoc_insertion_point(field_get:MemberOptStockGroup.groupName)
  return groupname_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void MemberOptStockGroup::set_groupname(const ::std::string& value) {
  
  groupname_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  // @@protoc_insertion_point(field_set:MemberOptStockGroup.groupName)
}
void MemberOptStockGroup::set_groupname(const char* value) {
  
  groupname_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  // @@protoc_insertion_point(field_set_char:MemberOptStockGroup.groupName)
}
void MemberOptStockGroup::set_groupname(const char* value, size_t size) {
  
  groupname_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
      ::std::string(reinterpret_cast<const char*>(value), size));
  // @@protoc_insertion_point(field_set_pointer:MemberOptStockGroup.groupName)
}
::std::string* MemberOptStockGroup::mutable_groupname() {
  
  // @@protoc_insertion_point(field_mutable:MemberOptStockGroup.groupName)
  return groupname_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
::std::string* MemberOptStockGroup::release_groupname() {
  // @@protoc_insertion_point(field_release:MemberOptStockGroup.groupName)
  
  return groupname_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void MemberOptStockGroup::set_allocated_groupname(::std::string* groupname) {
  if (groupname != NULL) {
    
  } else {
    
  }
  groupname_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), groupname);
  // @@protoc_insertion_point(field_set_allocated:MemberOptStockGroup.groupName)
}

// optional string groupFtName = 3;
void MemberOptStockGroup::clear_groupftname() {
  groupftname_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
const ::std::string& MemberOptStockGroup::groupftname() const {
  // @@protoc_insertion_point(field_get:MemberOptStockGroup.groupFtName)
  return groupftname_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void MemberOptStockGroup::set_groupftname(const ::std::string& value) {
  
  groupftname_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  // @@protoc_insertion_point(field_set:MemberOptStockGroup.groupFtName)
}
void MemberOptStockGroup::set_groupftname(const char* value) {
  
  groupftname_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  // @@protoc_insertion_point(field_set_char:MemberOptStockGroup.groupFtName)
}
void MemberOptStockGroup::set_groupftname(const char* value, size_t size) {
  
  groupftname_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
      ::std::string(reinterpret_cast<const char*>(value), size));
  // @@protoc_insertion_point(field_set_pointer:MemberOptStockGroup.groupFtName)
}
::std::string* MemberOptStockGroup::mutable_groupftname() {
  
  // @@protoc_insertion_point(field_mutable:MemberOptStockGroup.groupFtName)
  return groupftname_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
::std::string* MemberOptStockGroup::release_groupftname() {
  // @@protoc_insertion_point(field_release:MemberOptStockGroup.groupFtName)
  
  return groupftname_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void MemberOptStockGroup::set_allocated_groupftname(::std::string* groupftname) {
  if (groupftname != NULL) {
    
  } else {
    
  }
  groupftname_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), groupftname);
  // @@protoc_insertion_point(field_set_allocated:MemberOptStockGroup.groupFtName)
}

// optional string isSystem = 4;
void MemberOptStockGroup::clear_issystem() {
  issystem_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
const ::std::string& MemberOptStockGroup::issystem() const {
  // @@protoc_insertion_point(field_get:MemberOptStockGroup.isSystem)
  return issystem_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void MemberOptStockGroup::set_issystem(const ::std::string& value) {
  
  issystem_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  // @@protoc_insertion_point(field_set:MemberOptStockGroup.isSystem)
}
void MemberOptStockGroup::set_issystem(const char* value) {
  
  issystem_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  // @@protoc_insertion_point(field_set_char:MemberOptStockGroup.isSystem)
}
void MemberOptStockGroup::set_issystem(const char* value, size_t size) {
  
  issystem_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
      ::std::string(reinterpret_cast<const char*>(value), size));
  // @@protoc_insertion_point(field_set_pointer:MemberOptStockGroup.isSystem)
}
::std::string* MemberOptStockGroup::mutable_issystem() {
  
  // @@protoc_insertion_point(field_mutable:MemberOptStockGroup.isSystem)
  return issystem_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
::std::string* MemberOptStockGroup::release_issystem() {
  // @@protoc_insertion_point(field_release:MemberOptStockGroup.isSystem)
  
  return issystem_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void MemberOptStockGroup::set_allocated_issystem(::std::string* issystem) {
  if (issystem != NULL) {
    
  } else {
    
  }
  issystem_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), issystem);
  // @@protoc_insertion_point(field_set_allocated:MemberOptStockGroup.isSystem)
}

// optional int32 orderNum = 5;
void MemberOptStockGroup::clear_ordernum() {
  ordernum_ = 0;
}
::google::protobuf::int32 MemberOptStockGroup::ordernum() const {
  // @@protoc_insertion_point(field_get:MemberOptStockGroup.orderNum)
  return ordernum_;
}
void MemberOptStockGroup::set_ordernum(::google::protobuf::int32 value) {
  
  ordernum_ = value;
  // @@protoc_insertion_point(field_set:MemberOptStockGroup.orderNum)
}

// optional int32 stockNum = 6;
void MemberOptStockGroup::clear_stocknum() {
  stocknum_ = 0;
}
::google::protobuf::int32 MemberOptStockGroup::stocknum() const {
  // @@protoc_insertion_point(field_get:MemberOptStockGroup.stockNum)
  return stocknum_;
}
void MemberOptStockGroup::set_stocknum(::google::protobuf::int32 value) {
  
  stocknum_ = value;
  // @@protoc_insertion_point(field_set:MemberOptStockGroup.stockNum)
}

// repeated .MemberOptionalStock optionStocks = 7;
int MemberOptStockGroup::optionstocks_size() const {
  return optionstocks_.size();
}
void MemberOptStockGroup::clear_optionstocks() {
  optionstocks_.Clear();
}
const ::MemberOptionalStock& MemberOptStockGroup::optionstocks(int index) const {
  // @@protoc_insertion_point(field_get:MemberOptStockGroup.optionStocks)
  return optionstocks_.Get(index);
}
::MemberOptionalStock* MemberOptStockGroup::mutable_optionstocks(int index) {
  // @@protoc_insertion_point(field_mutable:MemberOptStockGroup.optionStocks)
  return optionstocks_.Mutable(index);
}
::MemberOptionalStock* MemberOptStockGroup::add_optionstocks() {
  // @@protoc_insertion_point(field_add:MemberOptStockGroup.optionStocks)
  return optionstocks_.Add();
}
::google::protobuf::RepeatedPtrField< ::MemberOptionalStock >*
MemberOptStockGroup::mutable_optionstocks() {
  // @@protoc_insertion_point(field_mutable_list:MemberOptStockGroup.optionStocks)
  return &optionstocks_;
}
const ::google::protobuf::RepeatedPtrField< ::MemberOptionalStock >&
MemberOptStockGroup::optionstocks() const {
  // @@protoc_insertion_point(field_list:MemberOptStockGroup.optionStocks)
  return optionstocks_;
}

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

// @@protoc_insertion_point(namespace_scope)

// @@protoc_insertion_point(global_scope)
