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

#include "keyapis/device/v1/keyapis_device_cms_phone_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 device {
namespace v1 {
template <typename>
PROTOBUF_CONSTEXPR CmsPhone_SavingError_Conflict::CmsPhone_SavingError_Conflict(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_._cached_size_)*/{}} {}
struct CmsPhone_SavingError_ConflictDefaultTypeInternal {
  PROTOBUF_CONSTEXPR CmsPhone_SavingError_ConflictDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  ~CmsPhone_SavingError_ConflictDefaultTypeInternal() {}
  union {
    CmsPhone_SavingError_Conflict _instance;
  };
};

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CmsPhone_SavingError_ConflictDefaultTypeInternal _CmsPhone_SavingError_Conflict_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR CmsPhone_SavingError::CmsPhone_SavingError(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_.reason_)*/{}
  , /*decltype(_impl_._cached_size_)*/{}
  , /*decltype(_impl_._oneof_case_)*/{}} {}
struct CmsPhone_SavingErrorDefaultTypeInternal {
  PROTOBUF_CONSTEXPR CmsPhone_SavingErrorDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  ~CmsPhone_SavingErrorDefaultTypeInternal() {}
  union {
    CmsPhone_SavingError _instance;
  };
};

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CmsPhone_SavingErrorDefaultTypeInternal _CmsPhone_SavingError_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR CmsPhone::CmsPhone(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_._has_bits_)*/{}
  , /*decltype(_impl_._cached_size_)*/{}
  , /*decltype(_impl_.room_)*/ {
    &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {}
  }

  , /*decltype(_impl_.created_at_)*/nullptr
  , /*decltype(_impl_.changed_at_)*/nullptr
  , /*decltype(_impl_.orpon_id_)*/ ::int64_t{0}

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

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

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

  , /*decltype(_impl_.retry_count_)*/ 0
} {}
struct CmsPhoneDefaultTypeInternal {
  PROTOBUF_CONSTEXPR CmsPhoneDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  ~CmsPhoneDefaultTypeInternal() {}
  union {
    CmsPhone _instance;
  };
};

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CmsPhoneDefaultTypeInternal _CmsPhone_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR CmsPhoneFilter::CmsPhoneFilter(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_.device_ids_)*/ {}
  ,/* _impl_._device_ids_cached_byte_size_ = */ { 0 }

  , /*decltype(_impl_.status_types_)*/ {}
  , /*decltype(_impl_._status_types_cached_byte_size_)*/ { 0 }

  , /*decltype(_impl_.orpon_ids_)*/ {}
  ,/* _impl_._orpon_ids_cached_byte_size_ = */ { 0 }

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

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CmsPhoneFilterDefaultTypeInternal _CmsPhoneFilter_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR CmsPhonePaging::CmsPhonePaging(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_.order_by_type_)*/ 0

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

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

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

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

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CmsPhonePagingDefaultTypeInternal _CmsPhonePaging_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR GetCmsPhoneListRequest::GetCmsPhoneListRequest(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_._has_bits_)*/{}
  , /*decltype(_impl_._cached_size_)*/{}
  , /*decltype(_impl_.filter_)*/nullptr
  , /*decltype(_impl_.pagination_)*/{}
  , /*decltype(_impl_._oneof_case_)*/{}} {}
struct GetCmsPhoneListRequestDefaultTypeInternal {
  PROTOBUF_CONSTEXPR GetCmsPhoneListRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  ~GetCmsPhoneListRequestDefaultTypeInternal() {}
  union {
    GetCmsPhoneListRequest _instance;
  };
};

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetCmsPhoneListRequestDefaultTypeInternal _GetCmsPhoneListRequest_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR GetCmsPhoneListResponse_Error::GetCmsPhoneListResponse_Error(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_.reason_)*/{}
  , /*decltype(_impl_._cached_size_)*/{}
  , /*decltype(_impl_._oneof_case_)*/{}} {}
struct GetCmsPhoneListResponse_ErrorDefaultTypeInternal {
  PROTOBUF_CONSTEXPR GetCmsPhoneListResponse_ErrorDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  ~GetCmsPhoneListResponse_ErrorDefaultTypeInternal() {}
  union {
    GetCmsPhoneListResponse_Error _instance;
  };
};

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetCmsPhoneListResponse_ErrorDefaultTypeInternal _GetCmsPhoneListResponse_Error_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR GetCmsPhoneListResponse::GetCmsPhoneListResponse(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_.type_)*/{}
  , /*decltype(_impl_._cached_size_)*/{}
  , /*decltype(_impl_._oneof_case_)*/{}} {}
struct GetCmsPhoneListResponseDefaultTypeInternal {
  PROTOBUF_CONSTEXPR GetCmsPhoneListResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  ~GetCmsPhoneListResponseDefaultTypeInternal() {}
  union {
    GetCmsPhoneListResponse _instance;
  };
};

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetCmsPhoneListResponseDefaultTypeInternal _GetCmsPhoneListResponse_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR GetCmsPhoneRequest::GetCmsPhoneRequest(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_.id_)*/ 0

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

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetCmsPhoneRequestDefaultTypeInternal _GetCmsPhoneRequest_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR GetCmsPhoneResponse_Error::GetCmsPhoneResponse_Error(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_.reason_)*/{}
  , /*decltype(_impl_._cached_size_)*/{}
  , /*decltype(_impl_._oneof_case_)*/{}} {}
struct GetCmsPhoneResponse_ErrorDefaultTypeInternal {
  PROTOBUF_CONSTEXPR GetCmsPhoneResponse_ErrorDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  ~GetCmsPhoneResponse_ErrorDefaultTypeInternal() {}
  union {
    GetCmsPhoneResponse_Error _instance;
  };
};

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetCmsPhoneResponse_ErrorDefaultTypeInternal _GetCmsPhoneResponse_Error_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR GetCmsPhoneResponse::GetCmsPhoneResponse(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_.type_)*/{}
  , /*decltype(_impl_._cached_size_)*/{}
  , /*decltype(_impl_._oneof_case_)*/{}} {}
struct GetCmsPhoneResponseDefaultTypeInternal {
  PROTOBUF_CONSTEXPR GetCmsPhoneResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  ~GetCmsPhoneResponseDefaultTypeInternal() {}
  union {
    GetCmsPhoneResponse _instance;
  };
};

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetCmsPhoneResponseDefaultTypeInternal _GetCmsPhoneResponse_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR GetCmsPhoneCountRequest::GetCmsPhoneCountRequest(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_._has_bits_)*/{}
  , /*decltype(_impl_._cached_size_)*/{}
  , /*decltype(_impl_.filter_)*/nullptr} {}
struct GetCmsPhoneCountRequestDefaultTypeInternal {
  PROTOBUF_CONSTEXPR GetCmsPhoneCountRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  ~GetCmsPhoneCountRequestDefaultTypeInternal() {}
  union {
    GetCmsPhoneCountRequest _instance;
  };
};

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetCmsPhoneCountRequestDefaultTypeInternal _GetCmsPhoneCountRequest_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR GetCmsPhoneCountResponse_Error::GetCmsPhoneCountResponse_Error(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_.reason_)*/{}
  , /*decltype(_impl_._cached_size_)*/{}
  , /*decltype(_impl_._oneof_case_)*/{}} {}
struct GetCmsPhoneCountResponse_ErrorDefaultTypeInternal {
  PROTOBUF_CONSTEXPR GetCmsPhoneCountResponse_ErrorDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  ~GetCmsPhoneCountResponse_ErrorDefaultTypeInternal() {}
  union {
    GetCmsPhoneCountResponse_Error _instance;
  };
};

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetCmsPhoneCountResponse_ErrorDefaultTypeInternal _GetCmsPhoneCountResponse_Error_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR GetCmsPhoneCountResponse::GetCmsPhoneCountResponse(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_.type_)*/{}
  , /*decltype(_impl_._cached_size_)*/{}
  , /*decltype(_impl_._oneof_case_)*/{}} {}
struct GetCmsPhoneCountResponseDefaultTypeInternal {
  PROTOBUF_CONSTEXPR GetCmsPhoneCountResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  ~GetCmsPhoneCountResponseDefaultTypeInternal() {}
  union {
    GetCmsPhoneCountResponse _instance;
  };
};

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetCmsPhoneCountResponseDefaultTypeInternal _GetCmsPhoneCountResponse_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR DeleteCmsPhoneRequest::DeleteCmsPhoneRequest(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_.id_)*/ 0

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

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DeleteCmsPhoneRequestDefaultTypeInternal _DeleteCmsPhoneRequest_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR DeleteCmsPhoneResponse::DeleteCmsPhoneResponse(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_._cached_size_)*/{}} {}
struct DeleteCmsPhoneResponseDefaultTypeInternal {
  PROTOBUF_CONSTEXPR DeleteCmsPhoneResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  ~DeleteCmsPhoneResponseDefaultTypeInternal() {}
  union {
    DeleteCmsPhoneResponse _instance;
  };
};

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DeleteCmsPhoneResponseDefaultTypeInternal _DeleteCmsPhoneResponse_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR DeleteCmsPhoneDeviceIdRequest::DeleteCmsPhoneDeviceIdRequest(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_.device_id_)*/ 0

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

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DeleteCmsPhoneDeviceIdRequestDefaultTypeInternal _DeleteCmsPhoneDeviceIdRequest_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR DeleteCmsPhoneDeviceIdResponse::DeleteCmsPhoneDeviceIdResponse(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_._cached_size_)*/{}} {}
struct DeleteCmsPhoneDeviceIdResponseDefaultTypeInternal {
  PROTOBUF_CONSTEXPR DeleteCmsPhoneDeviceIdResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  ~DeleteCmsPhoneDeviceIdResponseDefaultTypeInternal() {}
  union {
    DeleteCmsPhoneDeviceIdResponse _instance;
  };
};

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DeleteCmsPhoneDeviceIdResponseDefaultTypeInternal _DeleteCmsPhoneDeviceIdResponse_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR DeleteCmsPhoneOrponIdRequest::DeleteCmsPhoneOrponIdRequest(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_.orpon_id_)*/ ::int64_t{0}

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

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DeleteCmsPhoneOrponIdRequestDefaultTypeInternal _DeleteCmsPhoneOrponIdRequest_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR DeleteCmsPhoneOrponIdResponse::DeleteCmsPhoneOrponIdResponse(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_._cached_size_)*/{}} {}
struct DeleteCmsPhoneOrponIdResponseDefaultTypeInternal {
  PROTOBUF_CONSTEXPR DeleteCmsPhoneOrponIdResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  ~DeleteCmsPhoneOrponIdResponseDefaultTypeInternal() {}
  union {
    DeleteCmsPhoneOrponIdResponse _instance;
  };
};

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DeleteCmsPhoneOrponIdResponseDefaultTypeInternal _DeleteCmsPhoneOrponIdResponse_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR DeleteCmsPhoneOrponIdRoomNumberRequest::DeleteCmsPhoneOrponIdRoomNumberRequest(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_.room_number_)*/ {
    &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {}
  }

  , /*decltype(_impl_.orpon_id_)*/ ::int64_t{0}

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

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DeleteCmsPhoneOrponIdRoomNumberRequestDefaultTypeInternal _DeleteCmsPhoneOrponIdRoomNumberRequest_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR DeleteCmsPhoneOrponIdRoomNumberResponse::DeleteCmsPhoneOrponIdRoomNumberResponse(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_._cached_size_)*/{}} {}
struct DeleteCmsPhoneOrponIdRoomNumberResponseDefaultTypeInternal {
  PROTOBUF_CONSTEXPR DeleteCmsPhoneOrponIdRoomNumberResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  ~DeleteCmsPhoneOrponIdRoomNumberResponseDefaultTypeInternal() {}
  union {
    DeleteCmsPhoneOrponIdRoomNumberResponse _instance;
  };
};

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DeleteCmsPhoneOrponIdRoomNumberResponseDefaultTypeInternal _DeleteCmsPhoneOrponIdRoomNumberResponse_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR PostCmsPhoneRefreshRequest::PostCmsPhoneRefreshRequest(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_.ids_)*/ {}
  ,/* _impl_._ids_cached_byte_size_ = */ { 0 }

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

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PostCmsPhoneRefreshRequestDefaultTypeInternal _PostCmsPhoneRefreshRequest_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR PostCmsPhoneRefreshResponse::PostCmsPhoneRefreshResponse(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_._cached_size_)*/{}} {}
struct PostCmsPhoneRefreshResponseDefaultTypeInternal {
  PROTOBUF_CONSTEXPR PostCmsPhoneRefreshResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  ~PostCmsPhoneRefreshResponseDefaultTypeInternal() {}
  union {
    PostCmsPhoneRefreshResponse _instance;
  };
};

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PostCmsPhoneRefreshResponseDefaultTypeInternal _PostCmsPhoneRefreshResponse_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR DeleteCmsPhoneOrponRoomNumberDeviceIdRequest::DeleteCmsPhoneOrponRoomNumberDeviceIdRequest(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_.room_number_)*/ {
    &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {}
  }

  , /*decltype(_impl_.orpon_)*/ ::int64_t{0}

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

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

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DeleteCmsPhoneOrponRoomNumberDeviceIdRequestDefaultTypeInternal _DeleteCmsPhoneOrponRoomNumberDeviceIdRequest_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR DeleteCmsPhoneOrponRoomNumberDeviceIdResponse::DeleteCmsPhoneOrponRoomNumberDeviceIdResponse(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_._cached_size_)*/{}} {}
struct DeleteCmsPhoneOrponRoomNumberDeviceIdResponseDefaultTypeInternal {
  PROTOBUF_CONSTEXPR DeleteCmsPhoneOrponRoomNumberDeviceIdResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  ~DeleteCmsPhoneOrponRoomNumberDeviceIdResponseDefaultTypeInternal() {}
  union {
    DeleteCmsPhoneOrponRoomNumberDeviceIdResponse _instance;
  };
};

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DeleteCmsPhoneOrponRoomNumberDeviceIdResponseDefaultTypeInternal _DeleteCmsPhoneOrponRoomNumberDeviceIdResponse_default_instance_;
}  // namespace v1
}  // namespace device
}  // namespace keyapis
namespace keyapis {
namespace device {
namespace v1 {
bool CmsPhone_StatusType_IsValid(int value) {
  switch (value) {
    case 0:
    case 1:
    case 2:
    case 3:
    case 4:
      return true;
    default:
      return false;
  }
}
static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<std::string>
    CmsPhone_StatusType_strings[5] = {};

static const char CmsPhone_StatusType_names[] = {
    "ACTIVE"
    "BLOCKED"
    "PENDING_ACTIVE"
    "PENDING_BLOCKED"
    "STATUS_TYPE_UNKNOWN"
};

static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry CmsPhone_StatusType_entries[] =
    {
        {{&CmsPhone_StatusType_names[0], 6}, 2},
        {{&CmsPhone_StatusType_names[6], 7}, 4},
        {{&CmsPhone_StatusType_names[13], 14}, 1},
        {{&CmsPhone_StatusType_names[27], 15}, 3},
        {{&CmsPhone_StatusType_names[42], 19}, 0},
};

static const int CmsPhone_StatusType_entries_by_number[] = {
    4,  // 0 -> STATUS_TYPE_UNKNOWN
    2,  // 1 -> PENDING_ACTIVE
    0,  // 2 -> ACTIVE
    3,  // 3 -> PENDING_BLOCKED
    1,  // 4 -> BLOCKED
};

const std::string& CmsPhone_StatusType_Name(CmsPhone_StatusType value) {
  static const bool kDummy =
      ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings(
          CmsPhone_StatusType_entries, CmsPhone_StatusType_entries_by_number,
          5, CmsPhone_StatusType_strings);
  (void)kDummy;

  int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName(
      CmsPhone_StatusType_entries, CmsPhone_StatusType_entries_by_number, 5,
      value);
  return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString()
                   : CmsPhone_StatusType_strings[idx].get();
}

bool CmsPhone_StatusType_Parse(absl::string_view name, CmsPhone_StatusType* value) {
  int int_value;
  bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue(
      CmsPhone_StatusType_entries, 5, name, &int_value);
  if (success) {
    *value = static_cast<CmsPhone_StatusType>(int_value);
  }
  return success;
}
#if (__cplusplus < 201703) && \
  (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))

constexpr CmsPhone_StatusType CmsPhone::STATUS_TYPE_UNKNOWN;
constexpr CmsPhone_StatusType CmsPhone::PENDING_ACTIVE;
constexpr CmsPhone_StatusType CmsPhone::ACTIVE;
constexpr CmsPhone_StatusType CmsPhone::PENDING_BLOCKED;
constexpr CmsPhone_StatusType CmsPhone::BLOCKED;
constexpr CmsPhone_StatusType CmsPhone::StatusType_MIN;
constexpr CmsPhone_StatusType CmsPhone::StatusType_MAX;
constexpr int CmsPhone::StatusType_ARRAYSIZE;

#endif  // (__cplusplus < 201703) &&
        // (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
bool CmsPhonePaging_OrderByType_IsValid(int value) {
  switch (value) {
    case 0:
    case 1:
    case 2:
    case 3:
    case 4:
      return true;
    default:
      return false;
  }
}
static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<std::string>
    CmsPhonePaging_OrderByType_strings[5] = {};

static const char CmsPhonePaging_OrderByType_names[] = {
    "CHANGED_AT"
    "CREATED_AT"
    "ID"
    "ORDER_BY_TYPE_UNKNOWN"
    "STATUS"
};

static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry CmsPhonePaging_OrderByType_entries[] =
    {
        {{&CmsPhonePaging_OrderByType_names[0], 10}, 3},
        {{&CmsPhonePaging_OrderByType_names[10], 10}, 4},
        {{&CmsPhonePaging_OrderByType_names[20], 2}, 1},
        {{&CmsPhonePaging_OrderByType_names[22], 21}, 0},
        {{&CmsPhonePaging_OrderByType_names[43], 6}, 2},
};

static const int CmsPhonePaging_OrderByType_entries_by_number[] = {
    3,  // 0 -> ORDER_BY_TYPE_UNKNOWN
    2,  // 1 -> ID
    4,  // 2 -> STATUS
    0,  // 3 -> CHANGED_AT
    1,  // 4 -> CREATED_AT
};

const std::string& CmsPhonePaging_OrderByType_Name(CmsPhonePaging_OrderByType value) {
  static const bool kDummy =
      ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings(
          CmsPhonePaging_OrderByType_entries, CmsPhonePaging_OrderByType_entries_by_number,
          5, CmsPhonePaging_OrderByType_strings);
  (void)kDummy;

  int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName(
      CmsPhonePaging_OrderByType_entries, CmsPhonePaging_OrderByType_entries_by_number, 5,
      value);
  return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString()
                   : CmsPhonePaging_OrderByType_strings[idx].get();
}

bool CmsPhonePaging_OrderByType_Parse(absl::string_view name, CmsPhonePaging_OrderByType* value) {
  int int_value;
  bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue(
      CmsPhonePaging_OrderByType_entries, 5, name, &int_value);
  if (success) {
    *value = static_cast<CmsPhonePaging_OrderByType>(int_value);
  }
  return success;
}
#if (__cplusplus < 201703) && \
  (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))

constexpr CmsPhonePaging_OrderByType CmsPhonePaging::ORDER_BY_TYPE_UNKNOWN;
constexpr CmsPhonePaging_OrderByType CmsPhonePaging::ID;
constexpr CmsPhonePaging_OrderByType CmsPhonePaging::STATUS;
constexpr CmsPhonePaging_OrderByType CmsPhonePaging::CHANGED_AT;
constexpr CmsPhonePaging_OrderByType CmsPhonePaging::CREATED_AT;
constexpr CmsPhonePaging_OrderByType CmsPhonePaging::OrderByType_MIN;
constexpr CmsPhonePaging_OrderByType CmsPhonePaging::OrderByType_MAX;
constexpr int CmsPhonePaging::OrderByType_ARRAYSIZE;

#endif  // (__cplusplus < 201703) &&
        // (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
bool CmsPhonePaging_DirectionType_IsValid(int value) {
  switch (value) {
    case 0:
    case 1:
    case 2:
      return true;
    default:
      return false;
  }
}
static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<std::string>
    CmsPhonePaging_DirectionType_strings[3] = {};

static const char CmsPhonePaging_DirectionType_names[] = {
    "ASC"
    "DESC"
    "DIRECTION_TYPE_UNKNOWN"
};

static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry CmsPhonePaging_DirectionType_entries[] =
    {
        {{&CmsPhonePaging_DirectionType_names[0], 3}, 2},
        {{&CmsPhonePaging_DirectionType_names[3], 4}, 1},
        {{&CmsPhonePaging_DirectionType_names[7], 22}, 0},
};

static const int CmsPhonePaging_DirectionType_entries_by_number[] = {
    2,  // 0 -> DIRECTION_TYPE_UNKNOWN
    1,  // 1 -> DESC
    0,  // 2 -> ASC
};

const std::string& CmsPhonePaging_DirectionType_Name(CmsPhonePaging_DirectionType value) {
  static const bool kDummy =
      ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings(
          CmsPhonePaging_DirectionType_entries, CmsPhonePaging_DirectionType_entries_by_number,
          3, CmsPhonePaging_DirectionType_strings);
  (void)kDummy;

  int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName(
      CmsPhonePaging_DirectionType_entries, CmsPhonePaging_DirectionType_entries_by_number, 3,
      value);
  return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString()
                   : CmsPhonePaging_DirectionType_strings[idx].get();
}

bool CmsPhonePaging_DirectionType_Parse(absl::string_view name, CmsPhonePaging_DirectionType* value) {
  int int_value;
  bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue(
      CmsPhonePaging_DirectionType_entries, 3, name, &int_value);
  if (success) {
    *value = static_cast<CmsPhonePaging_DirectionType>(int_value);
  }
  return success;
}
#if (__cplusplus < 201703) && \
  (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))

constexpr CmsPhonePaging_DirectionType CmsPhonePaging::DIRECTION_TYPE_UNKNOWN;
constexpr CmsPhonePaging_DirectionType CmsPhonePaging::DESC;
constexpr CmsPhonePaging_DirectionType CmsPhonePaging::ASC;
constexpr CmsPhonePaging_DirectionType CmsPhonePaging::DirectionType_MIN;
constexpr CmsPhonePaging_DirectionType CmsPhonePaging::DirectionType_MAX;
constexpr int CmsPhonePaging::DirectionType_ARRAYSIZE;

#endif  // (__cplusplus < 201703) &&
        // (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
// ===================================================================

class CmsPhone_SavingError_Conflict::_Internal {
 public:
};

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

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

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

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

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

void CmsPhone_SavingError_Conflict::Clear() {
// @@protoc_insertion_point(message_clear_start:keyapis.device.v1.CmsPhone.SavingError.Conflict)
  ::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* CmsPhone_SavingError_Conflict::_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* CmsPhone_SavingError_Conflict::_InternalSerialize(
    ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:keyapis.device.v1.CmsPhone.SavingError.Conflict)
  ::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.device.v1.CmsPhone.SavingError.Conflict)
  return target;
}

::size_t CmsPhone_SavingError_Conflict::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:keyapis.device.v1.CmsPhone.SavingError.Conflict)
  ::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 CmsPhone_SavingError_Conflict::CheckTypeAndMergeFrom(
    const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
  MergeFrom(*::_pbi::DownCast<const CmsPhone_SavingError_Conflict*>(
      &from));
}

void CmsPhone_SavingError_Conflict::MergeFrom(const CmsPhone_SavingError_Conflict& from) {
  CmsPhone_SavingError_Conflict* const _this = this;
  // @@protoc_insertion_point(class_specific_merge_from_start:keyapis.device.v1.CmsPhone.SavingError.Conflict)
  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 CmsPhone_SavingError_Conflict::CopyFrom(const CmsPhone_SavingError_Conflict& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:keyapis.device.v1.CmsPhone.SavingError.Conflict)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

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

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

std::string CmsPhone_SavingError_Conflict::GetTypeName() const {
  return "keyapis.device.v1.CmsPhone.SavingError.Conflict";
}

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

class CmsPhone_SavingError::_Internal {
 public:
  static constexpr ::int32_t kOneofCaseOffset =
    PROTOBUF_FIELD_OFFSET(::keyapis::device::v1::CmsPhone_SavingError, _impl_._oneof_case_);
  static const ::keyapis::device::v1::CmsPhone_SavingError_Conflict& conflict(const CmsPhone_SavingError* msg);
};

const ::keyapis::device::v1::CmsPhone_SavingError_Conflict&
CmsPhone_SavingError::_Internal::conflict(const CmsPhone_SavingError* msg) {
  return *msg->_impl_.reason_.conflict_;
}
void CmsPhone_SavingError::set_allocated_conflict(::keyapis::device::v1::CmsPhone_SavingError_Conflict* conflict) {
  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
  clear_reason();
  if (conflict) {
    ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
      ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(conflict);
    if (message_arena != submessage_arena) {
      conflict = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
          message_arena, conflict, submessage_arena);
    }
    set_has_conflict();
    _impl_.reason_.conflict_ = conflict;
  }
  // @@protoc_insertion_point(field_set_allocated:keyapis.device.v1.CmsPhone.SavingError.conflict)
}
CmsPhone_SavingError::CmsPhone_SavingError(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) {
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:keyapis.device.v1.CmsPhone.SavingError)
}
CmsPhone_SavingError::CmsPhone_SavingError(const CmsPhone_SavingError& from)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
  CmsPhone_SavingError* const _this = this; (void)_this;
  new (&_impl_) Impl_{
      decltype(_impl_.reason_){}
    , /*decltype(_impl_._cached_size_)*/{}
    , /*decltype(_impl_._oneof_case_)*/{}};

  _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
  clear_has_reason();
  switch (from.reason_case()) {
    case kConflict: {
      _this->_internal_mutable_conflict()->::keyapis::device::v1::CmsPhone_SavingError_Conflict::MergeFrom(
          from._internal_conflict());
      break;
    }
    case REASON_NOT_SET: {
      break;
    }
  }
  // @@protoc_insertion_point(copy_constructor:keyapis.device.v1.CmsPhone.SavingError)
}

inline void CmsPhone_SavingError::SharedCtor(::_pb::Arena* arena) {
  (void)arena;
  new (&_impl_) Impl_{
      decltype(_impl_.reason_){}
    , /*decltype(_impl_._cached_size_)*/{}
    , /*decltype(_impl_._oneof_case_)*/{}
  };
  clear_has_reason();
}

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

inline void CmsPhone_SavingError::SharedDtor() {
  ABSL_DCHECK(GetArenaForAllocation() == nullptr);
  if (has_reason()) {
    clear_reason();
  }
}

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

void CmsPhone_SavingError::clear_reason() {
// @@protoc_insertion_point(one_of_clear_start:keyapis.device.v1.CmsPhone.SavingError)
  switch (reason_case()) {
    case kConflict: {
      if (GetArenaForAllocation() == nullptr) {
        delete _impl_.reason_.conflict_;
      }
      break;
    }
    case REASON_NOT_SET: {
      break;
    }
  }
  _impl_._oneof_case_[0] = REASON_NOT_SET;
}


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

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

const char* CmsPhone_SavingError::_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) {
      // .keyapis.device.v1.CmsPhone.SavingError.Conflict conflict = 1;
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
          ptr = ctx->ParseMessage(_internal_mutable_conflict(), 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* CmsPhone_SavingError::_InternalSerialize(
    ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:keyapis.device.v1.CmsPhone.SavingError)
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  // .keyapis.device.v1.CmsPhone.SavingError.Conflict conflict = 1;
  if (reason_case() == kConflict) {
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
      InternalWriteMessage(1, _Internal::conflict(this),
        _Internal::conflict(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.device.v1.CmsPhone.SavingError)
  return target;
}

::size_t CmsPhone_SavingError::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:keyapis.device.v1.CmsPhone.SavingError)
  ::size_t total_size = 0;

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

  switch (reason_case()) {
    // .keyapis.device.v1.CmsPhone.SavingError.Conflict conflict = 1;
    case kConflict: {
      total_size += 1 +
        ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
          *_impl_.reason_.conflict_);
      break;
    }
    case REASON_NOT_SET: {
      break;
    }
  }
  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 CmsPhone_SavingError::CheckTypeAndMergeFrom(
    const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
  MergeFrom(*::_pbi::DownCast<const CmsPhone_SavingError*>(
      &from));
}

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

  switch (from.reason_case()) {
    case kConflict: {
      _this->_internal_mutable_conflict()->::keyapis::device::v1::CmsPhone_SavingError_Conflict::MergeFrom(
          from._internal_conflict());
      break;
    }
    case REASON_NOT_SET: {
      break;
    }
  }
  _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
}

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

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

void CmsPhone_SavingError::InternalSwap(CmsPhone_SavingError* other) {
  using std::swap;
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  swap(_impl_.reason_, other->_impl_.reason_);
  swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]);
}

std::string CmsPhone_SavingError::GetTypeName() const {
  return "keyapis.device.v1.CmsPhone.SavingError";
}

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

class CmsPhone::_Internal {
 public:
  using HasBits = decltype(std::declval<CmsPhone>()._impl_._has_bits_);
  static constexpr ::int32_t kHasBitsOffset =
    8 * PROTOBUF_FIELD_OFFSET(CmsPhone, _impl_._has_bits_);
  static const ::PROTOBUF_NAMESPACE_ID::Timestamp& created_at(const CmsPhone* msg);
  static void set_has_created_at(HasBits* has_bits) {
    (*has_bits)[0] |= 1u;
  }
  static const ::PROTOBUF_NAMESPACE_ID::Timestamp& changed_at(const CmsPhone* msg);
  static void set_has_changed_at(HasBits* has_bits) {
    (*has_bits)[0] |= 2u;
  }
};

const ::PROTOBUF_NAMESPACE_ID::Timestamp&
CmsPhone::_Internal::created_at(const CmsPhone* msg) {
  return *msg->_impl_.created_at_;
}
const ::PROTOBUF_NAMESPACE_ID::Timestamp&
CmsPhone::_Internal::changed_at(const CmsPhone* msg) {
  return *msg->_impl_.changed_at_;
}
void CmsPhone::clear_created_at() {
  if (_impl_.created_at_ != nullptr) _impl_.created_at_->Clear();
  _impl_._has_bits_[0] &= ~0x00000001u;
}
void CmsPhone::clear_changed_at() {
  if (_impl_.changed_at_ != nullptr) _impl_.changed_at_->Clear();
  _impl_._has_bits_[0] &= ~0x00000002u;
}
CmsPhone::CmsPhone(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) {
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:keyapis.device.v1.CmsPhone)
}
CmsPhone::CmsPhone(const CmsPhone& from)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
  CmsPhone* const _this = this; (void)_this;
  new (&_impl_) Impl_{
      decltype(_impl_._has_bits_){from._impl_._has_bits_}
    , /*decltype(_impl_._cached_size_)*/{}
    , decltype(_impl_.room_) {}

    , decltype(_impl_.created_at_){nullptr}
    , decltype(_impl_.changed_at_){nullptr}
    , decltype(_impl_.orpon_id_) {}

    , decltype(_impl_.id_) {}

    , decltype(_impl_.device_id_) {}

    , decltype(_impl_.status_type_) {}

    , decltype(_impl_.retry_count_) {}
  };

  _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
  _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());
  }
  if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) {
    _this->_impl_.created_at_ = new ::PROTOBUF_NAMESPACE_ID::Timestamp(*from._impl_.created_at_);
  }
  if ((from._impl_._has_bits_[0] & 0x00000002u) != 0) {
    _this->_impl_.changed_at_ = new ::PROTOBUF_NAMESPACE_ID::Timestamp(*from._impl_.changed_at_);
  }
  ::memcpy(&_impl_.orpon_id_, &from._impl_.orpon_id_,
    static_cast<::size_t>(reinterpret_cast<char*>(&_impl_.retry_count_) -
    reinterpret_cast<char*>(&_impl_.orpon_id_)) + sizeof(_impl_.retry_count_));
  // @@protoc_insertion_point(copy_constructor:keyapis.device.v1.CmsPhone)
}

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

    , decltype(_impl_.created_at_){nullptr}
    , decltype(_impl_.changed_at_){nullptr}
    , decltype(_impl_.orpon_id_) { ::int64_t{0} }

    , decltype(_impl_.id_) { 0 }

    , decltype(_impl_.device_id_) { 0 }

    , decltype(_impl_.status_type_) { 0 }

    , decltype(_impl_.retry_count_) { 0 }

  };
  _impl_.room_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
        _impl_.room_.Set("", GetArenaForAllocation());
  #endif  // PROTOBUF_FORCE_COPY_DEFAULT_STRING
}

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

inline void CmsPhone::SharedDtor() {
  ABSL_DCHECK(GetArenaForAllocation() == nullptr);
  _impl_.room_.Destroy();
  if (this != internal_default_instance()) delete _impl_.created_at_;
  if (this != internal_default_instance()) delete _impl_.changed_at_;
}

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

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

  _impl_.room_.ClearToEmpty();
  cached_has_bits = _impl_._has_bits_[0];
  if (cached_has_bits & 0x00000003u) {
    if (cached_has_bits & 0x00000001u) {
      ABSL_DCHECK(_impl_.created_at_ != nullptr);
      _impl_.created_at_->Clear();
    }
    if (cached_has_bits & 0x00000002u) {
      ABSL_DCHECK(_impl_.changed_at_ != nullptr);
      _impl_.changed_at_->Clear();
    }
  }
  ::memset(&_impl_.orpon_id_, 0, static_cast<::size_t>(
      reinterpret_cast<char*>(&_impl_.retry_count_) -
      reinterpret_cast<char*>(&_impl_.orpon_id_)) + sizeof(_impl_.retry_count_));
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<std::string>();
}

const char* CmsPhone::_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) {
      // int32 id = 1;
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
          _impl_.id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
          CHK_(ptr);
        } else {
          goto handle_unusual;
        }
        continue;
      // int64 orpon_id = 2 [(.google.api.field_behavior) = REQUIRED];
      case 2:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
          _impl_.orpon_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
          CHK_(ptr);
        } else {
          goto handle_unusual;
        }
        continue;
      // string room = 3 [(.google.api.field_behavior) = REQUIRED];
      case 3:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 26)) {
          auto str = _internal_mutable_room();
          ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
          CHK_(ptr);
          CHK_(::_pbi::VerifyUTF8(str, nullptr));
        } else {
          goto handle_unusual;
        }
        continue;
      // int32 device_id = 4 [(.google.api.field_behavior) = REQUIRED];
      case 4:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 32)) {
          _impl_.device_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
          CHK_(ptr);
        } else {
          goto handle_unusual;
        }
        continue;
      // .keyapis.device.v1.CmsPhone.StatusType status_type = 5 [(.google.api.field_behavior) = REQUIRED];
      case 5:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 40)) {
          ::int32_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
          CHK_(ptr);
          _internal_set_status_type(static_cast<::keyapis::device::v1::CmsPhone_StatusType>(val));
        } else {
          goto handle_unusual;
        }
        continue;
      // .google.protobuf.Timestamp created_at = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      case 6:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 50)) {
          ptr = ctx->ParseMessage(_internal_mutable_created_at(), ptr);
          CHK_(ptr);
        } else {
          goto handle_unusual;
        }
        continue;
      // .google.protobuf.Timestamp changed_at = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      case 7:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 58)) {
          ptr = ctx->ParseMessage(_internal_mutable_changed_at(), ptr);
          CHK_(ptr);
        } else {
          goto handle_unusual;
        }
        continue;
      // int32 retry_count = 8 [(.google.api.field_behavior) = REQUIRED];
      case 8:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 64)) {
          _impl_.retry_count_ = ::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:
  _impl_._has_bits_.Or(has_bits);
  return ptr;
failure:
  ptr = nullptr;
  goto message_done;
#undef CHK_
}

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

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

  // int64 orpon_id = 2 [(.google.api.field_behavior) = REQUIRED];
  if (this->_internal_orpon_id() != 0) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteInt64ToArray(
        2, this->_internal_orpon_id(), target);
  }

  // string room = 3 [(.google.api.field_behavior) = REQUIRED];
  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.device.v1.CmsPhone.room");
    target = stream->WriteStringMaybeAliased(3, _s, target);
  }

  // int32 device_id = 4 [(.google.api.field_behavior) = REQUIRED];
  if (this->_internal_device_id() != 0) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteInt32ToArray(
        4, this->_internal_device_id(), target);
  }

  // .keyapis.device.v1.CmsPhone.StatusType status_type = 5 [(.google.api.field_behavior) = REQUIRED];
  if (this->_internal_status_type() != 0) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteEnumToArray(
        5, this->_internal_status_type(), target);
  }

  cached_has_bits = _impl_._has_bits_[0];
  // .google.protobuf.Timestamp created_at = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
  if (cached_has_bits & 0x00000001u) {
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
      InternalWriteMessage(6, _Internal::created_at(this),
        _Internal::created_at(this).GetCachedSize(), target, stream);
  }

  // .google.protobuf.Timestamp changed_at = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
  if (cached_has_bits & 0x00000002u) {
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
      InternalWriteMessage(7, _Internal::changed_at(this),
        _Internal::changed_at(this).GetCachedSize(), target, stream);
  }

  // int32 retry_count = 8 [(.google.api.field_behavior) = REQUIRED];
  if (this->_internal_retry_count() != 0) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteInt32ToArray(
        8, this->_internal_retry_count(), 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.device.v1.CmsPhone)
  return target;
}

::size_t CmsPhone::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:keyapis.device.v1.CmsPhone)
  ::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 room = 3 [(.google.api.field_behavior) = REQUIRED];
  if (!this->_internal_room().empty()) {
    total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
                                    this->_internal_room());
  }

  cached_has_bits = _impl_._has_bits_[0];
  if (cached_has_bits & 0x00000003u) {
    // .google.protobuf.Timestamp created_at = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    if (cached_has_bits & 0x00000001u) {
      total_size += 1 +
        ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
          *_impl_.created_at_);
    }

    // .google.protobuf.Timestamp changed_at = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    if (cached_has_bits & 0x00000002u) {
      total_size += 1 +
        ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
          *_impl_.changed_at_);
    }

  }
  // int64 orpon_id = 2 [(.google.api.field_behavior) = REQUIRED];
  if (this->_internal_orpon_id() != 0) {
    total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
        this->_internal_orpon_id());
  }

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

  // int32 device_id = 4 [(.google.api.field_behavior) = REQUIRED];
  if (this->_internal_device_id() != 0) {
    total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
        this->_internal_device_id());
  }

  // .keyapis.device.v1.CmsPhone.StatusType status_type = 5 [(.google.api.field_behavior) = REQUIRED];
  if (this->_internal_status_type() != 0) {
    total_size += 1 +
                  ::_pbi::WireFormatLite::EnumSize(this->_internal_status_type());
  }

  // int32 retry_count = 8 [(.google.api.field_behavior) = REQUIRED];
  if (this->_internal_retry_count() != 0) {
    total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
        this->_internal_retry_count());
  }

  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 CmsPhone::CheckTypeAndMergeFrom(
    const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
  MergeFrom(*::_pbi::DownCast<const CmsPhone*>(
      &from));
}

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

  if (!from._internal_room().empty()) {
    _this->_internal_set_room(from._internal_room());
  }
  cached_has_bits = from._impl_._has_bits_[0];
  if (cached_has_bits & 0x00000003u) {
    if (cached_has_bits & 0x00000001u) {
      _this->_internal_mutable_created_at()->::PROTOBUF_NAMESPACE_ID::Timestamp::MergeFrom(
          from._internal_created_at());
    }
    if (cached_has_bits & 0x00000002u) {
      _this->_internal_mutable_changed_at()->::PROTOBUF_NAMESPACE_ID::Timestamp::MergeFrom(
          from._internal_changed_at());
    }
  }
  if (from._internal_orpon_id() != 0) {
    _this->_internal_set_orpon_id(from._internal_orpon_id());
  }
  if (from._internal_id() != 0) {
    _this->_internal_set_id(from._internal_id());
  }
  if (from._internal_device_id() != 0) {
    _this->_internal_set_device_id(from._internal_device_id());
  }
  if (from._internal_status_type() != 0) {
    _this->_internal_set_status_type(from._internal_status_type());
  }
  if (from._internal_retry_count() != 0) {
    _this->_internal_set_retry_count(from._internal_retry_count());
  }
  _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
}

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

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

void CmsPhone::InternalSwap(CmsPhone* other) {
  using std::swap;
  auto* lhs_arena = GetArenaForAllocation();
  auto* rhs_arena = other->GetArenaForAllocation();
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.room_, lhs_arena,
                                       &other->_impl_.room_, rhs_arena);
  ::PROTOBUF_NAMESPACE_ID::internal::memswap<
      PROTOBUF_FIELD_OFFSET(CmsPhone, _impl_.retry_count_)
      + sizeof(CmsPhone::_impl_.retry_count_)
      - PROTOBUF_FIELD_OFFSET(CmsPhone, _impl_.created_at_)>(
          reinterpret_cast<char*>(&_impl_.created_at_),
          reinterpret_cast<char*>(&other->_impl_.created_at_));
}

std::string CmsPhone::GetTypeName() const {
  return "keyapis.device.v1.CmsPhone";
}

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

class CmsPhoneFilter::_Internal {
 public:
};

CmsPhoneFilter::CmsPhoneFilter(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) {
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:keyapis.device.v1.CmsPhoneFilter)
}
CmsPhoneFilter::CmsPhoneFilter(const CmsPhoneFilter& from)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
  CmsPhoneFilter* const _this = this; (void)_this;
  new (&_impl_) Impl_{
      decltype(_impl_.device_ids_) { from._impl_.device_ids_ }
    ,/* _impl_._device_ids_cached_byte_size_ = */ { 0 }

    , decltype(_impl_.status_types_) { from._internal_status_types() }
    , /*decltype(_impl_._status_types_cached_byte_size_)*/ { 0 }

    , decltype(_impl_.orpon_ids_) { from._impl_.orpon_ids_ }
    ,/* _impl_._orpon_ids_cached_byte_size_ = */ { 0 }

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

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

inline void CmsPhoneFilter::SharedCtor(::_pb::Arena* arena) {
  (void)arena;
  new (&_impl_) Impl_{
      decltype(_impl_.device_ids_) { arena }
    ,/* _impl_._device_ids_cached_byte_size_ = */ { 0 }

    , decltype(_impl_.status_types_) { arena }
    , /*decltype(_impl_._status_types_cached_byte_size_)*/ { 0 }

    , decltype(_impl_.orpon_ids_) { arena }
    ,/* _impl_._orpon_ids_cached_byte_size_ = */ { 0 }

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

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

inline void CmsPhoneFilter::SharedDtor() {
  ABSL_DCHECK(GetArenaForAllocation() == nullptr);
  _impl_.device_ids_.~RepeatedField();
  _internal_mutable_status_types()->~RepeatedField();
  _impl_.orpon_ids_.~RepeatedField();
  _internal_mutable_rooms()->~RepeatedPtrField();
}

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

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

  _internal_mutable_device_ids()->Clear();
  _internal_mutable_status_types()->Clear();
  _internal_mutable_orpon_ids()->Clear();
  _internal_mutable_rooms()->Clear();
  _internal_metadata_.Clear<std::string>();
}

const char* CmsPhoneFilter::_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 int32 device_ids = 1;
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
          ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt32Parser(_internal_mutable_device_ids(), ptr, ctx);
          CHK_(ptr);
        } else if (static_cast<::uint8_t>(tag) == 8) {
          _internal_add_device_ids(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr));
          CHK_(ptr);
        } else {
          goto handle_unusual;
        }
        continue;
      // repeated .keyapis.device.v1.CmsPhone.StatusType status_types = 2;
      case 2:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
          ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedEnumParser(_internal_mutable_status_types(), ptr, ctx);
          CHK_(ptr);
        } else if (static_cast<::uint8_t>(tag) == 16) {
          ::int32_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
          CHK_(ptr);
          _internal_add_status_types(static_cast<::keyapis::device::v1::CmsPhone_StatusType>(val));
        } else {
          goto handle_unusual;
        }
        continue;
      // repeated int64 orpon_ids = 3;
      case 3:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 26)) {
          ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt64Parser(_internal_mutable_orpon_ids(), ptr, ctx);
          CHK_(ptr);
        } else if (static_cast<::uint8_t>(tag) == 24) {
          _internal_add_orpon_ids(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr));
          CHK_(ptr);
        } else {
          goto handle_unusual;
        }
        continue;
      // repeated string rooms = 4;
      case 4:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 34)) {
          ptr -= 1;
          do {
            ptr += 1;
            auto str = _internal_add_rooms();
            ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
            CHK_(ptr);
            CHK_(::_pbi::VerifyUTF8(str, nullptr));
            if (!ctx->DataAvailable(ptr)) break;
          } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<34>(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* CmsPhoneFilter::_InternalSerialize(
    ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:keyapis.device.v1.CmsPhoneFilter)
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  // repeated int32 device_ids = 1;
  {
    int byte_size = _impl_._device_ids_cached_byte_size_.Get();
    if (byte_size > 0) {
      target = stream->WriteInt32Packed(1, _internal_device_ids(),
                                                 byte_size, target);
    }
  }

  // repeated .keyapis.device.v1.CmsPhone.StatusType status_types = 2;
  {
    int byte_size = _impl_._status_types_cached_byte_size_.Get();
    if (byte_size > 0) {
      target = stream->WriteEnumPacked(2, _internal_status_types(),
                                       byte_size, target);
    }
  }

  // repeated int64 orpon_ids = 3;
  {
    int byte_size = _impl_._orpon_ids_cached_byte_size_.Get();
    if (byte_size > 0) {
      target = stream->WriteInt64Packed(3, _internal_orpon_ids(),
                                                 byte_size, target);
    }
  }

  // repeated string rooms = 4;
  for (int i = 0, n = this->_internal_rooms_size(); i < n; ++i) {
    const auto& s = this->_internal_rooms(i);
    ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
        s.data(), static_cast<int>(s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "keyapis.device.v1.CmsPhoneFilter.rooms");
    target = stream->WriteString(4, 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.device.v1.CmsPhoneFilter)
  return target;
}

::size_t CmsPhoneFilter::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:keyapis.device.v1.CmsPhoneFilter)
  ::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 int32 device_ids = 1;
  {
    std::size_t data_size = ::_pbi::WireFormatLite::Int32Size(
        this->_internal_device_ids())
    ;
    _impl_._device_ids_cached_byte_size_.Set(::_pbi::ToCachedSize(data_size));
    std::size_t tag_size = data_size == 0
        ? 0
        : 1 + ::_pbi::WireFormatLite::Int32Size(
                            static_cast<int32_t>(data_size))
    ;
    total_size += tag_size + data_size;
  }

  // repeated .keyapis.device.v1.CmsPhone.StatusType status_types = 2;
  {
    std::size_t data_size = 0;
    auto count = static_cast<std::size_t>(this->_internal_status_types_size());

    for (std::size_t i = 0; i < count; ++i) {
      data_size += ::_pbi::WireFormatLite::EnumSize(
          this->_internal_status_types(static_cast<int>(i)));
    }
    total_size += data_size;
    if (data_size > 0) {
      total_size += 1;
      total_size += ::_pbi::WireFormatLite::Int32Size(
          static_cast<int32_t>(data_size));
    }
    _impl_._status_types_cached_byte_size_.Set(::_pbi::ToCachedSize(data_size));
  }

  // repeated int64 orpon_ids = 3;
  {
    std::size_t data_size = ::_pbi::WireFormatLite::Int64Size(
        this->_internal_orpon_ids())
    ;
    _impl_._orpon_ids_cached_byte_size_.Set(::_pbi::ToCachedSize(data_size));
    std::size_t tag_size = data_size == 0
        ? 0
        : 1 + ::_pbi::WireFormatLite::Int32Size(
                            static_cast<int32_t>(data_size))
    ;
    total_size += tag_size + data_size;
  }

  // repeated string rooms = 4;
  total_size += 1 * ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(_internal_rooms().size());
  for (int i = 0, n = _internal_rooms().size(); i < n; ++i) {
    total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
        _internal_rooms().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 CmsPhoneFilter::CheckTypeAndMergeFrom(
    const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
  MergeFrom(*::_pbi::DownCast<const CmsPhoneFilter*>(
      &from));
}

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

  _this->_impl_.device_ids_.MergeFrom(from._impl_.device_ids_);
  _this->_internal_mutable_status_types()->MergeFrom(from._internal_status_types());
  _this->_impl_.orpon_ids_.MergeFrom(from._impl_.orpon_ids_);
  _this->_internal_mutable_rooms()->MergeFrom(from._internal_rooms());
  _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
}

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

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

void CmsPhoneFilter::InternalSwap(CmsPhoneFilter* other) {
  using std::swap;
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  _impl_.device_ids_.InternalSwap(&other->_impl_.device_ids_);
  _internal_mutable_status_types()->InternalSwap(
      other->_internal_mutable_status_types());
  _impl_.orpon_ids_.InternalSwap(&other->_impl_.orpon_ids_);
  _internal_mutable_rooms()->InternalSwap(
      other->_internal_mutable_rooms());
}

std::string CmsPhoneFilter::GetTypeName() const {
  return "keyapis.device.v1.CmsPhoneFilter";
}

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

class CmsPhonePaging::_Internal {
 public:
};

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

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

    , decltype(_impl_.direction_type_) { 0 }

    , decltype(_impl_.limit_) { 0 }

    , decltype(_impl_.offset_) { 0 }

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

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

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

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

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

  ::memset(&_impl_.order_by_type_, 0, static_cast<::size_t>(
      reinterpret_cast<char*>(&_impl_.offset_) -
      reinterpret_cast<char*>(&_impl_.order_by_type_)) + sizeof(_impl_.offset_));
  _internal_metadata_.Clear<std::string>();
}

const char* CmsPhonePaging::_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) {
      // .keyapis.device.v1.CmsPhonePaging.OrderByType order_by_type = 1;
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
          ::int32_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
          CHK_(ptr);
          _internal_set_order_by_type(static_cast<::keyapis::device::v1::CmsPhonePaging_OrderByType>(val));
        } else {
          goto handle_unusual;
        }
        continue;
      // .keyapis.device.v1.CmsPhonePaging.DirectionType direction_type = 2;
      case 2:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
          ::int32_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
          CHK_(ptr);
          _internal_set_direction_type(static_cast<::keyapis::device::v1::CmsPhonePaging_DirectionType>(val));
        } else {
          goto handle_unusual;
        }
        continue;
      // int32 limit = 3;
      case 3:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) {
          _impl_.limit_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
          CHK_(ptr);
        } else {
          goto handle_unusual;
        }
        continue;
      // int32 offset = 4;
      case 4:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 32)) {
          _impl_.offset_ = ::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* CmsPhonePaging::_InternalSerialize(
    ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:keyapis.device.v1.CmsPhonePaging)
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  // .keyapis.device.v1.CmsPhonePaging.OrderByType order_by_type = 1;
  if (this->_internal_order_by_type() != 0) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteEnumToArray(
        1, this->_internal_order_by_type(), target);
  }

  // .keyapis.device.v1.CmsPhonePaging.DirectionType direction_type = 2;
  if (this->_internal_direction_type() != 0) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteEnumToArray(
        2, this->_internal_direction_type(), target);
  }

  // int32 limit = 3;
  if (this->_internal_limit() != 0) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteInt32ToArray(
        3, this->_internal_limit(), target);
  }

  // int32 offset = 4;
  if (this->_internal_offset() != 0) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteInt32ToArray(
        4, this->_internal_offset(), 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.device.v1.CmsPhonePaging)
  return target;
}

::size_t CmsPhonePaging::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:keyapis.device.v1.CmsPhonePaging)
  ::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.device.v1.CmsPhonePaging.OrderByType order_by_type = 1;
  if (this->_internal_order_by_type() != 0) {
    total_size += 1 +
                  ::_pbi::WireFormatLite::EnumSize(this->_internal_order_by_type());
  }

  // .keyapis.device.v1.CmsPhonePaging.DirectionType direction_type = 2;
  if (this->_internal_direction_type() != 0) {
    total_size += 1 +
                  ::_pbi::WireFormatLite::EnumSize(this->_internal_direction_type());
  }

  // int32 limit = 3;
  if (this->_internal_limit() != 0) {
    total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
        this->_internal_limit());
  }

  // int32 offset = 4;
  if (this->_internal_offset() != 0) {
    total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
        this->_internal_offset());
  }

  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 CmsPhonePaging::CheckTypeAndMergeFrom(
    const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
  MergeFrom(*::_pbi::DownCast<const CmsPhonePaging*>(
      &from));
}

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

  if (from._internal_order_by_type() != 0) {
    _this->_internal_set_order_by_type(from._internal_order_by_type());
  }
  if (from._internal_direction_type() != 0) {
    _this->_internal_set_direction_type(from._internal_direction_type());
  }
  if (from._internal_limit() != 0) {
    _this->_internal_set_limit(from._internal_limit());
  }
  if (from._internal_offset() != 0) {
    _this->_internal_set_offset(from._internal_offset());
  }
  _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
}

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

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

void CmsPhonePaging::InternalSwap(CmsPhonePaging* other) {
  using std::swap;
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  ::PROTOBUF_NAMESPACE_ID::internal::memswap<
      PROTOBUF_FIELD_OFFSET(CmsPhonePaging, _impl_.offset_)
      + sizeof(CmsPhonePaging::_impl_.offset_)
      - PROTOBUF_FIELD_OFFSET(CmsPhonePaging, _impl_.order_by_type_)>(
          reinterpret_cast<char*>(&_impl_.order_by_type_),
          reinterpret_cast<char*>(&other->_impl_.order_by_type_));
}

std::string CmsPhonePaging::GetTypeName() const {
  return "keyapis.device.v1.CmsPhonePaging";
}

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

class GetCmsPhoneListRequest::_Internal {
 public:
  using HasBits = decltype(std::declval<GetCmsPhoneListRequest>()._impl_._has_bits_);
  static constexpr ::int32_t kHasBitsOffset =
    8 * PROTOBUF_FIELD_OFFSET(GetCmsPhoneListRequest, _impl_._has_bits_);
  static constexpr ::int32_t kOneofCaseOffset =
    PROTOBUF_FIELD_OFFSET(::keyapis::device::v1::GetCmsPhoneListRequest, _impl_._oneof_case_);
  static const ::keyapis::device::v1::CmsPhoneFilter& filter(const GetCmsPhoneListRequest* msg);
  static void set_has_filter(HasBits* has_bits) {
    (*has_bits)[0] |= 1u;
  }
  static const ::keyapis::device::v1::CmsPhonePaging& paging(const GetCmsPhoneListRequest* msg);
};

const ::keyapis::device::v1::CmsPhoneFilter&
GetCmsPhoneListRequest::_Internal::filter(const GetCmsPhoneListRequest* msg) {
  return *msg->_impl_.filter_;
}
const ::keyapis::device::v1::CmsPhonePaging&
GetCmsPhoneListRequest::_Internal::paging(const GetCmsPhoneListRequest* msg) {
  return *msg->_impl_.pagination_.paging_;
}
void GetCmsPhoneListRequest::set_allocated_paging(::keyapis::device::v1::CmsPhonePaging* paging) {
  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
  clear_pagination();
  if (paging) {
    ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
      ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(paging);
    if (message_arena != submessage_arena) {
      paging = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
          message_arena, paging, submessage_arena);
    }
    set_has_paging();
    _impl_.pagination_.paging_ = paging;
  }
  // @@protoc_insertion_point(field_set_allocated:keyapis.device.v1.GetCmsPhoneListRequest.paging)
}
GetCmsPhoneListRequest::GetCmsPhoneListRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) {
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:keyapis.device.v1.GetCmsPhoneListRequest)
}
GetCmsPhoneListRequest::GetCmsPhoneListRequest(const GetCmsPhoneListRequest& from)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
  GetCmsPhoneListRequest* const _this = this; (void)_this;
  new (&_impl_) Impl_{
      decltype(_impl_._has_bits_){from._impl_._has_bits_}
    , /*decltype(_impl_._cached_size_)*/{}
    , decltype(_impl_.filter_){nullptr}
    , decltype(_impl_.pagination_){}
    , /*decltype(_impl_._oneof_case_)*/{}};

  _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
  if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) {
    _this->_impl_.filter_ = new ::keyapis::device::v1::CmsPhoneFilter(*from._impl_.filter_);
  }
  clear_has_pagination();
  switch (from.pagination_case()) {
    case kPaging: {
      _this->_internal_mutable_paging()->::keyapis::device::v1::CmsPhonePaging::MergeFrom(
          from._internal_paging());
      break;
    }
    case PAGINATION_NOT_SET: {
      break;
    }
  }
  // @@protoc_insertion_point(copy_constructor:keyapis.device.v1.GetCmsPhoneListRequest)
}

inline void GetCmsPhoneListRequest::SharedCtor(::_pb::Arena* arena) {
  (void)arena;
  new (&_impl_) Impl_{
      decltype(_impl_._has_bits_){}
    , /*decltype(_impl_._cached_size_)*/{}
    , decltype(_impl_.filter_){nullptr}
    , decltype(_impl_.pagination_){}
    , /*decltype(_impl_._oneof_case_)*/{}
  };
  clear_has_pagination();
}

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

inline void GetCmsPhoneListRequest::SharedDtor() {
  ABSL_DCHECK(GetArenaForAllocation() == nullptr);
  if (this != internal_default_instance()) delete _impl_.filter_;
  if (has_pagination()) {
    clear_pagination();
  }
}

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

void GetCmsPhoneListRequest::clear_pagination() {
// @@protoc_insertion_point(one_of_clear_start:keyapis.device.v1.GetCmsPhoneListRequest)
  switch (pagination_case()) {
    case kPaging: {
      if (GetArenaForAllocation() == nullptr) {
        delete _impl_.pagination_.paging_;
      }
      break;
    }
    case PAGINATION_NOT_SET: {
      break;
    }
  }
  _impl_._oneof_case_[0] = PAGINATION_NOT_SET;
}


void GetCmsPhoneListRequest::Clear() {
// @@protoc_insertion_point(message_clear_start:keyapis.device.v1.GetCmsPhoneListRequest)
  ::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_.filter_ != nullptr);
    _impl_.filter_->Clear();
  }
  clear_pagination();
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<std::string>();
}

const char* GetCmsPhoneListRequest::_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.device.v1.CmsPhoneFilter filter = 1;
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
          ptr = ctx->ParseMessage(_internal_mutable_filter(), ptr);
          CHK_(ptr);
        } else {
          goto handle_unusual;
        }
        continue;
      // .keyapis.device.v1.CmsPhonePaging paging = 2;
      case 2:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
          ptr = ctx->ParseMessage(_internal_mutable_paging(), 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* GetCmsPhoneListRequest::_InternalSerialize(
    ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:keyapis.device.v1.GetCmsPhoneListRequest)
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

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

  // .keyapis.device.v1.CmsPhonePaging paging = 2;
  if (pagination_case() == kPaging) {
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
      InternalWriteMessage(2, _Internal::paging(this),
        _Internal::paging(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.device.v1.GetCmsPhoneListRequest)
  return target;
}

::size_t GetCmsPhoneListRequest::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:keyapis.device.v1.GetCmsPhoneListRequest)
  ::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.device.v1.CmsPhoneFilter filter = 1;
  cached_has_bits = _impl_._has_bits_[0];
  if (cached_has_bits & 0x00000001u) {
    total_size += 1 +
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
        *_impl_.filter_);
  }

  switch (pagination_case()) {
    // .keyapis.device.v1.CmsPhonePaging paging = 2;
    case kPaging: {
      total_size += 1 +
        ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
          *_impl_.pagination_.paging_);
      break;
    }
    case PAGINATION_NOT_SET: {
      break;
    }
  }
  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 GetCmsPhoneListRequest::CheckTypeAndMergeFrom(
    const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
  MergeFrom(*::_pbi::DownCast<const GetCmsPhoneListRequest*>(
      &from));
}

void GetCmsPhoneListRequest::MergeFrom(const GetCmsPhoneListRequest& from) {
  GetCmsPhoneListRequest* const _this = this;
  // @@protoc_insertion_point(class_specific_merge_from_start:keyapis.device.v1.GetCmsPhoneListRequest)
  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_filter()->::keyapis::device::v1::CmsPhoneFilter::MergeFrom(
        from._internal_filter());
  }
  switch (from.pagination_case()) {
    case kPaging: {
      _this->_internal_mutable_paging()->::keyapis::device::v1::CmsPhonePaging::MergeFrom(
          from._internal_paging());
      break;
    }
    case PAGINATION_NOT_SET: {
      break;
    }
  }
  _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
}

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

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

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

std::string GetCmsPhoneListRequest::GetTypeName() const {
  return "keyapis.device.v1.GetCmsPhoneListRequest";
}

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

class GetCmsPhoneListResponse_Error::_Internal {
 public:
  static constexpr ::int32_t kOneofCaseOffset =
    PROTOBUF_FIELD_OFFSET(::keyapis::device::v1::GetCmsPhoneListResponse_Error, _impl_._oneof_case_);
  static const ::keyapis::device::v1::ValidationError& validation(const GetCmsPhoneListResponse_Error* msg);
};

const ::keyapis::device::v1::ValidationError&
GetCmsPhoneListResponse_Error::_Internal::validation(const GetCmsPhoneListResponse_Error* msg) {
  return *msg->_impl_.reason_.validation_;
}
void GetCmsPhoneListResponse_Error::set_allocated_validation(::keyapis::device::v1::ValidationError* validation) {
  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
  clear_reason();
  if (validation) {
    ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
        ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
                reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(validation));
    if (message_arena != submessage_arena) {
      validation = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
          message_arena, validation, submessage_arena);
    }
    set_has_validation();
    _impl_.reason_.validation_ = validation;
  }
  // @@protoc_insertion_point(field_set_allocated:keyapis.device.v1.GetCmsPhoneListResponse.Error.validation)
}
void GetCmsPhoneListResponse_Error::clear_validation() {
  if (reason_case() == kValidation) {
    if (GetArenaForAllocation() == nullptr) {
      delete _impl_.reason_.validation_;
    }
    clear_has_reason();
  }
}
GetCmsPhoneListResponse_Error::GetCmsPhoneListResponse_Error(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) {
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:keyapis.device.v1.GetCmsPhoneListResponse.Error)
}
GetCmsPhoneListResponse_Error::GetCmsPhoneListResponse_Error(const GetCmsPhoneListResponse_Error& from)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
  GetCmsPhoneListResponse_Error* const _this = this; (void)_this;
  new (&_impl_) Impl_{
      decltype(_impl_.reason_){}
    , /*decltype(_impl_._cached_size_)*/{}
    , /*decltype(_impl_._oneof_case_)*/{}};

  _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
  clear_has_reason();
  switch (from.reason_case()) {
    case kValidation: {
      _this->_internal_mutable_validation()->::keyapis::device::v1::ValidationError::MergeFrom(
          from._internal_validation());
      break;
    }
    case REASON_NOT_SET: {
      break;
    }
  }
  // @@protoc_insertion_point(copy_constructor:keyapis.device.v1.GetCmsPhoneListResponse.Error)
}

inline void GetCmsPhoneListResponse_Error::SharedCtor(::_pb::Arena* arena) {
  (void)arena;
  new (&_impl_) Impl_{
      decltype(_impl_.reason_){}
    , /*decltype(_impl_._cached_size_)*/{}
    , /*decltype(_impl_._oneof_case_)*/{}
  };
  clear_has_reason();
}

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

inline void GetCmsPhoneListResponse_Error::SharedDtor() {
  ABSL_DCHECK(GetArenaForAllocation() == nullptr);
  if (has_reason()) {
    clear_reason();
  }
}

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

void GetCmsPhoneListResponse_Error::clear_reason() {
// @@protoc_insertion_point(one_of_clear_start:keyapis.device.v1.GetCmsPhoneListResponse.Error)
  switch (reason_case()) {
    case kValidation: {
      if (GetArenaForAllocation() == nullptr) {
        delete _impl_.reason_.validation_;
      }
      break;
    }
    case REASON_NOT_SET: {
      break;
    }
  }
  _impl_._oneof_case_[0] = REASON_NOT_SET;
}


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

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

const char* GetCmsPhoneListResponse_Error::_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) {
      // .keyapis.device.v1.ValidationError validation = 1;
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
          ptr = ctx->ParseMessage(_internal_mutable_validation(), 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* GetCmsPhoneListResponse_Error::_InternalSerialize(
    ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:keyapis.device.v1.GetCmsPhoneListResponse.Error)
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  // .keyapis.device.v1.ValidationError validation = 1;
  if (reason_case() == kValidation) {
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
      InternalWriteMessage(1, _Internal::validation(this),
        _Internal::validation(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.device.v1.GetCmsPhoneListResponse.Error)
  return target;
}

::size_t GetCmsPhoneListResponse_Error::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:keyapis.device.v1.GetCmsPhoneListResponse.Error)
  ::size_t total_size = 0;

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

  switch (reason_case()) {
    // .keyapis.device.v1.ValidationError validation = 1;
    case kValidation: {
      total_size += 1 +
        ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
          *_impl_.reason_.validation_);
      break;
    }
    case REASON_NOT_SET: {
      break;
    }
  }
  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 GetCmsPhoneListResponse_Error::CheckTypeAndMergeFrom(
    const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
  MergeFrom(*::_pbi::DownCast<const GetCmsPhoneListResponse_Error*>(
      &from));
}

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

  switch (from.reason_case()) {
    case kValidation: {
      _this->_internal_mutable_validation()->::keyapis::device::v1::ValidationError::MergeFrom(
          from._internal_validation());
      break;
    }
    case REASON_NOT_SET: {
      break;
    }
  }
  _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
}

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

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

void GetCmsPhoneListResponse_Error::InternalSwap(GetCmsPhoneListResponse_Error* other) {
  using std::swap;
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  swap(_impl_.reason_, other->_impl_.reason_);
  swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]);
}

std::string GetCmsPhoneListResponse_Error::GetTypeName() const {
  return "keyapis.device.v1.GetCmsPhoneListResponse.Error";
}

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

class GetCmsPhoneListResponse::_Internal {
 public:
  static constexpr ::int32_t kOneofCaseOffset =
    PROTOBUF_FIELD_OFFSET(::keyapis::device::v1::GetCmsPhoneListResponse, _impl_._oneof_case_);
  static const ::keyapis::device::v1::CmsPhone& data(const GetCmsPhoneListResponse* msg);
  static const ::keyapis::device::v1::GetCmsPhoneListResponse_Error& error(const GetCmsPhoneListResponse* msg);
};

const ::keyapis::device::v1::CmsPhone&
GetCmsPhoneListResponse::_Internal::data(const GetCmsPhoneListResponse* msg) {
  return *msg->_impl_.type_.data_;
}
const ::keyapis::device::v1::GetCmsPhoneListResponse_Error&
GetCmsPhoneListResponse::_Internal::error(const GetCmsPhoneListResponse* msg) {
  return *msg->_impl_.type_.error_;
}
void GetCmsPhoneListResponse::set_allocated_data(::keyapis::device::v1::CmsPhone* data) {
  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
  clear_type();
  if (data) {
    ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
      ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(data);
    if (message_arena != submessage_arena) {
      data = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
          message_arena, data, submessage_arena);
    }
    set_has_data();
    _impl_.type_.data_ = data;
  }
  // @@protoc_insertion_point(field_set_allocated:keyapis.device.v1.GetCmsPhoneListResponse.data)
}
void GetCmsPhoneListResponse::set_allocated_error(::keyapis::device::v1::GetCmsPhoneListResponse_Error* error) {
  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
  clear_type();
  if (error) {
    ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
      ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(error);
    if (message_arena != submessage_arena) {
      error = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
          message_arena, error, submessage_arena);
    }
    set_has_error();
    _impl_.type_.error_ = error;
  }
  // @@protoc_insertion_point(field_set_allocated:keyapis.device.v1.GetCmsPhoneListResponse.error)
}
GetCmsPhoneListResponse::GetCmsPhoneListResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) {
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:keyapis.device.v1.GetCmsPhoneListResponse)
}
GetCmsPhoneListResponse::GetCmsPhoneListResponse(const GetCmsPhoneListResponse& from)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
  GetCmsPhoneListResponse* const _this = this; (void)_this;
  new (&_impl_) Impl_{
      decltype(_impl_.type_){}
    , /*decltype(_impl_._cached_size_)*/{}
    , /*decltype(_impl_._oneof_case_)*/{}};

  _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
  clear_has_type();
  switch (from.type_case()) {
    case kData: {
      _this->_internal_mutable_data()->::keyapis::device::v1::CmsPhone::MergeFrom(
          from._internal_data());
      break;
    }
    case kError: {
      _this->_internal_mutable_error()->::keyapis::device::v1::GetCmsPhoneListResponse_Error::MergeFrom(
          from._internal_error());
      break;
    }
    case TYPE_NOT_SET: {
      break;
    }
  }
  // @@protoc_insertion_point(copy_constructor:keyapis.device.v1.GetCmsPhoneListResponse)
}

inline void GetCmsPhoneListResponse::SharedCtor(::_pb::Arena* arena) {
  (void)arena;
  new (&_impl_) Impl_{
      decltype(_impl_.type_){}
    , /*decltype(_impl_._cached_size_)*/{}
    , /*decltype(_impl_._oneof_case_)*/{}
  };
  clear_has_type();
}

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

inline void GetCmsPhoneListResponse::SharedDtor() {
  ABSL_DCHECK(GetArenaForAllocation() == nullptr);
  if (has_type()) {
    clear_type();
  }
}

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

void GetCmsPhoneListResponse::clear_type() {
// @@protoc_insertion_point(one_of_clear_start:keyapis.device.v1.GetCmsPhoneListResponse)
  switch (type_case()) {
    case kData: {
      if (GetArenaForAllocation() == nullptr) {
        delete _impl_.type_.data_;
      }
      break;
    }
    case kError: {
      if (GetArenaForAllocation() == nullptr) {
        delete _impl_.type_.error_;
      }
      break;
    }
    case TYPE_NOT_SET: {
      break;
    }
  }
  _impl_._oneof_case_[0] = TYPE_NOT_SET;
}


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

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

const char* GetCmsPhoneListResponse::_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) {
      // .keyapis.device.v1.CmsPhone 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;
      // .keyapis.device.v1.GetCmsPhoneListResponse.Error error = 2;
      case 2:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
          ptr = ctx->ParseMessage(_internal_mutable_error(), 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* GetCmsPhoneListResponse::_InternalSerialize(
    ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:keyapis.device.v1.GetCmsPhoneListResponse)
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  switch (type_case()) {
    case kData: {
      target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
        InternalWriteMessage(1, _Internal::data(this),
          _Internal::data(this).GetCachedSize(), target, stream);
      break;
    }
    case kError: {
      target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
        InternalWriteMessage(2, _Internal::error(this),
          _Internal::error(this).GetCachedSize(), target, stream);
      break;
    }
    default: ;
  }
  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.device.v1.GetCmsPhoneListResponse)
  return target;
}

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

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

  switch (type_case()) {
    // .keyapis.device.v1.CmsPhone data = 1;
    case kData: {
      total_size += 1 +
        ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
          *_impl_.type_.data_);
      break;
    }
    // .keyapis.device.v1.GetCmsPhoneListResponse.Error error = 2;
    case kError: {
      total_size += 1 +
        ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
          *_impl_.type_.error_);
      break;
    }
    case TYPE_NOT_SET: {
      break;
    }
  }
  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 GetCmsPhoneListResponse::CheckTypeAndMergeFrom(
    const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
  MergeFrom(*::_pbi::DownCast<const GetCmsPhoneListResponse*>(
      &from));
}

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

  switch (from.type_case()) {
    case kData: {
      _this->_internal_mutable_data()->::keyapis::device::v1::CmsPhone::MergeFrom(
          from._internal_data());
      break;
    }
    case kError: {
      _this->_internal_mutable_error()->::keyapis::device::v1::GetCmsPhoneListResponse_Error::MergeFrom(
          from._internal_error());
      break;
    }
    case TYPE_NOT_SET: {
      break;
    }
  }
  _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
}

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

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

void GetCmsPhoneListResponse::InternalSwap(GetCmsPhoneListResponse* other) {
  using std::swap;
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  swap(_impl_.type_, other->_impl_.type_);
  swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]);
}

std::string GetCmsPhoneListResponse::GetTypeName() const {
  return "keyapis.device.v1.GetCmsPhoneListResponse";
}

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

class GetCmsPhoneRequest::_Internal {
 public:
};

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

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

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

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

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

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

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

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

const char* GetCmsPhoneRequest::_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 id = 1 [(.google.api.field_behavior) = REQUIRED];
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
          _impl_.id_ = ::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* GetCmsPhoneRequest::_InternalSerialize(
    ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:keyapis.device.v1.GetCmsPhoneRequest)
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  // int32 id = 1 [(.google.api.field_behavior) = REQUIRED];
  if (this->_internal_id() != 0) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteInt32ToArray(
        1, this->_internal_id(), 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.device.v1.GetCmsPhoneRequest)
  return target;
}

::size_t GetCmsPhoneRequest::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:keyapis.device.v1.GetCmsPhoneRequest)
  ::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 id = 1 [(.google.api.field_behavior) = REQUIRED];
  if (this->_internal_id() != 0) {
    total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
        this->_internal_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 GetCmsPhoneRequest::CheckTypeAndMergeFrom(
    const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
  MergeFrom(*::_pbi::DownCast<const GetCmsPhoneRequest*>(
      &from));
}

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

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

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

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

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

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

std::string GetCmsPhoneRequest::GetTypeName() const {
  return "keyapis.device.v1.GetCmsPhoneRequest";
}

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

class GetCmsPhoneResponse_Error::_Internal {
 public:
  static constexpr ::int32_t kOneofCaseOffset =
    PROTOBUF_FIELD_OFFSET(::keyapis::device::v1::GetCmsPhoneResponse_Error, _impl_._oneof_case_);
  static const ::keyapis::device::v1::ValidationError& validation(const GetCmsPhoneResponse_Error* msg);
};

const ::keyapis::device::v1::ValidationError&
GetCmsPhoneResponse_Error::_Internal::validation(const GetCmsPhoneResponse_Error* msg) {
  return *msg->_impl_.reason_.validation_;
}
void GetCmsPhoneResponse_Error::set_allocated_validation(::keyapis::device::v1::ValidationError* validation) {
  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
  clear_reason();
  if (validation) {
    ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
        ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
                reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(validation));
    if (message_arena != submessage_arena) {
      validation = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
          message_arena, validation, submessage_arena);
    }
    set_has_validation();
    _impl_.reason_.validation_ = validation;
  }
  // @@protoc_insertion_point(field_set_allocated:keyapis.device.v1.GetCmsPhoneResponse.Error.validation)
}
void GetCmsPhoneResponse_Error::clear_validation() {
  if (reason_case() == kValidation) {
    if (GetArenaForAllocation() == nullptr) {
      delete _impl_.reason_.validation_;
    }
    clear_has_reason();
  }
}
GetCmsPhoneResponse_Error::GetCmsPhoneResponse_Error(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) {
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:keyapis.device.v1.GetCmsPhoneResponse.Error)
}
GetCmsPhoneResponse_Error::GetCmsPhoneResponse_Error(const GetCmsPhoneResponse_Error& from)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
  GetCmsPhoneResponse_Error* const _this = this; (void)_this;
  new (&_impl_) Impl_{
      decltype(_impl_.reason_){}
    , /*decltype(_impl_._cached_size_)*/{}
    , /*decltype(_impl_._oneof_case_)*/{}};

  _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
  clear_has_reason();
  switch (from.reason_case()) {
    case kValidation: {
      _this->_internal_mutable_validation()->::keyapis::device::v1::ValidationError::MergeFrom(
          from._internal_validation());
      break;
    }
    case REASON_NOT_SET: {
      break;
    }
  }
  // @@protoc_insertion_point(copy_constructor:keyapis.device.v1.GetCmsPhoneResponse.Error)
}

inline void GetCmsPhoneResponse_Error::SharedCtor(::_pb::Arena* arena) {
  (void)arena;
  new (&_impl_) Impl_{
      decltype(_impl_.reason_){}
    , /*decltype(_impl_._cached_size_)*/{}
    , /*decltype(_impl_._oneof_case_)*/{}
  };
  clear_has_reason();
}

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

inline void GetCmsPhoneResponse_Error::SharedDtor() {
  ABSL_DCHECK(GetArenaForAllocation() == nullptr);
  if (has_reason()) {
    clear_reason();
  }
}

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

void GetCmsPhoneResponse_Error::clear_reason() {
// @@protoc_insertion_point(one_of_clear_start:keyapis.device.v1.GetCmsPhoneResponse.Error)
  switch (reason_case()) {
    case kValidation: {
      if (GetArenaForAllocation() == nullptr) {
        delete _impl_.reason_.validation_;
      }
      break;
    }
    case REASON_NOT_SET: {
      break;
    }
  }
  _impl_._oneof_case_[0] = REASON_NOT_SET;
}


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

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

const char* GetCmsPhoneResponse_Error::_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) {
      // .keyapis.device.v1.ValidationError validation = 1;
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
          ptr = ctx->ParseMessage(_internal_mutable_validation(), 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* GetCmsPhoneResponse_Error::_InternalSerialize(
    ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:keyapis.device.v1.GetCmsPhoneResponse.Error)
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  // .keyapis.device.v1.ValidationError validation = 1;
  if (reason_case() == kValidation) {
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
      InternalWriteMessage(1, _Internal::validation(this),
        _Internal::validation(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.device.v1.GetCmsPhoneResponse.Error)
  return target;
}

::size_t GetCmsPhoneResponse_Error::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:keyapis.device.v1.GetCmsPhoneResponse.Error)
  ::size_t total_size = 0;

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

  switch (reason_case()) {
    // .keyapis.device.v1.ValidationError validation = 1;
    case kValidation: {
      total_size += 1 +
        ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
          *_impl_.reason_.validation_);
      break;
    }
    case REASON_NOT_SET: {
      break;
    }
  }
  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 GetCmsPhoneResponse_Error::CheckTypeAndMergeFrom(
    const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
  MergeFrom(*::_pbi::DownCast<const GetCmsPhoneResponse_Error*>(
      &from));
}

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

  switch (from.reason_case()) {
    case kValidation: {
      _this->_internal_mutable_validation()->::keyapis::device::v1::ValidationError::MergeFrom(
          from._internal_validation());
      break;
    }
    case REASON_NOT_SET: {
      break;
    }
  }
  _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
}

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

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

void GetCmsPhoneResponse_Error::InternalSwap(GetCmsPhoneResponse_Error* other) {
  using std::swap;
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  swap(_impl_.reason_, other->_impl_.reason_);
  swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]);
}

std::string GetCmsPhoneResponse_Error::GetTypeName() const {
  return "keyapis.device.v1.GetCmsPhoneResponse.Error";
}

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

class GetCmsPhoneResponse::_Internal {
 public:
  static constexpr ::int32_t kOneofCaseOffset =
    PROTOBUF_FIELD_OFFSET(::keyapis::device::v1::GetCmsPhoneResponse, _impl_._oneof_case_);
  static const ::keyapis::device::v1::CmsPhone& data(const GetCmsPhoneResponse* msg);
  static const ::keyapis::device::v1::GetCmsPhoneResponse_Error& error(const GetCmsPhoneResponse* msg);
};

const ::keyapis::device::v1::CmsPhone&
GetCmsPhoneResponse::_Internal::data(const GetCmsPhoneResponse* msg) {
  return *msg->_impl_.type_.data_;
}
const ::keyapis::device::v1::GetCmsPhoneResponse_Error&
GetCmsPhoneResponse::_Internal::error(const GetCmsPhoneResponse* msg) {
  return *msg->_impl_.type_.error_;
}
void GetCmsPhoneResponse::set_allocated_data(::keyapis::device::v1::CmsPhone* data) {
  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
  clear_type();
  if (data) {
    ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
      ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(data);
    if (message_arena != submessage_arena) {
      data = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
          message_arena, data, submessage_arena);
    }
    set_has_data();
    _impl_.type_.data_ = data;
  }
  // @@protoc_insertion_point(field_set_allocated:keyapis.device.v1.GetCmsPhoneResponse.data)
}
void GetCmsPhoneResponse::set_allocated_error(::keyapis::device::v1::GetCmsPhoneResponse_Error* error) {
  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
  clear_type();
  if (error) {
    ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
      ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(error);
    if (message_arena != submessage_arena) {
      error = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
          message_arena, error, submessage_arena);
    }
    set_has_error();
    _impl_.type_.error_ = error;
  }
  // @@protoc_insertion_point(field_set_allocated:keyapis.device.v1.GetCmsPhoneResponse.error)
}
GetCmsPhoneResponse::GetCmsPhoneResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) {
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:keyapis.device.v1.GetCmsPhoneResponse)
}
GetCmsPhoneResponse::GetCmsPhoneResponse(const GetCmsPhoneResponse& from)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
  GetCmsPhoneResponse* const _this = this; (void)_this;
  new (&_impl_) Impl_{
      decltype(_impl_.type_){}
    , /*decltype(_impl_._cached_size_)*/{}
    , /*decltype(_impl_._oneof_case_)*/{}};

  _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
  clear_has_type();
  switch (from.type_case()) {
    case kData: {
      _this->_internal_mutable_data()->::keyapis::device::v1::CmsPhone::MergeFrom(
          from._internal_data());
      break;
    }
    case kError: {
      _this->_internal_mutable_error()->::keyapis::device::v1::GetCmsPhoneResponse_Error::MergeFrom(
          from._internal_error());
      break;
    }
    case TYPE_NOT_SET: {
      break;
    }
  }
  // @@protoc_insertion_point(copy_constructor:keyapis.device.v1.GetCmsPhoneResponse)
}

inline void GetCmsPhoneResponse::SharedCtor(::_pb::Arena* arena) {
  (void)arena;
  new (&_impl_) Impl_{
      decltype(_impl_.type_){}
    , /*decltype(_impl_._cached_size_)*/{}
    , /*decltype(_impl_._oneof_case_)*/{}
  };
  clear_has_type();
}

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

inline void GetCmsPhoneResponse::SharedDtor() {
  ABSL_DCHECK(GetArenaForAllocation() == nullptr);
  if (has_type()) {
    clear_type();
  }
}

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

void GetCmsPhoneResponse::clear_type() {
// @@protoc_insertion_point(one_of_clear_start:keyapis.device.v1.GetCmsPhoneResponse)
  switch (type_case()) {
    case kData: {
      if (GetArenaForAllocation() == nullptr) {
        delete _impl_.type_.data_;
      }
      break;
    }
    case kError: {
      if (GetArenaForAllocation() == nullptr) {
        delete _impl_.type_.error_;
      }
      break;
    }
    case TYPE_NOT_SET: {
      break;
    }
  }
  _impl_._oneof_case_[0] = TYPE_NOT_SET;
}


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

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

const char* GetCmsPhoneResponse::_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) {
      // .keyapis.device.v1.CmsPhone 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;
      // .keyapis.device.v1.GetCmsPhoneResponse.Error error = 2;
      case 2:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
          ptr = ctx->ParseMessage(_internal_mutable_error(), 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* GetCmsPhoneResponse::_InternalSerialize(
    ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:keyapis.device.v1.GetCmsPhoneResponse)
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  switch (type_case()) {
    case kData: {
      target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
        InternalWriteMessage(1, _Internal::data(this),
          _Internal::data(this).GetCachedSize(), target, stream);
      break;
    }
    case kError: {
      target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
        InternalWriteMessage(2, _Internal::error(this),
          _Internal::error(this).GetCachedSize(), target, stream);
      break;
    }
    default: ;
  }
  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.device.v1.GetCmsPhoneResponse)
  return target;
}

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

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

  switch (type_case()) {
    // .keyapis.device.v1.CmsPhone data = 1;
    case kData: {
      total_size += 1 +
        ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
          *_impl_.type_.data_);
      break;
    }
    // .keyapis.device.v1.GetCmsPhoneResponse.Error error = 2;
    case kError: {
      total_size += 1 +
        ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
          *_impl_.type_.error_);
      break;
    }
    case TYPE_NOT_SET: {
      break;
    }
  }
  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 GetCmsPhoneResponse::CheckTypeAndMergeFrom(
    const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
  MergeFrom(*::_pbi::DownCast<const GetCmsPhoneResponse*>(
      &from));
}

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

  switch (from.type_case()) {
    case kData: {
      _this->_internal_mutable_data()->::keyapis::device::v1::CmsPhone::MergeFrom(
          from._internal_data());
      break;
    }
    case kError: {
      _this->_internal_mutable_error()->::keyapis::device::v1::GetCmsPhoneResponse_Error::MergeFrom(
          from._internal_error());
      break;
    }
    case TYPE_NOT_SET: {
      break;
    }
  }
  _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
}

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

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

void GetCmsPhoneResponse::InternalSwap(GetCmsPhoneResponse* other) {
  using std::swap;
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  swap(_impl_.type_, other->_impl_.type_);
  swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]);
}

std::string GetCmsPhoneResponse::GetTypeName() const {
  return "keyapis.device.v1.GetCmsPhoneResponse";
}

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

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

const ::keyapis::device::v1::CmsPhoneFilter&
GetCmsPhoneCountRequest::_Internal::filter(const GetCmsPhoneCountRequest* msg) {
  return *msg->_impl_.filter_;
}
GetCmsPhoneCountRequest::GetCmsPhoneCountRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) {
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:keyapis.device.v1.GetCmsPhoneCountRequest)
}
GetCmsPhoneCountRequest::GetCmsPhoneCountRequest(const GetCmsPhoneCountRequest& from)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
  GetCmsPhoneCountRequest* const _this = this; (void)_this;
  new (&_impl_) Impl_{
      decltype(_impl_._has_bits_){from._impl_._has_bits_}
    , /*decltype(_impl_._cached_size_)*/{}
    , decltype(_impl_.filter_){nullptr}};

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

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

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

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

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

void GetCmsPhoneCountRequest::Clear() {
// @@protoc_insertion_point(message_clear_start:keyapis.device.v1.GetCmsPhoneCountRequest)
  ::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_.filter_ != nullptr);
    _impl_.filter_->Clear();
  }
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<std::string>();
}

const char* GetCmsPhoneCountRequest::_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.device.v1.CmsPhoneFilter filter = 1;
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
          ptr = ctx->ParseMessage(_internal_mutable_filter(), 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* GetCmsPhoneCountRequest::_InternalSerialize(
    ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:keyapis.device.v1.GetCmsPhoneCountRequest)
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  cached_has_bits = _impl_._has_bits_[0];
  // .keyapis.device.v1.CmsPhoneFilter filter = 1;
  if (cached_has_bits & 0x00000001u) {
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
      InternalWriteMessage(1, _Internal::filter(this),
        _Internal::filter(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.device.v1.GetCmsPhoneCountRequest)
  return target;
}

::size_t GetCmsPhoneCountRequest::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:keyapis.device.v1.GetCmsPhoneCountRequest)
  ::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.device.v1.CmsPhoneFilter filter = 1;
  cached_has_bits = _impl_._has_bits_[0];
  if (cached_has_bits & 0x00000001u) {
    total_size += 1 +
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
        *_impl_.filter_);
  }

  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 GetCmsPhoneCountRequest::CheckTypeAndMergeFrom(
    const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
  MergeFrom(*::_pbi::DownCast<const GetCmsPhoneCountRequest*>(
      &from));
}

void GetCmsPhoneCountRequest::MergeFrom(const GetCmsPhoneCountRequest& from) {
  GetCmsPhoneCountRequest* const _this = this;
  // @@protoc_insertion_point(class_specific_merge_from_start:keyapis.device.v1.GetCmsPhoneCountRequest)
  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_filter()->::keyapis::device::v1::CmsPhoneFilter::MergeFrom(
        from._internal_filter());
  }
  _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
}

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

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

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

std::string GetCmsPhoneCountRequest::GetTypeName() const {
  return "keyapis.device.v1.GetCmsPhoneCountRequest";
}

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

class GetCmsPhoneCountResponse_Error::_Internal {
 public:
  static constexpr ::int32_t kOneofCaseOffset =
    PROTOBUF_FIELD_OFFSET(::keyapis::device::v1::GetCmsPhoneCountResponse_Error, _impl_._oneof_case_);
  static const ::keyapis::device::v1::ValidationError& validation(const GetCmsPhoneCountResponse_Error* msg);
};

const ::keyapis::device::v1::ValidationError&
GetCmsPhoneCountResponse_Error::_Internal::validation(const GetCmsPhoneCountResponse_Error* msg) {
  return *msg->_impl_.reason_.validation_;
}
void GetCmsPhoneCountResponse_Error::set_allocated_validation(::keyapis::device::v1::ValidationError* validation) {
  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
  clear_reason();
  if (validation) {
    ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
        ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
                reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(validation));
    if (message_arena != submessage_arena) {
      validation = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
          message_arena, validation, submessage_arena);
    }
    set_has_validation();
    _impl_.reason_.validation_ = validation;
  }
  // @@protoc_insertion_point(field_set_allocated:keyapis.device.v1.GetCmsPhoneCountResponse.Error.validation)
}
void GetCmsPhoneCountResponse_Error::clear_validation() {
  if (reason_case() == kValidation) {
    if (GetArenaForAllocation() == nullptr) {
      delete _impl_.reason_.validation_;
    }
    clear_has_reason();
  }
}
GetCmsPhoneCountResponse_Error::GetCmsPhoneCountResponse_Error(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) {
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:keyapis.device.v1.GetCmsPhoneCountResponse.Error)
}
GetCmsPhoneCountResponse_Error::GetCmsPhoneCountResponse_Error(const GetCmsPhoneCountResponse_Error& from)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
  GetCmsPhoneCountResponse_Error* const _this = this; (void)_this;
  new (&_impl_) Impl_{
      decltype(_impl_.reason_){}
    , /*decltype(_impl_._cached_size_)*/{}
    , /*decltype(_impl_._oneof_case_)*/{}};

  _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
  clear_has_reason();
  switch (from.reason_case()) {
    case kValidation: {
      _this->_internal_mutable_validation()->::keyapis::device::v1::ValidationError::MergeFrom(
          from._internal_validation());
      break;
    }
    case REASON_NOT_SET: {
      break;
    }
  }
  // @@protoc_insertion_point(copy_constructor:keyapis.device.v1.GetCmsPhoneCountResponse.Error)
}

inline void GetCmsPhoneCountResponse_Error::SharedCtor(::_pb::Arena* arena) {
  (void)arena;
  new (&_impl_) Impl_{
      decltype(_impl_.reason_){}
    , /*decltype(_impl_._cached_size_)*/{}
    , /*decltype(_impl_._oneof_case_)*/{}
  };
  clear_has_reason();
}

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

inline void GetCmsPhoneCountResponse_Error::SharedDtor() {
  ABSL_DCHECK(GetArenaForAllocation() == nullptr);
  if (has_reason()) {
    clear_reason();
  }
}

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

void GetCmsPhoneCountResponse_Error::clear_reason() {
// @@protoc_insertion_point(one_of_clear_start:keyapis.device.v1.GetCmsPhoneCountResponse.Error)
  switch (reason_case()) {
    case kValidation: {
      if (GetArenaForAllocation() == nullptr) {
        delete _impl_.reason_.validation_;
      }
      break;
    }
    case REASON_NOT_SET: {
      break;
    }
  }
  _impl_._oneof_case_[0] = REASON_NOT_SET;
}


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

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

const char* GetCmsPhoneCountResponse_Error::_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) {
      // .keyapis.device.v1.ValidationError validation = 1;
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
          ptr = ctx->ParseMessage(_internal_mutable_validation(), 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* GetCmsPhoneCountResponse_Error::_InternalSerialize(
    ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:keyapis.device.v1.GetCmsPhoneCountResponse.Error)
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  // .keyapis.device.v1.ValidationError validation = 1;
  if (reason_case() == kValidation) {
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
      InternalWriteMessage(1, _Internal::validation(this),
        _Internal::validation(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.device.v1.GetCmsPhoneCountResponse.Error)
  return target;
}

::size_t GetCmsPhoneCountResponse_Error::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:keyapis.device.v1.GetCmsPhoneCountResponse.Error)
  ::size_t total_size = 0;

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

  switch (reason_case()) {
    // .keyapis.device.v1.ValidationError validation = 1;
    case kValidation: {
      total_size += 1 +
        ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
          *_impl_.reason_.validation_);
      break;
    }
    case REASON_NOT_SET: {
      break;
    }
  }
  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 GetCmsPhoneCountResponse_Error::CheckTypeAndMergeFrom(
    const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
  MergeFrom(*::_pbi::DownCast<const GetCmsPhoneCountResponse_Error*>(
      &from));
}

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

  switch (from.reason_case()) {
    case kValidation: {
      _this->_internal_mutable_validation()->::keyapis::device::v1::ValidationError::MergeFrom(
          from._internal_validation());
      break;
    }
    case REASON_NOT_SET: {
      break;
    }
  }
  _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
}

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

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

void GetCmsPhoneCountResponse_Error::InternalSwap(GetCmsPhoneCountResponse_Error* other) {
  using std::swap;
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  swap(_impl_.reason_, other->_impl_.reason_);
  swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]);
}

std::string GetCmsPhoneCountResponse_Error::GetTypeName() const {
  return "keyapis.device.v1.GetCmsPhoneCountResponse.Error";
}

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

class GetCmsPhoneCountResponse::_Internal {
 public:
  static constexpr ::int32_t kOneofCaseOffset =
    PROTOBUF_FIELD_OFFSET(::keyapis::device::v1::GetCmsPhoneCountResponse, _impl_._oneof_case_);
  static const ::keyapis::device::v1::GetCmsPhoneCountResponse_Error& error(const GetCmsPhoneCountResponse* msg);
};

const ::keyapis::device::v1::GetCmsPhoneCountResponse_Error&
GetCmsPhoneCountResponse::_Internal::error(const GetCmsPhoneCountResponse* msg) {
  return *msg->_impl_.type_.error_;
}
void GetCmsPhoneCountResponse::set_allocated_error(::keyapis::device::v1::GetCmsPhoneCountResponse_Error* error) {
  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
  clear_type();
  if (error) {
    ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
      ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(error);
    if (message_arena != submessage_arena) {
      error = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
          message_arena, error, submessage_arena);
    }
    set_has_error();
    _impl_.type_.error_ = error;
  }
  // @@protoc_insertion_point(field_set_allocated:keyapis.device.v1.GetCmsPhoneCountResponse.error)
}
GetCmsPhoneCountResponse::GetCmsPhoneCountResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) {
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:keyapis.device.v1.GetCmsPhoneCountResponse)
}
GetCmsPhoneCountResponse::GetCmsPhoneCountResponse(const GetCmsPhoneCountResponse& from)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
  GetCmsPhoneCountResponse* const _this = this; (void)_this;
  new (&_impl_) Impl_{
      decltype(_impl_.type_){}
    , /*decltype(_impl_._cached_size_)*/{}
    , /*decltype(_impl_._oneof_case_)*/{}};

  _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
  clear_has_type();
  switch (from.type_case()) {
    case kData: {
      _this->_internal_set_data(from._internal_data());
      break;
    }
    case kError: {
      _this->_internal_mutable_error()->::keyapis::device::v1::GetCmsPhoneCountResponse_Error::MergeFrom(
          from._internal_error());
      break;
    }
    case TYPE_NOT_SET: {
      break;
    }
  }
  // @@protoc_insertion_point(copy_constructor:keyapis.device.v1.GetCmsPhoneCountResponse)
}

inline void GetCmsPhoneCountResponse::SharedCtor(::_pb::Arena* arena) {
  (void)arena;
  new (&_impl_) Impl_{
      decltype(_impl_.type_){}
    , /*decltype(_impl_._cached_size_)*/{}
    , /*decltype(_impl_._oneof_case_)*/{}
  };
  clear_has_type();
}

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

inline void GetCmsPhoneCountResponse::SharedDtor() {
  ABSL_DCHECK(GetArenaForAllocation() == nullptr);
  if (has_type()) {
    clear_type();
  }
}

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

void GetCmsPhoneCountResponse::clear_type() {
// @@protoc_insertion_point(one_of_clear_start:keyapis.device.v1.GetCmsPhoneCountResponse)
  switch (type_case()) {
    case kData: {
      // No need to clear
      break;
    }
    case kError: {
      if (GetArenaForAllocation() == nullptr) {
        delete _impl_.type_.error_;
      }
      break;
    }
    case TYPE_NOT_SET: {
      break;
    }
  }
  _impl_._oneof_case_[0] = TYPE_NOT_SET;
}


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

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

const char* GetCmsPhoneCountResponse::_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)) {
          _internal_set_data(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr));
          CHK_(ptr);
        } else {
          goto handle_unusual;
        }
        continue;
      // .keyapis.device.v1.GetCmsPhoneCountResponse.Error error = 2;
      case 2:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
          ptr = ctx->ParseMessage(_internal_mutable_error(), 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* GetCmsPhoneCountResponse::_InternalSerialize(
    ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:keyapis.device.v1.GetCmsPhoneCountResponse)
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  switch (type_case()) {
    case kData: {
      target = stream->EnsureSpace(target);
      target = ::_pbi::WireFormatLite::WriteInt32ToArray(
          1, this->_internal_data(), target);
      break;
    }
    case kError: {
      target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
        InternalWriteMessage(2, _Internal::error(this),
          _Internal::error(this).GetCachedSize(), target, stream);
      break;
    }
    default: ;
  }
  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.device.v1.GetCmsPhoneCountResponse)
  return target;
}

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

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

  switch (type_case()) {
    // int32 data = 1;
    case kData: {
      total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
          this->_internal_data());
      break;
    }
    // .keyapis.device.v1.GetCmsPhoneCountResponse.Error error = 2;
    case kError: {
      total_size += 1 +
        ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
          *_impl_.type_.error_);
      break;
    }
    case TYPE_NOT_SET: {
      break;
    }
  }
  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 GetCmsPhoneCountResponse::CheckTypeAndMergeFrom(
    const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
  MergeFrom(*::_pbi::DownCast<const GetCmsPhoneCountResponse*>(
      &from));
}

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

  switch (from.type_case()) {
    case kData: {
      _this->_internal_set_data(from._internal_data());
      break;
    }
    case kError: {
      _this->_internal_mutable_error()->::keyapis::device::v1::GetCmsPhoneCountResponse_Error::MergeFrom(
          from._internal_error());
      break;
    }
    case TYPE_NOT_SET: {
      break;
    }
  }
  _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
}

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

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

void GetCmsPhoneCountResponse::InternalSwap(GetCmsPhoneCountResponse* other) {
  using std::swap;
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  swap(_impl_.type_, other->_impl_.type_);
  swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]);
}

std::string GetCmsPhoneCountResponse::GetTypeName() const {
  return "keyapis.device.v1.GetCmsPhoneCountResponse";
}

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

class DeleteCmsPhoneRequest::_Internal {
 public:
};

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

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

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

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

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

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

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

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

const char* DeleteCmsPhoneRequest::_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 id = 1 [(.google.api.field_behavior) = REQUIRED];
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
          _impl_.id_ = ::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* DeleteCmsPhoneRequest::_InternalSerialize(
    ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:keyapis.device.v1.DeleteCmsPhoneRequest)
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  // int32 id = 1 [(.google.api.field_behavior) = REQUIRED];
  if (this->_internal_id() != 0) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteInt32ToArray(
        1, this->_internal_id(), 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.device.v1.DeleteCmsPhoneRequest)
  return target;
}

::size_t DeleteCmsPhoneRequest::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:keyapis.device.v1.DeleteCmsPhoneRequest)
  ::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 id = 1 [(.google.api.field_behavior) = REQUIRED];
  if (this->_internal_id() != 0) {
    total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
        this->_internal_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 DeleteCmsPhoneRequest::CheckTypeAndMergeFrom(
    const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
  MergeFrom(*::_pbi::DownCast<const DeleteCmsPhoneRequest*>(
      &from));
}

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

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

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

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

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

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

std::string DeleteCmsPhoneRequest::GetTypeName() const {
  return "keyapis.device.v1.DeleteCmsPhoneRequest";
}

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

class DeleteCmsPhoneResponse::_Internal {
 public:
};

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

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

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

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

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

void DeleteCmsPhoneResponse::Clear() {
// @@protoc_insertion_point(message_clear_start:keyapis.device.v1.DeleteCmsPhoneResponse)
  ::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* DeleteCmsPhoneResponse::_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* DeleteCmsPhoneResponse::_InternalSerialize(
    ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:keyapis.device.v1.DeleteCmsPhoneResponse)
  ::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.device.v1.DeleteCmsPhoneResponse)
  return target;
}

::size_t DeleteCmsPhoneResponse::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:keyapis.device.v1.DeleteCmsPhoneResponse)
  ::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 DeleteCmsPhoneResponse::CheckTypeAndMergeFrom(
    const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
  MergeFrom(*::_pbi::DownCast<const DeleteCmsPhoneResponse*>(
      &from));
}

void DeleteCmsPhoneResponse::MergeFrom(const DeleteCmsPhoneResponse& from) {
  DeleteCmsPhoneResponse* const _this = this;
  // @@protoc_insertion_point(class_specific_merge_from_start:keyapis.device.v1.DeleteCmsPhoneResponse)
  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 DeleteCmsPhoneResponse::CopyFrom(const DeleteCmsPhoneResponse& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:keyapis.device.v1.DeleteCmsPhoneResponse)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

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

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

std::string DeleteCmsPhoneResponse::GetTypeName() const {
  return "keyapis.device.v1.DeleteCmsPhoneResponse";
}

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

class DeleteCmsPhoneDeviceIdRequest::_Internal {
 public:
};

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

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

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

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

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

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

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

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

const char* DeleteCmsPhoneDeviceIdRequest::_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 device_id = 1 [(.google.api.field_behavior) = REQUIRED];
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
          _impl_.device_id_ = ::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* DeleteCmsPhoneDeviceIdRequest::_InternalSerialize(
    ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:keyapis.device.v1.DeleteCmsPhoneDeviceIdRequest)
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  // int32 device_id = 1 [(.google.api.field_behavior) = REQUIRED];
  if (this->_internal_device_id() != 0) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteInt32ToArray(
        1, this->_internal_device_id(), 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.device.v1.DeleteCmsPhoneDeviceIdRequest)
  return target;
}

::size_t DeleteCmsPhoneDeviceIdRequest::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:keyapis.device.v1.DeleteCmsPhoneDeviceIdRequest)
  ::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 device_id = 1 [(.google.api.field_behavior) = REQUIRED];
  if (this->_internal_device_id() != 0) {
    total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
        this->_internal_device_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 DeleteCmsPhoneDeviceIdRequest::CheckTypeAndMergeFrom(
    const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
  MergeFrom(*::_pbi::DownCast<const DeleteCmsPhoneDeviceIdRequest*>(
      &from));
}

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

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

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

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

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

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

std::string DeleteCmsPhoneDeviceIdRequest::GetTypeName() const {
  return "keyapis.device.v1.DeleteCmsPhoneDeviceIdRequest";
}

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

class DeleteCmsPhoneDeviceIdResponse::_Internal {
 public:
};

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

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

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

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

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

void DeleteCmsPhoneDeviceIdResponse::Clear() {
// @@protoc_insertion_point(message_clear_start:keyapis.device.v1.DeleteCmsPhoneDeviceIdResponse)
  ::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* DeleteCmsPhoneDeviceIdResponse::_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* DeleteCmsPhoneDeviceIdResponse::_InternalSerialize(
    ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:keyapis.device.v1.DeleteCmsPhoneDeviceIdResponse)
  ::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.device.v1.DeleteCmsPhoneDeviceIdResponse)
  return target;
}

::size_t DeleteCmsPhoneDeviceIdResponse::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:keyapis.device.v1.DeleteCmsPhoneDeviceIdResponse)
  ::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 DeleteCmsPhoneDeviceIdResponse::CheckTypeAndMergeFrom(
    const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
  MergeFrom(*::_pbi::DownCast<const DeleteCmsPhoneDeviceIdResponse*>(
      &from));
}

void DeleteCmsPhoneDeviceIdResponse::MergeFrom(const DeleteCmsPhoneDeviceIdResponse& from) {
  DeleteCmsPhoneDeviceIdResponse* const _this = this;
  // @@protoc_insertion_point(class_specific_merge_from_start:keyapis.device.v1.DeleteCmsPhoneDeviceIdResponse)
  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 DeleteCmsPhoneDeviceIdResponse::CopyFrom(const DeleteCmsPhoneDeviceIdResponse& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:keyapis.device.v1.DeleteCmsPhoneDeviceIdResponse)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

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

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

std::string DeleteCmsPhoneDeviceIdResponse::GetTypeName() const {
  return "keyapis.device.v1.DeleteCmsPhoneDeviceIdResponse";
}

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

class DeleteCmsPhoneOrponIdRequest::_Internal {
 public:
};

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

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

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

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

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

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

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

  _impl_.orpon_id_ = ::int64_t{0};
  _internal_metadata_.Clear<std::string>();
}

const char* DeleteCmsPhoneOrponIdRequest::_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) {
      // int64 orpon_id = 1 [(.google.api.field_behavior) = REQUIRED];
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
          _impl_.orpon_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
          CHK_(ptr);
        } else {
          goto handle_unusual;
        }
        continue;
      default:
        goto handle_unusual;
    }  // switch
  handle_unusual:
    if ((tag == 0) || ((tag & 7) == 4)) {
      CHK_(ptr);
      ctx->SetLastTag(tag);
      goto message_done;
    }
    ptr = UnknownFieldParse(
        tag,
        _internal_metadata_.mutable_unknown_fields<std::string>(),
        ptr, ctx);
    CHK_(ptr != nullptr);
  }  // while
message_done:
  return ptr;
failure:
  ptr = nullptr;
  goto message_done;
#undef CHK_
}

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

  // int64 orpon_id = 1 [(.google.api.field_behavior) = REQUIRED];
  if (this->_internal_orpon_id() != 0) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteInt64ToArray(
        1, this->_internal_orpon_id(), 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.device.v1.DeleteCmsPhoneOrponIdRequest)
  return target;
}

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

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

  // int64 orpon_id = 1 [(.google.api.field_behavior) = REQUIRED];
  if (this->_internal_orpon_id() != 0) {
    total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
        this->_internal_orpon_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 DeleteCmsPhoneOrponIdRequest::CheckTypeAndMergeFrom(
    const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
  MergeFrom(*::_pbi::DownCast<const DeleteCmsPhoneOrponIdRequest*>(
      &from));
}

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

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

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

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

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

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

std::string DeleteCmsPhoneOrponIdRequest::GetTypeName() const {
  return "keyapis.device.v1.DeleteCmsPhoneOrponIdRequest";
}

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

class DeleteCmsPhoneOrponIdResponse::_Internal {
 public:
};

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

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

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

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

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

void DeleteCmsPhoneOrponIdResponse::Clear() {
// @@protoc_insertion_point(message_clear_start:keyapis.device.v1.DeleteCmsPhoneOrponIdResponse)
  ::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* DeleteCmsPhoneOrponIdResponse::_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* DeleteCmsPhoneOrponIdResponse::_InternalSerialize(
    ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:keyapis.device.v1.DeleteCmsPhoneOrponIdResponse)
  ::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.device.v1.DeleteCmsPhoneOrponIdResponse)
  return target;
}

::size_t DeleteCmsPhoneOrponIdResponse::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:keyapis.device.v1.DeleteCmsPhoneOrponIdResponse)
  ::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 DeleteCmsPhoneOrponIdResponse::CheckTypeAndMergeFrom(
    const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
  MergeFrom(*::_pbi::DownCast<const DeleteCmsPhoneOrponIdResponse*>(
      &from));
}

void DeleteCmsPhoneOrponIdResponse::MergeFrom(const DeleteCmsPhoneOrponIdResponse& from) {
  DeleteCmsPhoneOrponIdResponse* const _this = this;
  // @@protoc_insertion_point(class_specific_merge_from_start:keyapis.device.v1.DeleteCmsPhoneOrponIdResponse)
  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 DeleteCmsPhoneOrponIdResponse::CopyFrom(const DeleteCmsPhoneOrponIdResponse& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:keyapis.device.v1.DeleteCmsPhoneOrponIdResponse)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

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

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

std::string DeleteCmsPhoneOrponIdResponse::GetTypeName() const {
  return "keyapis.device.v1.DeleteCmsPhoneOrponIdResponse";
}

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

class DeleteCmsPhoneOrponIdRoomNumberRequest::_Internal {
 public:
};

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

    , decltype(_impl_.orpon_id_) {}

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

  _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
  _impl_.room_number_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
        _impl_.room_number_.Set("", GetArenaForAllocation());
  #endif  // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  if (!from._internal_room_number().empty()) {
    _this->_impl_.room_number_.Set(from._internal_room_number(), _this->GetArenaForAllocation());
  }
  _this->_impl_.orpon_id_ = from._impl_.orpon_id_;
  // @@protoc_insertion_point(copy_constructor:keyapis.device.v1.DeleteCmsPhoneOrponIdRoomNumberRequest)
}

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

    , decltype(_impl_.orpon_id_) { ::int64_t{0} }

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

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

inline void DeleteCmsPhoneOrponIdRoomNumberRequest::SharedDtor() {
  ABSL_DCHECK(GetArenaForAllocation() == nullptr);
  _impl_.room_number_.Destroy();
}

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

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

  _impl_.room_number_.ClearToEmpty();
  _impl_.orpon_id_ = ::int64_t{0};
  _internal_metadata_.Clear<std::string>();
}

const char* DeleteCmsPhoneOrponIdRoomNumberRequest::_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) {
      // int64 orpon_id = 1 [(.google.api.field_behavior) = REQUIRED];
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
          _impl_.orpon_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
          CHK_(ptr);
        } else {
          goto handle_unusual;
        }
        continue;
      // string room_number = 2 [(.google.api.field_behavior) = REQUIRED];
      case 2:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
          auto str = _internal_mutable_room_number();
          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* DeleteCmsPhoneOrponIdRoomNumberRequest::_InternalSerialize(
    ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:keyapis.device.v1.DeleteCmsPhoneOrponIdRoomNumberRequest)
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  // int64 orpon_id = 1 [(.google.api.field_behavior) = REQUIRED];
  if (this->_internal_orpon_id() != 0) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteInt64ToArray(
        1, this->_internal_orpon_id(), target);
  }

  // string room_number = 2 [(.google.api.field_behavior) = REQUIRED];
  if (!this->_internal_room_number().empty()) {
    const std::string& _s = this->_internal_room_number();
    ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
        _s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "keyapis.device.v1.DeleteCmsPhoneOrponIdRoomNumberRequest.room_number");
    target = stream->WriteStringMaybeAliased(2, _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.device.v1.DeleteCmsPhoneOrponIdRoomNumberRequest)
  return target;
}

::size_t DeleteCmsPhoneOrponIdRoomNumberRequest::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:keyapis.device.v1.DeleteCmsPhoneOrponIdRoomNumberRequest)
  ::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 room_number = 2 [(.google.api.field_behavior) = REQUIRED];
  if (!this->_internal_room_number().empty()) {
    total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
                                    this->_internal_room_number());
  }

  // int64 orpon_id = 1 [(.google.api.field_behavior) = REQUIRED];
  if (this->_internal_orpon_id() != 0) {
    total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
        this->_internal_orpon_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 DeleteCmsPhoneOrponIdRoomNumberRequest::CheckTypeAndMergeFrom(
    const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
  MergeFrom(*::_pbi::DownCast<const DeleteCmsPhoneOrponIdRoomNumberRequest*>(
      &from));
}

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

  if (!from._internal_room_number().empty()) {
    _this->_internal_set_room_number(from._internal_room_number());
  }
  if (from._internal_orpon_id() != 0) {
    _this->_internal_set_orpon_id(from._internal_orpon_id());
  }
  _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
}

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

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

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

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

std::string DeleteCmsPhoneOrponIdRoomNumberRequest::GetTypeName() const {
  return "keyapis.device.v1.DeleteCmsPhoneOrponIdRoomNumberRequest";
}

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

class DeleteCmsPhoneOrponIdRoomNumberResponse::_Internal {
 public:
};

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

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

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

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

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

void DeleteCmsPhoneOrponIdRoomNumberResponse::Clear() {
// @@protoc_insertion_point(message_clear_start:keyapis.device.v1.DeleteCmsPhoneOrponIdRoomNumberResponse)
  ::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* DeleteCmsPhoneOrponIdRoomNumberResponse::_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* DeleteCmsPhoneOrponIdRoomNumberResponse::_InternalSerialize(
    ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:keyapis.device.v1.DeleteCmsPhoneOrponIdRoomNumberResponse)
  ::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.device.v1.DeleteCmsPhoneOrponIdRoomNumberResponse)
  return target;
}

::size_t DeleteCmsPhoneOrponIdRoomNumberResponse::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:keyapis.device.v1.DeleteCmsPhoneOrponIdRoomNumberResponse)
  ::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 DeleteCmsPhoneOrponIdRoomNumberResponse::CheckTypeAndMergeFrom(
    const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
  MergeFrom(*::_pbi::DownCast<const DeleteCmsPhoneOrponIdRoomNumberResponse*>(
      &from));
}

void DeleteCmsPhoneOrponIdRoomNumberResponse::MergeFrom(const DeleteCmsPhoneOrponIdRoomNumberResponse& from) {
  DeleteCmsPhoneOrponIdRoomNumberResponse* const _this = this;
  // @@protoc_insertion_point(class_specific_merge_from_start:keyapis.device.v1.DeleteCmsPhoneOrponIdRoomNumberResponse)
  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 DeleteCmsPhoneOrponIdRoomNumberResponse::CopyFrom(const DeleteCmsPhoneOrponIdRoomNumberResponse& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:keyapis.device.v1.DeleteCmsPhoneOrponIdRoomNumberResponse)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

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

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

std::string DeleteCmsPhoneOrponIdRoomNumberResponse::GetTypeName() const {
  return "keyapis.device.v1.DeleteCmsPhoneOrponIdRoomNumberResponse";
}

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

class PostCmsPhoneRefreshRequest::_Internal {
 public:
};

PostCmsPhoneRefreshRequest::PostCmsPhoneRefreshRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) {
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:keyapis.device.v1.PostCmsPhoneRefreshRequest)
}
PostCmsPhoneRefreshRequest::PostCmsPhoneRefreshRequest(const PostCmsPhoneRefreshRequest& from)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
  PostCmsPhoneRefreshRequest* const _this = this; (void)_this;
  new (&_impl_) Impl_{
      decltype(_impl_.ids_) { from._impl_.ids_ }
    ,/* _impl_._ids_cached_byte_size_ = */ { 0 }

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

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

inline void PostCmsPhoneRefreshRequest::SharedCtor(::_pb::Arena* arena) {
  (void)arena;
  new (&_impl_) Impl_{
      decltype(_impl_.ids_) { arena }
    ,/* _impl_._ids_cached_byte_size_ = */ { 0 }

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

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

inline void PostCmsPhoneRefreshRequest::SharedDtor() {
  ABSL_DCHECK(GetArenaForAllocation() == nullptr);
  _impl_.ids_.~RepeatedField();
}

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

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

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

const char* PostCmsPhoneRefreshRequest::_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 int32 ids = 1 [(.google.api.field_behavior) = REQUIRED];
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
          ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt32Parser(_internal_mutable_ids(), ptr, ctx);
          CHK_(ptr);
        } else if (static_cast<::uint8_t>(tag) == 8) {
          _internal_add_ids(::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* PostCmsPhoneRefreshRequest::_InternalSerialize(
    ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:keyapis.device.v1.PostCmsPhoneRefreshRequest)
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  // repeated int32 ids = 1 [(.google.api.field_behavior) = REQUIRED];
  {
    int byte_size = _impl_._ids_cached_byte_size_.Get();
    if (byte_size > 0) {
      target = stream->WriteInt32Packed(1, _internal_ids(),
                                                 byte_size, 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.device.v1.PostCmsPhoneRefreshRequest)
  return target;
}

::size_t PostCmsPhoneRefreshRequest::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:keyapis.device.v1.PostCmsPhoneRefreshRequest)
  ::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 int32 ids = 1 [(.google.api.field_behavior) = REQUIRED];
  {
    std::size_t data_size = ::_pbi::WireFormatLite::Int32Size(
        this->_internal_ids())
    ;
    _impl_._ids_cached_byte_size_.Set(::_pbi::ToCachedSize(data_size));
    std::size_t tag_size = data_size == 0
        ? 0
        : 1 + ::_pbi::WireFormatLite::Int32Size(
                            static_cast<int32_t>(data_size))
    ;
    total_size += tag_size + data_size;
  }

  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 PostCmsPhoneRefreshRequest::CheckTypeAndMergeFrom(
    const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
  MergeFrom(*::_pbi::DownCast<const PostCmsPhoneRefreshRequest*>(
      &from));
}

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

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

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

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

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

std::string PostCmsPhoneRefreshRequest::GetTypeName() const {
  return "keyapis.device.v1.PostCmsPhoneRefreshRequest";
}

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

class PostCmsPhoneRefreshResponse::_Internal {
 public:
};

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

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

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

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

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

void PostCmsPhoneRefreshResponse::Clear() {
// @@protoc_insertion_point(message_clear_start:keyapis.device.v1.PostCmsPhoneRefreshResponse)
  ::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* PostCmsPhoneRefreshResponse::_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* PostCmsPhoneRefreshResponse::_InternalSerialize(
    ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:keyapis.device.v1.PostCmsPhoneRefreshResponse)
  ::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.device.v1.PostCmsPhoneRefreshResponse)
  return target;
}

::size_t PostCmsPhoneRefreshResponse::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:keyapis.device.v1.PostCmsPhoneRefreshResponse)
  ::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 PostCmsPhoneRefreshResponse::CheckTypeAndMergeFrom(
    const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
  MergeFrom(*::_pbi::DownCast<const PostCmsPhoneRefreshResponse*>(
      &from));
}

void PostCmsPhoneRefreshResponse::MergeFrom(const PostCmsPhoneRefreshResponse& from) {
  PostCmsPhoneRefreshResponse* const _this = this;
  // @@protoc_insertion_point(class_specific_merge_from_start:keyapis.device.v1.PostCmsPhoneRefreshResponse)
  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 PostCmsPhoneRefreshResponse::CopyFrom(const PostCmsPhoneRefreshResponse& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:keyapis.device.v1.PostCmsPhoneRefreshResponse)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

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

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

std::string PostCmsPhoneRefreshResponse::GetTypeName() const {
  return "keyapis.device.v1.PostCmsPhoneRefreshResponse";
}

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

class DeleteCmsPhoneOrponRoomNumberDeviceIdRequest::_Internal {
 public:
};

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

    , decltype(_impl_.orpon_) {}

    , decltype(_impl_.device_id_) {}

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

  _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
  _impl_.room_number_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
        _impl_.room_number_.Set("", GetArenaForAllocation());
  #endif  // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  if (!from._internal_room_number().empty()) {
    _this->_impl_.room_number_.Set(from._internal_room_number(), _this->GetArenaForAllocation());
  }
  ::memcpy(&_impl_.orpon_, &from._impl_.orpon_,
    static_cast<::size_t>(reinterpret_cast<char*>(&_impl_.device_id_) -
    reinterpret_cast<char*>(&_impl_.orpon_)) + sizeof(_impl_.device_id_));
  // @@protoc_insertion_point(copy_constructor:keyapis.device.v1.DeleteCmsPhoneOrponRoomNumberDeviceIdRequest)
}

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

    , decltype(_impl_.orpon_) { ::int64_t{0} }

    , decltype(_impl_.device_id_) { 0 }

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

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

inline void DeleteCmsPhoneOrponRoomNumberDeviceIdRequest::SharedDtor() {
  ABSL_DCHECK(GetArenaForAllocation() == nullptr);
  _impl_.room_number_.Destroy();
}

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

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

  _impl_.room_number_.ClearToEmpty();
  ::memset(&_impl_.orpon_, 0, static_cast<::size_t>(
      reinterpret_cast<char*>(&_impl_.device_id_) -
      reinterpret_cast<char*>(&_impl_.orpon_)) + sizeof(_impl_.device_id_));
  _internal_metadata_.Clear<std::string>();
}

const char* DeleteCmsPhoneOrponRoomNumberDeviceIdRequest::_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) {
      // int64 orpon = 1 [(.google.api.field_behavior) = REQUIRED];
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
          _impl_.orpon_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
          CHK_(ptr);
        } else {
          goto handle_unusual;
        }
        continue;
      // string room_number = 2 [(.google.api.field_behavior) = REQUIRED];
      case 2:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
          auto str = _internal_mutable_room_number();
          ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
          CHK_(ptr);
          CHK_(::_pbi::VerifyUTF8(str, nullptr));
        } else {
          goto handle_unusual;
        }
        continue;
      // int32 device_id = 3 [(.google.api.field_behavior) = REQUIRED];
      case 3:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) {
          _impl_.device_id_ = ::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* DeleteCmsPhoneOrponRoomNumberDeviceIdRequest::_InternalSerialize(
    ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:keyapis.device.v1.DeleteCmsPhoneOrponRoomNumberDeviceIdRequest)
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  // int64 orpon = 1 [(.google.api.field_behavior) = REQUIRED];
  if (this->_internal_orpon() != 0) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteInt64ToArray(
        1, this->_internal_orpon(), target);
  }

  // string room_number = 2 [(.google.api.field_behavior) = REQUIRED];
  if (!this->_internal_room_number().empty()) {
    const std::string& _s = this->_internal_room_number();
    ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
        _s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "keyapis.device.v1.DeleteCmsPhoneOrponRoomNumberDeviceIdRequest.room_number");
    target = stream->WriteStringMaybeAliased(2, _s, target);
  }

  // int32 device_id = 3 [(.google.api.field_behavior) = REQUIRED];
  if (this->_internal_device_id() != 0) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteInt32ToArray(
        3, this->_internal_device_id(), 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.device.v1.DeleteCmsPhoneOrponRoomNumberDeviceIdRequest)
  return target;
}

::size_t DeleteCmsPhoneOrponRoomNumberDeviceIdRequest::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:keyapis.device.v1.DeleteCmsPhoneOrponRoomNumberDeviceIdRequest)
  ::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 room_number = 2 [(.google.api.field_behavior) = REQUIRED];
  if (!this->_internal_room_number().empty()) {
    total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
                                    this->_internal_room_number());
  }

  // int64 orpon = 1 [(.google.api.field_behavior) = REQUIRED];
  if (this->_internal_orpon() != 0) {
    total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
        this->_internal_orpon());
  }

  // int32 device_id = 3 [(.google.api.field_behavior) = REQUIRED];
  if (this->_internal_device_id() != 0) {
    total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
        this->_internal_device_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 DeleteCmsPhoneOrponRoomNumberDeviceIdRequest::CheckTypeAndMergeFrom(
    const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
  MergeFrom(*::_pbi::DownCast<const DeleteCmsPhoneOrponRoomNumberDeviceIdRequest*>(
      &from));
}

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

  if (!from._internal_room_number().empty()) {
    _this->_internal_set_room_number(from._internal_room_number());
  }
  if (from._internal_orpon() != 0) {
    _this->_internal_set_orpon(from._internal_orpon());
  }
  if (from._internal_device_id() != 0) {
    _this->_internal_set_device_id(from._internal_device_id());
  }
  _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
}

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

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

void DeleteCmsPhoneOrponRoomNumberDeviceIdRequest::InternalSwap(DeleteCmsPhoneOrponRoomNumberDeviceIdRequest* other) {
  using std::swap;
  auto* lhs_arena = GetArenaForAllocation();
  auto* rhs_arena = other->GetArenaForAllocation();
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.room_number_, lhs_arena,
                                       &other->_impl_.room_number_, rhs_arena);
  ::PROTOBUF_NAMESPACE_ID::internal::memswap<
      PROTOBUF_FIELD_OFFSET(DeleteCmsPhoneOrponRoomNumberDeviceIdRequest, _impl_.device_id_)
      + sizeof(DeleteCmsPhoneOrponRoomNumberDeviceIdRequest::_impl_.device_id_)
      - PROTOBUF_FIELD_OFFSET(DeleteCmsPhoneOrponRoomNumberDeviceIdRequest, _impl_.orpon_)>(
          reinterpret_cast<char*>(&_impl_.orpon_),
          reinterpret_cast<char*>(&other->_impl_.orpon_));
}

std::string DeleteCmsPhoneOrponRoomNumberDeviceIdRequest::GetTypeName() const {
  return "keyapis.device.v1.DeleteCmsPhoneOrponRoomNumberDeviceIdRequest";
}

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

class DeleteCmsPhoneOrponRoomNumberDeviceIdResponse::_Internal {
 public:
};

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

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

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

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

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

void DeleteCmsPhoneOrponRoomNumberDeviceIdResponse::Clear() {
// @@protoc_insertion_point(message_clear_start:keyapis.device.v1.DeleteCmsPhoneOrponRoomNumberDeviceIdResponse)
  ::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* DeleteCmsPhoneOrponRoomNumberDeviceIdResponse::_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* DeleteCmsPhoneOrponRoomNumberDeviceIdResponse::_InternalSerialize(
    ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:keyapis.device.v1.DeleteCmsPhoneOrponRoomNumberDeviceIdResponse)
  ::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.device.v1.DeleteCmsPhoneOrponRoomNumberDeviceIdResponse)
  return target;
}

::size_t DeleteCmsPhoneOrponRoomNumberDeviceIdResponse::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:keyapis.device.v1.DeleteCmsPhoneOrponRoomNumberDeviceIdResponse)
  ::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 DeleteCmsPhoneOrponRoomNumberDeviceIdResponse::CheckTypeAndMergeFrom(
    const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
  MergeFrom(*::_pbi::DownCast<const DeleteCmsPhoneOrponRoomNumberDeviceIdResponse*>(
      &from));
}

void DeleteCmsPhoneOrponRoomNumberDeviceIdResponse::MergeFrom(const DeleteCmsPhoneOrponRoomNumberDeviceIdResponse& from) {
  DeleteCmsPhoneOrponRoomNumberDeviceIdResponse* const _this = this;
  // @@protoc_insertion_point(class_specific_merge_from_start:keyapis.device.v1.DeleteCmsPhoneOrponRoomNumberDeviceIdResponse)
  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 DeleteCmsPhoneOrponRoomNumberDeviceIdResponse::CopyFrom(const DeleteCmsPhoneOrponRoomNumberDeviceIdResponse& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:keyapis.device.v1.DeleteCmsPhoneOrponRoomNumberDeviceIdResponse)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

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

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

std::string DeleteCmsPhoneOrponRoomNumberDeviceIdResponse::GetTypeName() const {
  return "keyapis.device.v1.DeleteCmsPhoneOrponRoomNumberDeviceIdResponse";
}

// @@protoc_insertion_point(namespace_scope)
}  // namespace v1
}  // namespace device
}  // namespace keyapis
PROTOBUF_NAMESPACE_OPEN
template<> PROTOBUF_NOINLINE ::keyapis::device::v1::CmsPhone_SavingError_Conflict*
Arena::CreateMaybeMessage< ::keyapis::device::v1::CmsPhone_SavingError_Conflict >(Arena* arena) {
  return Arena::CreateMessageInternal< ::keyapis::device::v1::CmsPhone_SavingError_Conflict >(arena);
}
template<> PROTOBUF_NOINLINE ::keyapis::device::v1::CmsPhone_SavingError*
Arena::CreateMaybeMessage< ::keyapis::device::v1::CmsPhone_SavingError >(Arena* arena) {
  return Arena::CreateMessageInternal< ::keyapis::device::v1::CmsPhone_SavingError >(arena);
}
template<> PROTOBUF_NOINLINE ::keyapis::device::v1::CmsPhone*
Arena::CreateMaybeMessage< ::keyapis::device::v1::CmsPhone >(Arena* arena) {
  return Arena::CreateMessageInternal< ::keyapis::device::v1::CmsPhone >(arena);
}
template<> PROTOBUF_NOINLINE ::keyapis::device::v1::CmsPhoneFilter*
Arena::CreateMaybeMessage< ::keyapis::device::v1::CmsPhoneFilter >(Arena* arena) {
  return Arena::CreateMessageInternal< ::keyapis::device::v1::CmsPhoneFilter >(arena);
}
template<> PROTOBUF_NOINLINE ::keyapis::device::v1::CmsPhonePaging*
Arena::CreateMaybeMessage< ::keyapis::device::v1::CmsPhonePaging >(Arena* arena) {
  return Arena::CreateMessageInternal< ::keyapis::device::v1::CmsPhonePaging >(arena);
}
template<> PROTOBUF_NOINLINE ::keyapis::device::v1::GetCmsPhoneListRequest*
Arena::CreateMaybeMessage< ::keyapis::device::v1::GetCmsPhoneListRequest >(Arena* arena) {
  return Arena::CreateMessageInternal< ::keyapis::device::v1::GetCmsPhoneListRequest >(arena);
}
template<> PROTOBUF_NOINLINE ::keyapis::device::v1::GetCmsPhoneListResponse_Error*
Arena::CreateMaybeMessage< ::keyapis::device::v1::GetCmsPhoneListResponse_Error >(Arena* arena) {
  return Arena::CreateMessageInternal< ::keyapis::device::v1::GetCmsPhoneListResponse_Error >(arena);
}
template<> PROTOBUF_NOINLINE ::keyapis::device::v1::GetCmsPhoneListResponse*
Arena::CreateMaybeMessage< ::keyapis::device::v1::GetCmsPhoneListResponse >(Arena* arena) {
  return Arena::CreateMessageInternal< ::keyapis::device::v1::GetCmsPhoneListResponse >(arena);
}
template<> PROTOBUF_NOINLINE ::keyapis::device::v1::GetCmsPhoneRequest*
Arena::CreateMaybeMessage< ::keyapis::device::v1::GetCmsPhoneRequest >(Arena* arena) {
  return Arena::CreateMessageInternal< ::keyapis::device::v1::GetCmsPhoneRequest >(arena);
}
template<> PROTOBUF_NOINLINE ::keyapis::device::v1::GetCmsPhoneResponse_Error*
Arena::CreateMaybeMessage< ::keyapis::device::v1::GetCmsPhoneResponse_Error >(Arena* arena) {
  return Arena::CreateMessageInternal< ::keyapis::device::v1::GetCmsPhoneResponse_Error >(arena);
}
template<> PROTOBUF_NOINLINE ::keyapis::device::v1::GetCmsPhoneResponse*
Arena::CreateMaybeMessage< ::keyapis::device::v1::GetCmsPhoneResponse >(Arena* arena) {
  return Arena::CreateMessageInternal< ::keyapis::device::v1::GetCmsPhoneResponse >(arena);
}
template<> PROTOBUF_NOINLINE ::keyapis::device::v1::GetCmsPhoneCountRequest*
Arena::CreateMaybeMessage< ::keyapis::device::v1::GetCmsPhoneCountRequest >(Arena* arena) {
  return Arena::CreateMessageInternal< ::keyapis::device::v1::GetCmsPhoneCountRequest >(arena);
}
template<> PROTOBUF_NOINLINE ::keyapis::device::v1::GetCmsPhoneCountResponse_Error*
Arena::CreateMaybeMessage< ::keyapis::device::v1::GetCmsPhoneCountResponse_Error >(Arena* arena) {
  return Arena::CreateMessageInternal< ::keyapis::device::v1::GetCmsPhoneCountResponse_Error >(arena);
}
template<> PROTOBUF_NOINLINE ::keyapis::device::v1::GetCmsPhoneCountResponse*
Arena::CreateMaybeMessage< ::keyapis::device::v1::GetCmsPhoneCountResponse >(Arena* arena) {
  return Arena::CreateMessageInternal< ::keyapis::device::v1::GetCmsPhoneCountResponse >(arena);
}
template<> PROTOBUF_NOINLINE ::keyapis::device::v1::DeleteCmsPhoneRequest*
Arena::CreateMaybeMessage< ::keyapis::device::v1::DeleteCmsPhoneRequest >(Arena* arena) {
  return Arena::CreateMessageInternal< ::keyapis::device::v1::DeleteCmsPhoneRequest >(arena);
}
template<> PROTOBUF_NOINLINE ::keyapis::device::v1::DeleteCmsPhoneResponse*
Arena::CreateMaybeMessage< ::keyapis::device::v1::DeleteCmsPhoneResponse >(Arena* arena) {
  return Arena::CreateMessageInternal< ::keyapis::device::v1::DeleteCmsPhoneResponse >(arena);
}
template<> PROTOBUF_NOINLINE ::keyapis::device::v1::DeleteCmsPhoneDeviceIdRequest*
Arena::CreateMaybeMessage< ::keyapis::device::v1::DeleteCmsPhoneDeviceIdRequest >(Arena* arena) {
  return Arena::CreateMessageInternal< ::keyapis::device::v1::DeleteCmsPhoneDeviceIdRequest >(arena);
}
template<> PROTOBUF_NOINLINE ::keyapis::device::v1::DeleteCmsPhoneDeviceIdResponse*
Arena::CreateMaybeMessage< ::keyapis::device::v1::DeleteCmsPhoneDeviceIdResponse >(Arena* arena) {
  return Arena::CreateMessageInternal< ::keyapis::device::v1::DeleteCmsPhoneDeviceIdResponse >(arena);
}
template<> PROTOBUF_NOINLINE ::keyapis::device::v1::DeleteCmsPhoneOrponIdRequest*
Arena::CreateMaybeMessage< ::keyapis::device::v1::DeleteCmsPhoneOrponIdRequest >(Arena* arena) {
  return Arena::CreateMessageInternal< ::keyapis::device::v1::DeleteCmsPhoneOrponIdRequest >(arena);
}
template<> PROTOBUF_NOINLINE ::keyapis::device::v1::DeleteCmsPhoneOrponIdResponse*
Arena::CreateMaybeMessage< ::keyapis::device::v1::DeleteCmsPhoneOrponIdResponse >(Arena* arena) {
  return Arena::CreateMessageInternal< ::keyapis::device::v1::DeleteCmsPhoneOrponIdResponse >(arena);
}
template<> PROTOBUF_NOINLINE ::keyapis::device::v1::DeleteCmsPhoneOrponIdRoomNumberRequest*
Arena::CreateMaybeMessage< ::keyapis::device::v1::DeleteCmsPhoneOrponIdRoomNumberRequest >(Arena* arena) {
  return Arena::CreateMessageInternal< ::keyapis::device::v1::DeleteCmsPhoneOrponIdRoomNumberRequest >(arena);
}
template<> PROTOBUF_NOINLINE ::keyapis::device::v1::DeleteCmsPhoneOrponIdRoomNumberResponse*
Arena::CreateMaybeMessage< ::keyapis::device::v1::DeleteCmsPhoneOrponIdRoomNumberResponse >(Arena* arena) {
  return Arena::CreateMessageInternal< ::keyapis::device::v1::DeleteCmsPhoneOrponIdRoomNumberResponse >(arena);
}
template<> PROTOBUF_NOINLINE ::keyapis::device::v1::PostCmsPhoneRefreshRequest*
Arena::CreateMaybeMessage< ::keyapis::device::v1::PostCmsPhoneRefreshRequest >(Arena* arena) {
  return Arena::CreateMessageInternal< ::keyapis::device::v1::PostCmsPhoneRefreshRequest >(arena);
}
template<> PROTOBUF_NOINLINE ::keyapis::device::v1::PostCmsPhoneRefreshResponse*
Arena::CreateMaybeMessage< ::keyapis::device::v1::PostCmsPhoneRefreshResponse >(Arena* arena) {
  return Arena::CreateMessageInternal< ::keyapis::device::v1::PostCmsPhoneRefreshResponse >(arena);
}
template<> PROTOBUF_NOINLINE ::keyapis::device::v1::DeleteCmsPhoneOrponRoomNumberDeviceIdRequest*
Arena::CreateMaybeMessage< ::keyapis::device::v1::DeleteCmsPhoneOrponRoomNumberDeviceIdRequest >(Arena* arena) {
  return Arena::CreateMessageInternal< ::keyapis::device::v1::DeleteCmsPhoneOrponRoomNumberDeviceIdRequest >(arena);
}
template<> PROTOBUF_NOINLINE ::keyapis::device::v1::DeleteCmsPhoneOrponRoomNumberDeviceIdResponse*
Arena::CreateMaybeMessage< ::keyapis::device::v1::DeleteCmsPhoneOrponRoomNumberDeviceIdResponse >(Arena* arena) {
  return Arena::CreateMessageInternal< ::keyapis::device::v1::DeleteCmsPhoneOrponRoomNumberDeviceIdResponse >(arena);
}
PROTOBUF_NAMESPACE_CLOSE
// @@protoc_insertion_point(global_scope)
#include "google/protobuf/port_undef.inc"
