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

#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
#include "plateform/request/OptStockAddRequest.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* OptStockAddRequest_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
  OptStockAddRequest_reflection_ = NULL;

}  // namespace


void protobuf_AssignDesc_plateform_2frequest_2fOptStockAddRequest_2eproto() GOOGLE_ATTRIBUTE_COLD;
void protobuf_AssignDesc_plateform_2frequest_2fOptStockAddRequest_2eproto() {
  protobuf_AddDesc_plateform_2frequest_2fOptStockAddRequest_2eproto();
  const ::google::protobuf::FileDescriptor* file =
    ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName(
      "plateform/request/OptStockAddRequest.proto");
  GOOGLE_CHECK(file != NULL);
  OptStockAddRequest_descriptor_ = file->message_type(0);
  static const int OptStockAddRequest_offsets_[2] = {
    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OptStockAddRequest, groupid_),
    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OptStockAddRequest, securitycodelist_),
  };
  OptStockAddRequest_reflection_ =
    ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
      OptStockAddRequest_descriptor_,
      OptStockAddRequest::internal_default_instance(),
      OptStockAddRequest_offsets_,
      -1,
      -1,
      -1,
      sizeof(OptStockAddRequest),
      GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OptStockAddRequest, _internal_metadata_));
}

namespace {

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

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

}  // namespace

void protobuf_ShutdownFile_plateform_2frequest_2fOptStockAddRequest_2eproto() {
  OptStockAddRequest_default_instance_.Shutdown();
  delete OptStockAddRequest_reflection_;
}

void protobuf_InitDefaults_plateform_2frequest_2fOptStockAddRequest_2eproto_impl() {
  GOOGLE_PROTOBUF_VERIFY_VERSION;

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

GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_InitDefaults_plateform_2frequest_2fOptStockAddRequest_2eproto_once_);
void protobuf_InitDefaults_plateform_2frequest_2fOptStockAddRequest_2eproto() {
  ::google::protobuf::GoogleOnceInit(&protobuf_InitDefaults_plateform_2frequest_2fOptStockAddRequest_2eproto_once_,
                 &protobuf_InitDefaults_plateform_2frequest_2fOptStockAddRequest_2eproto_impl);
}
void protobuf_AddDesc_plateform_2frequest_2fOptStockAddRequest_2eproto_impl() {
  GOOGLE_PROTOBUF_VERIFY_VERSION;

  protobuf_InitDefaults_plateform_2frequest_2fOptStockAddRequest_2eproto();
  ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
    "\n*plateform/request/OptStockAddRequest.p"
    "roto\"\?\n\022OptStockAddRequest\022\017\n\007groupId\030\001 "
    "\001(\t\022\030\n\020securityCodeList\030\002 \003(\tBQ\n6com.hua"
    "sheng.quant.open.sdk.protobuf.plateform."
    "requestB\027OptStockAddRequestProtob\006proto3", 200);
  ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
    "plateform/request/OptStockAddRequest.proto", &protobuf_RegisterTypes);
  ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_plateform_2frequest_2fOptStockAddRequest_2eproto);
}

GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AddDesc_plateform_2frequest_2fOptStockAddRequest_2eproto_once_);
void protobuf_AddDesc_plateform_2frequest_2fOptStockAddRequest_2eproto() {
  ::google::protobuf::GoogleOnceInit(&protobuf_AddDesc_plateform_2frequest_2fOptStockAddRequest_2eproto_once_,
                 &protobuf_AddDesc_plateform_2frequest_2fOptStockAddRequest_2eproto_impl);
}
// Force AddDescriptors() to be called at static initialization time.
struct StaticDescriptorInitializer_plateform_2frequest_2fOptStockAddRequest_2eproto {
  StaticDescriptorInitializer_plateform_2frequest_2fOptStockAddRequest_2eproto() {
    protobuf_AddDesc_plateform_2frequest_2fOptStockAddRequest_2eproto();
  }
} static_descriptor_initializer_plateform_2frequest_2fOptStockAddRequest_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 OptStockAddRequest::kGroupIdFieldNumber;
const int OptStockAddRequest::kSecurityCodeListFieldNumber;
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900

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

void OptStockAddRequest::InitAsDefaultInstance() {
}

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

void OptStockAddRequest::SharedCtor() {
  groupid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  _cached_size_ = 0;
}

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

void OptStockAddRequest::SharedDtor() {
  groupid_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}

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

const OptStockAddRequest& OptStockAddRequest::default_instance() {
  protobuf_InitDefaults_plateform_2frequest_2fOptStockAddRequest_2eproto();
  return *internal_default_instance();
}

::google::protobuf::internal::ExplicitlyConstructed<OptStockAddRequest> OptStockAddRequest_default_instance_;

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

void OptStockAddRequest::Clear() {
// @@protoc_insertion_point(message_clear_start:OptStockAddRequest)
  groupid_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  securitycodelist_.Clear();
}

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

      // repeated string securityCodeList = 2;
      case 2: {
        if (tag == 18) {
         parse_securityCodeList:
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
                input, this->add_securitycodelist()));
          DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
            this->securitycodelist(this->securitycodelist_size() - 1).data(),
            this->securitycodelist(this->securitycodelist_size() - 1).length(),
            ::google::protobuf::internal::WireFormatLite::PARSE,
            "OptStockAddRequest.securityCodeList"));
        } else {
          goto handle_unusual;
        }
        if (input->ExpectTag(18)) goto parse_securityCodeList;
        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:OptStockAddRequest)
  return true;
failure:
  // @@protoc_insertion_point(parse_failure:OptStockAddRequest)
  return false;
#undef DO_
}

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

  // repeated string securityCodeList = 2;
  for (int i = 0; i < this->securitycodelist_size(); i++) {
    ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
      this->securitycodelist(i).data(), this->securitycodelist(i).length(),
      ::google::protobuf::internal::WireFormatLite::SERIALIZE,
      "OptStockAddRequest.securityCodeList");
    ::google::protobuf::internal::WireFormatLite::WriteString(
      2, this->securitycodelist(i), output);
  }

  // @@protoc_insertion_point(serialize_end:OptStockAddRequest)
}

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

  // repeated string securityCodeList = 2;
  for (int i = 0; i < this->securitycodelist_size(); i++) {
    ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
      this->securitycodelist(i).data(), this->securitycodelist(i).length(),
      ::google::protobuf::internal::WireFormatLite::SERIALIZE,
      "OptStockAddRequest.securityCodeList");
    target = ::google::protobuf::internal::WireFormatLite::
      WriteStringToArray(2, this->securitycodelist(i), target);
  }

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

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

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

  // repeated string securityCodeList = 2;
  total_size += 1 *
      ::google::protobuf::internal::FromIntSize(this->securitycodelist_size());
  for (int i = 0; i < this->securitycodelist_size(); i++) {
    total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
      this->securitycodelist(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 OptStockAddRequest::MergeFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:OptStockAddRequest)
  if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
  const OptStockAddRequest* source =
      ::google::protobuf::internal::DynamicCastToGenerated<const OptStockAddRequest>(
          &from);
  if (source == NULL) {
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:OptStockAddRequest)
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  } else {
  // @@protoc_insertion_point(generalized_merge_from_cast_success:OptStockAddRequest)
    UnsafeMergeFrom(*source);
  }
}

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

void OptStockAddRequest::UnsafeMergeFrom(const OptStockAddRequest& from) {
  GOOGLE_DCHECK(&from != this);
  securitycodelist_.UnsafeMergeFrom(from.securitycodelist_);
  if (from.groupid().size() > 0) {

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

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

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

bool OptStockAddRequest::IsInitialized() const {

  return true;
}

void OptStockAddRequest::Swap(OptStockAddRequest* other) {
  if (other == this) return;
  InternalSwap(other);
}
void OptStockAddRequest::InternalSwap(OptStockAddRequest* other) {
  groupid_.Swap(&other->groupid_);
  securitycodelist_.UnsafeArenaSwap(&other->securitycodelist_);
  _internal_metadata_.Swap(&other->_internal_metadata_);
  std::swap(_cached_size_, other->_cached_size_);
}

::google::protobuf::Metadata OptStockAddRequest::GetMetadata() const {
  protobuf_AssignDescriptorsOnce();
  ::google::protobuf::Metadata metadata;
  metadata.descriptor = OptStockAddRequest_descriptor_;
  metadata.reflection = OptStockAddRequest_reflection_;
  return metadata;
}

#if PROTOBUF_INLINE_NOT_IN_HEADERS
// OptStockAddRequest

// optional string groupId = 1;
void OptStockAddRequest::clear_groupid() {
  groupid_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
const ::std::string& OptStockAddRequest::groupid() const {
  // @@protoc_insertion_point(field_get:OptStockAddRequest.groupId)
  return groupid_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void OptStockAddRequest::set_groupid(const ::std::string& value) {
  
  groupid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  // @@protoc_insertion_point(field_set:OptStockAddRequest.groupId)
}
void OptStockAddRequest::set_groupid(const char* value) {
  
  groupid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  // @@protoc_insertion_point(field_set_char:OptStockAddRequest.groupId)
}
void OptStockAddRequest::set_groupid(const char* value, size_t size) {
  
  groupid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
      ::std::string(reinterpret_cast<const char*>(value), size));
  // @@protoc_insertion_point(field_set_pointer:OptStockAddRequest.groupId)
}
::std::string* OptStockAddRequest::mutable_groupid() {
  
  // @@protoc_insertion_point(field_mutable:OptStockAddRequest.groupId)
  return groupid_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
::std::string* OptStockAddRequest::release_groupid() {
  // @@protoc_insertion_point(field_release:OptStockAddRequest.groupId)
  
  return groupid_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void OptStockAddRequest::set_allocated_groupid(::std::string* groupid) {
  if (groupid != NULL) {
    
  } else {
    
  }
  groupid_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), groupid);
  // @@protoc_insertion_point(field_set_allocated:OptStockAddRequest.groupId)
}

// repeated string securityCodeList = 2;
int OptStockAddRequest::securitycodelist_size() const {
  return securitycodelist_.size();
}
void OptStockAddRequest::clear_securitycodelist() {
  securitycodelist_.Clear();
}
const ::std::string& OptStockAddRequest::securitycodelist(int index) const {
  // @@protoc_insertion_point(field_get:OptStockAddRequest.securityCodeList)
  return securitycodelist_.Get(index);
}
::std::string* OptStockAddRequest::mutable_securitycodelist(int index) {
  // @@protoc_insertion_point(field_mutable:OptStockAddRequest.securityCodeList)
  return securitycodelist_.Mutable(index);
}
void OptStockAddRequest::set_securitycodelist(int index, const ::std::string& value) {
  // @@protoc_insertion_point(field_set:OptStockAddRequest.securityCodeList)
  securitycodelist_.Mutable(index)->assign(value);
}
void OptStockAddRequest::set_securitycodelist(int index, const char* value) {
  securitycodelist_.Mutable(index)->assign(value);
  // @@protoc_insertion_point(field_set_char:OptStockAddRequest.securityCodeList)
}
void OptStockAddRequest::set_securitycodelist(int index, const char* value, size_t size) {
  securitycodelist_.Mutable(index)->assign(
    reinterpret_cast<const char*>(value), size);
  // @@protoc_insertion_point(field_set_pointer:OptStockAddRequest.securityCodeList)
}
::std::string* OptStockAddRequest::add_securitycodelist() {
  // @@protoc_insertion_point(field_add_mutable:OptStockAddRequest.securityCodeList)
  return securitycodelist_.Add();
}
void OptStockAddRequest::add_securitycodelist(const ::std::string& value) {
  securitycodelist_.Add()->assign(value);
  // @@protoc_insertion_point(field_add:OptStockAddRequest.securityCodeList)
}
void OptStockAddRequest::add_securitycodelist(const char* value) {
  securitycodelist_.Add()->assign(value);
  // @@protoc_insertion_point(field_add_char:OptStockAddRequest.securityCodeList)
}
void OptStockAddRequest::add_securitycodelist(const char* value, size_t size) {
  securitycodelist_.Add()->assign(reinterpret_cast<const char*>(value), size);
  // @@protoc_insertion_point(field_add_pointer:OptStockAddRequest.securityCodeList)
}
const ::google::protobuf::RepeatedPtrField< ::std::string>&
OptStockAddRequest::securitycodelist() const {
  // @@protoc_insertion_point(field_list:OptStockAddRequest.securityCodeList)
  return securitycodelist_;
}
::google::protobuf::RepeatedPtrField< ::std::string>*
OptStockAddRequest::mutable_securitycodelist() {
  // @@protoc_insertion_point(field_mutable_list:OptStockAddRequest.securityCodeList)
  return &securitycodelist_;
}

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

// @@protoc_insertion_point(namespace_scope)

// @@protoc_insertion_point(global_scope)
