#include "BBScene.pb.h"

#include <algorithm>

#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/extension_set.h>
#include <google/protobuf/wire_format_lite.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>

#include <google/protobuf/port_def.inc>

PROTOBUF_PRAGMA_INIT_SEG
namespace BBSerializer {
constexpr BBScene::BBScene(
  ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  : item_()
  , gameobject_(){}
struct BBSceneDefaultTypeInternal {
  constexpr BBSceneDefaultTypeInternal()
    : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  ~BBSceneDefaultTypeInternal() {}
  union {
    BBScene _instance;
  };
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT BBSceneDefaultTypeInternal _BBScene_default_instance_;
}  
static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_BBScene_2eproto[1];
static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_BBScene_2eproto = nullptr;
static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_BBScene_2eproto = nullptr;

const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_BBScene_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
  ~0u,  
  PROTOBUF_FIELD_OFFSET(::BBSerializer::BBScene, _internal_metadata_),
  ~0u,  
  ~0u,  
  ~0u,  
  PROTOBUF_FIELD_OFFSET(::BBSerializer::BBScene, item_),
  PROTOBUF_FIELD_OFFSET(::BBSerializer::BBScene, gameobject_),
};
static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
  { 0, -1, sizeof(::BBSerializer::BBScene)},
};

static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = {
  reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::BBSerializer::_BBScene_default_instance_),
};

const char descriptor_table_protodef_BBScene_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
  "\n\rBBScene.proto\022\014BBSerializer\032\037BBHierarc"
  "hyTreeWidgetItem.proto\032\022BBGameObject.pro"
  "to\"p\n\007BBScene\0225\n\004item\030\001 \003(\0132\'.BBSerializ"
  "er.BBHierarchyTreeWidgetItem\022.\n\ngameObje"
  "ct\030\002 \003(\0132\032.BBSerializer.BBGameObjectb\006pr"
  "oto3"
  ;
static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_BBScene_2eproto_deps[2] = {
  &::descriptor_table_BBGameObject_2eproto,
  &::descriptor_table_BBHierarchyTreeWidgetItem_2eproto,
};
static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_BBScene_2eproto_once;
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_BBScene_2eproto = {
  false, false, 204, descriptor_table_protodef_BBScene_2eproto, "BBScene.proto", 
  &descriptor_table_BBScene_2eproto_once, descriptor_table_BBScene_2eproto_deps, 2, 1,
  schemas, file_default_instances, TableStruct_BBScene_2eproto::offsets,
  file_level_metadata_BBScene_2eproto, file_level_enum_descriptors_BBScene_2eproto, file_level_service_descriptors_BBScene_2eproto,
};
PROTOBUF_ATTRIBUTE_WEAK const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable* descriptor_table_BBScene_2eproto_getter() {
  return &descriptor_table_BBScene_2eproto;
}

PROTOBUF_ATTRIBUTE_INIT_PRIORITY static ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptorsRunner dynamic_init_dummy_BBScene_2eproto(&descriptor_table_BBScene_2eproto);
namespace BBSerializer {

class BBScene::_Internal {
 public:
};

void BBScene::clear_item() {
  item_.Clear();
}
void BBScene::clear_gameobject() {
  gameobject_.Clear();
}
BBScene::BBScene(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  : ::PROTOBUF_NAMESPACE_ID::Message(arena),
  item_(arena),
  gameobject_(arena) {
  SharedCtor();
  RegisterArenaDtor(arena);

}
BBScene::BBScene(const BBScene& from)
  : ::PROTOBUF_NAMESPACE_ID::Message(),
      item_(from.item_),
      gameobject_(from.gameobject_) {
  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);

}

void BBScene::SharedCtor() {
}

BBScene::~BBScene() {

  SharedDtor();
  _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}

void BBScene::SharedDtor() {
  GOOGLE_DCHECK(GetArena() == nullptr);
}

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

void BBScene::Clear() {

  ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;

  (void) cached_has_bits;

  item_.Clear();
  gameobject_.Clear();
  _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}

const char* BBScene::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  while (!ctx->Done(&ptr)) {
    ::PROTOBUF_NAMESPACE_ID::uint32 tag;
    ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
    switch (tag >> 3) {

      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
          ptr -= 1;
          do {
            ptr += 1;
            ptr = ctx->ParseMessage(_internal_add_item(), ptr);
            CHK_(ptr);
            if (!ctx->DataAvailable(ptr)) break;
          } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
        } else goto handle_unusual;
        continue;

      case 2:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
          ptr -= 1;
          do {
            ptr += 1;
            ptr = ctx->ParseMessage(_internal_add_gameobject(), ptr);
            CHK_(ptr);
            if (!ctx->DataAvailable(ptr)) break;
          } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr));
        } else goto handle_unusual;
        continue;
      default: {
      handle_unusual:
        if ((tag == 0) || ((tag & 7) == 4)) {
          CHK_(ptr);
          ctx->SetLastTag(tag);
          goto success;
        }
        ptr = UnknownFieldParse(tag,
            _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
            ptr, ctx);
        CHK_(ptr != nullptr);
        continue;
      }
    }  
  }  
success:
  return ptr;
failure:
  ptr = nullptr;
  goto success;
#undef CHK_
}

::PROTOBUF_NAMESPACE_ID::uint8* BBScene::_InternalSerialize(
    ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {

  ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  (void) cached_has_bits;

  for (unsigned int i = 0,
      n = static_cast<unsigned int>(this->_internal_item_size()); i < n; i++) {
    target = stream->EnsureSpace(target);
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
      InternalWriteMessage(1, this->_internal_item(i), target, stream);
  }

  for (unsigned int i = 0,
      n = static_cast<unsigned int>(this->_internal_gameobject_size()); i < n; i++) {
    target = stream->EnsureSpace(target);
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
      InternalWriteMessage(2, this->_internal_gameobject(i), target, stream);
  }

  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
        _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  }

  return target;
}

size_t BBScene::ByteSizeLong() const {

  size_t total_size = 0;

  ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;

  (void) cached_has_bits;

  total_size += 1UL * this->_internal_item_size();
  for (const auto& msg : this->item_) {
    total_size +=
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
  }

  total_size += 1UL * this->_internal_gameobject_size();
  for (const auto& msg : this->gameobject_) {
    total_size +=
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
  }

  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
        _internal_metadata_, total_size, &_cached_size_);
  }
  int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
  SetCachedSize(cached_size);
  return total_size;
}

void BBScene::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {

  GOOGLE_DCHECK_NE(&from, this);
  const BBScene* source =
      ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<BBScene>(
          &from);
  if (source == nullptr) {

    ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
  } else {

    MergeFrom(*source);
  }
}

void BBScene::MergeFrom(const BBScene& from) {

  GOOGLE_DCHECK_NE(&from, this);
  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  (void) cached_has_bits;

  item_.MergeFrom(from.item_);
  gameobject_.MergeFrom(from.gameobject_);
}

void BBScene::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {

  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

void BBScene::CopyFrom(const BBScene& from) {

  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

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

void BBScene::InternalSwap(BBScene* other) {
  using std::swap;
  _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
  item_.InternalSwap(&other->item_);
  gameobject_.InternalSwap(&other->gameobject_);
}

::PROTOBUF_NAMESPACE_ID::Metadata BBScene::GetMetadata() const {
  return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
      &descriptor_table_BBScene_2eproto_getter, &descriptor_table_BBScene_2eproto_once,
      file_level_metadata_BBScene_2eproto[0]);
}

}  
PROTOBUF_NAMESPACE_OPEN
template<> PROTOBUF_NOINLINE ::BBSerializer::BBScene* Arena::CreateMaybeMessage< ::BBSerializer::BBScene >(Arena* arena) {
  return Arena::CreateMessageInternal< ::BBSerializer::BBScene >(arena);
}
PROTOBUF_NAMESPACE_CLOSE

#include <google/protobuf/port_undef.inc>
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: BBScene.proto

#include "BBScene.pb.h"

#include <algorithm>

#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/extension_set.h>
#include <google/protobuf/wire_format_lite.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)
#include <google/protobuf/port_def.inc>

PROTOBUF_PRAGMA_INIT_SEG
namespace BBSerializer {
constexpr BBScene::BBScene(
  ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  : item_()
  , gameobject_(){}
struct BBSceneDefaultTypeInternal {
  constexpr BBSceneDefaultTypeInternal()
    : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  ~BBSceneDefaultTypeInternal() {}
  union {
    BBScene _instance;
  };
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT BBSceneDefaultTypeInternal _BBScene_default_instance_;
}  // namespace BBSerializer
static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_BBScene_2eproto[1];
static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_BBScene_2eproto = nullptr;
static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_BBScene_2eproto = nullptr;

const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_BBScene_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
  ~0u,  // no _has_bits_
  PROTOBUF_FIELD_OFFSET(::BBSerializer::BBScene, _internal_metadata_),
  ~0u,  // no _extensions_
  ~0u,  // no _oneof_case_
  ~0u,  // no _weak_field_map_
  PROTOBUF_FIELD_OFFSET(::BBSerializer::BBScene, item_),
  PROTOBUF_FIELD_OFFSET(::BBSerializer::BBScene, gameobject_),
};
static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
  { 0, -1, sizeof(::BBSerializer::BBScene)},
};

static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = {
  reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::BBSerializer::_BBScene_default_instance_),
};

const char descriptor_table_protodef_BBScene_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
  "\n\rBBScene.proto\022\014BBSerializer\032\037BBHierarc"
  "hyTreeWidgetItem.proto\032\022BBGameObject.pro"
  "to\"p\n\007BBScene\0225\n\004item\030\001 \003(\0132\'.BBSerializ"
  "er.BBHierarchyTreeWidgetItem\022.\n\ngameObje"
  "ct\030\002 \003(\0132\032.BBSerializer.BBGameObjectb\006pr"
  "oto3"
  ;
static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_BBScene_2eproto_deps[2] = {
  &::descriptor_table_BBGameObject_2eproto,
  &::descriptor_table_BBHierarchyTreeWidgetItem_2eproto,
};
static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_BBScene_2eproto_once;
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_BBScene_2eproto = {
  false, false, 204, descriptor_table_protodef_BBScene_2eproto, "BBScene.proto", 
  &descriptor_table_BBScene_2eproto_once, descriptor_table_BBScene_2eproto_deps, 2, 1,
  schemas, file_default_instances, TableStruct_BBScene_2eproto::offsets,
  file_level_metadata_BBScene_2eproto, file_level_enum_descriptors_BBScene_2eproto, file_level_service_descriptors_BBScene_2eproto,
};
PROTOBUF_ATTRIBUTE_WEAK const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable* descriptor_table_BBScene_2eproto_getter() {
  return &descriptor_table_BBScene_2eproto;
}

// Force running AddDescriptors() at dynamic initialization time.
PROTOBUF_ATTRIBUTE_INIT_PRIORITY static ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptorsRunner dynamic_init_dummy_BBScene_2eproto(&descriptor_table_BBScene_2eproto);
namespace BBSerializer {

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

class BBScene::_Internal {
 public:
};

void BBScene::clear_item() {
  item_.Clear();
}
void BBScene::clear_gameobject() {
  gameobject_.Clear();
}
BBScene::BBScene(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  : ::PROTOBUF_NAMESPACE_ID::Message(arena),
  item_(arena),
  gameobject_(arena) {
  SharedCtor();
  RegisterArenaDtor(arena);
  // @@protoc_insertion_point(arena_constructor:BBSerializer.BBScene)
}
BBScene::BBScene(const BBScene& from)
  : ::PROTOBUF_NAMESPACE_ID::Message(),
      item_(from.item_),
      gameobject_(from.gameobject_) {
  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  // @@protoc_insertion_point(copy_constructor:BBSerializer.BBScene)
}

void BBScene::SharedCtor() {
}

BBScene::~BBScene() {
  // @@protoc_insertion_point(destructor:BBSerializer.BBScene)
  SharedDtor();
  _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}

void BBScene::SharedDtor() {
  GOOGLE_DCHECK(GetArena() == nullptr);
}

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

void BBScene::Clear() {
// @@protoc_insertion_point(message_clear_start:BBSerializer.BBScene)
  ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  item_.Clear();
  gameobject_.Clear();
  _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}

const char* BBScene::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  while (!ctx->Done(&ptr)) {
    ::PROTOBUF_NAMESPACE_ID::uint32 tag;
    ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
    switch (tag >> 3) {
      // repeated .BBSerializer.BBHierarchyTreeWidgetItem item = 1;
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
          ptr -= 1;
          do {
            ptr += 1;
            ptr = ctx->ParseMessage(_internal_add_item(), ptr);
            CHK_(ptr);
            if (!ctx->DataAvailable(ptr)) break;
          } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
        } else goto handle_unusual;
        continue;
      // repeated .BBSerializer.BBGameObject gameObject = 2;
      case 2:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
          ptr -= 1;
          do {
            ptr += 1;
            ptr = ctx->ParseMessage(_internal_add_gameobject(), ptr);
            CHK_(ptr);
            if (!ctx->DataAvailable(ptr)) break;
          } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr));
        } else goto handle_unusual;
        continue;
      default: {
      handle_unusual:
        if ((tag == 0) || ((tag & 7) == 4)) {
          CHK_(ptr);
          ctx->SetLastTag(tag);
          goto success;
        }
        ptr = UnknownFieldParse(tag,
            _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
            ptr, ctx);
        CHK_(ptr != nullptr);
        continue;
      }
    }  // switch
  }  // while
success:
  return ptr;
failure:
  ptr = nullptr;
  goto success;
#undef CHK_
}

::PROTOBUF_NAMESPACE_ID::uint8* BBScene::_InternalSerialize(
    ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:BBSerializer.BBScene)
  ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  (void) cached_has_bits;

  // repeated .BBSerializer.BBHierarchyTreeWidgetItem item = 1;
  for (unsigned int i = 0,
      n = static_cast<unsigned int>(this->_internal_item_size()); i < n; i++) {
    target = stream->EnsureSpace(target);
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
      InternalWriteMessage(1, this->_internal_item(i), target, stream);
  }

  // repeated .BBSerializer.BBGameObject gameObject = 2;
  for (unsigned int i = 0,
      n = static_cast<unsigned int>(this->_internal_gameobject_size()); i < n; i++) {
    target = stream->EnsureSpace(target);
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
      InternalWriteMessage(2, this->_internal_gameobject(i), target, stream);
  }

  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
        _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  }
  // @@protoc_insertion_point(serialize_to_array_end:BBSerializer.BBScene)
  return target;
}

size_t BBScene::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:BBSerializer.BBScene)
  size_t total_size = 0;

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

  // repeated .BBSerializer.BBHierarchyTreeWidgetItem item = 1;
  total_size += 1UL * this->_internal_item_size();
  for (const auto& msg : this->item_) {
    total_size +=
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
  }

  // repeated .BBSerializer.BBGameObject gameObject = 2;
  total_size += 1UL * this->_internal_gameobject_size();
  for (const auto& msg : this->gameobject_) {
    total_size +=
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
  }

  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
        _internal_metadata_, total_size, &_cached_size_);
  }
  int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
  SetCachedSize(cached_size);
  return total_size;
}

void BBScene::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:BBSerializer.BBScene)
  GOOGLE_DCHECK_NE(&from, this);
  const BBScene* source =
      ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<BBScene>(
          &from);
  if (source == nullptr) {
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:BBSerializer.BBScene)
    ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
  } else {
  // @@protoc_insertion_point(generalized_merge_from_cast_success:BBSerializer.BBScene)
    MergeFrom(*source);
  }
}

void BBScene::MergeFrom(const BBScene& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:BBSerializer.BBScene)
  GOOGLE_DCHECK_NE(&from, this);
  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  (void) cached_has_bits;

  item_.MergeFrom(from.item_);
  gameobject_.MergeFrom(from.gameobject_);
}

void BBScene::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:BBSerializer.BBScene)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

void BBScene::CopyFrom(const BBScene& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:BBSerializer.BBScene)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

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

void BBScene::InternalSwap(BBScene* other) {
  using std::swap;
  _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
  item_.InternalSwap(&other->item_);
  gameobject_.InternalSwap(&other->gameobject_);
}

::PROTOBUF_NAMESPACE_ID::Metadata BBScene::GetMetadata() const {
  return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
      &descriptor_table_BBScene_2eproto_getter, &descriptor_table_BBScene_2eproto_once,
      file_level_metadata_BBScene_2eproto[0]);
}

// @@protoc_insertion_point(namespace_scope)
}  // namespace BBSerializer
PROTOBUF_NAMESPACE_OPEN
template<> PROTOBUF_NOINLINE ::BBSerializer::BBScene* Arena::CreateMaybeMessage< ::BBSerializer::BBScene >(Arena* arena) {
  return Arena::CreateMessageInternal< ::BBSerializer::BBScene >(arena);
}
PROTOBUF_NAMESPACE_CLOSE

// @@protoc_insertion_point(global_scope)
#include <google/protobuf/port_undef.inc>
