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

#include "client/v3beta/dto/product/model/product_model.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 {
namespace model {
constexpr ProductNodeConfig::ProductNodeConfig(
  ::herogoogle::protobuf::internal::ConstantInitialized)
  : address_(&::herogoogle::protobuf::internal::fixed_address_empty_string)
  , wsaddress_(&::herogoogle::protobuf::internal::fixed_address_empty_string){}
struct ProductNodeConfigDefaultTypeInternal {
  constexpr ProductNodeConfigDefaultTypeInternal()
    : _instance(::herogoogle::protobuf::internal::ConstantInitialized{}) {}
  ~ProductNodeConfigDefaultTypeInternal() {}
  union {
    ProductNodeConfig _instance;
  };
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ProductNodeConfigDefaultTypeInternal _ProductNodeConfig_default_instance_;
constexpr ProductOption::ProductOption(
  ::herogoogle::protobuf::internal::ConstantInitialized)
  : compressenabled_(0){}
struct ProductOptionDefaultTypeInternal {
  constexpr ProductOptionDefaultTypeInternal()
    : _instance(::herogoogle::protobuf::internal::ConstantInitialized{}) {}
  ~ProductOptionDefaultTypeInternal() {}
  union {
    ProductOption _instance;
  };
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ProductOptionDefaultTypeInternal _ProductOption_default_instance_;
}  // namespace model
}  // namespace product
}  // namespace dto
}  // namespace v3beta
}  // namespace client
}  // namespace heroim
static ::herogoogle::protobuf::Metadata file_level_metadata_client_2fv3beta_2fdto_2fproduct_2fmodel_2fproduct_5fmodel_2eproto[2];
static constexpr ::herogoogle::protobuf::EnumDescriptor const** file_level_enum_descriptors_client_2fv3beta_2fdto_2fproduct_2fmodel_2fproduct_5fmodel_2eproto = nullptr;
static constexpr ::herogoogle::protobuf::ServiceDescriptor const** file_level_service_descriptors_client_2fv3beta_2fdto_2fproduct_2fmodel_2fproduct_5fmodel_2eproto = nullptr;

const ::herogoogle::protobuf::uint32 TableStruct_client_2fv3beta_2fdto_2fproduct_2fmodel_2fproduct_5fmodel_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
  ~0u,  // no _has_bits_
  PROTOBUF_FIELD_OFFSET(::heroim::client::v3beta::dto::product::model::ProductNodeConfig, _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::model::ProductNodeConfig, address_),
  PROTOBUF_FIELD_OFFSET(::heroim::client::v3beta::dto::product::model::ProductNodeConfig, wsaddress_),
  ~0u,  // no _has_bits_
  PROTOBUF_FIELD_OFFSET(::heroim::client::v3beta::dto::product::model::ProductOption, _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::model::ProductOption, compressenabled_),
};
static const ::herogoogle::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
  { 0, -1, -1, sizeof(::heroim::client::v3beta::dto::product::model::ProductNodeConfig)},
  { 8, -1, -1, sizeof(::heroim::client::v3beta::dto::product::model::ProductOption)},
};

static ::herogoogle::protobuf::Message const * const file_default_instances[] = {
  reinterpret_cast<const ::herogoogle::protobuf::Message*>(&::heroim::client::v3beta::dto::product::model::_ProductNodeConfig_default_instance_),
  reinterpret_cast<const ::herogoogle::protobuf::Message*>(&::heroim::client::v3beta::dto::product::model::_ProductOption_default_instance_),
};

const char descriptor_table_protodef_client_2fv3beta_2fdto_2fproduct_2fmodel_2fproduct_5fmodel_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
  "\n3client/v3beta/dto/product/model/produc"
  "t_model.proto\022&heroim.client.v3beta.dto."
  "product.model\"7\n\021ProductNodeConfig\022\017\n\007ad"
  "dress\030\001 \001(\t\022\021\n\twsAddress\030\002 \001(\t\"(\n\rProduc"
  "tOption\022\027\n\017compressEnabled\030\001 \001(\005Bb\n*com."
  "hero.csdk.api.v3beta.dto.product.modelP\001"
  "Z*heroim/api/client/v3beta/dto/product/m"
  "odel\242\002\005IMSdkb\006proto3"
  ;
static ::herogoogle::protobuf::internal::once_flag descriptor_table_client_2fv3beta_2fdto_2fproduct_2fmodel_2fproduct_5fmodel_2eproto_once;
const ::herogoogle::protobuf::internal::DescriptorTable descriptor_table_client_2fv3beta_2fdto_2fproduct_2fmodel_2fproduct_5fmodel_2eproto = {
  false, false, 300, descriptor_table_protodef_client_2fv3beta_2fdto_2fproduct_2fmodel_2fproduct_5fmodel_2eproto, "client/v3beta/dto/product/model/product_model.proto", 
  &descriptor_table_client_2fv3beta_2fdto_2fproduct_2fmodel_2fproduct_5fmodel_2eproto_once, nullptr, 0, 2,
  schemas, file_default_instances, TableStruct_client_2fv3beta_2fdto_2fproduct_2fmodel_2fproduct_5fmodel_2eproto::offsets,
  file_level_metadata_client_2fv3beta_2fdto_2fproduct_2fmodel_2fproduct_5fmodel_2eproto, file_level_enum_descriptors_client_2fv3beta_2fdto_2fproduct_2fmodel_2fproduct_5fmodel_2eproto, file_level_service_descriptors_client_2fv3beta_2fdto_2fproduct_2fmodel_2fproduct_5fmodel_2eproto,
};
PROTOBUF_ATTRIBUTE_WEAK const ::herogoogle::protobuf::internal::DescriptorTable* descriptor_table_client_2fv3beta_2fdto_2fproduct_2fmodel_2fproduct_5fmodel_2eproto_getter() {
  return &descriptor_table_client_2fv3beta_2fdto_2fproduct_2fmodel_2fproduct_5fmodel_2eproto;
}

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

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

class ProductNodeConfig::_Internal {
 public:
};

ProductNodeConfig::ProductNodeConfig(::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.model.ProductNodeConfig)
}
ProductNodeConfig::ProductNodeConfig(const ProductNodeConfig& from)
  : ::herogoogle::protobuf::Message() {
  _internal_metadata_.MergeFrom<::herogoogle::protobuf::UnknownFieldSet>(from._internal_metadata_);
  address_.UnsafeSetDefault(&::herogoogle::protobuf::internal::GetEmptyStringAlreadyInited());
  if (!from._internal_address().empty()) {
    address_.Set(::herogoogle::protobuf::internal::ArenaStringPtr::EmptyDefault{}, from._internal_address(), 
      GetArenaForAllocation());
  }
  wsaddress_.UnsafeSetDefault(&::herogoogle::protobuf::internal::GetEmptyStringAlreadyInited());
  if (!from._internal_wsaddress().empty()) {
    wsaddress_.Set(::herogoogle::protobuf::internal::ArenaStringPtr::EmptyDefault{}, from._internal_wsaddress(), 
      GetArenaForAllocation());
  }
  // @@protoc_insertion_point(copy_constructor:heroim.client.v3beta.dto.product.model.ProductNodeConfig)
}

void ProductNodeConfig::SharedCtor() {
address_.UnsafeSetDefault(&::herogoogle::protobuf::internal::GetEmptyStringAlreadyInited());
wsaddress_.UnsafeSetDefault(&::herogoogle::protobuf::internal::GetEmptyStringAlreadyInited());
}

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

inline void ProductNodeConfig::SharedDtor() {
  GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  address_.DestroyNoArena(&::herogoogle::protobuf::internal::GetEmptyStringAlreadyInited());
  wsaddress_.DestroyNoArena(&::herogoogle::protobuf::internal::GetEmptyStringAlreadyInited());
}

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

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

  address_.ClearToEmpty();
  wsaddress_.ClearToEmpty();
  _internal_metadata_.Clear<::herogoogle::protobuf::UnknownFieldSet>();
}

const char* ProductNodeConfig::_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) {
      // string address = 1;
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::herogoogle::protobuf::uint8>(tag) == 10)) {
          auto str = _internal_mutable_address();
          ptr = ::herogoogle::protobuf::internal::InlineGreedyStringParser(str, ptr, ctx);
          CHK_(::herogoogle::protobuf::internal::VerifyUTF8(str, "heroim.client.v3beta.dto.product.model.ProductNodeConfig.address"));
          CHK_(ptr);
        } else
          goto handle_unusual;
        continue;
      // string wsAddress = 2;
      case 2:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::herogoogle::protobuf::uint8>(tag) == 18)) {
          auto str = _internal_mutable_wsaddress();
          ptr = ::herogoogle::protobuf::internal::InlineGreedyStringParser(str, ptr, ctx);
          CHK_(::herogoogle::protobuf::internal::VerifyUTF8(str, "heroim.client.v3beta.dto.product.model.ProductNodeConfig.wsAddress"));
          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* ProductNodeConfig::_InternalSerialize(
    ::herogoogle::protobuf::uint8* target, ::herogoogle::protobuf::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:heroim.client.v3beta.dto.product.model.ProductNodeConfig)
  ::herogoogle::protobuf::uint32 cached_has_bits = 0;
  (void) cached_has_bits;

  // string address = 1;
  if (!this->_internal_address().empty()) {
    ::herogoogle::protobuf::internal::WireFormatLite::VerifyUtf8String(
      this->_internal_address().data(), static_cast<int>(this->_internal_address().length()),
      ::herogoogle::protobuf::internal::WireFormatLite::SERIALIZE,
      "heroim.client.v3beta.dto.product.model.ProductNodeConfig.address");
    target = stream->WriteStringMaybeAliased(
        1, this->_internal_address(), target);
  }

  // string wsAddress = 2;
  if (!this->_internal_wsaddress().empty()) {
    ::herogoogle::protobuf::internal::WireFormatLite::VerifyUtf8String(
      this->_internal_wsaddress().data(), static_cast<int>(this->_internal_wsaddress().length()),
      ::herogoogle::protobuf::internal::WireFormatLite::SERIALIZE,
      "heroim.client.v3beta.dto.product.model.ProductNodeConfig.wsAddress");
    target = stream->WriteStringMaybeAliased(
        2, this->_internal_wsaddress(), target);
  }

  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.model.ProductNodeConfig)
  return target;
}

size_t ProductNodeConfig::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:heroim.client.v3beta.dto.product.model.ProductNodeConfig)
  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;

  // string address = 1;
  if (!this->_internal_address().empty()) {
    total_size += 1 +
      ::herogoogle::protobuf::internal::WireFormatLite::StringSize(
        this->_internal_address());
  }

  // string wsAddress = 2;
  if (!this->_internal_wsaddress().empty()) {
    total_size += 1 +
      ::herogoogle::protobuf::internal::WireFormatLite::StringSize(
        this->_internal_wsaddress());
  }

  return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
}

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

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


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

  if (!from._internal_address().empty()) {
    _internal_set_address(from._internal_address());
  }
  if (!from._internal_wsaddress().empty()) {
    _internal_set_wsaddress(from._internal_wsaddress());
  }
  _internal_metadata_.MergeFrom<::herogoogle::protobuf::UnknownFieldSet>(from._internal_metadata_);
}

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

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

void ProductNodeConfig::InternalSwap(ProductNodeConfig* other) {
  using std::swap;
  auto* lhs_arena = GetArenaForAllocation();
  auto* rhs_arena = other->GetArenaForAllocation();
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  ::herogoogle::protobuf::internal::ArenaStringPtr::InternalSwap(
      &::herogoogle::protobuf::internal::GetEmptyStringAlreadyInited(),
      &address_, lhs_arena,
      &other->address_, rhs_arena
  );
  ::herogoogle::protobuf::internal::ArenaStringPtr::InternalSwap(
      &::herogoogle::protobuf::internal::GetEmptyStringAlreadyInited(),
      &wsaddress_, lhs_arena,
      &other->wsaddress_, rhs_arena
  );
}

::herogoogle::protobuf::Metadata ProductNodeConfig::GetMetadata() const {
  return ::herogoogle::protobuf::internal::AssignDescriptors(
      &descriptor_table_client_2fv3beta_2fdto_2fproduct_2fmodel_2fproduct_5fmodel_2eproto_getter, &descriptor_table_client_2fv3beta_2fdto_2fproduct_2fmodel_2fproduct_5fmodel_2eproto_once,
      file_level_metadata_client_2fv3beta_2fdto_2fproduct_2fmodel_2fproduct_5fmodel_2eproto[0]);
}

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

class ProductOption::_Internal {
 public:
};

ProductOption::ProductOption(::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.model.ProductOption)
}
ProductOption::ProductOption(const ProductOption& from)
  : ::herogoogle::protobuf::Message() {
  _internal_metadata_.MergeFrom<::herogoogle::protobuf::UnknownFieldSet>(from._internal_metadata_);
  compressenabled_ = from.compressenabled_;
  // @@protoc_insertion_point(copy_constructor:heroim.client.v3beta.dto.product.model.ProductOption)
}

void ProductOption::SharedCtor() {
compressenabled_ = 0;
}

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

inline void ProductOption::SharedDtor() {
  GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
}

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

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

  compressenabled_ = 0;
  _internal_metadata_.Clear<::herogoogle::protobuf::UnknownFieldSet>();
}

const char* ProductOption::_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) {
      // int32 compressEnabled = 1;
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::herogoogle::protobuf::uint8>(tag) == 8)) {
          compressenabled_ = ::herogoogle::protobuf::internal::ReadVarint64(&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* ProductOption::_InternalSerialize(
    ::herogoogle::protobuf::uint8* target, ::herogoogle::protobuf::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:heroim.client.v3beta.dto.product.model.ProductOption)
  ::herogoogle::protobuf::uint32 cached_has_bits = 0;
  (void) cached_has_bits;

  // int32 compressEnabled = 1;
  if (this->_internal_compressenabled() != 0) {
    target = stream->EnsureSpace(target);
    target = ::herogoogle::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_compressenabled(), target);
  }

  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.model.ProductOption)
  return target;
}

size_t ProductOption::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:heroim.client.v3beta.dto.product.model.ProductOption)
  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;

  // int32 compressEnabled = 1;
  if (this->_internal_compressenabled() != 0) {
    total_size += ::herogoogle::protobuf::internal::WireFormatLite::Int32SizePlusOne(this->_internal_compressenabled());
  }

  return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
}

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

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


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

  if (from._internal_compressenabled() != 0) {
    _internal_set_compressenabled(from._internal_compressenabled());
  }
  _internal_metadata_.MergeFrom<::herogoogle::protobuf::UnknownFieldSet>(from._internal_metadata_);
}

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

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

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

::herogoogle::protobuf::Metadata ProductOption::GetMetadata() const {
  return ::herogoogle::protobuf::internal::AssignDescriptors(
      &descriptor_table_client_2fv3beta_2fdto_2fproduct_2fmodel_2fproduct_5fmodel_2eproto_getter, &descriptor_table_client_2fv3beta_2fdto_2fproduct_2fmodel_2fproduct_5fmodel_2eproto_once,
      file_level_metadata_client_2fv3beta_2fdto_2fproduct_2fmodel_2fproduct_5fmodel_2eproto[1]);
}

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

// @@protoc_insertion_point(global_scope)

