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

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

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

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

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

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

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetLegoAdapterServiceCheckRequestDefaultTypeInternal _GetLegoAdapterServiceCheckRequest_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR GetLegoAdapterServiceCheckResponse_Error_EcosystemApiError::GetLegoAdapterServiceCheckResponse_Error_EcosystemApiError(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_._cached_size_)*/{}} {}
struct GetLegoAdapterServiceCheckResponse_Error_EcosystemApiErrorDefaultTypeInternal {
  PROTOBUF_CONSTEXPR GetLegoAdapterServiceCheckResponse_Error_EcosystemApiErrorDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  ~GetLegoAdapterServiceCheckResponse_Error_EcosystemApiErrorDefaultTypeInternal() {}
  union {
    GetLegoAdapterServiceCheckResponse_Error_EcosystemApiError _instance;
  };
};

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetLegoAdapterServiceCheckResponse_Error_EcosystemApiErrorDefaultTypeInternal _GetLegoAdapterServiceCheckResponse_Error_EcosystemApiError_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR GetLegoAdapterServiceCheckResponse_Error::GetLegoAdapterServiceCheckResponse_Error(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_.reason_)*/{}
  , /*decltype(_impl_._cached_size_)*/{}
  , /*decltype(_impl_._oneof_case_)*/{}} {}
struct GetLegoAdapterServiceCheckResponse_ErrorDefaultTypeInternal {
  PROTOBUF_CONSTEXPR GetLegoAdapterServiceCheckResponse_ErrorDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  ~GetLegoAdapterServiceCheckResponse_ErrorDefaultTypeInternal() {}
  union {
    GetLegoAdapterServiceCheckResponse_Error _instance;
  };
};

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetLegoAdapterServiceCheckResponse_ErrorDefaultTypeInternal _GetLegoAdapterServiceCheckResponse_Error_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR GetLegoAdapterServiceCheckResponse::GetLegoAdapterServiceCheckResponse(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_.type_)*/{}
  , /*decltype(_impl_._cached_size_)*/{}
  , /*decltype(_impl_._oneof_case_)*/{}} {}
struct GetLegoAdapterServiceCheckResponseDefaultTypeInternal {
  PROTOBUF_CONSTEXPR GetLegoAdapterServiceCheckResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  ~GetLegoAdapterServiceCheckResponseDefaultTypeInternal() {}
  union {
    GetLegoAdapterServiceCheckResponse _instance;
  };
};

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetLegoAdapterServiceCheckResponseDefaultTypeInternal _GetLegoAdapterServiceCheckResponse_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR ValidationError::ValidationError(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_.path_)*/ {
    &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {}
  }

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

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

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ValidationErrorDefaultTypeInternal _ValidationError_default_instance_;
}  // namespace v1
}  // namespace ecosystem
}  // namespace keyapis
namespace keyapis {
namespace ecosystem {
namespace v1 {
bool Service_Type_IsValid(int value) {
  switch (value) {
    case 0:
    case 1:
    case 2:
    case 3:
    case 4:
    case 5:
    case 6:
    case 7:
    case 8:
    case 9:
    case 10:
    case 11:
    case 12:
    case 13:
    case 14:
    case 15:
    case 16:
      return true;
    default:
      return false;
  }
}
static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<std::string>
    Service_Type_strings[17] = {};

static const char Service_Type_names[] = {
    "ANALOG_CABLE_TV"
    "FIKSIROVANNAYA_SVYAZ"
    "IPTV"
    "JURIST"
    "KABELNOE_TV"
    "OTT_PERSON"
    "ROSTELECOM_LYCEUM"
    "SALE_EQUIPMENT"
    "SHPD"
    "SMART_BARRIER"
    "SMART_HOUSE"
    "SMART_INTERCOM"
    "SOTOVAYA_SVYAZ_MVNO"
    "TYPE_UNKNOWN"
    "WARRANTY_PLUS"
    "WIFI"
    "WINK"
};

static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry Service_Type_entries[] =
    {
        {{&Service_Type_names[0], 15}, 14},
        {{&Service_Type_names[15], 20}, 5},
        {{&Service_Type_names[35], 4}, 2},
        {{&Service_Type_names[39], 6}, 8},
        {{&Service_Type_names[45], 11}, 4},
        {{&Service_Type_names[56], 10}, 15},
        {{&Service_Type_names[66], 17}, 6},
        {{&Service_Type_names[83], 14}, 10},
        {{&Service_Type_names[97], 4}, 3},
        {{&Service_Type_names[101], 13}, 12},
        {{&Service_Type_names[114], 11}, 7},
        {{&Service_Type_names[125], 14}, 11},
        {{&Service_Type_names[139], 19}, 1},
        {{&Service_Type_names[158], 12}, 0},
        {{&Service_Type_names[170], 13}, 13},
        {{&Service_Type_names[183], 4}, 16},
        {{&Service_Type_names[187], 4}, 9},
};

static const int Service_Type_entries_by_number[] = {
    13,  // 0 -> TYPE_UNKNOWN
    12,  // 1 -> SOTOVAYA_SVYAZ_MVNO
    2,  // 2 -> IPTV
    8,  // 3 -> SHPD
    4,  // 4 -> KABELNOE_TV
    1,  // 5 -> FIKSIROVANNAYA_SVYAZ
    6,  // 6 -> ROSTELECOM_LYCEUM
    10,  // 7 -> SMART_HOUSE
    3,  // 8 -> JURIST
    16,  // 9 -> WINK
    7,  // 10 -> SALE_EQUIPMENT
    11,  // 11 -> SMART_INTERCOM
    9,  // 12 -> SMART_BARRIER
    14,  // 13 -> WARRANTY_PLUS
    0,  // 14 -> ANALOG_CABLE_TV
    5,  // 15 -> OTT_PERSON
    15,  // 16 -> WIFI
};

const std::string& Service_Type_Name(Service_Type value) {
  static const bool kDummy =
      ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings(
          Service_Type_entries, Service_Type_entries_by_number,
          17, Service_Type_strings);
  (void)kDummy;

  int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName(
      Service_Type_entries, Service_Type_entries_by_number, 17,
      value);
  return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString()
                   : Service_Type_strings[idx].get();
}

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

constexpr Service_Type Service::TYPE_UNKNOWN;
constexpr Service_Type Service::SOTOVAYA_SVYAZ_MVNO;
constexpr Service_Type Service::IPTV;
constexpr Service_Type Service::SHPD;
constexpr Service_Type Service::KABELNOE_TV;
constexpr Service_Type Service::FIKSIROVANNAYA_SVYAZ;
constexpr Service_Type Service::ROSTELECOM_LYCEUM;
constexpr Service_Type Service::SMART_HOUSE;
constexpr Service_Type Service::JURIST;
constexpr Service_Type Service::WINK;
constexpr Service_Type Service::SALE_EQUIPMENT;
constexpr Service_Type Service::SMART_INTERCOM;
constexpr Service_Type Service::SMART_BARRIER;
constexpr Service_Type Service::WARRANTY_PLUS;
constexpr Service_Type Service::ANALOG_CABLE_TV;
constexpr Service_Type Service::OTT_PERSON;
constexpr Service_Type Service::WIFI;
constexpr Service_Type Service::Type_MIN;
constexpr Service_Type Service::Type_MAX;
constexpr int Service::Type_ARRAYSIZE;

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

class Service::_Internal {
 public:
};

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

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

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

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

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

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

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

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

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

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

std::string Service::GetTypeName() const {
  return "keyapis.ecosystem.v1.Service";
}

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

class GetLegoAdapterServiceCheckRequest::_Internal {
 public:
};

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

    , decltype(_impl_.orpon_) {}

    , decltype(_impl_.service_type_) {}

    , /*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_.service_type_) -
    reinterpret_cast<char*>(&_impl_.orpon_)) + sizeof(_impl_.service_type_));
  // @@protoc_insertion_point(copy_constructor:keyapis.ecosystem.v1.GetLegoAdapterServiceCheckRequest)
}

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

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

    , decltype(_impl_.service_type_) { 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
}

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

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

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

void GetLegoAdapterServiceCheckRequest::Clear() {
// @@protoc_insertion_point(message_clear_start:keyapis.ecosystem.v1.GetLegoAdapterServiceCheckRequest)
  ::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_.service_type_) -
      reinterpret_cast<char*>(&_impl_.orpon_)) + sizeof(_impl_.service_type_));
  _internal_metadata_.Clear<std::string>();
}

const char* GetLegoAdapterServiceCheckRequest::_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;
      // .keyapis.ecosystem.v1.Service.Type service_type = 3 [(.google.api.field_behavior) = REQUIRED];
      case 3:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) {
          ::int32_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
          CHK_(ptr);
          _internal_set_service_type(static_cast<::keyapis::ecosystem::v1::Service_Type>(val));
        } 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* GetLegoAdapterServiceCheckRequest::_InternalSerialize(
    ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:keyapis.ecosystem.v1.GetLegoAdapterServiceCheckRequest)
  ::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.ecosystem.v1.GetLegoAdapterServiceCheckRequest.room_number");
    target = stream->WriteStringMaybeAliased(2, _s, target);
  }

  // .keyapis.ecosystem.v1.Service.Type service_type = 3 [(.google.api.field_behavior) = REQUIRED];
  if (this->_internal_service_type() != 0) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteEnumToArray(
        3, this->_internal_service_type(), 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.ecosystem.v1.GetLegoAdapterServiceCheckRequest)
  return target;
}

::size_t GetLegoAdapterServiceCheckRequest::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:keyapis.ecosystem.v1.GetLegoAdapterServiceCheckRequest)
  ::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());
  }

  // .keyapis.ecosystem.v1.Service.Type service_type = 3 [(.google.api.field_behavior) = REQUIRED];
  if (this->_internal_service_type() != 0) {
    total_size += 1 +
                  ::_pbi::WireFormatLite::EnumSize(this->_internal_service_type());
  }

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

void GetLegoAdapterServiceCheckRequest::MergeFrom(const GetLegoAdapterServiceCheckRequest& from) {
  GetLegoAdapterServiceCheckRequest* const _this = this;
  // @@protoc_insertion_point(class_specific_merge_from_start:keyapis.ecosystem.v1.GetLegoAdapterServiceCheckRequest)
  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_service_type() != 0) {
    _this->_internal_set_service_type(from._internal_service_type());
  }
  _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
}

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

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

void GetLegoAdapterServiceCheckRequest::InternalSwap(GetLegoAdapterServiceCheckRequest* 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(GetLegoAdapterServiceCheckRequest, _impl_.service_type_)
      + sizeof(GetLegoAdapterServiceCheckRequest::_impl_.service_type_)
      - PROTOBUF_FIELD_OFFSET(GetLegoAdapterServiceCheckRequest, _impl_.orpon_)>(
          reinterpret_cast<char*>(&_impl_.orpon_),
          reinterpret_cast<char*>(&other->_impl_.orpon_));
}

std::string GetLegoAdapterServiceCheckRequest::GetTypeName() const {
  return "keyapis.ecosystem.v1.GetLegoAdapterServiceCheckRequest";
}

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

class GetLegoAdapterServiceCheckResponse_Error_EcosystemApiError::_Internal {
 public:
};

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

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

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

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

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

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

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

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

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

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

std::string GetLegoAdapterServiceCheckResponse_Error_EcosystemApiError::GetTypeName() const {
  return "keyapis.ecosystem.v1.GetLegoAdapterServiceCheckResponse.Error.EcosystemApiError";
}

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

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

const ::keyapis::ecosystem::v1::ValidationError&
GetLegoAdapterServiceCheckResponse_Error::_Internal::validation(const GetLegoAdapterServiceCheckResponse_Error* msg) {
  return *msg->_impl_.reason_.validation_;
}
const ::keyapis::ecosystem::v1::GetLegoAdapterServiceCheckResponse_Error_EcosystemApiError&
GetLegoAdapterServiceCheckResponse_Error::_Internal::ecosystem_api_error(const GetLegoAdapterServiceCheckResponse_Error* msg) {
  return *msg->_impl_.reason_.ecosystem_api_error_;
}
void GetLegoAdapterServiceCheckResponse_Error::set_allocated_validation(::keyapis::ecosystem::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(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.ecosystem.v1.GetLegoAdapterServiceCheckResponse.Error.validation)
}
void GetLegoAdapterServiceCheckResponse_Error::set_allocated_ecosystem_api_error(::keyapis::ecosystem::v1::GetLegoAdapterServiceCheckResponse_Error_EcosystemApiError* ecosystem_api_error) {
  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
  clear_reason();
  if (ecosystem_api_error) {
    ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
      ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(ecosystem_api_error);
    if (message_arena != submessage_arena) {
      ecosystem_api_error = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
          message_arena, ecosystem_api_error, submessage_arena);
    }
    set_has_ecosystem_api_error();
    _impl_.reason_.ecosystem_api_error_ = ecosystem_api_error;
  }
  // @@protoc_insertion_point(field_set_allocated:keyapis.ecosystem.v1.GetLegoAdapterServiceCheckResponse.Error.ecosystem_api_error)
}
GetLegoAdapterServiceCheckResponse_Error::GetLegoAdapterServiceCheckResponse_Error(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) {
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:keyapis.ecosystem.v1.GetLegoAdapterServiceCheckResponse.Error)
}
GetLegoAdapterServiceCheckResponse_Error::GetLegoAdapterServiceCheckResponse_Error(const GetLegoAdapterServiceCheckResponse_Error& from)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
  GetLegoAdapterServiceCheckResponse_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::ecosystem::v1::ValidationError::MergeFrom(
          from._internal_validation());
      break;
    }
    case kEcosystemApiError: {
      _this->_internal_mutable_ecosystem_api_error()->::keyapis::ecosystem::v1::GetLegoAdapterServiceCheckResponse_Error_EcosystemApiError::MergeFrom(
          from._internal_ecosystem_api_error());
      break;
    }
    case REASON_NOT_SET: {
      break;
    }
  }
  // @@protoc_insertion_point(copy_constructor:keyapis.ecosystem.v1.GetLegoAdapterServiceCheckResponse.Error)
}

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

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

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

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

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


void GetLegoAdapterServiceCheckResponse_Error::Clear() {
// @@protoc_insertion_point(message_clear_start:keyapis.ecosystem.v1.GetLegoAdapterServiceCheckResponse.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* GetLegoAdapterServiceCheckResponse_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.ecosystem.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;
      // .keyapis.ecosystem.v1.GetLegoAdapterServiceCheckResponse.Error.EcosystemApiError ecosystem_api_error = 2;
      case 2:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
          ptr = ctx->ParseMessage(_internal_mutable_ecosystem_api_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* GetLegoAdapterServiceCheckResponse_Error::_InternalSerialize(
    ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:keyapis.ecosystem.v1.GetLegoAdapterServiceCheckResponse.Error)
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  switch (reason_case()) {
    case kValidation: {
      target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
        InternalWriteMessage(1, _Internal::validation(this),
          _Internal::validation(this).GetCachedSize(), target, stream);
      break;
    }
    case kEcosystemApiError: {
      target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
        InternalWriteMessage(2, _Internal::ecosystem_api_error(this),
          _Internal::ecosystem_api_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.ecosystem.v1.GetLegoAdapterServiceCheckResponse.Error)
  return target;
}

::size_t GetLegoAdapterServiceCheckResponse_Error::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:keyapis.ecosystem.v1.GetLegoAdapterServiceCheckResponse.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.ecosystem.v1.ValidationError validation = 1;
    case kValidation: {
      total_size += 1 +
        ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
          *_impl_.reason_.validation_);
      break;
    }
    // .keyapis.ecosystem.v1.GetLegoAdapterServiceCheckResponse.Error.EcosystemApiError ecosystem_api_error = 2;
    case kEcosystemApiError: {
      total_size += 1 +
        ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
          *_impl_.reason_.ecosystem_api_error_);
      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 GetLegoAdapterServiceCheckResponse_Error::CheckTypeAndMergeFrom(
    const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
  MergeFrom(*::_pbi::DownCast<const GetLegoAdapterServiceCheckResponse_Error*>(
      &from));
}

void GetLegoAdapterServiceCheckResponse_Error::MergeFrom(const GetLegoAdapterServiceCheckResponse_Error& from) {
  GetLegoAdapterServiceCheckResponse_Error* const _this = this;
  // @@protoc_insertion_point(class_specific_merge_from_start:keyapis.ecosystem.v1.GetLegoAdapterServiceCheckResponse.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::ecosystem::v1::ValidationError::MergeFrom(
          from._internal_validation());
      break;
    }
    case kEcosystemApiError: {
      _this->_internal_mutable_ecosystem_api_error()->::keyapis::ecosystem::v1::GetLegoAdapterServiceCheckResponse_Error_EcosystemApiError::MergeFrom(
          from._internal_ecosystem_api_error());
      break;
    }
    case REASON_NOT_SET: {
      break;
    }
  }
  _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
}

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

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

void GetLegoAdapterServiceCheckResponse_Error::InternalSwap(GetLegoAdapterServiceCheckResponse_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 GetLegoAdapterServiceCheckResponse_Error::GetTypeName() const {
  return "keyapis.ecosystem.v1.GetLegoAdapterServiceCheckResponse.Error";
}

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

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

const ::keyapis::ecosystem::v1::GetLegoAdapterServiceCheckResponse_Error&
GetLegoAdapterServiceCheckResponse::_Internal::error(const GetLegoAdapterServiceCheckResponse* msg) {
  return *msg->_impl_.type_.error_;
}
void GetLegoAdapterServiceCheckResponse::set_allocated_error(::keyapis::ecosystem::v1::GetLegoAdapterServiceCheckResponse_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.ecosystem.v1.GetLegoAdapterServiceCheckResponse.error)
}
GetLegoAdapterServiceCheckResponse::GetLegoAdapterServiceCheckResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) {
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:keyapis.ecosystem.v1.GetLegoAdapterServiceCheckResponse)
}
GetLegoAdapterServiceCheckResponse::GetLegoAdapterServiceCheckResponse(const GetLegoAdapterServiceCheckResponse& from)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
  GetLegoAdapterServiceCheckResponse* 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::ecosystem::v1::GetLegoAdapterServiceCheckResponse_Error::MergeFrom(
          from._internal_error());
      break;
    }
    case TYPE_NOT_SET: {
      break;
    }
  }
  // @@protoc_insertion_point(copy_constructor:keyapis.ecosystem.v1.GetLegoAdapterServiceCheckResponse)
}

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

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

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

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

void GetLegoAdapterServiceCheckResponse::clear_type() {
// @@protoc_insertion_point(one_of_clear_start:keyapis.ecosystem.v1.GetLegoAdapterServiceCheckResponse)
  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 GetLegoAdapterServiceCheckResponse::Clear() {
// @@protoc_insertion_point(message_clear_start:keyapis.ecosystem.v1.GetLegoAdapterServiceCheckResponse)
  ::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* GetLegoAdapterServiceCheckResponse::_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) {
      // bool data = 1;
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
          _internal_set_data(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr));
          CHK_(ptr);
        } else {
          goto handle_unusual;
        }
        continue;
      // .keyapis.ecosystem.v1.GetLegoAdapterServiceCheckResponse.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* GetLegoAdapterServiceCheckResponse::_InternalSerialize(
    ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:keyapis.ecosystem.v1.GetLegoAdapterServiceCheckResponse)
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  switch (type_case()) {
    case kData: {
      target = stream->EnsureSpace(target);
      target = ::_pbi::WireFormatLite::WriteBoolToArray(
          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.ecosystem.v1.GetLegoAdapterServiceCheckResponse)
  return target;
}

::size_t GetLegoAdapterServiceCheckResponse::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:keyapis.ecosystem.v1.GetLegoAdapterServiceCheckResponse)
  ::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()) {
    // bool data = 1;
    case kData: {
      total_size += 2;
      break;
    }
    // .keyapis.ecosystem.v1.GetLegoAdapterServiceCheckResponse.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 GetLegoAdapterServiceCheckResponse::CheckTypeAndMergeFrom(
    const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
  MergeFrom(*::_pbi::DownCast<const GetLegoAdapterServiceCheckResponse*>(
      &from));
}

void GetLegoAdapterServiceCheckResponse::MergeFrom(const GetLegoAdapterServiceCheckResponse& from) {
  GetLegoAdapterServiceCheckResponse* const _this = this;
  // @@protoc_insertion_point(class_specific_merge_from_start:keyapis.ecosystem.v1.GetLegoAdapterServiceCheckResponse)
  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::ecosystem::v1::GetLegoAdapterServiceCheckResponse_Error::MergeFrom(
          from._internal_error());
      break;
    }
    case TYPE_NOT_SET: {
      break;
    }
  }
  _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
}

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

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

void GetLegoAdapterServiceCheckResponse::InternalSwap(GetLegoAdapterServiceCheckResponse* 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 GetLegoAdapterServiceCheckResponse::GetTypeName() const {
  return "keyapis.ecosystem.v1.GetLegoAdapterServiceCheckResponse";
}

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

class ValidationError::_Internal {
 public:
};

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

    , decltype(_impl_.message_) {}

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

  _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
  _impl_.path_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
        _impl_.path_.Set("", GetArenaForAllocation());
  #endif  // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  if (!from._internal_path().empty()) {
    _this->_impl_.path_.Set(from._internal_path(), _this->GetArenaForAllocation());
  }
  _impl_.message_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
        _impl_.message_.Set("", GetArenaForAllocation());
  #endif  // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  if (!from._internal_message().empty()) {
    _this->_impl_.message_.Set(from._internal_message(), _this->GetArenaForAllocation());
  }
  // @@protoc_insertion_point(copy_constructor:keyapis.ecosystem.v1.ValidationError)
}

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

    , decltype(_impl_.message_) {}

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

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

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

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

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

  _impl_.path_.ClearToEmpty();
  _impl_.message_.ClearToEmpty();
  _internal_metadata_.Clear<std::string>();
}

const char* ValidationError::_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) {
      // string path = 1 [(.google.api.field_behavior) = REQUIRED];
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
          auto str = _internal_mutable_path();
          ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
          CHK_(ptr);
          CHK_(::_pbi::VerifyUTF8(str, nullptr));
        } else {
          goto handle_unusual;
        }
        continue;
      // string message = 2 [(.google.api.field_behavior) = REQUIRED];
      case 2:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
          auto str = _internal_mutable_message();
          ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
          CHK_(ptr);
          CHK_(::_pbi::VerifyUTF8(str, nullptr));
        } else {
          goto handle_unusual;
        }
        continue;
      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* ValidationError::_InternalSerialize(
    ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:keyapis.ecosystem.v1.ValidationError)
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

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

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

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

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

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

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

  if (!from._internal_path().empty()) {
    _this->_internal_set_path(from._internal_path());
  }
  if (!from._internal_message().empty()) {
    _this->_internal_set_message(from._internal_message());
  }
  _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
}

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

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

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

std::string ValidationError::GetTypeName() const {
  return "keyapis.ecosystem.v1.ValidationError";
}

// @@protoc_insertion_point(namespace_scope)
}  // namespace v1
}  // namespace ecosystem
}  // namespace keyapis
PROTOBUF_NAMESPACE_OPEN
template<> PROTOBUF_NOINLINE ::keyapis::ecosystem::v1::Service*
Arena::CreateMaybeMessage< ::keyapis::ecosystem::v1::Service >(Arena* arena) {
  return Arena::CreateMessageInternal< ::keyapis::ecosystem::v1::Service >(arena);
}
template<> PROTOBUF_NOINLINE ::keyapis::ecosystem::v1::GetLegoAdapterServiceCheckRequest*
Arena::CreateMaybeMessage< ::keyapis::ecosystem::v1::GetLegoAdapterServiceCheckRequest >(Arena* arena) {
  return Arena::CreateMessageInternal< ::keyapis::ecosystem::v1::GetLegoAdapterServiceCheckRequest >(arena);
}
template<> PROTOBUF_NOINLINE ::keyapis::ecosystem::v1::GetLegoAdapterServiceCheckResponse_Error_EcosystemApiError*
Arena::CreateMaybeMessage< ::keyapis::ecosystem::v1::GetLegoAdapterServiceCheckResponse_Error_EcosystemApiError >(Arena* arena) {
  return Arena::CreateMessageInternal< ::keyapis::ecosystem::v1::GetLegoAdapterServiceCheckResponse_Error_EcosystemApiError >(arena);
}
template<> PROTOBUF_NOINLINE ::keyapis::ecosystem::v1::GetLegoAdapterServiceCheckResponse_Error*
Arena::CreateMaybeMessage< ::keyapis::ecosystem::v1::GetLegoAdapterServiceCheckResponse_Error >(Arena* arena) {
  return Arena::CreateMessageInternal< ::keyapis::ecosystem::v1::GetLegoAdapterServiceCheckResponse_Error >(arena);
}
template<> PROTOBUF_NOINLINE ::keyapis::ecosystem::v1::GetLegoAdapterServiceCheckResponse*
Arena::CreateMaybeMessage< ::keyapis::ecosystem::v1::GetLegoAdapterServiceCheckResponse >(Arena* arena) {
  return Arena::CreateMessageInternal< ::keyapis::ecosystem::v1::GetLegoAdapterServiceCheckResponse >(arena);
}
template<> PROTOBUF_NOINLINE ::keyapis::ecosystem::v1::ValidationError*
Arena::CreateMaybeMessage< ::keyapis::ecosystem::v1::ValidationError >(Arena* arena) {
  return Arena::CreateMessageInternal< ::keyapis::ecosystem::v1::ValidationError >(arena);
}
PROTOBUF_NAMESPACE_CLOSE
// @@protoc_insertion_point(global_scope)
#include "google/protobuf/port_undef.inc"
