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

#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
#include "hq/dto/FutureBasicQotExData.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* FutureBasicQotExData_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
  FutureBasicQotExData_reflection_ = NULL;

}  // namespace


void protobuf_AssignDesc_hq_2fdto_2fFutureBasicQotExData_2eproto() GOOGLE_ATTRIBUTE_COLD;
void protobuf_AssignDesc_hq_2fdto_2fFutureBasicQotExData_2eproto() {
  protobuf_AddDesc_hq_2fdto_2fFutureBasicQotExData_2eproto();
  const ::google::protobuf::FileDescriptor* file =
    ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName(
      "hq/dto/FutureBasicQotExData.proto");
  GOOGLE_CHECK(file != NULL);
  FutureBasicQotExData_descriptor_ = file->message_type(0);
  static const int FutureBasicQotExData_offsets_[2] = {
    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FutureBasicQotExData, expirydate_),
    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FutureBasicQotExData, expirydatedistance_),
  };
  FutureBasicQotExData_reflection_ =
    ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
      FutureBasicQotExData_descriptor_,
      FutureBasicQotExData::internal_default_instance(),
      FutureBasicQotExData_offsets_,
      -1,
      -1,
      -1,
      sizeof(FutureBasicQotExData),
      GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FutureBasicQotExData, _internal_metadata_));
}

namespace {

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

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

}  // namespace

void protobuf_ShutdownFile_hq_2fdto_2fFutureBasicQotExData_2eproto() {
  FutureBasicQotExData_default_instance_.Shutdown();
  delete FutureBasicQotExData_reflection_;
}

void protobuf_InitDefaults_hq_2fdto_2fFutureBasicQotExData_2eproto_impl() {
  GOOGLE_PROTOBUF_VERIFY_VERSION;

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

GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_InitDefaults_hq_2fdto_2fFutureBasicQotExData_2eproto_once_);
void protobuf_InitDefaults_hq_2fdto_2fFutureBasicQotExData_2eproto() {
  ::google::protobuf::GoogleOnceInit(&protobuf_InitDefaults_hq_2fdto_2fFutureBasicQotExData_2eproto_once_,
                 &protobuf_InitDefaults_hq_2fdto_2fFutureBasicQotExData_2eproto_impl);
}
void protobuf_AddDesc_hq_2fdto_2fFutureBasicQotExData_2eproto_impl() {
  GOOGLE_PROTOBUF_VERIFY_VERSION;

  protobuf_InitDefaults_hq_2fdto_2fFutureBasicQotExData_2eproto();
  ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
    "\n!hq/dto/FutureBasicQotExData.proto\"F\n\024F"
    "utureBasicQotExData\022\022\n\nexpiryDate\030\001 \001(\t\022"
    "\032\n\022expiryDateDistance\030\002 \001(\005BO\n2com.huash"
    "eng.quant.open.sdk.protobuf.hq.common.dt"
    "oB\031FutureBasicQotExDataProtob\006proto3", 196);
  ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
    "hq/dto/FutureBasicQotExData.proto", &protobuf_RegisterTypes);
  ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_hq_2fdto_2fFutureBasicQotExData_2eproto);
}

GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AddDesc_hq_2fdto_2fFutureBasicQotExData_2eproto_once_);
void protobuf_AddDesc_hq_2fdto_2fFutureBasicQotExData_2eproto() {
  ::google::protobuf::GoogleOnceInit(&protobuf_AddDesc_hq_2fdto_2fFutureBasicQotExData_2eproto_once_,
                 &protobuf_AddDesc_hq_2fdto_2fFutureBasicQotExData_2eproto_impl);
}
// Force AddDescriptors() to be called at static initialization time.
struct StaticDescriptorInitializer_hq_2fdto_2fFutureBasicQotExData_2eproto {
  StaticDescriptorInitializer_hq_2fdto_2fFutureBasicQotExData_2eproto() {
    protobuf_AddDesc_hq_2fdto_2fFutureBasicQotExData_2eproto();
  }
} static_descriptor_initializer_hq_2fdto_2fFutureBasicQotExData_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 FutureBasicQotExData::kExpiryDateFieldNumber;
const int FutureBasicQotExData::kExpiryDateDistanceFieldNumber;
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900

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

void FutureBasicQotExData::InitAsDefaultInstance() {
}

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

void FutureBasicQotExData::SharedCtor() {
  expirydate_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  expirydatedistance_ = 0;
  _cached_size_ = 0;
}

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

void FutureBasicQotExData::SharedDtor() {
  expirydate_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}

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

const FutureBasicQotExData& FutureBasicQotExData::default_instance() {
  protobuf_InitDefaults_hq_2fdto_2fFutureBasicQotExData_2eproto();
  return *internal_default_instance();
}

::google::protobuf::internal::ExplicitlyConstructed<FutureBasicQotExData> FutureBasicQotExData_default_instance_;

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

void FutureBasicQotExData::Clear() {
// @@protoc_insertion_point(message_clear_start:FutureBasicQotExData)
  expirydate_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  expirydatedistance_ = 0;
}

bool FutureBasicQotExData::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:FutureBasicQotExData)
  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 expiryDate = 1;
      case 1: {
        if (tag == 10) {
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
                input, this->mutable_expirydate()));
          DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
            this->expirydate().data(), this->expirydate().length(),
            ::google::protobuf::internal::WireFormatLite::PARSE,
            "FutureBasicQotExData.expiryDate"));
        } else {
          goto handle_unusual;
        }
        if (input->ExpectTag(16)) goto parse_expiryDateDistance;
        break;
      }

      // optional int32 expiryDateDistance = 2;
      case 2: {
        if (tag == 16) {
         parse_expiryDateDistance:

          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
                 input, &expirydatedistance_)));
        } 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:FutureBasicQotExData)
  return true;
failure:
  // @@protoc_insertion_point(parse_failure:FutureBasicQotExData)
  return false;
#undef DO_
}

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

  // optional int32 expiryDateDistance = 2;
  if (this->expirydatedistance() != 0) {
    ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->expirydatedistance(), output);
  }

  // @@protoc_insertion_point(serialize_end:FutureBasicQotExData)
}

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

  // optional int32 expiryDateDistance = 2;
  if (this->expirydatedistance() != 0) {
    target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->expirydatedistance(), target);
  }

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

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

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

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

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

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

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

    expirydate_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.expirydate_);
  }
  if (from.expirydatedistance() != 0) {
    set_expirydatedistance(from.expirydatedistance());
  }
}

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

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

bool FutureBasicQotExData::IsInitialized() const {

  return true;
}

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

::google::protobuf::Metadata FutureBasicQotExData::GetMetadata() const {
  protobuf_AssignDescriptorsOnce();
  ::google::protobuf::Metadata metadata;
  metadata.descriptor = FutureBasicQotExData_descriptor_;
  metadata.reflection = FutureBasicQotExData_reflection_;
  return metadata;
}

#if PROTOBUF_INLINE_NOT_IN_HEADERS
// FutureBasicQotExData

// optional string expiryDate = 1;
void FutureBasicQotExData::clear_expirydate() {
  expirydate_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
const ::std::string& FutureBasicQotExData::expirydate() const {
  // @@protoc_insertion_point(field_get:FutureBasicQotExData.expiryDate)
  return expirydate_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void FutureBasicQotExData::set_expirydate(const ::std::string& value) {
  
  expirydate_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  // @@protoc_insertion_point(field_set:FutureBasicQotExData.expiryDate)
}
void FutureBasicQotExData::set_expirydate(const char* value) {
  
  expirydate_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  // @@protoc_insertion_point(field_set_char:FutureBasicQotExData.expiryDate)
}
void FutureBasicQotExData::set_expirydate(const char* value, size_t size) {
  
  expirydate_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
      ::std::string(reinterpret_cast<const char*>(value), size));
  // @@protoc_insertion_point(field_set_pointer:FutureBasicQotExData.expiryDate)
}
::std::string* FutureBasicQotExData::mutable_expirydate() {
  
  // @@protoc_insertion_point(field_mutable:FutureBasicQotExData.expiryDate)
  return expirydate_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
::std::string* FutureBasicQotExData::release_expirydate() {
  // @@protoc_insertion_point(field_release:FutureBasicQotExData.expiryDate)
  
  return expirydate_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void FutureBasicQotExData::set_allocated_expirydate(::std::string* expirydate) {
  if (expirydate != NULL) {
    
  } else {
    
  }
  expirydate_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), expirydate);
  // @@protoc_insertion_point(field_set_allocated:FutureBasicQotExData.expiryDate)
}

// optional int32 expiryDateDistance = 2;
void FutureBasicQotExData::clear_expirydatedistance() {
  expirydatedistance_ = 0;
}
::google::protobuf::int32 FutureBasicQotExData::expirydatedistance() const {
  // @@protoc_insertion_point(field_get:FutureBasicQotExData.expiryDateDistance)
  return expirydatedistance_;
}
void FutureBasicQotExData::set_expirydatedistance(::google::protobuf::int32 value) {
  
  expirydatedistance_ = value;
  // @@protoc_insertion_point(field_set:FutureBasicQotExData.expiryDateDistance)
}

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

// @@protoc_insertion_point(namespace_scope)

// @@protoc_insertion_point(global_scope)
