// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: common/response/CommonBoolResponse.proto

#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
#include "common/response/CommonBoolResponse.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* CommonBoolResponse_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
  CommonBoolResponse_reflection_ = NULL;

}  // namespace


void protobuf_AssignDesc_common_2fresponse_2fCommonBoolResponse_2eproto() GOOGLE_ATTRIBUTE_COLD;
void protobuf_AssignDesc_common_2fresponse_2fCommonBoolResponse_2eproto() {
  protobuf_AddDesc_common_2fresponse_2fCommonBoolResponse_2eproto();
  const ::google::protobuf::FileDescriptor* file =
    ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName(
      "common/response/CommonBoolResponse.proto");
  GOOGLE_CHECK(file != NULL);
  CommonBoolResponse_descriptor_ = file->message_type(0);
  static const int CommonBoolResponse_offsets_[1] = {
    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CommonBoolResponse, success_),
  };
  CommonBoolResponse_reflection_ =
    ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
      CommonBoolResponse_descriptor_,
      CommonBoolResponse::internal_default_instance(),
      CommonBoolResponse_offsets_,
      -1,
      -1,
      -1,
      sizeof(CommonBoolResponse),
      GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CommonBoolResponse, _internal_metadata_));
}

namespace {

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

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

}  // namespace

void protobuf_ShutdownFile_common_2fresponse_2fCommonBoolResponse_2eproto() {
  CommonBoolResponse_default_instance_.Shutdown();
  delete CommonBoolResponse_reflection_;
}

void protobuf_InitDefaults_common_2fresponse_2fCommonBoolResponse_2eproto_impl() {
  GOOGLE_PROTOBUF_VERIFY_VERSION;

  CommonBoolResponse_default_instance_.DefaultConstruct();
  CommonBoolResponse_default_instance_.get_mutable()->InitAsDefaultInstance();
}

GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_InitDefaults_common_2fresponse_2fCommonBoolResponse_2eproto_once_);
void protobuf_InitDefaults_common_2fresponse_2fCommonBoolResponse_2eproto() {
  ::google::protobuf::GoogleOnceInit(&protobuf_InitDefaults_common_2fresponse_2fCommonBoolResponse_2eproto_once_,
                 &protobuf_InitDefaults_common_2fresponse_2fCommonBoolResponse_2eproto_impl);
}
void protobuf_AddDesc_common_2fresponse_2fCommonBoolResponse_2eproto_impl() {
  GOOGLE_PROTOBUF_VERIFY_VERSION;

  protobuf_InitDefaults_common_2fresponse_2fCommonBoolResponse_2eproto();
  ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
    "\n(common/response/CommonBoolResponse.pro"
    "to\"%\n\022CommonBoolResponse\022\017\n\007success\030\001 \001("
    "\010BO\n4com.huasheng.quant.open.sdk.protobu"
    "f.common.responseB\027CommonBoolResponsePro"
    "tob\006proto3", 170);
  ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
    "common/response/CommonBoolResponse.proto", &protobuf_RegisterTypes);
  ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_common_2fresponse_2fCommonBoolResponse_2eproto);
}

GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AddDesc_common_2fresponse_2fCommonBoolResponse_2eproto_once_);
void protobuf_AddDesc_common_2fresponse_2fCommonBoolResponse_2eproto() {
  ::google::protobuf::GoogleOnceInit(&protobuf_AddDesc_common_2fresponse_2fCommonBoolResponse_2eproto_once_,
                 &protobuf_AddDesc_common_2fresponse_2fCommonBoolResponse_2eproto_impl);
}
// Force AddDescriptors() to be called at static initialization time.
struct StaticDescriptorInitializer_common_2fresponse_2fCommonBoolResponse_2eproto {
  StaticDescriptorInitializer_common_2fresponse_2fCommonBoolResponse_2eproto() {
    protobuf_AddDesc_common_2fresponse_2fCommonBoolResponse_2eproto();
  }
} static_descriptor_initializer_common_2fresponse_2fCommonBoolResponse_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 CommonBoolResponse::kSuccessFieldNumber;
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900

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

void CommonBoolResponse::InitAsDefaultInstance() {
}

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

void CommonBoolResponse::SharedCtor() {
  success_ = false;
  _cached_size_ = 0;
}

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

void CommonBoolResponse::SharedDtor() {
}

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

const CommonBoolResponse& CommonBoolResponse::default_instance() {
  protobuf_InitDefaults_common_2fresponse_2fCommonBoolResponse_2eproto();
  return *internal_default_instance();
}

::google::protobuf::internal::ExplicitlyConstructed<CommonBoolResponse> CommonBoolResponse_default_instance_;

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

void CommonBoolResponse::Clear() {
// @@protoc_insertion_point(message_clear_start:CommonBoolResponse)
  success_ = false;
}

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

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

void CommonBoolResponse::SerializeWithCachedSizes(
    ::google::protobuf::io::CodedOutputStream* output) const {
  // @@protoc_insertion_point(serialize_start:CommonBoolResponse)
  // optional bool success = 1;
  if (this->success() != 0) {
    ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->success(), output);
  }

  // @@protoc_insertion_point(serialize_end:CommonBoolResponse)
}

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

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

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

  // optional bool success = 1;
  if (this->success() != 0) {
    total_size += 1 + 1;
  }

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

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

void CommonBoolResponse::UnsafeMergeFrom(const CommonBoolResponse& from) {
  GOOGLE_DCHECK(&from != this);
  if (from.success() != 0) {
    set_success(from.success());
  }
}

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

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

bool CommonBoolResponse::IsInitialized() const {

  return true;
}

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

::google::protobuf::Metadata CommonBoolResponse::GetMetadata() const {
  protobuf_AssignDescriptorsOnce();
  ::google::protobuf::Metadata metadata;
  metadata.descriptor = CommonBoolResponse_descriptor_;
  metadata.reflection = CommonBoolResponse_reflection_;
  return metadata;
}

#if PROTOBUF_INLINE_NOT_IN_HEADERS
// CommonBoolResponse

// optional bool success = 1;
void CommonBoolResponse::clear_success() {
  success_ = false;
}
bool CommonBoolResponse::success() const {
  // @@protoc_insertion_point(field_get:CommonBoolResponse.success)
  return success_;
}
void CommonBoolResponse::set_success(bool value) {
  
  success_ = value;
  // @@protoc_insertion_point(field_set:CommonBoolResponse.success)
}

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

// @@protoc_insertion_point(namespace_scope)

// @@protoc_insertion_point(global_scope)
