// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: keyapis/iot_connect/v1/keyapis_iot_connect_callback_v1.proto

#include "keyapis/iot_connect/v1/keyapis_iot_connect_callback_v1.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/io/zero_copy_stream_impl_lite.h"
// @@protoc_insertion_point(includes)

// Must be included last.
#include "google/protobuf/port_def.inc"
PROTOBUF_PRAGMA_INIT_SEG
namespace _pb = ::PROTOBUF_NAMESPACE_ID;
namespace _pbi = ::PROTOBUF_NAMESPACE_ID::internal;
namespace keyapis {
namespace iot_connect {
namespace v1 {
template <typename>
PROTOBUF_CONSTEXPR CommonError::CommonError(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_.message_)*/ {
    &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {}
  }

  , /*decltype(_impl_.details_)*/ {
    &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {}
  }

  , /*decltype(_impl_.code_)*/ 0

  , /*decltype(_impl_._cached_size_)*/{}} {}
struct CommonErrorDefaultTypeInternal {
  PROTOBUF_CONSTEXPR CommonErrorDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  ~CommonErrorDefaultTypeInternal() {}
  union {
    CommonError _instance;
  };
};

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CommonErrorDefaultTypeInternal _CommonError_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR Device::Device(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_.groups_)*/{}
  , /*decltype(_impl_.id_)*/ {
    &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {}
  }

  , /*decltype(_impl_.parent_id_)*/ {
    &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {}
  }

  , /*decltype(_impl_.name_)*/ {
    &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {}
  }

  , /*decltype(_impl_.default_name_)*/ {
    &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {}
  }

  , /*decltype(_impl_.home_)*/ {
    &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {}
  }

  , /*decltype(_impl_.room_)*/ {
    &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {}
  }

  , /*decltype(_impl_.model_id_)*/ {
    &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {}
  }

  , /*decltype(_impl_.hw_version_)*/ {
    &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {}
  }

  , /*decltype(_impl_.sw_version_)*/ {
    &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {}
  }

  , /*decltype(_impl_.user_id_)*/ 0

  , /*decltype(_impl_._cached_size_)*/{}} {}
struct DeviceDefaultTypeInternal {
  PROTOBUF_CONSTEXPR DeviceDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  ~DeviceDefaultTypeInternal() {}
  union {
    Device _instance;
  };
};

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DeviceDefaultTypeInternal _Device_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR GetCallbackDevicesRequest::GetCallbackDevicesRequest(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_._cached_size_)*/{}} {}
struct GetCallbackDevicesRequestDefaultTypeInternal {
  PROTOBUF_CONSTEXPR GetCallbackDevicesRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  ~GetCallbackDevicesRequestDefaultTypeInternal() {}
  union {
    GetCallbackDevicesRequest _instance;
  };
};

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetCallbackDevicesRequestDefaultTypeInternal _GetCallbackDevicesRequest_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR GetCallbackDevicesResponse::GetCallbackDevicesResponse(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_.data_)*/{}
  , /*decltype(_impl_._cached_size_)*/{}} {}
struct GetCallbackDevicesResponseDefaultTypeInternal {
  PROTOBUF_CONSTEXPR GetCallbackDevicesResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  ~GetCallbackDevicesResponseDefaultTypeInternal() {}
  union {
    GetCallbackDevicesResponse _instance;
  };
};

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetCallbackDevicesResponseDefaultTypeInternal _GetCallbackDevicesResponse_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR PostCallbackStatusRequest::PostCallbackStatusRequest(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_.data_)*/{}
  , /*decltype(_impl_._cached_size_)*/{}} {}
struct PostCallbackStatusRequestDefaultTypeInternal {
  PROTOBUF_CONSTEXPR PostCallbackStatusRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  ~PostCallbackStatusRequestDefaultTypeInternal() {}
  union {
    PostCallbackStatusRequest _instance;
  };
};

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PostCallbackStatusRequestDefaultTypeInternal _PostCallbackStatusRequest_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR PostCallbackStatusResponse_Status::PostCallbackStatusResponse_Status(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_.groups_)*/{}
  , /*decltype(_impl_.id_)*/ {
    &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {}
  }

  , /*decltype(_impl_.parent_id_)*/ {
    &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {}
  }

  , /*decltype(_impl_.name_)*/ {
    &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {}
  }

  , /*decltype(_impl_.default_name_)*/ {
    &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {}
  }

  , /*decltype(_impl_.home_)*/ {
    &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {}
  }

  , /*decltype(_impl_.room_)*/ {
    &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {}
  }

  , /*decltype(_impl_.model_id_)*/ {
    &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {}
  }

  , /*decltype(_impl_.hw_version_)*/ {
    &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {}
  }

  , /*decltype(_impl_.sw_version_)*/ {
    &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {}
  }

  , /*decltype(_impl_.user_id_)*/ 0

  , /*decltype(_impl_._cached_size_)*/{}} {}
struct PostCallbackStatusResponse_StatusDefaultTypeInternal {
  PROTOBUF_CONSTEXPR PostCallbackStatusResponse_StatusDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  ~PostCallbackStatusResponse_StatusDefaultTypeInternal() {}
  union {
    PostCallbackStatusResponse_Status _instance;
  };
};

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PostCallbackStatusResponse_StatusDefaultTypeInternal _PostCallbackStatusResponse_Status_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR PostCallbackStatusResponse::PostCallbackStatusResponse(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_._has_bits_)*/{}
  , /*decltype(_impl_._cached_size_)*/{}
  , /*decltype(_impl_.data_)*/nullptr} {}
struct PostCallbackStatusResponseDefaultTypeInternal {
  PROTOBUF_CONSTEXPR PostCallbackStatusResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  ~PostCallbackStatusResponseDefaultTypeInternal() {}
  union {
    PostCallbackStatusResponse _instance;
  };
};

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PostCallbackStatusResponseDefaultTypeInternal _PostCallbackStatusResponse_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR PostCallbackCommandRequest::PostCallbackCommandRequest(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_._cached_size_)*/{}} {}
struct PostCallbackCommandRequestDefaultTypeInternal {
  PROTOBUF_CONSTEXPR PostCallbackCommandRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  ~PostCallbackCommandRequestDefaultTypeInternal() {}
  union {
    PostCallbackCommandRequest _instance;
  };
};

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PostCallbackCommandRequestDefaultTypeInternal _PostCallbackCommandRequest_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR PostCallbackCommandResponse::PostCallbackCommandResponse(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_._cached_size_)*/{}} {}
struct PostCallbackCommandResponseDefaultTypeInternal {
  PROTOBUF_CONSTEXPR PostCallbackCommandResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  ~PostCallbackCommandResponseDefaultTypeInternal() {}
  union {
    PostCallbackCommandResponse _instance;
  };
};

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PostCallbackCommandResponseDefaultTypeInternal _PostCallbackCommandResponse_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR PostCallbackUnlinkRequest::PostCallbackUnlinkRequest(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_._cached_size_)*/{}} {}
struct PostCallbackUnlinkRequestDefaultTypeInternal {
  PROTOBUF_CONSTEXPR PostCallbackUnlinkRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  ~PostCallbackUnlinkRequestDefaultTypeInternal() {}
  union {
    PostCallbackUnlinkRequest _instance;
  };
};

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PostCallbackUnlinkRequestDefaultTypeInternal _PostCallbackUnlinkRequest_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR PostCallbackUnlinkResponse::PostCallbackUnlinkResponse(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_._cached_size_)*/{}} {}
struct PostCallbackUnlinkResponseDefaultTypeInternal {
  PROTOBUF_CONSTEXPR PostCallbackUnlinkResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  ~PostCallbackUnlinkResponseDefaultTypeInternal() {}
  union {
    PostCallbackUnlinkResponse _instance;
  };
};

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PostCallbackUnlinkResponseDefaultTypeInternal _PostCallbackUnlinkResponse_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR GetCallbackUserRequest::GetCallbackUserRequest(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_._cached_size_)*/{}} {}
struct GetCallbackUserRequestDefaultTypeInternal {
  PROTOBUF_CONSTEXPR GetCallbackUserRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  ~GetCallbackUserRequestDefaultTypeInternal() {}
  union {
    GetCallbackUserRequest _instance;
  };
};

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetCallbackUserRequestDefaultTypeInternal _GetCallbackUserRequest_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR GetCallbackUserResponse::GetCallbackUserResponse(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_.data_)*/ 0

  , /*decltype(_impl_._cached_size_)*/{}} {}
struct GetCallbackUserResponseDefaultTypeInternal {
  PROTOBUF_CONSTEXPR GetCallbackUserResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  ~GetCallbackUserResponseDefaultTypeInternal() {}
  union {
    GetCallbackUserResponse _instance;
  };
};

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetCallbackUserResponseDefaultTypeInternal _GetCallbackUserResponse_default_instance_;
}  // namespace v1
}  // namespace iot_connect
}  // namespace keyapis
namespace keyapis {
namespace iot_connect {
namespace v1 {
// ===================================================================

class CommonError::_Internal {
 public:
};

CommonError::CommonError(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) {
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:keyapis.iot_connect.v1.CommonError)
}
CommonError::CommonError(const CommonError& from)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
  CommonError* const _this = this; (void)_this;
  new (&_impl_) Impl_{
      decltype(_impl_.message_) {}

    , decltype(_impl_.details_) {}

    , decltype(_impl_.code_) {}

    , /*decltype(_impl_._cached_size_)*/{}};

  _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
  _impl_.message_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
        _impl_.message_.Set("", GetArenaForAllocation());
  #endif  // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  if (!from._internal_message().empty()) {
    _this->_impl_.message_.Set(from._internal_message(), _this->GetArenaForAllocation());
  }
  _impl_.details_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
        _impl_.details_.Set("", GetArenaForAllocation());
  #endif  // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  if (!from._internal_details().empty()) {
    _this->_impl_.details_.Set(from._internal_details(), _this->GetArenaForAllocation());
  }
  _this->_impl_.code_ = from._impl_.code_;
  // @@protoc_insertion_point(copy_constructor:keyapis.iot_connect.v1.CommonError)
}

inline void CommonError::SharedCtor(::_pb::Arena* arena) {
  (void)arena;
  new (&_impl_) Impl_{
      decltype(_impl_.message_) {}

    , decltype(_impl_.details_) {}

    , decltype(_impl_.code_) { 0 }

    , /*decltype(_impl_._cached_size_)*/{}
  };
  _impl_.message_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
        _impl_.message_.Set("", GetArenaForAllocation());
  #endif  // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  _impl_.details_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
        _impl_.details_.Set("", GetArenaForAllocation());
  #endif  // PROTOBUF_FORCE_COPY_DEFAULT_STRING
}

CommonError::~CommonError() {
  // @@protoc_insertion_point(destructor:keyapis.iot_connect.v1.CommonError)
  if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
  (void)arena;
    return;
  }
  SharedDtor();
}

inline void CommonError::SharedDtor() {
  ABSL_DCHECK(GetArenaForAllocation() == nullptr);
  _impl_.message_.Destroy();
  _impl_.details_.Destroy();
}

void CommonError::SetCachedSize(int size) const {
  _impl_._cached_size_.Set(size);
}

void CommonError::Clear() {
// @@protoc_insertion_point(message_clear_start:keyapis.iot_connect.v1.CommonError)
  ::uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  _impl_.message_.ClearToEmpty();
  _impl_.details_.ClearToEmpty();
  _impl_.code_ = 0;
  _internal_metadata_.Clear<std::string>();
}

const char* CommonError::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  while (!ctx->Done(&ptr)) {
    ::uint32_t tag;
    ptr = ::_pbi::ReadTag(ptr, &tag);
    switch (tag >> 3) {
      // int32 code = 1;
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
          _impl_.code_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
          CHK_(ptr);
        } else {
          goto handle_unusual;
        }
        continue;
      // string message = 2;
      case 2:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
          auto str = _internal_mutable_message();
          ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
          CHK_(ptr);
          CHK_(::_pbi::VerifyUTF8(str, nullptr));
        } else {
          goto handle_unusual;
        }
        continue;
      // string details = 3;
      case 3:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 26)) {
          auto str = _internal_mutable_details();
          ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
          CHK_(ptr);
          CHK_(::_pbi::VerifyUTF8(str, nullptr));
        } 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<std::string>(),
        ptr, ctx);
    CHK_(ptr != nullptr);
  }  // while
message_done:
  return ptr;
failure:
  ptr = nullptr;
  goto message_done;
#undef CHK_
}

::uint8_t* CommonError::_InternalSerialize(
    ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:keyapis.iot_connect.v1.CommonError)
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  // int32 code = 1;
  if (this->_internal_code() != 0) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteInt32ToArray(
        1, this->_internal_code(), target);
  }

  // string message = 2;
  if (!this->_internal_message().empty()) {
    const std::string& _s = this->_internal_message();
    ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
        _s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "keyapis.iot_connect.v1.CommonError.message");
    target = stream->WriteStringMaybeAliased(2, _s, target);
  }

  // string details = 3;
  if (!this->_internal_details().empty()) {
    const std::string& _s = this->_internal_details();
    ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
        _s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "keyapis.iot_connect.v1.CommonError.details");
    target = stream->WriteStringMaybeAliased(3, _s, target);
  }

  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
        static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
  }
  // @@protoc_insertion_point(serialize_to_array_end:keyapis.iot_connect.v1.CommonError)
  return target;
}

::size_t CommonError::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:keyapis.iot_connect.v1.CommonError)
  ::size_t total_size = 0;

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

  // string message = 2;
  if (!this->_internal_message().empty()) {
    total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
                                    this->_internal_message());
  }

  // string details = 3;
  if (!this->_internal_details().empty()) {
    total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
                                    this->_internal_details());
  }

  // int32 code = 1;
  if (this->_internal_code() != 0) {
    total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
        this->_internal_code());
  }

  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
  }
  int cached_size = ::_pbi::ToCachedSize(total_size);
  SetCachedSize(cached_size);
  return total_size;
}

void CommonError::CheckTypeAndMergeFrom(
    const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
  MergeFrom(*::_pbi::DownCast<const CommonError*>(
      &from));
}

void CommonError::MergeFrom(const CommonError& from) {
  CommonError* const _this = this;
  // @@protoc_insertion_point(class_specific_merge_from_start:keyapis.iot_connect.v1.CommonError)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  if (!from._internal_message().empty()) {
    _this->_internal_set_message(from._internal_message());
  }
  if (!from._internal_details().empty()) {
    _this->_internal_set_details(from._internal_details());
  }
  if (from._internal_code() != 0) {
    _this->_internal_set_code(from._internal_code());
  }
  _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
}

void CommonError::CopyFrom(const CommonError& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:keyapis.iot_connect.v1.CommonError)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

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

void CommonError::InternalSwap(CommonError* other) {
  using std::swap;
  auto* lhs_arena = GetArenaForAllocation();
  auto* rhs_arena = other->GetArenaForAllocation();
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.message_, lhs_arena,
                                       &other->_impl_.message_, rhs_arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.details_, lhs_arena,
                                       &other->_impl_.details_, rhs_arena);

  swap(_impl_.code_, other->_impl_.code_);
}

std::string CommonError::GetTypeName() const {
  return "keyapis.iot_connect.v1.CommonError";
}

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

class Device::_Internal {
 public:
};

Device::Device(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) {
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:keyapis.iot_connect.v1.Device)
}
Device::Device(const Device& from)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
  Device* const _this = this; (void)_this;
  new (&_impl_) Impl_{
      decltype(_impl_.groups_){from._impl_.groups_}
    , decltype(_impl_.id_) {}

    , decltype(_impl_.parent_id_) {}

    , decltype(_impl_.name_) {}

    , decltype(_impl_.default_name_) {}

    , decltype(_impl_.home_) {}

    , decltype(_impl_.room_) {}

    , decltype(_impl_.model_id_) {}

    , decltype(_impl_.hw_version_) {}

    , decltype(_impl_.sw_version_) {}

    , decltype(_impl_.user_id_) {}

    , /*decltype(_impl_._cached_size_)*/{}};

  _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
  _impl_.id_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
        _impl_.id_.Set("", GetArenaForAllocation());
  #endif  // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  if (!from._internal_id().empty()) {
    _this->_impl_.id_.Set(from._internal_id(), _this->GetArenaForAllocation());
  }
  _impl_.parent_id_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
        _impl_.parent_id_.Set("", GetArenaForAllocation());
  #endif  // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  if (!from._internal_parent_id().empty()) {
    _this->_impl_.parent_id_.Set(from._internal_parent_id(), _this->GetArenaForAllocation());
  }
  _impl_.name_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
        _impl_.name_.Set("", GetArenaForAllocation());
  #endif  // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  if (!from._internal_name().empty()) {
    _this->_impl_.name_.Set(from._internal_name(), _this->GetArenaForAllocation());
  }
  _impl_.default_name_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
        _impl_.default_name_.Set("", GetArenaForAllocation());
  #endif  // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  if (!from._internal_default_name().empty()) {
    _this->_impl_.default_name_.Set(from._internal_default_name(), _this->GetArenaForAllocation());
  }
  _impl_.home_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
        _impl_.home_.Set("", GetArenaForAllocation());
  #endif  // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  if (!from._internal_home().empty()) {
    _this->_impl_.home_.Set(from._internal_home(), _this->GetArenaForAllocation());
  }
  _impl_.room_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
        _impl_.room_.Set("", GetArenaForAllocation());
  #endif  // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  if (!from._internal_room().empty()) {
    _this->_impl_.room_.Set(from._internal_room(), _this->GetArenaForAllocation());
  }
  _impl_.model_id_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
        _impl_.model_id_.Set("", GetArenaForAllocation());
  #endif  // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  if (!from._internal_model_id().empty()) {
    _this->_impl_.model_id_.Set(from._internal_model_id(), _this->GetArenaForAllocation());
  }
  _impl_.hw_version_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
        _impl_.hw_version_.Set("", GetArenaForAllocation());
  #endif  // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  if (!from._internal_hw_version().empty()) {
    _this->_impl_.hw_version_.Set(from._internal_hw_version(), _this->GetArenaForAllocation());
  }
  _impl_.sw_version_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
        _impl_.sw_version_.Set("", GetArenaForAllocation());
  #endif  // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  if (!from._internal_sw_version().empty()) {
    _this->_impl_.sw_version_.Set(from._internal_sw_version(), _this->GetArenaForAllocation());
  }
  _this->_impl_.user_id_ = from._impl_.user_id_;
  // @@protoc_insertion_point(copy_constructor:keyapis.iot_connect.v1.Device)
}

inline void Device::SharedCtor(::_pb::Arena* arena) {
  (void)arena;
  new (&_impl_) Impl_{
      decltype(_impl_.groups_){arena}
    , decltype(_impl_.id_) {}

    , decltype(_impl_.parent_id_) {}

    , decltype(_impl_.name_) {}

    , decltype(_impl_.default_name_) {}

    , decltype(_impl_.home_) {}

    , decltype(_impl_.room_) {}

    , decltype(_impl_.model_id_) {}

    , decltype(_impl_.hw_version_) {}

    , decltype(_impl_.sw_version_) {}

    , decltype(_impl_.user_id_) { 0 }

    , /*decltype(_impl_._cached_size_)*/{}
  };
  _impl_.id_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
        _impl_.id_.Set("", GetArenaForAllocation());
  #endif  // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  _impl_.parent_id_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
        _impl_.parent_id_.Set("", GetArenaForAllocation());
  #endif  // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  _impl_.name_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
        _impl_.name_.Set("", GetArenaForAllocation());
  #endif  // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  _impl_.default_name_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
        _impl_.default_name_.Set("", GetArenaForAllocation());
  #endif  // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  _impl_.home_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
        _impl_.home_.Set("", GetArenaForAllocation());
  #endif  // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  _impl_.room_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
        _impl_.room_.Set("", GetArenaForAllocation());
  #endif  // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  _impl_.model_id_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
        _impl_.model_id_.Set("", GetArenaForAllocation());
  #endif  // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  _impl_.hw_version_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
        _impl_.hw_version_.Set("", GetArenaForAllocation());
  #endif  // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  _impl_.sw_version_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
        _impl_.sw_version_.Set("", GetArenaForAllocation());
  #endif  // PROTOBUF_FORCE_COPY_DEFAULT_STRING
}

Device::~Device() {
  // @@protoc_insertion_point(destructor:keyapis.iot_connect.v1.Device)
  if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
  (void)arena;
    return;
  }
  SharedDtor();
}

inline void Device::SharedDtor() {
  ABSL_DCHECK(GetArenaForAllocation() == nullptr);
  _internal_mutable_groups()->~RepeatedPtrField();
  _impl_.id_.Destroy();
  _impl_.parent_id_.Destroy();
  _impl_.name_.Destroy();
  _impl_.default_name_.Destroy();
  _impl_.home_.Destroy();
  _impl_.room_.Destroy();
  _impl_.model_id_.Destroy();
  _impl_.hw_version_.Destroy();
  _impl_.sw_version_.Destroy();
}

void Device::SetCachedSize(int size) const {
  _impl_._cached_size_.Set(size);
}

void Device::Clear() {
// @@protoc_insertion_point(message_clear_start:keyapis.iot_connect.v1.Device)
  ::uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  _internal_mutable_groups()->Clear();
  _impl_.id_.ClearToEmpty();
  _impl_.parent_id_.ClearToEmpty();
  _impl_.name_.ClearToEmpty();
  _impl_.default_name_.ClearToEmpty();
  _impl_.home_.ClearToEmpty();
  _impl_.room_.ClearToEmpty();
  _impl_.model_id_.ClearToEmpty();
  _impl_.hw_version_.ClearToEmpty();
  _impl_.sw_version_.ClearToEmpty();
  _impl_.user_id_ = 0;
  _internal_metadata_.Clear<std::string>();
}

const char* Device::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  while (!ctx->Done(&ptr)) {
    ::uint32_t tag;
    ptr = ::_pbi::ReadTag(ptr, &tag);
    switch (tag >> 3) {
      // int32 user_id = 1;
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
          _impl_.user_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
          CHK_(ptr);
        } else {
          goto handle_unusual;
        }
        continue;
      // string id = 2;
      case 2:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
          auto str = _internal_mutable_id();
          ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
          CHK_(ptr);
          CHK_(::_pbi::VerifyUTF8(str, nullptr));
        } else {
          goto handle_unusual;
        }
        continue;
      // string parent_id = 3;
      case 3:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 26)) {
          auto str = _internal_mutable_parent_id();
          ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
          CHK_(ptr);
          CHK_(::_pbi::VerifyUTF8(str, nullptr));
        } else {
          goto handle_unusual;
        }
        continue;
      // string name = 4;
      case 4:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 34)) {
          auto str = _internal_mutable_name();
          ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
          CHK_(ptr);
          CHK_(::_pbi::VerifyUTF8(str, nullptr));
        } else {
          goto handle_unusual;
        }
        continue;
      // string default_name = 5;
      case 5:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 42)) {
          auto str = _internal_mutable_default_name();
          ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
          CHK_(ptr);
          CHK_(::_pbi::VerifyUTF8(str, nullptr));
        } else {
          goto handle_unusual;
        }
        continue;
      // string home = 6;
      case 6:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 50)) {
          auto str = _internal_mutable_home();
          ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
          CHK_(ptr);
          CHK_(::_pbi::VerifyUTF8(str, nullptr));
        } else {
          goto handle_unusual;
        }
        continue;
      // string room = 7;
      case 7:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 58)) {
          auto str = _internal_mutable_room();
          ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
          CHK_(ptr);
          CHK_(::_pbi::VerifyUTF8(str, nullptr));
        } else {
          goto handle_unusual;
        }
        continue;
      // repeated string groups = 8;
      case 8:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 66)) {
          ptr -= 1;
          do {
            ptr += 1;
            auto str = _internal_add_groups();
            ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
            CHK_(ptr);
            CHK_(::_pbi::VerifyUTF8(str, nullptr));
            if (!ctx->DataAvailable(ptr)) break;
          } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<66>(ptr));
        } else {
          goto handle_unusual;
        }
        continue;
      // string model_id = 9;
      case 9:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 74)) {
          auto str = _internal_mutable_model_id();
          ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
          CHK_(ptr);
          CHK_(::_pbi::VerifyUTF8(str, nullptr));
        } else {
          goto handle_unusual;
        }
        continue;
      // string hw_version = 10;
      case 10:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 82)) {
          auto str = _internal_mutable_hw_version();
          ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
          CHK_(ptr);
          CHK_(::_pbi::VerifyUTF8(str, nullptr));
        } else {
          goto handle_unusual;
        }
        continue;
      // string sw_version = 11;
      case 11:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 90)) {
          auto str = _internal_mutable_sw_version();
          ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
          CHK_(ptr);
          CHK_(::_pbi::VerifyUTF8(str, nullptr));
        } 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<std::string>(),
        ptr, ctx);
    CHK_(ptr != nullptr);
  }  // while
message_done:
  return ptr;
failure:
  ptr = nullptr;
  goto message_done;
#undef CHK_
}

::uint8_t* Device::_InternalSerialize(
    ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:keyapis.iot_connect.v1.Device)
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  // int32 user_id = 1;
  if (this->_internal_user_id() != 0) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteInt32ToArray(
        1, this->_internal_user_id(), target);
  }

  // string id = 2;
  if (!this->_internal_id().empty()) {
    const std::string& _s = this->_internal_id();
    ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
        _s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "keyapis.iot_connect.v1.Device.id");
    target = stream->WriteStringMaybeAliased(2, _s, target);
  }

  // string parent_id = 3;
  if (!this->_internal_parent_id().empty()) {
    const std::string& _s = this->_internal_parent_id();
    ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
        _s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "keyapis.iot_connect.v1.Device.parent_id");
    target = stream->WriteStringMaybeAliased(3, _s, target);
  }

  // string name = 4;
  if (!this->_internal_name().empty()) {
    const std::string& _s = this->_internal_name();
    ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
        _s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "keyapis.iot_connect.v1.Device.name");
    target = stream->WriteStringMaybeAliased(4, _s, target);
  }

  // string default_name = 5;
  if (!this->_internal_default_name().empty()) {
    const std::string& _s = this->_internal_default_name();
    ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
        _s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "keyapis.iot_connect.v1.Device.default_name");
    target = stream->WriteStringMaybeAliased(5, _s, target);
  }

  // string home = 6;
  if (!this->_internal_home().empty()) {
    const std::string& _s = this->_internal_home();
    ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
        _s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "keyapis.iot_connect.v1.Device.home");
    target = stream->WriteStringMaybeAliased(6, _s, target);
  }

  // string room = 7;
  if (!this->_internal_room().empty()) {
    const std::string& _s = this->_internal_room();
    ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
        _s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "keyapis.iot_connect.v1.Device.room");
    target = stream->WriteStringMaybeAliased(7, _s, target);
  }

  // repeated string groups = 8;
  for (int i = 0, n = this->_internal_groups_size(); i < n; ++i) {
    const auto& s = this->_internal_groups(i);
    ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
        s.data(), static_cast<int>(s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "keyapis.iot_connect.v1.Device.groups");
    target = stream->WriteString(8, s, target);
  }

  // string model_id = 9;
  if (!this->_internal_model_id().empty()) {
    const std::string& _s = this->_internal_model_id();
    ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
        _s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "keyapis.iot_connect.v1.Device.model_id");
    target = stream->WriteStringMaybeAliased(9, _s, target);
  }

  // string hw_version = 10;
  if (!this->_internal_hw_version().empty()) {
    const std::string& _s = this->_internal_hw_version();
    ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
        _s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "keyapis.iot_connect.v1.Device.hw_version");
    target = stream->WriteStringMaybeAliased(10, _s, target);
  }

  // string sw_version = 11;
  if (!this->_internal_sw_version().empty()) {
    const std::string& _s = this->_internal_sw_version();
    ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
        _s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "keyapis.iot_connect.v1.Device.sw_version");
    target = stream->WriteStringMaybeAliased(11, _s, target);
  }

  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
        static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
  }
  // @@protoc_insertion_point(serialize_to_array_end:keyapis.iot_connect.v1.Device)
  return target;
}

::size_t Device::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:keyapis.iot_connect.v1.Device)
  ::size_t total_size = 0;

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

  // repeated string groups = 8;
  total_size += 1 * ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(_internal_groups().size());
  for (int i = 0, n = _internal_groups().size(); i < n; ++i) {
    total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
        _internal_groups().Get(i));
  }

  // string id = 2;
  if (!this->_internal_id().empty()) {
    total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
                                    this->_internal_id());
  }

  // string parent_id = 3;
  if (!this->_internal_parent_id().empty()) {
    total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
                                    this->_internal_parent_id());
  }

  // string name = 4;
  if (!this->_internal_name().empty()) {
    total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
                                    this->_internal_name());
  }

  // string default_name = 5;
  if (!this->_internal_default_name().empty()) {
    total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
                                    this->_internal_default_name());
  }

  // string home = 6;
  if (!this->_internal_home().empty()) {
    total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
                                    this->_internal_home());
  }

  // string room = 7;
  if (!this->_internal_room().empty()) {
    total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
                                    this->_internal_room());
  }

  // string model_id = 9;
  if (!this->_internal_model_id().empty()) {
    total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
                                    this->_internal_model_id());
  }

  // string hw_version = 10;
  if (!this->_internal_hw_version().empty()) {
    total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
                                    this->_internal_hw_version());
  }

  // string sw_version = 11;
  if (!this->_internal_sw_version().empty()) {
    total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
                                    this->_internal_sw_version());
  }

  // int32 user_id = 1;
  if (this->_internal_user_id() != 0) {
    total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
        this->_internal_user_id());
  }

  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
  }
  int cached_size = ::_pbi::ToCachedSize(total_size);
  SetCachedSize(cached_size);
  return total_size;
}

void Device::CheckTypeAndMergeFrom(
    const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
  MergeFrom(*::_pbi::DownCast<const Device*>(
      &from));
}

void Device::MergeFrom(const Device& from) {
  Device* const _this = this;
  // @@protoc_insertion_point(class_specific_merge_from_start:keyapis.iot_connect.v1.Device)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  _this->_internal_mutable_groups()->MergeFrom(from._internal_groups());
  if (!from._internal_id().empty()) {
    _this->_internal_set_id(from._internal_id());
  }
  if (!from._internal_parent_id().empty()) {
    _this->_internal_set_parent_id(from._internal_parent_id());
  }
  if (!from._internal_name().empty()) {
    _this->_internal_set_name(from._internal_name());
  }
  if (!from._internal_default_name().empty()) {
    _this->_internal_set_default_name(from._internal_default_name());
  }
  if (!from._internal_home().empty()) {
    _this->_internal_set_home(from._internal_home());
  }
  if (!from._internal_room().empty()) {
    _this->_internal_set_room(from._internal_room());
  }
  if (!from._internal_model_id().empty()) {
    _this->_internal_set_model_id(from._internal_model_id());
  }
  if (!from._internal_hw_version().empty()) {
    _this->_internal_set_hw_version(from._internal_hw_version());
  }
  if (!from._internal_sw_version().empty()) {
    _this->_internal_set_sw_version(from._internal_sw_version());
  }
  if (from._internal_user_id() != 0) {
    _this->_internal_set_user_id(from._internal_user_id());
  }
  _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
}

void Device::CopyFrom(const Device& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:keyapis.iot_connect.v1.Device)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

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

void Device::InternalSwap(Device* other) {
  using std::swap;
  auto* lhs_arena = GetArenaForAllocation();
  auto* rhs_arena = other->GetArenaForAllocation();
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  _internal_mutable_groups()->InternalSwap(
      other->_internal_mutable_groups());
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.id_, lhs_arena,
                                       &other->_impl_.id_, rhs_arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.parent_id_, lhs_arena,
                                       &other->_impl_.parent_id_, rhs_arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, lhs_arena,
                                       &other->_impl_.name_, rhs_arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.default_name_, lhs_arena,
                                       &other->_impl_.default_name_, rhs_arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.home_, lhs_arena,
                                       &other->_impl_.home_, rhs_arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.room_, lhs_arena,
                                       &other->_impl_.room_, rhs_arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.model_id_, lhs_arena,
                                       &other->_impl_.model_id_, rhs_arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.hw_version_, lhs_arena,
                                       &other->_impl_.hw_version_, rhs_arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.sw_version_, lhs_arena,
                                       &other->_impl_.sw_version_, rhs_arena);

  swap(_impl_.user_id_, other->_impl_.user_id_);
}

std::string Device::GetTypeName() const {
  return "keyapis.iot_connect.v1.Device";
}

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

class GetCallbackDevicesRequest::_Internal {
 public:
};

GetCallbackDevicesRequest::GetCallbackDevicesRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) {
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:keyapis.iot_connect.v1.GetCallbackDevicesRequest)
}
GetCallbackDevicesRequest::GetCallbackDevicesRequest(const GetCallbackDevicesRequest& from)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite(), _impl_(from._impl_) {
  _internal_metadata_.MergeFrom<std::string>(
      from._internal_metadata_);
  // @@protoc_insertion_point(copy_constructor:keyapis.iot_connect.v1.GetCallbackDevicesRequest)
}

inline void GetCallbackDevicesRequest::SharedCtor(::_pb::Arena* arena) {
  (void)arena;
  new (&_impl_) Impl_{
      /*decltype(_impl_._cached_size_)*/{}
  };
}

GetCallbackDevicesRequest::~GetCallbackDevicesRequest() {
  // @@protoc_insertion_point(destructor:keyapis.iot_connect.v1.GetCallbackDevicesRequest)
  if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
  (void)arena;
    return;
  }
  SharedDtor();
}

inline void GetCallbackDevicesRequest::SharedDtor() {
  ABSL_DCHECK(GetArenaForAllocation() == nullptr);
}

void GetCallbackDevicesRequest::SetCachedSize(int size) const {
  _impl_._cached_size_.Set(size);
}

void GetCallbackDevicesRequest::Clear() {
// @@protoc_insertion_point(message_clear_start:keyapis.iot_connect.v1.GetCallbackDevicesRequest)
  ::uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  _internal_metadata_.Clear<std::string>();
}

const char* GetCallbackDevicesRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  while (!ctx->Done(&ptr)) {
    ::uint32_t tag;
    ptr = ::_pbi::ReadTag(ptr, &tag);
    if ((tag == 0) || ((tag & 7) == 4)) {
      CHK_(ptr);
      ctx->SetLastTag(tag);
      goto message_done;
    }
    ptr = UnknownFieldParse(
        tag,
        _internal_metadata_.mutable_unknown_fields<std::string>(),
        ptr, ctx);
    CHK_(ptr != nullptr);
  }  // while
message_done:
  return ptr;
failure:
  ptr = nullptr;
  goto message_done;
#undef CHK_
}

::uint8_t* GetCallbackDevicesRequest::_InternalSerialize(
    ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:keyapis.iot_connect.v1.GetCallbackDevicesRequest)
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
        static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
  }
  // @@protoc_insertion_point(serialize_to_array_end:keyapis.iot_connect.v1.GetCallbackDevicesRequest)
  return target;
}

::size_t GetCallbackDevicesRequest::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:keyapis.iot_connect.v1.GetCallbackDevicesRequest)
  ::size_t total_size = 0;

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

  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
  }
  int cached_size = ::_pbi::ToCachedSize(total_size);
  SetCachedSize(cached_size);
  return total_size;
}

void GetCallbackDevicesRequest::CheckTypeAndMergeFrom(
    const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
  MergeFrom(*::_pbi::DownCast<const GetCallbackDevicesRequest*>(
      &from));
}

void GetCallbackDevicesRequest::MergeFrom(const GetCallbackDevicesRequest& from) {
  GetCallbackDevicesRequest* const _this = this;
  // @@protoc_insertion_point(class_specific_merge_from_start:keyapis.iot_connect.v1.GetCallbackDevicesRequest)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
}

void GetCallbackDevicesRequest::CopyFrom(const GetCallbackDevicesRequest& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:keyapis.iot_connect.v1.GetCallbackDevicesRequest)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

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

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

std::string GetCallbackDevicesRequest::GetTypeName() const {
  return "keyapis.iot_connect.v1.GetCallbackDevicesRequest";
}

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

class GetCallbackDevicesResponse::_Internal {
 public:
};

GetCallbackDevicesResponse::GetCallbackDevicesResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) {
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:keyapis.iot_connect.v1.GetCallbackDevicesResponse)
}
GetCallbackDevicesResponse::GetCallbackDevicesResponse(const GetCallbackDevicesResponse& from)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
  GetCallbackDevicesResponse* const _this = this; (void)_this;
  new (&_impl_) Impl_{
      decltype(_impl_.data_){from._impl_.data_}
    , /*decltype(_impl_._cached_size_)*/{}};

  _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
  // @@protoc_insertion_point(copy_constructor:keyapis.iot_connect.v1.GetCallbackDevicesResponse)
}

inline void GetCallbackDevicesResponse::SharedCtor(::_pb::Arena* arena) {
  (void)arena;
  new (&_impl_) Impl_{
      decltype(_impl_.data_){arena}
    , /*decltype(_impl_._cached_size_)*/{}
  };
}

GetCallbackDevicesResponse::~GetCallbackDevicesResponse() {
  // @@protoc_insertion_point(destructor:keyapis.iot_connect.v1.GetCallbackDevicesResponse)
  if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
  (void)arena;
    return;
  }
  SharedDtor();
}

inline void GetCallbackDevicesResponse::SharedDtor() {
  ABSL_DCHECK(GetArenaForAllocation() == nullptr);
  _internal_mutable_data()->~RepeatedPtrField();
}

void GetCallbackDevicesResponse::SetCachedSize(int size) const {
  _impl_._cached_size_.Set(size);
}

void GetCallbackDevicesResponse::Clear() {
// @@protoc_insertion_point(message_clear_start:keyapis.iot_connect.v1.GetCallbackDevicesResponse)
  ::uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  _internal_mutable_data()->Clear();
  _internal_metadata_.Clear<std::string>();
}

const char* GetCallbackDevicesResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  while (!ctx->Done(&ptr)) {
    ::uint32_t tag;
    ptr = ::_pbi::ReadTag(ptr, &tag);
    switch (tag >> 3) {
      // repeated .keyapis.iot_connect.v1.Device data = 1;
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
          ptr -= 1;
          do {
            ptr += 1;
            ptr = ctx->ParseMessage(_internal_add_data(), ptr);
            CHK_(ptr);
            if (!ctx->DataAvailable(ptr)) break;
          } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(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<std::string>(),
        ptr, ctx);
    CHK_(ptr != nullptr);
  }  // while
message_done:
  return ptr;
failure:
  ptr = nullptr;
  goto message_done;
#undef CHK_
}

::uint8_t* GetCallbackDevicesResponse::_InternalSerialize(
    ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:keyapis.iot_connect.v1.GetCallbackDevicesResponse)
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  // repeated .keyapis.iot_connect.v1.Device data = 1;
  for (unsigned i = 0,
      n = static_cast<unsigned>(this->_internal_data_size()); i < n; i++) {
    const auto& repfield = this->_internal_data(i);
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
        InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream);
  }

  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
        static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
  }
  // @@protoc_insertion_point(serialize_to_array_end:keyapis.iot_connect.v1.GetCallbackDevicesResponse)
  return target;
}

::size_t GetCallbackDevicesResponse::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:keyapis.iot_connect.v1.GetCallbackDevicesResponse)
  ::size_t total_size = 0;

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

  // repeated .keyapis.iot_connect.v1.Device data = 1;
  total_size += 1UL * this->_internal_data_size();
  for (const auto& msg : this->_internal_data()) {
    total_size +=
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
  }

  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
  }
  int cached_size = ::_pbi::ToCachedSize(total_size);
  SetCachedSize(cached_size);
  return total_size;
}

void GetCallbackDevicesResponse::CheckTypeAndMergeFrom(
    const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
  MergeFrom(*::_pbi::DownCast<const GetCallbackDevicesResponse*>(
      &from));
}

void GetCallbackDevicesResponse::MergeFrom(const GetCallbackDevicesResponse& from) {
  GetCallbackDevicesResponse* const _this = this;
  // @@protoc_insertion_point(class_specific_merge_from_start:keyapis.iot_connect.v1.GetCallbackDevicesResponse)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  _this->_internal_mutable_data()->MergeFrom(from._internal_data());
  _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
}

void GetCallbackDevicesResponse::CopyFrom(const GetCallbackDevicesResponse& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:keyapis.iot_connect.v1.GetCallbackDevicesResponse)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

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

void GetCallbackDevicesResponse::InternalSwap(GetCallbackDevicesResponse* other) {
  using std::swap;
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  _internal_mutable_data()->InternalSwap(other->_internal_mutable_data());
}

std::string GetCallbackDevicesResponse::GetTypeName() const {
  return "keyapis.iot_connect.v1.GetCallbackDevicesResponse";
}

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

class PostCallbackStatusRequest::_Internal {
 public:
};

PostCallbackStatusRequest::PostCallbackStatusRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) {
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:keyapis.iot_connect.v1.PostCallbackStatusRequest)
}
PostCallbackStatusRequest::PostCallbackStatusRequest(const PostCallbackStatusRequest& from)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
  PostCallbackStatusRequest* const _this = this; (void)_this;
  new (&_impl_) Impl_{
      decltype(_impl_.data_){from._impl_.data_}
    , /*decltype(_impl_._cached_size_)*/{}};

  _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
  // @@protoc_insertion_point(copy_constructor:keyapis.iot_connect.v1.PostCallbackStatusRequest)
}

inline void PostCallbackStatusRequest::SharedCtor(::_pb::Arena* arena) {
  (void)arena;
  new (&_impl_) Impl_{
      decltype(_impl_.data_){arena}
    , /*decltype(_impl_._cached_size_)*/{}
  };
}

PostCallbackStatusRequest::~PostCallbackStatusRequest() {
  // @@protoc_insertion_point(destructor:keyapis.iot_connect.v1.PostCallbackStatusRequest)
  if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
  (void)arena;
    return;
  }
  SharedDtor();
}

inline void PostCallbackStatusRequest::SharedDtor() {
  ABSL_DCHECK(GetArenaForAllocation() == nullptr);
  _internal_mutable_data()->~RepeatedPtrField();
}

void PostCallbackStatusRequest::SetCachedSize(int size) const {
  _impl_._cached_size_.Set(size);
}

void PostCallbackStatusRequest::Clear() {
// @@protoc_insertion_point(message_clear_start:keyapis.iot_connect.v1.PostCallbackStatusRequest)
  ::uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  _internal_mutable_data()->Clear();
  _internal_metadata_.Clear<std::string>();
}

const char* PostCallbackStatusRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  while (!ctx->Done(&ptr)) {
    ::uint32_t tag;
    ptr = ::_pbi::ReadTag(ptr, &tag);
    switch (tag >> 3) {
      // repeated string data = 1;
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
          ptr -= 1;
          do {
            ptr += 1;
            auto str = _internal_add_data();
            ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
            CHK_(ptr);
            CHK_(::_pbi::VerifyUTF8(str, nullptr));
            if (!ctx->DataAvailable(ptr)) break;
          } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(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<std::string>(),
        ptr, ctx);
    CHK_(ptr != nullptr);
  }  // while
message_done:
  return ptr;
failure:
  ptr = nullptr;
  goto message_done;
#undef CHK_
}

::uint8_t* PostCallbackStatusRequest::_InternalSerialize(
    ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:keyapis.iot_connect.v1.PostCallbackStatusRequest)
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  // repeated string data = 1;
  for (int i = 0, n = this->_internal_data_size(); i < n; ++i) {
    const auto& s = this->_internal_data(i);
    ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
        s.data(), static_cast<int>(s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "keyapis.iot_connect.v1.PostCallbackStatusRequest.data");
    target = stream->WriteString(1, s, target);
  }

  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
        static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
  }
  // @@protoc_insertion_point(serialize_to_array_end:keyapis.iot_connect.v1.PostCallbackStatusRequest)
  return target;
}

::size_t PostCallbackStatusRequest::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:keyapis.iot_connect.v1.PostCallbackStatusRequest)
  ::size_t total_size = 0;

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

  // repeated string data = 1;
  total_size += 1 * ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(_internal_data().size());
  for (int i = 0, n = _internal_data().size(); i < n; ++i) {
    total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
        _internal_data().Get(i));
  }

  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
  }
  int cached_size = ::_pbi::ToCachedSize(total_size);
  SetCachedSize(cached_size);
  return total_size;
}

void PostCallbackStatusRequest::CheckTypeAndMergeFrom(
    const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
  MergeFrom(*::_pbi::DownCast<const PostCallbackStatusRequest*>(
      &from));
}

void PostCallbackStatusRequest::MergeFrom(const PostCallbackStatusRequest& from) {
  PostCallbackStatusRequest* const _this = this;
  // @@protoc_insertion_point(class_specific_merge_from_start:keyapis.iot_connect.v1.PostCallbackStatusRequest)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  _this->_internal_mutable_data()->MergeFrom(from._internal_data());
  _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
}

void PostCallbackStatusRequest::CopyFrom(const PostCallbackStatusRequest& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:keyapis.iot_connect.v1.PostCallbackStatusRequest)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

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

void PostCallbackStatusRequest::InternalSwap(PostCallbackStatusRequest* other) {
  using std::swap;
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  _internal_mutable_data()->InternalSwap(
      other->_internal_mutable_data());
}

std::string PostCallbackStatusRequest::GetTypeName() const {
  return "keyapis.iot_connect.v1.PostCallbackStatusRequest";
}

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

class PostCallbackStatusResponse_Status::_Internal {
 public:
};

PostCallbackStatusResponse_Status::PostCallbackStatusResponse_Status(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) {
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:keyapis.iot_connect.v1.PostCallbackStatusResponse.Status)
}
PostCallbackStatusResponse_Status::PostCallbackStatusResponse_Status(const PostCallbackStatusResponse_Status& from)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
  PostCallbackStatusResponse_Status* const _this = this; (void)_this;
  new (&_impl_) Impl_{
      decltype(_impl_.groups_){from._impl_.groups_}
    , decltype(_impl_.id_) {}

    , decltype(_impl_.parent_id_) {}

    , decltype(_impl_.name_) {}

    , decltype(_impl_.default_name_) {}

    , decltype(_impl_.home_) {}

    , decltype(_impl_.room_) {}

    , decltype(_impl_.model_id_) {}

    , decltype(_impl_.hw_version_) {}

    , decltype(_impl_.sw_version_) {}

    , decltype(_impl_.user_id_) {}

    , /*decltype(_impl_._cached_size_)*/{}};

  _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
  _impl_.id_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
        _impl_.id_.Set("", GetArenaForAllocation());
  #endif  // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  if (!from._internal_id().empty()) {
    _this->_impl_.id_.Set(from._internal_id(), _this->GetArenaForAllocation());
  }
  _impl_.parent_id_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
        _impl_.parent_id_.Set("", GetArenaForAllocation());
  #endif  // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  if (!from._internal_parent_id().empty()) {
    _this->_impl_.parent_id_.Set(from._internal_parent_id(), _this->GetArenaForAllocation());
  }
  _impl_.name_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
        _impl_.name_.Set("", GetArenaForAllocation());
  #endif  // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  if (!from._internal_name().empty()) {
    _this->_impl_.name_.Set(from._internal_name(), _this->GetArenaForAllocation());
  }
  _impl_.default_name_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
        _impl_.default_name_.Set("", GetArenaForAllocation());
  #endif  // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  if (!from._internal_default_name().empty()) {
    _this->_impl_.default_name_.Set(from._internal_default_name(), _this->GetArenaForAllocation());
  }
  _impl_.home_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
        _impl_.home_.Set("", GetArenaForAllocation());
  #endif  // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  if (!from._internal_home().empty()) {
    _this->_impl_.home_.Set(from._internal_home(), _this->GetArenaForAllocation());
  }
  _impl_.room_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
        _impl_.room_.Set("", GetArenaForAllocation());
  #endif  // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  if (!from._internal_room().empty()) {
    _this->_impl_.room_.Set(from._internal_room(), _this->GetArenaForAllocation());
  }
  _impl_.model_id_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
        _impl_.model_id_.Set("", GetArenaForAllocation());
  #endif  // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  if (!from._internal_model_id().empty()) {
    _this->_impl_.model_id_.Set(from._internal_model_id(), _this->GetArenaForAllocation());
  }
  _impl_.hw_version_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
        _impl_.hw_version_.Set("", GetArenaForAllocation());
  #endif  // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  if (!from._internal_hw_version().empty()) {
    _this->_impl_.hw_version_.Set(from._internal_hw_version(), _this->GetArenaForAllocation());
  }
  _impl_.sw_version_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
        _impl_.sw_version_.Set("", GetArenaForAllocation());
  #endif  // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  if (!from._internal_sw_version().empty()) {
    _this->_impl_.sw_version_.Set(from._internal_sw_version(), _this->GetArenaForAllocation());
  }
  _this->_impl_.user_id_ = from._impl_.user_id_;
  // @@protoc_insertion_point(copy_constructor:keyapis.iot_connect.v1.PostCallbackStatusResponse.Status)
}

inline void PostCallbackStatusResponse_Status::SharedCtor(::_pb::Arena* arena) {
  (void)arena;
  new (&_impl_) Impl_{
      decltype(_impl_.groups_){arena}
    , decltype(_impl_.id_) {}

    , decltype(_impl_.parent_id_) {}

    , decltype(_impl_.name_) {}

    , decltype(_impl_.default_name_) {}

    , decltype(_impl_.home_) {}

    , decltype(_impl_.room_) {}

    , decltype(_impl_.model_id_) {}

    , decltype(_impl_.hw_version_) {}

    , decltype(_impl_.sw_version_) {}

    , decltype(_impl_.user_id_) { 0 }

    , /*decltype(_impl_._cached_size_)*/{}
  };
  _impl_.id_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
        _impl_.id_.Set("", GetArenaForAllocation());
  #endif  // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  _impl_.parent_id_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
        _impl_.parent_id_.Set("", GetArenaForAllocation());
  #endif  // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  _impl_.name_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
        _impl_.name_.Set("", GetArenaForAllocation());
  #endif  // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  _impl_.default_name_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
        _impl_.default_name_.Set("", GetArenaForAllocation());
  #endif  // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  _impl_.home_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
        _impl_.home_.Set("", GetArenaForAllocation());
  #endif  // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  _impl_.room_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
        _impl_.room_.Set("", GetArenaForAllocation());
  #endif  // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  _impl_.model_id_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
        _impl_.model_id_.Set("", GetArenaForAllocation());
  #endif  // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  _impl_.hw_version_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
        _impl_.hw_version_.Set("", GetArenaForAllocation());
  #endif  // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  _impl_.sw_version_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
        _impl_.sw_version_.Set("", GetArenaForAllocation());
  #endif  // PROTOBUF_FORCE_COPY_DEFAULT_STRING
}

PostCallbackStatusResponse_Status::~PostCallbackStatusResponse_Status() {
  // @@protoc_insertion_point(destructor:keyapis.iot_connect.v1.PostCallbackStatusResponse.Status)
  if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
  (void)arena;
    return;
  }
  SharedDtor();
}

inline void PostCallbackStatusResponse_Status::SharedDtor() {
  ABSL_DCHECK(GetArenaForAllocation() == nullptr);
  _internal_mutable_groups()->~RepeatedPtrField();
  _impl_.id_.Destroy();
  _impl_.parent_id_.Destroy();
  _impl_.name_.Destroy();
  _impl_.default_name_.Destroy();
  _impl_.home_.Destroy();
  _impl_.room_.Destroy();
  _impl_.model_id_.Destroy();
  _impl_.hw_version_.Destroy();
  _impl_.sw_version_.Destroy();
}

void PostCallbackStatusResponse_Status::SetCachedSize(int size) const {
  _impl_._cached_size_.Set(size);
}

void PostCallbackStatusResponse_Status::Clear() {
// @@protoc_insertion_point(message_clear_start:keyapis.iot_connect.v1.PostCallbackStatusResponse.Status)
  ::uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  _internal_mutable_groups()->Clear();
  _impl_.id_.ClearToEmpty();
  _impl_.parent_id_.ClearToEmpty();
  _impl_.name_.ClearToEmpty();
  _impl_.default_name_.ClearToEmpty();
  _impl_.home_.ClearToEmpty();
  _impl_.room_.ClearToEmpty();
  _impl_.model_id_.ClearToEmpty();
  _impl_.hw_version_.ClearToEmpty();
  _impl_.sw_version_.ClearToEmpty();
  _impl_.user_id_ = 0;
  _internal_metadata_.Clear<std::string>();
}

const char* PostCallbackStatusResponse_Status::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  while (!ctx->Done(&ptr)) {
    ::uint32_t tag;
    ptr = ::_pbi::ReadTag(ptr, &tag);
    switch (tag >> 3) {
      // int32 user_id = 1;
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
          _impl_.user_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
          CHK_(ptr);
        } else {
          goto handle_unusual;
        }
        continue;
      // string id = 2;
      case 2:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
          auto str = _internal_mutable_id();
          ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
          CHK_(ptr);
          CHK_(::_pbi::VerifyUTF8(str, nullptr));
        } else {
          goto handle_unusual;
        }
        continue;
      // string parent_id = 3;
      case 3:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 26)) {
          auto str = _internal_mutable_parent_id();
          ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
          CHK_(ptr);
          CHK_(::_pbi::VerifyUTF8(str, nullptr));
        } else {
          goto handle_unusual;
        }
        continue;
      // string name = 4;
      case 4:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 34)) {
          auto str = _internal_mutable_name();
          ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
          CHK_(ptr);
          CHK_(::_pbi::VerifyUTF8(str, nullptr));
        } else {
          goto handle_unusual;
        }
        continue;
      // string default_name = 5;
      case 5:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 42)) {
          auto str = _internal_mutable_default_name();
          ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
          CHK_(ptr);
          CHK_(::_pbi::VerifyUTF8(str, nullptr));
        } else {
          goto handle_unusual;
        }
        continue;
      // string home = 6;
      case 6:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 50)) {
          auto str = _internal_mutable_home();
          ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
          CHK_(ptr);
          CHK_(::_pbi::VerifyUTF8(str, nullptr));
        } else {
          goto handle_unusual;
        }
        continue;
      // string room = 7;
      case 7:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 58)) {
          auto str = _internal_mutable_room();
          ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
          CHK_(ptr);
          CHK_(::_pbi::VerifyUTF8(str, nullptr));
        } else {
          goto handle_unusual;
        }
        continue;
      // repeated string groups = 8;
      case 8:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 66)) {
          ptr -= 1;
          do {
            ptr += 1;
            auto str = _internal_add_groups();
            ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
            CHK_(ptr);
            CHK_(::_pbi::VerifyUTF8(str, nullptr));
            if (!ctx->DataAvailable(ptr)) break;
          } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<66>(ptr));
        } else {
          goto handle_unusual;
        }
        continue;
      // string model_id = 9;
      case 9:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 74)) {
          auto str = _internal_mutable_model_id();
          ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
          CHK_(ptr);
          CHK_(::_pbi::VerifyUTF8(str, nullptr));
        } else {
          goto handle_unusual;
        }
        continue;
      // string hw_version = 10;
      case 10:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 82)) {
          auto str = _internal_mutable_hw_version();
          ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
          CHK_(ptr);
          CHK_(::_pbi::VerifyUTF8(str, nullptr));
        } else {
          goto handle_unusual;
        }
        continue;
      // string sw_version = 11;
      case 11:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 90)) {
          auto str = _internal_mutable_sw_version();
          ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
          CHK_(ptr);
          CHK_(::_pbi::VerifyUTF8(str, nullptr));
        } 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<std::string>(),
        ptr, ctx);
    CHK_(ptr != nullptr);
  }  // while
message_done:
  return ptr;
failure:
  ptr = nullptr;
  goto message_done;
#undef CHK_
}

::uint8_t* PostCallbackStatusResponse_Status::_InternalSerialize(
    ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:keyapis.iot_connect.v1.PostCallbackStatusResponse.Status)
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  // int32 user_id = 1;
  if (this->_internal_user_id() != 0) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteInt32ToArray(
        1, this->_internal_user_id(), target);
  }

  // string id = 2;
  if (!this->_internal_id().empty()) {
    const std::string& _s = this->_internal_id();
    ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
        _s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "keyapis.iot_connect.v1.PostCallbackStatusResponse.Status.id");
    target = stream->WriteStringMaybeAliased(2, _s, target);
  }

  // string parent_id = 3;
  if (!this->_internal_parent_id().empty()) {
    const std::string& _s = this->_internal_parent_id();
    ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
        _s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "keyapis.iot_connect.v1.PostCallbackStatusResponse.Status.parent_id");
    target = stream->WriteStringMaybeAliased(3, _s, target);
  }

  // string name = 4;
  if (!this->_internal_name().empty()) {
    const std::string& _s = this->_internal_name();
    ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
        _s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "keyapis.iot_connect.v1.PostCallbackStatusResponse.Status.name");
    target = stream->WriteStringMaybeAliased(4, _s, target);
  }

  // string default_name = 5;
  if (!this->_internal_default_name().empty()) {
    const std::string& _s = this->_internal_default_name();
    ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
        _s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "keyapis.iot_connect.v1.PostCallbackStatusResponse.Status.default_name");
    target = stream->WriteStringMaybeAliased(5, _s, target);
  }

  // string home = 6;
  if (!this->_internal_home().empty()) {
    const std::string& _s = this->_internal_home();
    ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
        _s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "keyapis.iot_connect.v1.PostCallbackStatusResponse.Status.home");
    target = stream->WriteStringMaybeAliased(6, _s, target);
  }

  // string room = 7;
  if (!this->_internal_room().empty()) {
    const std::string& _s = this->_internal_room();
    ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
        _s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "keyapis.iot_connect.v1.PostCallbackStatusResponse.Status.room");
    target = stream->WriteStringMaybeAliased(7, _s, target);
  }

  // repeated string groups = 8;
  for (int i = 0, n = this->_internal_groups_size(); i < n; ++i) {
    const auto& s = this->_internal_groups(i);
    ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
        s.data(), static_cast<int>(s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "keyapis.iot_connect.v1.PostCallbackStatusResponse.Status.groups");
    target = stream->WriteString(8, s, target);
  }

  // string model_id = 9;
  if (!this->_internal_model_id().empty()) {
    const std::string& _s = this->_internal_model_id();
    ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
        _s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "keyapis.iot_connect.v1.PostCallbackStatusResponse.Status.model_id");
    target = stream->WriteStringMaybeAliased(9, _s, target);
  }

  // string hw_version = 10;
  if (!this->_internal_hw_version().empty()) {
    const std::string& _s = this->_internal_hw_version();
    ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
        _s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "keyapis.iot_connect.v1.PostCallbackStatusResponse.Status.hw_version");
    target = stream->WriteStringMaybeAliased(10, _s, target);
  }

  // string sw_version = 11;
  if (!this->_internal_sw_version().empty()) {
    const std::string& _s = this->_internal_sw_version();
    ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
        _s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "keyapis.iot_connect.v1.PostCallbackStatusResponse.Status.sw_version");
    target = stream->WriteStringMaybeAliased(11, _s, target);
  }

  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
        static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
  }
  // @@protoc_insertion_point(serialize_to_array_end:keyapis.iot_connect.v1.PostCallbackStatusResponse.Status)
  return target;
}

::size_t PostCallbackStatusResponse_Status::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:keyapis.iot_connect.v1.PostCallbackStatusResponse.Status)
  ::size_t total_size = 0;

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

  // repeated string groups = 8;
  total_size += 1 * ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(_internal_groups().size());
  for (int i = 0, n = _internal_groups().size(); i < n; ++i) {
    total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
        _internal_groups().Get(i));
  }

  // string id = 2;
  if (!this->_internal_id().empty()) {
    total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
                                    this->_internal_id());
  }

  // string parent_id = 3;
  if (!this->_internal_parent_id().empty()) {
    total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
                                    this->_internal_parent_id());
  }

  // string name = 4;
  if (!this->_internal_name().empty()) {
    total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
                                    this->_internal_name());
  }

  // string default_name = 5;
  if (!this->_internal_default_name().empty()) {
    total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
                                    this->_internal_default_name());
  }

  // string home = 6;
  if (!this->_internal_home().empty()) {
    total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
                                    this->_internal_home());
  }

  // string room = 7;
  if (!this->_internal_room().empty()) {
    total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
                                    this->_internal_room());
  }

  // string model_id = 9;
  if (!this->_internal_model_id().empty()) {
    total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
                                    this->_internal_model_id());
  }

  // string hw_version = 10;
  if (!this->_internal_hw_version().empty()) {
    total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
                                    this->_internal_hw_version());
  }

  // string sw_version = 11;
  if (!this->_internal_sw_version().empty()) {
    total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
                                    this->_internal_sw_version());
  }

  // int32 user_id = 1;
  if (this->_internal_user_id() != 0) {
    total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
        this->_internal_user_id());
  }

  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
  }
  int cached_size = ::_pbi::ToCachedSize(total_size);
  SetCachedSize(cached_size);
  return total_size;
}

void PostCallbackStatusResponse_Status::CheckTypeAndMergeFrom(
    const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
  MergeFrom(*::_pbi::DownCast<const PostCallbackStatusResponse_Status*>(
      &from));
}

void PostCallbackStatusResponse_Status::MergeFrom(const PostCallbackStatusResponse_Status& from) {
  PostCallbackStatusResponse_Status* const _this = this;
  // @@protoc_insertion_point(class_specific_merge_from_start:keyapis.iot_connect.v1.PostCallbackStatusResponse.Status)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  _this->_internal_mutable_groups()->MergeFrom(from._internal_groups());
  if (!from._internal_id().empty()) {
    _this->_internal_set_id(from._internal_id());
  }
  if (!from._internal_parent_id().empty()) {
    _this->_internal_set_parent_id(from._internal_parent_id());
  }
  if (!from._internal_name().empty()) {
    _this->_internal_set_name(from._internal_name());
  }
  if (!from._internal_default_name().empty()) {
    _this->_internal_set_default_name(from._internal_default_name());
  }
  if (!from._internal_home().empty()) {
    _this->_internal_set_home(from._internal_home());
  }
  if (!from._internal_room().empty()) {
    _this->_internal_set_room(from._internal_room());
  }
  if (!from._internal_model_id().empty()) {
    _this->_internal_set_model_id(from._internal_model_id());
  }
  if (!from._internal_hw_version().empty()) {
    _this->_internal_set_hw_version(from._internal_hw_version());
  }
  if (!from._internal_sw_version().empty()) {
    _this->_internal_set_sw_version(from._internal_sw_version());
  }
  if (from._internal_user_id() != 0) {
    _this->_internal_set_user_id(from._internal_user_id());
  }
  _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
}

void PostCallbackStatusResponse_Status::CopyFrom(const PostCallbackStatusResponse_Status& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:keyapis.iot_connect.v1.PostCallbackStatusResponse.Status)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

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

void PostCallbackStatusResponse_Status::InternalSwap(PostCallbackStatusResponse_Status* other) {
  using std::swap;
  auto* lhs_arena = GetArenaForAllocation();
  auto* rhs_arena = other->GetArenaForAllocation();
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  _internal_mutable_groups()->InternalSwap(
      other->_internal_mutable_groups());
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.id_, lhs_arena,
                                       &other->_impl_.id_, rhs_arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.parent_id_, lhs_arena,
                                       &other->_impl_.parent_id_, rhs_arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, lhs_arena,
                                       &other->_impl_.name_, rhs_arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.default_name_, lhs_arena,
                                       &other->_impl_.default_name_, rhs_arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.home_, lhs_arena,
                                       &other->_impl_.home_, rhs_arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.room_, lhs_arena,
                                       &other->_impl_.room_, rhs_arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.model_id_, lhs_arena,
                                       &other->_impl_.model_id_, rhs_arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.hw_version_, lhs_arena,
                                       &other->_impl_.hw_version_, rhs_arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.sw_version_, lhs_arena,
                                       &other->_impl_.sw_version_, rhs_arena);

  swap(_impl_.user_id_, other->_impl_.user_id_);
}

std::string PostCallbackStatusResponse_Status::GetTypeName() const {
  return "keyapis.iot_connect.v1.PostCallbackStatusResponse.Status";
}

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

class PostCallbackStatusResponse::_Internal {
 public:
  using HasBits = decltype(std::declval<PostCallbackStatusResponse>()._impl_._has_bits_);
  static constexpr ::int32_t kHasBitsOffset =
    8 * PROTOBUF_FIELD_OFFSET(PostCallbackStatusResponse, _impl_._has_bits_);
  static const ::keyapis::iot_connect::v1::PostCallbackStatusResponse_Status& data(const PostCallbackStatusResponse* msg);
  static void set_has_data(HasBits* has_bits) {
    (*has_bits)[0] |= 1u;
  }
};

const ::keyapis::iot_connect::v1::PostCallbackStatusResponse_Status&
PostCallbackStatusResponse::_Internal::data(const PostCallbackStatusResponse* msg) {
  return *msg->_impl_.data_;
}
PostCallbackStatusResponse::PostCallbackStatusResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) {
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:keyapis.iot_connect.v1.PostCallbackStatusResponse)
}
PostCallbackStatusResponse::PostCallbackStatusResponse(const PostCallbackStatusResponse& from)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
  PostCallbackStatusResponse* const _this = this; (void)_this;
  new (&_impl_) Impl_{
      decltype(_impl_._has_bits_){from._impl_._has_bits_}
    , /*decltype(_impl_._cached_size_)*/{}
    , decltype(_impl_.data_){nullptr}};

  _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
  if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) {
    _this->_impl_.data_ = new ::keyapis::iot_connect::v1::PostCallbackStatusResponse_Status(*from._impl_.data_);
  }
  // @@protoc_insertion_point(copy_constructor:keyapis.iot_connect.v1.PostCallbackStatusResponse)
}

inline void PostCallbackStatusResponse::SharedCtor(::_pb::Arena* arena) {
  (void)arena;
  new (&_impl_) Impl_{
      decltype(_impl_._has_bits_){}
    , /*decltype(_impl_._cached_size_)*/{}
    , decltype(_impl_.data_){nullptr}
  };
}

PostCallbackStatusResponse::~PostCallbackStatusResponse() {
  // @@protoc_insertion_point(destructor:keyapis.iot_connect.v1.PostCallbackStatusResponse)
  if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
  (void)arena;
    return;
  }
  SharedDtor();
}

inline void PostCallbackStatusResponse::SharedDtor() {
  ABSL_DCHECK(GetArenaForAllocation() == nullptr);
  if (this != internal_default_instance()) delete _impl_.data_;
}

void PostCallbackStatusResponse::SetCachedSize(int size) const {
  _impl_._cached_size_.Set(size);
}

void PostCallbackStatusResponse::Clear() {
// @@protoc_insertion_point(message_clear_start:keyapis.iot_connect.v1.PostCallbackStatusResponse)
  ::uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  cached_has_bits = _impl_._has_bits_[0];
  if (cached_has_bits & 0x00000001u) {
    ABSL_DCHECK(_impl_.data_ != nullptr);
    _impl_.data_->Clear();
  }
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<std::string>();
}

const char* PostCallbackStatusResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  _Internal::HasBits has_bits{};
  while (!ctx->Done(&ptr)) {
    ::uint32_t tag;
    ptr = ::_pbi::ReadTag(ptr, &tag);
    switch (tag >> 3) {
      // .keyapis.iot_connect.v1.PostCallbackStatusResponse.Status data = 1;
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
          ptr = ctx->ParseMessage(_internal_mutable_data(), 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<std::string>(),
        ptr, ctx);
    CHK_(ptr != nullptr);
  }  // while
message_done:
  _impl_._has_bits_.Or(has_bits);
  return ptr;
failure:
  ptr = nullptr;
  goto message_done;
#undef CHK_
}

::uint8_t* PostCallbackStatusResponse::_InternalSerialize(
    ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:keyapis.iot_connect.v1.PostCallbackStatusResponse)
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  cached_has_bits = _impl_._has_bits_[0];
  // .keyapis.iot_connect.v1.PostCallbackStatusResponse.Status data = 1;
  if (cached_has_bits & 0x00000001u) {
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
      InternalWriteMessage(1, _Internal::data(this),
        _Internal::data(this).GetCachedSize(), target, stream);
  }

  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
        static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
  }
  // @@protoc_insertion_point(serialize_to_array_end:keyapis.iot_connect.v1.PostCallbackStatusResponse)
  return target;
}

::size_t PostCallbackStatusResponse::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:keyapis.iot_connect.v1.PostCallbackStatusResponse)
  ::size_t total_size = 0;

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

  // .keyapis.iot_connect.v1.PostCallbackStatusResponse.Status data = 1;
  cached_has_bits = _impl_._has_bits_[0];
  if (cached_has_bits & 0x00000001u) {
    total_size += 1 +
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
        *_impl_.data_);
  }

  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
  }
  int cached_size = ::_pbi::ToCachedSize(total_size);
  SetCachedSize(cached_size);
  return total_size;
}

void PostCallbackStatusResponse::CheckTypeAndMergeFrom(
    const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
  MergeFrom(*::_pbi::DownCast<const PostCallbackStatusResponse*>(
      &from));
}

void PostCallbackStatusResponse::MergeFrom(const PostCallbackStatusResponse& from) {
  PostCallbackStatusResponse* const _this = this;
  // @@protoc_insertion_point(class_specific_merge_from_start:keyapis.iot_connect.v1.PostCallbackStatusResponse)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) {
    _this->_internal_mutable_data()->::keyapis::iot_connect::v1::PostCallbackStatusResponse_Status::MergeFrom(
        from._internal_data());
  }
  _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
}

void PostCallbackStatusResponse::CopyFrom(const PostCallbackStatusResponse& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:keyapis.iot_connect.v1.PostCallbackStatusResponse)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

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

void PostCallbackStatusResponse::InternalSwap(PostCallbackStatusResponse* other) {
  using std::swap;
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
  swap(_impl_.data_, other->_impl_.data_);
}

std::string PostCallbackStatusResponse::GetTypeName() const {
  return "keyapis.iot_connect.v1.PostCallbackStatusResponse";
}

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

class PostCallbackCommandRequest::_Internal {
 public:
};

PostCallbackCommandRequest::PostCallbackCommandRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) {
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:keyapis.iot_connect.v1.PostCallbackCommandRequest)
}
PostCallbackCommandRequest::PostCallbackCommandRequest(const PostCallbackCommandRequest& from)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite(), _impl_(from._impl_) {
  _internal_metadata_.MergeFrom<std::string>(
      from._internal_metadata_);
  // @@protoc_insertion_point(copy_constructor:keyapis.iot_connect.v1.PostCallbackCommandRequest)
}

inline void PostCallbackCommandRequest::SharedCtor(::_pb::Arena* arena) {
  (void)arena;
  new (&_impl_) Impl_{
      /*decltype(_impl_._cached_size_)*/{}
  };
}

PostCallbackCommandRequest::~PostCallbackCommandRequest() {
  // @@protoc_insertion_point(destructor:keyapis.iot_connect.v1.PostCallbackCommandRequest)
  if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
  (void)arena;
    return;
  }
  SharedDtor();
}

inline void PostCallbackCommandRequest::SharedDtor() {
  ABSL_DCHECK(GetArenaForAllocation() == nullptr);
}

void PostCallbackCommandRequest::SetCachedSize(int size) const {
  _impl_._cached_size_.Set(size);
}

void PostCallbackCommandRequest::Clear() {
// @@protoc_insertion_point(message_clear_start:keyapis.iot_connect.v1.PostCallbackCommandRequest)
  ::uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  _internal_metadata_.Clear<std::string>();
}

const char* PostCallbackCommandRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  while (!ctx->Done(&ptr)) {
    ::uint32_t tag;
    ptr = ::_pbi::ReadTag(ptr, &tag);
    if ((tag == 0) || ((tag & 7) == 4)) {
      CHK_(ptr);
      ctx->SetLastTag(tag);
      goto message_done;
    }
    ptr = UnknownFieldParse(
        tag,
        _internal_metadata_.mutable_unknown_fields<std::string>(),
        ptr, ctx);
    CHK_(ptr != nullptr);
  }  // while
message_done:
  return ptr;
failure:
  ptr = nullptr;
  goto message_done;
#undef CHK_
}

::uint8_t* PostCallbackCommandRequest::_InternalSerialize(
    ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:keyapis.iot_connect.v1.PostCallbackCommandRequest)
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
        static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
  }
  // @@protoc_insertion_point(serialize_to_array_end:keyapis.iot_connect.v1.PostCallbackCommandRequest)
  return target;
}

::size_t PostCallbackCommandRequest::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:keyapis.iot_connect.v1.PostCallbackCommandRequest)
  ::size_t total_size = 0;

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

  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
  }
  int cached_size = ::_pbi::ToCachedSize(total_size);
  SetCachedSize(cached_size);
  return total_size;
}

void PostCallbackCommandRequest::CheckTypeAndMergeFrom(
    const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
  MergeFrom(*::_pbi::DownCast<const PostCallbackCommandRequest*>(
      &from));
}

void PostCallbackCommandRequest::MergeFrom(const PostCallbackCommandRequest& from) {
  PostCallbackCommandRequest* const _this = this;
  // @@protoc_insertion_point(class_specific_merge_from_start:keyapis.iot_connect.v1.PostCallbackCommandRequest)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
}

void PostCallbackCommandRequest::CopyFrom(const PostCallbackCommandRequest& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:keyapis.iot_connect.v1.PostCallbackCommandRequest)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

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

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

std::string PostCallbackCommandRequest::GetTypeName() const {
  return "keyapis.iot_connect.v1.PostCallbackCommandRequest";
}

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

class PostCallbackCommandResponse::_Internal {
 public:
};

PostCallbackCommandResponse::PostCallbackCommandResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) {
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:keyapis.iot_connect.v1.PostCallbackCommandResponse)
}
PostCallbackCommandResponse::PostCallbackCommandResponse(const PostCallbackCommandResponse& from)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite(), _impl_(from._impl_) {
  _internal_metadata_.MergeFrom<std::string>(
      from._internal_metadata_);
  // @@protoc_insertion_point(copy_constructor:keyapis.iot_connect.v1.PostCallbackCommandResponse)
}

inline void PostCallbackCommandResponse::SharedCtor(::_pb::Arena* arena) {
  (void)arena;
  new (&_impl_) Impl_{
      /*decltype(_impl_._cached_size_)*/{}
  };
}

PostCallbackCommandResponse::~PostCallbackCommandResponse() {
  // @@protoc_insertion_point(destructor:keyapis.iot_connect.v1.PostCallbackCommandResponse)
  if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
  (void)arena;
    return;
  }
  SharedDtor();
}

inline void PostCallbackCommandResponse::SharedDtor() {
  ABSL_DCHECK(GetArenaForAllocation() == nullptr);
}

void PostCallbackCommandResponse::SetCachedSize(int size) const {
  _impl_._cached_size_.Set(size);
}

void PostCallbackCommandResponse::Clear() {
// @@protoc_insertion_point(message_clear_start:keyapis.iot_connect.v1.PostCallbackCommandResponse)
  ::uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  _internal_metadata_.Clear<std::string>();
}

const char* PostCallbackCommandResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  while (!ctx->Done(&ptr)) {
    ::uint32_t tag;
    ptr = ::_pbi::ReadTag(ptr, &tag);
    if ((tag == 0) || ((tag & 7) == 4)) {
      CHK_(ptr);
      ctx->SetLastTag(tag);
      goto message_done;
    }
    ptr = UnknownFieldParse(
        tag,
        _internal_metadata_.mutable_unknown_fields<std::string>(),
        ptr, ctx);
    CHK_(ptr != nullptr);
  }  // while
message_done:
  return ptr;
failure:
  ptr = nullptr;
  goto message_done;
#undef CHK_
}

::uint8_t* PostCallbackCommandResponse::_InternalSerialize(
    ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:keyapis.iot_connect.v1.PostCallbackCommandResponse)
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
        static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
  }
  // @@protoc_insertion_point(serialize_to_array_end:keyapis.iot_connect.v1.PostCallbackCommandResponse)
  return target;
}

::size_t PostCallbackCommandResponse::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:keyapis.iot_connect.v1.PostCallbackCommandResponse)
  ::size_t total_size = 0;

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

  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
  }
  int cached_size = ::_pbi::ToCachedSize(total_size);
  SetCachedSize(cached_size);
  return total_size;
}

void PostCallbackCommandResponse::CheckTypeAndMergeFrom(
    const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
  MergeFrom(*::_pbi::DownCast<const PostCallbackCommandResponse*>(
      &from));
}

void PostCallbackCommandResponse::MergeFrom(const PostCallbackCommandResponse& from) {
  PostCallbackCommandResponse* const _this = this;
  // @@protoc_insertion_point(class_specific_merge_from_start:keyapis.iot_connect.v1.PostCallbackCommandResponse)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
}

void PostCallbackCommandResponse::CopyFrom(const PostCallbackCommandResponse& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:keyapis.iot_connect.v1.PostCallbackCommandResponse)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

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

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

std::string PostCallbackCommandResponse::GetTypeName() const {
  return "keyapis.iot_connect.v1.PostCallbackCommandResponse";
}

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

class PostCallbackUnlinkRequest::_Internal {
 public:
};

PostCallbackUnlinkRequest::PostCallbackUnlinkRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) {
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:keyapis.iot_connect.v1.PostCallbackUnlinkRequest)
}
PostCallbackUnlinkRequest::PostCallbackUnlinkRequest(const PostCallbackUnlinkRequest& from)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite(), _impl_(from._impl_) {
  _internal_metadata_.MergeFrom<std::string>(
      from._internal_metadata_);
  // @@protoc_insertion_point(copy_constructor:keyapis.iot_connect.v1.PostCallbackUnlinkRequest)
}

inline void PostCallbackUnlinkRequest::SharedCtor(::_pb::Arena* arena) {
  (void)arena;
  new (&_impl_) Impl_{
      /*decltype(_impl_._cached_size_)*/{}
  };
}

PostCallbackUnlinkRequest::~PostCallbackUnlinkRequest() {
  // @@protoc_insertion_point(destructor:keyapis.iot_connect.v1.PostCallbackUnlinkRequest)
  if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
  (void)arena;
    return;
  }
  SharedDtor();
}

inline void PostCallbackUnlinkRequest::SharedDtor() {
  ABSL_DCHECK(GetArenaForAllocation() == nullptr);
}

void PostCallbackUnlinkRequest::SetCachedSize(int size) const {
  _impl_._cached_size_.Set(size);
}

void PostCallbackUnlinkRequest::Clear() {
// @@protoc_insertion_point(message_clear_start:keyapis.iot_connect.v1.PostCallbackUnlinkRequest)
  ::uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  _internal_metadata_.Clear<std::string>();
}

const char* PostCallbackUnlinkRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  while (!ctx->Done(&ptr)) {
    ::uint32_t tag;
    ptr = ::_pbi::ReadTag(ptr, &tag);
    if ((tag == 0) || ((tag & 7) == 4)) {
      CHK_(ptr);
      ctx->SetLastTag(tag);
      goto message_done;
    }
    ptr = UnknownFieldParse(
        tag,
        _internal_metadata_.mutable_unknown_fields<std::string>(),
        ptr, ctx);
    CHK_(ptr != nullptr);
  }  // while
message_done:
  return ptr;
failure:
  ptr = nullptr;
  goto message_done;
#undef CHK_
}

::uint8_t* PostCallbackUnlinkRequest::_InternalSerialize(
    ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:keyapis.iot_connect.v1.PostCallbackUnlinkRequest)
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
        static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
  }
  // @@protoc_insertion_point(serialize_to_array_end:keyapis.iot_connect.v1.PostCallbackUnlinkRequest)
  return target;
}

::size_t PostCallbackUnlinkRequest::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:keyapis.iot_connect.v1.PostCallbackUnlinkRequest)
  ::size_t total_size = 0;

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

  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
  }
  int cached_size = ::_pbi::ToCachedSize(total_size);
  SetCachedSize(cached_size);
  return total_size;
}

void PostCallbackUnlinkRequest::CheckTypeAndMergeFrom(
    const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
  MergeFrom(*::_pbi::DownCast<const PostCallbackUnlinkRequest*>(
      &from));
}

void PostCallbackUnlinkRequest::MergeFrom(const PostCallbackUnlinkRequest& from) {
  PostCallbackUnlinkRequest* const _this = this;
  // @@protoc_insertion_point(class_specific_merge_from_start:keyapis.iot_connect.v1.PostCallbackUnlinkRequest)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
}

void PostCallbackUnlinkRequest::CopyFrom(const PostCallbackUnlinkRequest& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:keyapis.iot_connect.v1.PostCallbackUnlinkRequest)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

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

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

std::string PostCallbackUnlinkRequest::GetTypeName() const {
  return "keyapis.iot_connect.v1.PostCallbackUnlinkRequest";
}

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

class PostCallbackUnlinkResponse::_Internal {
 public:
};

PostCallbackUnlinkResponse::PostCallbackUnlinkResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) {
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:keyapis.iot_connect.v1.PostCallbackUnlinkResponse)
}
PostCallbackUnlinkResponse::PostCallbackUnlinkResponse(const PostCallbackUnlinkResponse& from)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite(), _impl_(from._impl_) {
  _internal_metadata_.MergeFrom<std::string>(
      from._internal_metadata_);
  // @@protoc_insertion_point(copy_constructor:keyapis.iot_connect.v1.PostCallbackUnlinkResponse)
}

inline void PostCallbackUnlinkResponse::SharedCtor(::_pb::Arena* arena) {
  (void)arena;
  new (&_impl_) Impl_{
      /*decltype(_impl_._cached_size_)*/{}
  };
}

PostCallbackUnlinkResponse::~PostCallbackUnlinkResponse() {
  // @@protoc_insertion_point(destructor:keyapis.iot_connect.v1.PostCallbackUnlinkResponse)
  if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
  (void)arena;
    return;
  }
  SharedDtor();
}

inline void PostCallbackUnlinkResponse::SharedDtor() {
  ABSL_DCHECK(GetArenaForAllocation() == nullptr);
}

void PostCallbackUnlinkResponse::SetCachedSize(int size) const {
  _impl_._cached_size_.Set(size);
}

void PostCallbackUnlinkResponse::Clear() {
// @@protoc_insertion_point(message_clear_start:keyapis.iot_connect.v1.PostCallbackUnlinkResponse)
  ::uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  _internal_metadata_.Clear<std::string>();
}

const char* PostCallbackUnlinkResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  while (!ctx->Done(&ptr)) {
    ::uint32_t tag;
    ptr = ::_pbi::ReadTag(ptr, &tag);
    if ((tag == 0) || ((tag & 7) == 4)) {
      CHK_(ptr);
      ctx->SetLastTag(tag);
      goto message_done;
    }
    ptr = UnknownFieldParse(
        tag,
        _internal_metadata_.mutable_unknown_fields<std::string>(),
        ptr, ctx);
    CHK_(ptr != nullptr);
  }  // while
message_done:
  return ptr;
failure:
  ptr = nullptr;
  goto message_done;
#undef CHK_
}

::uint8_t* PostCallbackUnlinkResponse::_InternalSerialize(
    ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:keyapis.iot_connect.v1.PostCallbackUnlinkResponse)
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
        static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
  }
  // @@protoc_insertion_point(serialize_to_array_end:keyapis.iot_connect.v1.PostCallbackUnlinkResponse)
  return target;
}

::size_t PostCallbackUnlinkResponse::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:keyapis.iot_connect.v1.PostCallbackUnlinkResponse)
  ::size_t total_size = 0;

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

  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
  }
  int cached_size = ::_pbi::ToCachedSize(total_size);
  SetCachedSize(cached_size);
  return total_size;
}

void PostCallbackUnlinkResponse::CheckTypeAndMergeFrom(
    const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
  MergeFrom(*::_pbi::DownCast<const PostCallbackUnlinkResponse*>(
      &from));
}

void PostCallbackUnlinkResponse::MergeFrom(const PostCallbackUnlinkResponse& from) {
  PostCallbackUnlinkResponse* const _this = this;
  // @@protoc_insertion_point(class_specific_merge_from_start:keyapis.iot_connect.v1.PostCallbackUnlinkResponse)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
}

void PostCallbackUnlinkResponse::CopyFrom(const PostCallbackUnlinkResponse& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:keyapis.iot_connect.v1.PostCallbackUnlinkResponse)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

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

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

std::string PostCallbackUnlinkResponse::GetTypeName() const {
  return "keyapis.iot_connect.v1.PostCallbackUnlinkResponse";
}

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

class GetCallbackUserRequest::_Internal {
 public:
};

GetCallbackUserRequest::GetCallbackUserRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) {
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:keyapis.iot_connect.v1.GetCallbackUserRequest)
}
GetCallbackUserRequest::GetCallbackUserRequest(const GetCallbackUserRequest& from)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite(), _impl_(from._impl_) {
  _internal_metadata_.MergeFrom<std::string>(
      from._internal_metadata_);
  // @@protoc_insertion_point(copy_constructor:keyapis.iot_connect.v1.GetCallbackUserRequest)
}

inline void GetCallbackUserRequest::SharedCtor(::_pb::Arena* arena) {
  (void)arena;
  new (&_impl_) Impl_{
      /*decltype(_impl_._cached_size_)*/{}
  };
}

GetCallbackUserRequest::~GetCallbackUserRequest() {
  // @@protoc_insertion_point(destructor:keyapis.iot_connect.v1.GetCallbackUserRequest)
  if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
  (void)arena;
    return;
  }
  SharedDtor();
}

inline void GetCallbackUserRequest::SharedDtor() {
  ABSL_DCHECK(GetArenaForAllocation() == nullptr);
}

void GetCallbackUserRequest::SetCachedSize(int size) const {
  _impl_._cached_size_.Set(size);
}

void GetCallbackUserRequest::Clear() {
// @@protoc_insertion_point(message_clear_start:keyapis.iot_connect.v1.GetCallbackUserRequest)
  ::uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  _internal_metadata_.Clear<std::string>();
}

const char* GetCallbackUserRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  while (!ctx->Done(&ptr)) {
    ::uint32_t tag;
    ptr = ::_pbi::ReadTag(ptr, &tag);
    if ((tag == 0) || ((tag & 7) == 4)) {
      CHK_(ptr);
      ctx->SetLastTag(tag);
      goto message_done;
    }
    ptr = UnknownFieldParse(
        tag,
        _internal_metadata_.mutable_unknown_fields<std::string>(),
        ptr, ctx);
    CHK_(ptr != nullptr);
  }  // while
message_done:
  return ptr;
failure:
  ptr = nullptr;
  goto message_done;
#undef CHK_
}

::uint8_t* GetCallbackUserRequest::_InternalSerialize(
    ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:keyapis.iot_connect.v1.GetCallbackUserRequest)
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
        static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
  }
  // @@protoc_insertion_point(serialize_to_array_end:keyapis.iot_connect.v1.GetCallbackUserRequest)
  return target;
}

::size_t GetCallbackUserRequest::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:keyapis.iot_connect.v1.GetCallbackUserRequest)
  ::size_t total_size = 0;

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

  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
  }
  int cached_size = ::_pbi::ToCachedSize(total_size);
  SetCachedSize(cached_size);
  return total_size;
}

void GetCallbackUserRequest::CheckTypeAndMergeFrom(
    const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
  MergeFrom(*::_pbi::DownCast<const GetCallbackUserRequest*>(
      &from));
}

void GetCallbackUserRequest::MergeFrom(const GetCallbackUserRequest& from) {
  GetCallbackUserRequest* const _this = this;
  // @@protoc_insertion_point(class_specific_merge_from_start:keyapis.iot_connect.v1.GetCallbackUserRequest)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
}

void GetCallbackUserRequest::CopyFrom(const GetCallbackUserRequest& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:keyapis.iot_connect.v1.GetCallbackUserRequest)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

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

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

std::string GetCallbackUserRequest::GetTypeName() const {
  return "keyapis.iot_connect.v1.GetCallbackUserRequest";
}

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

class GetCallbackUserResponse::_Internal {
 public:
};

GetCallbackUserResponse::GetCallbackUserResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) {
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:keyapis.iot_connect.v1.GetCallbackUserResponse)
}
GetCallbackUserResponse::GetCallbackUserResponse(const GetCallbackUserResponse& from)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite(), _impl_(from._impl_) {
  _internal_metadata_.MergeFrom<std::string>(
      from._internal_metadata_);
  // @@protoc_insertion_point(copy_constructor:keyapis.iot_connect.v1.GetCallbackUserResponse)
}

inline void GetCallbackUserResponse::SharedCtor(::_pb::Arena* arena) {
  (void)arena;
  new (&_impl_) Impl_{
      decltype(_impl_.data_) { 0 }

    , /*decltype(_impl_._cached_size_)*/{}
  };
}

GetCallbackUserResponse::~GetCallbackUserResponse() {
  // @@protoc_insertion_point(destructor:keyapis.iot_connect.v1.GetCallbackUserResponse)
  if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
  (void)arena;
    return;
  }
  SharedDtor();
}

inline void GetCallbackUserResponse::SharedDtor() {
  ABSL_DCHECK(GetArenaForAllocation() == nullptr);
}

void GetCallbackUserResponse::SetCachedSize(int size) const {
  _impl_._cached_size_.Set(size);
}

void GetCallbackUserResponse::Clear() {
// @@protoc_insertion_point(message_clear_start:keyapis.iot_connect.v1.GetCallbackUserResponse)
  ::uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  _impl_.data_ = 0;
  _internal_metadata_.Clear<std::string>();
}

const char* GetCallbackUserResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  while (!ctx->Done(&ptr)) {
    ::uint32_t tag;
    ptr = ::_pbi::ReadTag(ptr, &tag);
    switch (tag >> 3) {
      // int32 data = 1;
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
          _impl_.data_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&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<std::string>(),
        ptr, ctx);
    CHK_(ptr != nullptr);
  }  // while
message_done:
  return ptr;
failure:
  ptr = nullptr;
  goto message_done;
#undef CHK_
}

::uint8_t* GetCallbackUserResponse::_InternalSerialize(
    ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:keyapis.iot_connect.v1.GetCallbackUserResponse)
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  // int32 data = 1;
  if (this->_internal_data() != 0) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteInt32ToArray(
        1, this->_internal_data(), target);
  }

  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
        static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
  }
  // @@protoc_insertion_point(serialize_to_array_end:keyapis.iot_connect.v1.GetCallbackUserResponse)
  return target;
}

::size_t GetCallbackUserResponse::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:keyapis.iot_connect.v1.GetCallbackUserResponse)
  ::size_t total_size = 0;

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

  // int32 data = 1;
  if (this->_internal_data() != 0) {
    total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
        this->_internal_data());
  }

  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
  }
  int cached_size = ::_pbi::ToCachedSize(total_size);
  SetCachedSize(cached_size);
  return total_size;
}

void GetCallbackUserResponse::CheckTypeAndMergeFrom(
    const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
  MergeFrom(*::_pbi::DownCast<const GetCallbackUserResponse*>(
      &from));
}

void GetCallbackUserResponse::MergeFrom(const GetCallbackUserResponse& from) {
  GetCallbackUserResponse* const _this = this;
  // @@protoc_insertion_point(class_specific_merge_from_start:keyapis.iot_connect.v1.GetCallbackUserResponse)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  if (from._internal_data() != 0) {
    _this->_internal_set_data(from._internal_data());
  }
  _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
}

void GetCallbackUserResponse::CopyFrom(const GetCallbackUserResponse& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:keyapis.iot_connect.v1.GetCallbackUserResponse)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

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

void GetCallbackUserResponse::InternalSwap(GetCallbackUserResponse* other) {
  using std::swap;
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);

  swap(_impl_.data_, other->_impl_.data_);
}

std::string GetCallbackUserResponse::GetTypeName() const {
  return "keyapis.iot_connect.v1.GetCallbackUserResponse";
}

// @@protoc_insertion_point(namespace_scope)
}  // namespace v1
}  // namespace iot_connect
}  // namespace keyapis
PROTOBUF_NAMESPACE_OPEN
template<> PROTOBUF_NOINLINE ::keyapis::iot_connect::v1::CommonError*
Arena::CreateMaybeMessage< ::keyapis::iot_connect::v1::CommonError >(Arena* arena) {
  return Arena::CreateMessageInternal< ::keyapis::iot_connect::v1::CommonError >(arena);
}
template<> PROTOBUF_NOINLINE ::keyapis::iot_connect::v1::Device*
Arena::CreateMaybeMessage< ::keyapis::iot_connect::v1::Device >(Arena* arena) {
  return Arena::CreateMessageInternal< ::keyapis::iot_connect::v1::Device >(arena);
}
template<> PROTOBUF_NOINLINE ::keyapis::iot_connect::v1::GetCallbackDevicesRequest*
Arena::CreateMaybeMessage< ::keyapis::iot_connect::v1::GetCallbackDevicesRequest >(Arena* arena) {
  return Arena::CreateMessageInternal< ::keyapis::iot_connect::v1::GetCallbackDevicesRequest >(arena);
}
template<> PROTOBUF_NOINLINE ::keyapis::iot_connect::v1::GetCallbackDevicesResponse*
Arena::CreateMaybeMessage< ::keyapis::iot_connect::v1::GetCallbackDevicesResponse >(Arena* arena) {
  return Arena::CreateMessageInternal< ::keyapis::iot_connect::v1::GetCallbackDevicesResponse >(arena);
}
template<> PROTOBUF_NOINLINE ::keyapis::iot_connect::v1::PostCallbackStatusRequest*
Arena::CreateMaybeMessage< ::keyapis::iot_connect::v1::PostCallbackStatusRequest >(Arena* arena) {
  return Arena::CreateMessageInternal< ::keyapis::iot_connect::v1::PostCallbackStatusRequest >(arena);
}
template<> PROTOBUF_NOINLINE ::keyapis::iot_connect::v1::PostCallbackStatusResponse_Status*
Arena::CreateMaybeMessage< ::keyapis::iot_connect::v1::PostCallbackStatusResponse_Status >(Arena* arena) {
  return Arena::CreateMessageInternal< ::keyapis::iot_connect::v1::PostCallbackStatusResponse_Status >(arena);
}
template<> PROTOBUF_NOINLINE ::keyapis::iot_connect::v1::PostCallbackStatusResponse*
Arena::CreateMaybeMessage< ::keyapis::iot_connect::v1::PostCallbackStatusResponse >(Arena* arena) {
  return Arena::CreateMessageInternal< ::keyapis::iot_connect::v1::PostCallbackStatusResponse >(arena);
}
template<> PROTOBUF_NOINLINE ::keyapis::iot_connect::v1::PostCallbackCommandRequest*
Arena::CreateMaybeMessage< ::keyapis::iot_connect::v1::PostCallbackCommandRequest >(Arena* arena) {
  return Arena::CreateMessageInternal< ::keyapis::iot_connect::v1::PostCallbackCommandRequest >(arena);
}
template<> PROTOBUF_NOINLINE ::keyapis::iot_connect::v1::PostCallbackCommandResponse*
Arena::CreateMaybeMessage< ::keyapis::iot_connect::v1::PostCallbackCommandResponse >(Arena* arena) {
  return Arena::CreateMessageInternal< ::keyapis::iot_connect::v1::PostCallbackCommandResponse >(arena);
}
template<> PROTOBUF_NOINLINE ::keyapis::iot_connect::v1::PostCallbackUnlinkRequest*
Arena::CreateMaybeMessage< ::keyapis::iot_connect::v1::PostCallbackUnlinkRequest >(Arena* arena) {
  return Arena::CreateMessageInternal< ::keyapis::iot_connect::v1::PostCallbackUnlinkRequest >(arena);
}
template<> PROTOBUF_NOINLINE ::keyapis::iot_connect::v1::PostCallbackUnlinkResponse*
Arena::CreateMaybeMessage< ::keyapis::iot_connect::v1::PostCallbackUnlinkResponse >(Arena* arena) {
  return Arena::CreateMessageInternal< ::keyapis::iot_connect::v1::PostCallbackUnlinkResponse >(arena);
}
template<> PROTOBUF_NOINLINE ::keyapis::iot_connect::v1::GetCallbackUserRequest*
Arena::CreateMaybeMessage< ::keyapis::iot_connect::v1::GetCallbackUserRequest >(Arena* arena) {
  return Arena::CreateMessageInternal< ::keyapis::iot_connect::v1::GetCallbackUserRequest >(arena);
}
template<> PROTOBUF_NOINLINE ::keyapis::iot_connect::v1::GetCallbackUserResponse*
Arena::CreateMaybeMessage< ::keyapis::iot_connect::v1::GetCallbackUserResponse >(Arena* arena) {
  return Arena::CreateMessageInternal< ::keyapis::iot_connect::v1::GetCallbackUserResponse >(arena);
}
PROTOBUF_NAMESPACE_CLOSE
// @@protoc_insertion_point(global_scope)
#include "google/protobuf/port_undef.inc"
