// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: client/v3beta/dto/product/product_dto.proto

#include "client/v3beta/dto/product/product_dto.pb.h"

#include <algorithm>

#include <herogoogle/protobuf/io/coded_stream.h>
#include <herogoogle/protobuf/extension_set.h>
#include <herogoogle/protobuf/wire_format_lite.h>
#include <herogoogle/protobuf/descriptor.h>
#include <herogoogle/protobuf/generated_message_reflection.h>
#include <herogoogle/protobuf/reflection_ops.h>
#include <herogoogle/protobuf/wire_format.h>
// @@protoc_insertion_point(includes)


PROTOBUF_PRAGMA_INIT_SEG
namespace heroim {
namespace client {
namespace v3beta {
namespace dto {
namespace product {
constexpr ProductConfigRequest::ProductConfigRequest(
  ::herogoogle::protobuf::internal::ConstantInitialized)
  : base_(nullptr){}
struct ProductConfigRequestDefaultTypeInternal {
  constexpr ProductConfigRequestDefaultTypeInternal()
    : _instance(::herogoogle::protobuf::internal::ConstantInitialized{}) {}
  ~ProductConfigRequestDefaultTypeInternal() {}
  union {
    ProductConfigRequest _instance;
  };
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ProductConfigRequestDefaultTypeInternal _ProductConfigRequest_default_instance_;
constexpr ProductConfigResponse::ProductConfigResponse(
  ::herogoogle::protobuf::internal::ConstantInitialized)
  : node_(nullptr)
  , option_(nullptr)
  , time_(int64_t{0}){}
struct ProductConfigResponseDefaultTypeInternal {
  constexpr ProductConfigResponseDefaultTypeInternal()
    : _instance(::herogoogle::protobuf::internal::ConstantInitialized{}) {}
  ~ProductConfigResponseDefaultTypeInternal() {}
  union {
    ProductConfigResponse _instance;
  };
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ProductConfigResponseDefaultTypeInternal _ProductConfigResponse_default_instance_;
}  // namespace product
}  // namespace dto
}  // namespace v3beta
}  // namespace client
}  // namespace heroim
static ::herogoogle::protobuf::Metadata file_level_metadata_client_2fv3beta_2fdto_2fproduct_2fproduct_5fdto_2eproto[2];
static constexpr ::herogoogle::protobuf::EnumDescriptor const** file_level_enum_descriptors_client_2fv3beta_2fdto_2fproduct_2fproduct_5fdto_2eproto = nullptr;
static constexpr ::herogoogle::protobuf::ServiceDescriptor const** file_level_service_descriptors_client_2fv3beta_2fdto_2fproduct_2fproduct_5fdto_2eproto = nullptr;

const ::herogoogle::protobuf::uint32 TableStruct_client_2fv3beta_2fdto_2fproduct_2fproduct_5fdto_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
  ~0u,  // no _has_bits_
  PROTOBUF_FIELD_OFFSET(::heroim::client::v3beta::dto::product::ProductConfigRequest, _internal_metadata_),
  ~0u,  // no _extensions_
  ~0u,  // no _oneof_case_
  ~0u,  // no _weak_field_map_
  ~0u,  // no _inlined_string_donated_
  PROTOBUF_FIELD_OFFSET(::heroim::client::v3beta::dto::product::ProductConfigRequest, base_),
  ~0u,  // no _has_bits_
  PROTOBUF_FIELD_OFFSET(::heroim::client::v3beta::dto::product::ProductConfigResponse, _internal_metadata_),
  ~0u,  // no _extensions_
  ~0u,  // no _oneof_case_
  ~0u,  // no _weak_field_map_
  ~0u,  // no _inlined_string_donated_
  PROTOBUF_FIELD_OFFSET(::heroim::client::v3beta::dto::product::ProductConfigResponse, time_),
  PROTOBUF_FIELD_OFFSET(::heroim::client::v3beta::dto::product::ProductConfigResponse, node_),
  PROTOBUF_FIELD_OFFSET(::heroim::client::v3beta::dto::product::ProductConfigResponse, option_),
};
static const ::herogoogle::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
  { 0, -1, -1, sizeof(::heroim::client::v3beta::dto::product::ProductConfigRequest)},
  { 7, -1, -1, sizeof(::heroim::client::v3beta::dto::product::ProductConfigResponse)},
};

static ::herogoogle::protobuf::Message const * const file_default_instances[] = {
  reinterpret_cast<const ::herogoogle::protobuf::Message*>(&::heroim::client::v3beta::dto::product::_ProductConfigRequest_default_instance_),
  reinterpret_cast<const ::herogoogle::protobuf::Message*>(&::heroim::client::v3beta::dto::product::_ProductConfigResponse_default_instance_),
};
#ifdef _MSC_VER
#  pragma warning(disable : 4125)
#endif  /* _MSC_VER */
const char descriptor_table_protodef_client_2fv3beta_2fdto_2fproduct_2fproduct_5fdto_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
  "\n+client/v3beta/dto/product/product_dto."
  "proto\022 heroim.client.v3beta.dto.product\032"
  "3client/v3beta/dto/product/model/product"
  "_model.proto\032\"client/v3beta/dto/shared/a"
  "pi.proto\"Q\n\024ProductConfigRequest\0229\n\004base"
  "\030\001 \001(\0132+.heroim.client.v3beta.dto.shared"
  ".APIRequest\"\265\001\n\025ProductConfigResponse\022\014\n"
  "\004time\030\001 \001(\003\022G\n\004node\030\002 \001(\01329.heroim.clien"
  "t.v3beta.dto.product.model.ProductNodeCo"
  "nfig\022E\n\006option\030\003 \001(\01325.heroim.client.v3b"
  "eta.dto.product.model.ProductOptionBV\n$c"
  "om.hero.csdk.api.v3beta.dto.productP\001Z$h"
  "eroim/api/client/v3beta/dto/product\242\002\005IM"
  "Sdkb\006proto3"
  ;
static const ::herogoogle::protobuf::internal::DescriptorTable*const descriptor_table_client_2fv3beta_2fdto_2fproduct_2fproduct_5fdto_2eproto_deps[2] = {
  &::descriptor_table_client_2fv3beta_2fdto_2fproduct_2fmodel_2fproduct_5fmodel_2eproto,
  &::descriptor_table_client_2fv3beta_2fdto_2fshared_2fapi_2eproto,
};
static ::herogoogle::protobuf::internal::once_flag descriptor_table_client_2fv3beta_2fdto_2fproduct_2fproduct_5fdto_2eproto_once;
const ::herogoogle::protobuf::internal::DescriptorTable descriptor_table_client_2fv3beta_2fdto_2fproduct_2fproduct_5fdto_2eproto = {
  false, false, 531, descriptor_table_protodef_client_2fv3beta_2fdto_2fproduct_2fproduct_5fdto_2eproto, "client/v3beta/dto/product/product_dto.proto", 
  &descriptor_table_client_2fv3beta_2fdto_2fproduct_2fproduct_5fdto_2eproto_once, descriptor_table_client_2fv3beta_2fdto_2fproduct_2fproduct_5fdto_2eproto_deps, 2, 2,
  schemas, file_default_instances, TableStruct_client_2fv3beta_2fdto_2fproduct_2fproduct_5fdto_2eproto::offsets,
  file_level_metadata_client_2fv3beta_2fdto_2fproduct_2fproduct_5fdto_2eproto, file_level_enum_descriptors_client_2fv3beta_2fdto_2fproduct_2fproduct_5fdto_2eproto, file_level_service_descriptors_client_2fv3beta_2fdto_2fproduct_2fproduct_5fdto_2eproto,
};
PROTOBUF_ATTRIBUTE_WEAK const ::herogoogle::protobuf::internal::DescriptorTable* descriptor_table_client_2fv3beta_2fdto_2fproduct_2fproduct_5fdto_2eproto_getter() {
  return &descriptor_table_client_2fv3beta_2fdto_2fproduct_2fproduct_5fdto_2eproto;
}

// Force running AddDescriptors() at dynamic initialization time.
PROTOBUF_ATTRIBUTE_INIT_PRIORITY static ::herogoogle::protobuf::internal::AddDescriptorsRunner dynamic_init_dummy_client_2fv3beta_2fdto_2fproduct_2fproduct_5fdto_2eproto(&descriptor_table_client_2fv3beta_2fdto_2fproduct_2fproduct_5fdto_2eproto);
namespace heroim {
namespace client {
namespace v3beta {
namespace dto {
namespace product {

// ===================================================================

class ProductConfigRequest::_Internal {
 public:
  static const ::heroim::client::v3beta::dto::shared::APIRequest& base(const ProductConfigRequest* msg);
};

const ::heroim::client::v3beta::dto::shared::APIRequest&
ProductConfigRequest::_Internal::base(const ProductConfigRequest* msg) {
  return *msg->base_;
}
void ProductConfigRequest::clear_base() {
  if (GetArenaForAllocation() == nullptr && base_ != nullptr) {
    delete base_;
  }
  base_ = nullptr;
}
ProductConfigRequest::ProductConfigRequest(::herogoogle::protobuf::Arena* arena,
                         bool is_message_owned)
  : ::herogoogle::protobuf::Message(arena, is_message_owned) {
  SharedCtor();
  if (!is_message_owned) {
    RegisterArenaDtor(arena);
  }
  // @@protoc_insertion_point(arena_constructor:heroim.client.v3beta.dto.product.ProductConfigRequest)
}
ProductConfigRequest::ProductConfigRequest(const ProductConfigRequest& from)
  : ::herogoogle::protobuf::Message() {
  _internal_metadata_.MergeFrom<::herogoogle::protobuf::UnknownFieldSet>(from._internal_metadata_);
  if (from._internal_has_base()) {
    base_ = new ::heroim::client::v3beta::dto::shared::APIRequest(*from.base_);
  } else {
    base_ = nullptr;
  }
  // @@protoc_insertion_point(copy_constructor:heroim.client.v3beta.dto.product.ProductConfigRequest)
}

void ProductConfigRequest::SharedCtor() {
base_ = nullptr;
}

ProductConfigRequest::~ProductConfigRequest() {
  // @@protoc_insertion_point(destructor:heroim.client.v3beta.dto.product.ProductConfigRequest)
  if (GetArenaForAllocation() != nullptr) return;
  SharedDtor();
  _internal_metadata_.Delete<::herogoogle::protobuf::UnknownFieldSet>();
}

inline void ProductConfigRequest::SharedDtor() {
  GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  if (this != internal_default_instance()) delete base_;
}

void ProductConfigRequest::ArenaDtor(void* object) {
  ProductConfigRequest* _this = reinterpret_cast< ProductConfigRequest* >(object);
  (void)_this;
}
void ProductConfigRequest::RegisterArenaDtor(::herogoogle::protobuf::Arena*) {
}
void ProductConfigRequest::SetCachedSize(int size) const {
  _cached_size_.Set(size);
}

void ProductConfigRequest::Clear() {
// @@protoc_insertion_point(message_clear_start:heroim.client.v3beta.dto.product.ProductConfigRequest)
  ::herogoogle::protobuf::uint32 cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  if (GetArenaForAllocation() == nullptr && base_ != nullptr) {
    delete base_;
  }
  base_ = nullptr;
  _internal_metadata_.Clear<::herogoogle::protobuf::UnknownFieldSet>();
}

const char* ProductConfigRequest::_InternalParse(const char* ptr, ::herogoogle::protobuf::internal::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  while (!ctx->Done(&ptr)) {
    ::herogoogle::protobuf::uint32 tag;
    ptr = ::herogoogle::protobuf::internal::ReadTag(ptr, &tag);
    switch (tag >> 3) {
      // .heroim.client.v3beta.dto.shared.APIRequest base = 1;
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::herogoogle::protobuf::uint8>(tag) == 10)) {
          ptr = ctx->ParseMessage(_internal_mutable_base(), ptr);
          CHK_(ptr);
        } else
          goto handle_unusual;
        continue;
      default:
        goto handle_unusual;
    }  // switch
  handle_unusual:
    if ((tag == 0) || ((tag & 7) == 4)) {
      CHK_(ptr);
      ctx->SetLastTag(tag);
      goto message_done;
    }
    ptr = UnknownFieldParse(
        tag,
        _internal_metadata_.mutable_unknown_fields<::herogoogle::protobuf::UnknownFieldSet>(),
        ptr, ctx);
    CHK_(ptr != nullptr);
  }  // while
message_done:
  return ptr;
failure:
  ptr = nullptr;
  goto message_done;
#undef CHK_
}

::herogoogle::protobuf::uint8* ProductConfigRequest::_InternalSerialize(
    ::herogoogle::protobuf::uint8* target, ::herogoogle::protobuf::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:heroim.client.v3beta.dto.product.ProductConfigRequest)
  ::herogoogle::protobuf::uint32 cached_has_bits = 0;
  (void) cached_has_bits;

  // .heroim.client.v3beta.dto.shared.APIRequest base = 1;
  if (this->_internal_has_base()) {
    target = stream->EnsureSpace(target);
    target = ::herogoogle::protobuf::internal::WireFormatLite::
      InternalWriteMessage(
        1, _Internal::base(this), target, stream);
  }

  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    target = ::herogoogle::protobuf::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
        _internal_metadata_.unknown_fields<::herogoogle::protobuf::UnknownFieldSet>(::herogoogle::protobuf::UnknownFieldSet::default_instance), target, stream);
  }
  // @@protoc_insertion_point(serialize_to_array_end:heroim.client.v3beta.dto.product.ProductConfigRequest)
  return target;
}

size_t ProductConfigRequest::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:heroim.client.v3beta.dto.product.ProductConfigRequest)
  size_t total_size = 0;

  ::herogoogle::protobuf::uint32 cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  // .heroim.client.v3beta.dto.shared.APIRequest base = 1;
  if (this->_internal_has_base()) {
    total_size += 1 +
      ::herogoogle::protobuf::internal::WireFormatLite::MessageSize(
        *base_);
  }

  return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
}

const ::herogoogle::protobuf::Message::ClassData ProductConfigRequest::_class_data_ = {
    ::herogoogle::protobuf::Message::CopyWithSizeCheck,
    ProductConfigRequest::MergeImpl
};
const ::herogoogle::protobuf::Message::ClassData*ProductConfigRequest::GetClassData() const { return &_class_data_; }

void ProductConfigRequest::MergeImpl(::herogoogle::protobuf::Message* to,
                      const ::herogoogle::protobuf::Message& from) {
  static_cast<ProductConfigRequest *>(to)->MergeFrom(
      static_cast<const ProductConfigRequest &>(from));
}


void ProductConfigRequest::MergeFrom(const ProductConfigRequest& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:heroim.client.v3beta.dto.product.ProductConfigRequest)
  GOOGLE_DCHECK_NE(&from, this);
  ::herogoogle::protobuf::uint32 cached_has_bits = 0;
  (void) cached_has_bits;

  if (from._internal_has_base()) {
    _internal_mutable_base()->::heroim::client::v3beta::dto::shared::APIRequest::MergeFrom(from._internal_base());
  }
  _internal_metadata_.MergeFrom<::herogoogle::protobuf::UnknownFieldSet>(from._internal_metadata_);
}

void ProductConfigRequest::CopyFrom(const ProductConfigRequest& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:heroim.client.v3beta.dto.product.ProductConfigRequest)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

bool ProductConfigRequest::IsInitialized() const {
  return true;
}

void ProductConfigRequest::InternalSwap(ProductConfigRequest* other) {
  using std::swap;
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  swap(base_, other->base_);
}

::herogoogle::protobuf::Metadata ProductConfigRequest::GetMetadata() const {
  return ::herogoogle::protobuf::internal::AssignDescriptors(
      &descriptor_table_client_2fv3beta_2fdto_2fproduct_2fproduct_5fdto_2eproto_getter, &descriptor_table_client_2fv3beta_2fdto_2fproduct_2fproduct_5fdto_2eproto_once,
      file_level_metadata_client_2fv3beta_2fdto_2fproduct_2fproduct_5fdto_2eproto[0]);
}

// ===================================================================

class ProductConfigResponse::_Internal {
 public:
  static const ::heroim::client::v3beta::dto::product::model::ProductNodeConfig& node(const ProductConfigResponse* msg);
  static const ::heroim::client::v3beta::dto::product::model::ProductOption& option(const ProductConfigResponse* msg);
};

const ::heroim::client::v3beta::dto::product::model::ProductNodeConfig&
ProductConfigResponse::_Internal::node(const ProductConfigResponse* msg) {
  return *msg->node_;
}
const ::heroim::client::v3beta::dto::product::model::ProductOption&
ProductConfigResponse::_Internal::option(const ProductConfigResponse* msg) {
  return *msg->option_;
}
void ProductConfigResponse::clear_node() {
  if (GetArenaForAllocation() == nullptr && node_ != nullptr) {
    delete node_;
  }
  node_ = nullptr;
}
void ProductConfigResponse::clear_option() {
  if (GetArenaForAllocation() == nullptr && option_ != nullptr) {
    delete option_;
  }
  option_ = nullptr;
}
ProductConfigResponse::ProductConfigResponse(::herogoogle::protobuf::Arena* arena,
                         bool is_message_owned)
  : ::herogoogle::protobuf::Message(arena, is_message_owned) {
  SharedCtor();
  if (!is_message_owned) {
    RegisterArenaDtor(arena);
  }
  // @@protoc_insertion_point(arena_constructor:heroim.client.v3beta.dto.product.ProductConfigResponse)
}
ProductConfigResponse::ProductConfigResponse(const ProductConfigResponse& from)
  : ::herogoogle::protobuf::Message() {
  _internal_metadata_.MergeFrom<::herogoogle::protobuf::UnknownFieldSet>(from._internal_metadata_);
  if (from._internal_has_node()) {
    node_ = new ::heroim::client::v3beta::dto::product::model::ProductNodeConfig(*from.node_);
  } else {
    node_ = nullptr;
  }
  if (from._internal_has_option()) {
    option_ = new ::heroim::client::v3beta::dto::product::model::ProductOption(*from.option_);
  } else {
    option_ = nullptr;
  }
  time_ = from.time_;
  // @@protoc_insertion_point(copy_constructor:heroim.client.v3beta.dto.product.ProductConfigResponse)
}

void ProductConfigResponse::SharedCtor() {
::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
    reinterpret_cast<char*>(&node_) - reinterpret_cast<char*>(this)),
    0, static_cast<size_t>(reinterpret_cast<char*>(&time_) -
    reinterpret_cast<char*>(&node_)) + sizeof(time_));
}

ProductConfigResponse::~ProductConfigResponse() {
  // @@protoc_insertion_point(destructor:heroim.client.v3beta.dto.product.ProductConfigResponse)
  if (GetArenaForAllocation() != nullptr) return;
  SharedDtor();
  _internal_metadata_.Delete<::herogoogle::protobuf::UnknownFieldSet>();
}

inline void ProductConfigResponse::SharedDtor() {
  GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  if (this != internal_default_instance()) delete node_;
  if (this != internal_default_instance()) delete option_;
}

void ProductConfigResponse::ArenaDtor(void* object) {
  ProductConfigResponse* _this = reinterpret_cast< ProductConfigResponse* >(object);
  (void)_this;
}
void ProductConfigResponse::RegisterArenaDtor(::herogoogle::protobuf::Arena*) {
}
void ProductConfigResponse::SetCachedSize(int size) const {
  _cached_size_.Set(size);
}

void ProductConfigResponse::Clear() {
// @@protoc_insertion_point(message_clear_start:heroim.client.v3beta.dto.product.ProductConfigResponse)
  ::herogoogle::protobuf::uint32 cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  if (GetArenaForAllocation() == nullptr && node_ != nullptr) {
    delete node_;
  }
  node_ = nullptr;
  if (GetArenaForAllocation() == nullptr && option_ != nullptr) {
    delete option_;
  }
  option_ = nullptr;
  time_ = int64_t{0};
  _internal_metadata_.Clear<::herogoogle::protobuf::UnknownFieldSet>();
}

const char* ProductConfigResponse::_InternalParse(const char* ptr, ::herogoogle::protobuf::internal::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  while (!ctx->Done(&ptr)) {
    ::herogoogle::protobuf::uint32 tag;
    ptr = ::herogoogle::protobuf::internal::ReadTag(ptr, &tag);
    switch (tag >> 3) {
      // int64 time = 1;
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::herogoogle::protobuf::uint8>(tag) == 8)) {
          time_ = ::herogoogle::protobuf::internal::ReadVarint64(&ptr);
          CHK_(ptr);
        } else
          goto handle_unusual;
        continue;
      // .heroim.client.v3beta.dto.product.model.ProductNodeConfig node = 2;
      case 2:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::herogoogle::protobuf::uint8>(tag) == 18)) {
          ptr = ctx->ParseMessage(_internal_mutable_node(), ptr);
          CHK_(ptr);
        } else
          goto handle_unusual;
        continue;
      // .heroim.client.v3beta.dto.product.model.ProductOption option = 3;
      case 3:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::herogoogle::protobuf::uint8>(tag) == 26)) {
          ptr = ctx->ParseMessage(_internal_mutable_option(), ptr);
          CHK_(ptr);
        } else
          goto handle_unusual;
        continue;
      default:
        goto handle_unusual;
    }  // switch
  handle_unusual:
    if ((tag == 0) || ((tag & 7) == 4)) {
      CHK_(ptr);
      ctx->SetLastTag(tag);
      goto message_done;
    }
    ptr = UnknownFieldParse(
        tag,
        _internal_metadata_.mutable_unknown_fields<::herogoogle::protobuf::UnknownFieldSet>(),
        ptr, ctx);
    CHK_(ptr != nullptr);
  }  // while
message_done:
  return ptr;
failure:
  ptr = nullptr;
  goto message_done;
#undef CHK_
}

::herogoogle::protobuf::uint8* ProductConfigResponse::_InternalSerialize(
    ::herogoogle::protobuf::uint8* target, ::herogoogle::protobuf::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:heroim.client.v3beta.dto.product.ProductConfigResponse)
  ::herogoogle::protobuf::uint32 cached_has_bits = 0;
  (void) cached_has_bits;

  // int64 time = 1;
  if (this->_internal_time() != 0) {
    target = stream->EnsureSpace(target);
    target = ::herogoogle::protobuf::internal::WireFormatLite::WriteInt64ToArray(1, this->_internal_time(), target);
  }

  // .heroim.client.v3beta.dto.product.model.ProductNodeConfig node = 2;
  if (this->_internal_has_node()) {
    target = stream->EnsureSpace(target);
    target = ::herogoogle::protobuf::internal::WireFormatLite::
      InternalWriteMessage(
        2, _Internal::node(this), target, stream);
  }

  // .heroim.client.v3beta.dto.product.model.ProductOption option = 3;
  if (this->_internal_has_option()) {
    target = stream->EnsureSpace(target);
    target = ::herogoogle::protobuf::internal::WireFormatLite::
      InternalWriteMessage(
        3, _Internal::option(this), target, stream);
  }

  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    target = ::herogoogle::protobuf::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
        _internal_metadata_.unknown_fields<::herogoogle::protobuf::UnknownFieldSet>(::herogoogle::protobuf::UnknownFieldSet::default_instance), target, stream);
  }
  // @@protoc_insertion_point(serialize_to_array_end:heroim.client.v3beta.dto.product.ProductConfigResponse)
  return target;
}

size_t ProductConfigResponse::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:heroim.client.v3beta.dto.product.ProductConfigResponse)
  size_t total_size = 0;

  ::herogoogle::protobuf::uint32 cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  // .heroim.client.v3beta.dto.product.model.ProductNodeConfig node = 2;
  if (this->_internal_has_node()) {
    total_size += 1 +
      ::herogoogle::protobuf::internal::WireFormatLite::MessageSize(
        *node_);
  }

  // .heroim.client.v3beta.dto.product.model.ProductOption option = 3;
  if (this->_internal_has_option()) {
    total_size += 1 +
      ::herogoogle::protobuf::internal::WireFormatLite::MessageSize(
        *option_);
  }

  // int64 time = 1;
  if (this->_internal_time() != 0) {
    total_size += ::herogoogle::protobuf::internal::WireFormatLite::Int64SizePlusOne(this->_internal_time());
  }

  return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
}

const ::herogoogle::protobuf::Message::ClassData ProductConfigResponse::_class_data_ = {
    ::herogoogle::protobuf::Message::CopyWithSizeCheck,
    ProductConfigResponse::MergeImpl
};
const ::herogoogle::protobuf::Message::ClassData*ProductConfigResponse::GetClassData() const { return &_class_data_; }

void ProductConfigResponse::MergeImpl(::herogoogle::protobuf::Message* to,
                      const ::herogoogle::protobuf::Message& from) {
  static_cast<ProductConfigResponse *>(to)->MergeFrom(
      static_cast<const ProductConfigResponse &>(from));
}


void ProductConfigResponse::MergeFrom(const ProductConfigResponse& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:heroim.client.v3beta.dto.product.ProductConfigResponse)
  GOOGLE_DCHECK_NE(&from, this);
  ::herogoogle::protobuf::uint32 cached_has_bits = 0;
  (void) cached_has_bits;

  if (from._internal_has_node()) {
    _internal_mutable_node()->::heroim::client::v3beta::dto::product::model::ProductNodeConfig::MergeFrom(from._internal_node());
  }
  if (from._internal_has_option()) {
    _internal_mutable_option()->::heroim::client::v3beta::dto::product::model::ProductOption::MergeFrom(from._internal_option());
  }
  if (from._internal_time() != 0) {
    _internal_set_time(from._internal_time());
  }
  _internal_metadata_.MergeFrom<::herogoogle::protobuf::UnknownFieldSet>(from._internal_metadata_);
}

void ProductConfigResponse::CopyFrom(const ProductConfigResponse& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:heroim.client.v3beta.dto.product.ProductConfigResponse)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

bool ProductConfigResponse::IsInitialized() const {
  return true;
}

void ProductConfigResponse::InternalSwap(ProductConfigResponse* other) {
  using std::swap;
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  ::herogoogle::protobuf::internal::memswap<
      PROTOBUF_FIELD_OFFSET(ProductConfigResponse, time_)
      + sizeof(ProductConfigResponse::time_)
      - PROTOBUF_FIELD_OFFSET(ProductConfigResponse, node_)>(
          reinterpret_cast<char*>(&node_),
          reinterpret_cast<char*>(&other->node_));
}

::herogoogle::protobuf::Metadata ProductConfigResponse::GetMetadata() const {
  return ::herogoogle::protobuf::internal::AssignDescriptors(
      &descriptor_table_client_2fv3beta_2fdto_2fproduct_2fproduct_5fdto_2eproto_getter, &descriptor_table_client_2fv3beta_2fdto_2fproduct_2fproduct_5fdto_2eproto_once,
      file_level_metadata_client_2fv3beta_2fdto_2fproduct_2fproduct_5fdto_2eproto[1]);
}

// @@protoc_insertion_point(namespace_scope)
}  // namespace product
}  // namespace dto
}  // namespace v3beta
}  // namespace client
}  // namespace heroim
PROTOBUF_NAMESPACE_OPEN
template<> PROTOBUF_NOINLINE ::heroim::client::v3beta::dto::product::ProductConfigRequest* Arena::CreateMaybeMessage< ::heroim::client::v3beta::dto::product::ProductConfigRequest >(Arena* arena) {
  return Arena::CreateMessageInternal< ::heroim::client::v3beta::dto::product::ProductConfigRequest >(arena);
}
template<> PROTOBUF_NOINLINE ::heroim::client::v3beta::dto::product::ProductConfigResponse* Arena::CreateMaybeMessage< ::heroim::client::v3beta::dto::product::ProductConfigResponse >(Arena* arena) {
  return Arena::CreateMessageInternal< ::heroim::client::v3beta::dto::product::ProductConfigResponse >(arena);
}
PROTOBUF_NAMESPACE_CLOSE

// @@protoc_insertion_point(global_scope)

