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

#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
#include "hq/request/GetBrokerRequest.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* BrokerRequest_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
  BrokerRequest_reflection_ = NULL;

}  // namespace


void protobuf_AssignDesc_hq_2frequest_2fGetBrokerRequest_2eproto() GOOGLE_ATTRIBUTE_COLD;
void protobuf_AssignDesc_hq_2frequest_2fGetBrokerRequest_2eproto() {
  protobuf_AddDesc_hq_2frequest_2fGetBrokerRequest_2eproto();
  const ::google::protobuf::FileDescriptor* file =
    ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName(
      "hq/request/GetBrokerRequest.proto");
  GOOGLE_CHECK(file != NULL);
  BrokerRequest_descriptor_ = file->message_type(0);
  static const int BrokerRequest_offsets_[1] = {
    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BrokerRequest, security_),
  };
  BrokerRequest_reflection_ =
    ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
      BrokerRequest_descriptor_,
      BrokerRequest::internal_default_instance(),
      BrokerRequest_offsets_,
      -1,
      -1,
      -1,
      sizeof(BrokerRequest),
      GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BrokerRequest, _internal_metadata_));
}

namespace {

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

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

}  // namespace

void protobuf_ShutdownFile_hq_2frequest_2fGetBrokerRequest_2eproto() {
  BrokerRequest_default_instance_.Shutdown();
  delete BrokerRequest_reflection_;
}

void protobuf_InitDefaults_hq_2frequest_2fGetBrokerRequest_2eproto_impl() {
  GOOGLE_PROTOBUF_VERIFY_VERSION;

  ::protobuf_InitDefaults_hq_2fdto_2fSecurity_2eproto();
  BrokerRequest_default_instance_.DefaultConstruct();
  BrokerRequest_default_instance_.get_mutable()->InitAsDefaultInstance();
}

GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_InitDefaults_hq_2frequest_2fGetBrokerRequest_2eproto_once_);
void protobuf_InitDefaults_hq_2frequest_2fGetBrokerRequest_2eproto() {
  ::google::protobuf::GoogleOnceInit(&protobuf_InitDefaults_hq_2frequest_2fGetBrokerRequest_2eproto_once_,
                 &protobuf_InitDefaults_hq_2frequest_2fGetBrokerRequest_2eproto_impl);
}
void protobuf_AddDesc_hq_2frequest_2fGetBrokerRequest_2eproto_impl() {
  GOOGLE_PROTOBUF_VERIFY_VERSION;

  protobuf_InitDefaults_hq_2frequest_2fGetBrokerRequest_2eproto();
  ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
    "\n!hq/request/GetBrokerRequest.proto\032\025hq/"
    "dto/Security.proto\",\n\rBrokerRequest\022\033\n\010s"
    "ecurity\030\001 \001(\0132\t.SecurityBE\n/com.huasheng"
    ".quant.open.sdk.protobuf.hq.requestB\022Bro"
    "kerRequestProtob\006proto3", 183);
  ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
    "hq/request/GetBrokerRequest.proto", &protobuf_RegisterTypes);
  ::protobuf_AddDesc_hq_2fdto_2fSecurity_2eproto();
  ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_hq_2frequest_2fGetBrokerRequest_2eproto);
}

GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AddDesc_hq_2frequest_2fGetBrokerRequest_2eproto_once_);
void protobuf_AddDesc_hq_2frequest_2fGetBrokerRequest_2eproto() {
  ::google::protobuf::GoogleOnceInit(&protobuf_AddDesc_hq_2frequest_2fGetBrokerRequest_2eproto_once_,
                 &protobuf_AddDesc_hq_2frequest_2fGetBrokerRequest_2eproto_impl);
}
// Force AddDescriptors() to be called at static initialization time.
struct StaticDescriptorInitializer_hq_2frequest_2fGetBrokerRequest_2eproto {
  StaticDescriptorInitializer_hq_2frequest_2fGetBrokerRequest_2eproto() {
    protobuf_AddDesc_hq_2frequest_2fGetBrokerRequest_2eproto();
  }
} static_descriptor_initializer_hq_2frequest_2fGetBrokerRequest_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 BrokerRequest::kSecurityFieldNumber;
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900

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

void BrokerRequest::InitAsDefaultInstance() {
  security_ = const_cast< ::Security*>(
      ::Security::internal_default_instance());
}

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

void BrokerRequest::SharedCtor() {
  security_ = NULL;
  _cached_size_ = 0;
}

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

void BrokerRequest::SharedDtor() {
  if (this != &BrokerRequest_default_instance_.get()) {
    delete security_;
  }
}

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

const BrokerRequest& BrokerRequest::default_instance() {
  protobuf_InitDefaults_hq_2frequest_2fGetBrokerRequest_2eproto();
  return *internal_default_instance();
}

::google::protobuf::internal::ExplicitlyConstructed<BrokerRequest> BrokerRequest_default_instance_;

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

void BrokerRequest::Clear() {
// @@protoc_insertion_point(message_clear_start:BrokerRequest)
  if (GetArenaNoVirtual() == NULL && security_ != NULL) delete security_;
  security_ = NULL;
}

bool BrokerRequest::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:BrokerRequest)
  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 .Security security = 1;
      case 1: {
        if (tag == 10) {
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
               input, mutable_security()));
        } 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:BrokerRequest)
  return true;
failure:
  // @@protoc_insertion_point(parse_failure:BrokerRequest)
  return false;
#undef DO_
}

void BrokerRequest::SerializeWithCachedSizes(
    ::google::protobuf::io::CodedOutputStream* output) const {
  // @@protoc_insertion_point(serialize_start:BrokerRequest)
  // optional .Security security = 1;
  if (this->has_security()) {
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
      1, *this->security_, output);
  }

  // @@protoc_insertion_point(serialize_end:BrokerRequest)
}

::google::protobuf::uint8* BrokerRequest::InternalSerializeWithCachedSizesToArray(
    bool deterministic, ::google::protobuf::uint8* target) const {
  (void)deterministic; // Unused
  // @@protoc_insertion_point(serialize_to_array_start:BrokerRequest)
  // optional .Security security = 1;
  if (this->has_security()) {
    target = ::google::protobuf::internal::WireFormatLite::
      InternalWriteMessageNoVirtualToArray(
        1, *this->security_, false, target);
  }

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

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

  // optional .Security security = 1;
  if (this->has_security()) {
    total_size += 1 +
      ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
        *this->security_);
  }

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

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

void BrokerRequest::UnsafeMergeFrom(const BrokerRequest& from) {
  GOOGLE_DCHECK(&from != this);
  if (from.has_security()) {
    mutable_security()->::Security::MergeFrom(from.security());
  }
}

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

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

bool BrokerRequest::IsInitialized() const {

  return true;
}

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

::google::protobuf::Metadata BrokerRequest::GetMetadata() const {
  protobuf_AssignDescriptorsOnce();
  ::google::protobuf::Metadata metadata;
  metadata.descriptor = BrokerRequest_descriptor_;
  metadata.reflection = BrokerRequest_reflection_;
  return metadata;
}

#if PROTOBUF_INLINE_NOT_IN_HEADERS
// BrokerRequest

// optional .Security security = 1;
bool BrokerRequest::has_security() const {
  return this != internal_default_instance() && security_ != NULL;
}
void BrokerRequest::clear_security() {
  if (GetArenaNoVirtual() == NULL && security_ != NULL) delete security_;
  security_ = NULL;
}
const ::Security& BrokerRequest::security() const {
  // @@protoc_insertion_point(field_get:BrokerRequest.security)
  return security_ != NULL ? *security_
                         : *::Security::internal_default_instance();
}
::Security* BrokerRequest::mutable_security() {
  
  if (security_ == NULL) {
    security_ = new ::Security;
  }
  // @@protoc_insertion_point(field_mutable:BrokerRequest.security)
  return security_;
}
::Security* BrokerRequest::release_security() {
  // @@protoc_insertion_point(field_release:BrokerRequest.security)
  
  ::Security* temp = security_;
  security_ = NULL;
  return temp;
}
void BrokerRequest::set_allocated_security(::Security* security) {
  delete security_;
  security_ = security;
  if (security) {
    
  } else {
    
  }
  // @@protoc_insertion_point(field_set_allocated:BrokerRequest.security)
}

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

// @@protoc_insertion_point(namespace_scope)

// @@protoc_insertion_point(global_scope)
