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

#include "keyapis/telemetry_control/v1/keyapis_telemetry_control_building_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 telemetry_control {
namespace v1 {
template <typename>
PROTOBUF_CONSTEXPR PostBuildingRequest::PostBuildingRequest(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_._has_bits_)*/{}
  , /*decltype(_impl_._cached_size_)*/{}
  , /*decltype(_impl_.data_)*/nullptr} {}
struct PostBuildingRequestDefaultTypeInternal {
  PROTOBUF_CONSTEXPR PostBuildingRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  ~PostBuildingRequestDefaultTypeInternal() {}
  union {
    PostBuildingRequest _instance;
  };
};

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PostBuildingRequestDefaultTypeInternal _PostBuildingRequest_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR PutBuildingGroupAttachRequest::PutBuildingGroupAttachRequest(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_._has_bits_)*/{}
  , /*decltype(_impl_._cached_size_)*/{}
  , /*decltype(_impl_.building_group_)*/nullptr} {}
struct PutBuildingGroupAttachRequestDefaultTypeInternal {
  PROTOBUF_CONSTEXPR PutBuildingGroupAttachRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  ~PutBuildingGroupAttachRequestDefaultTypeInternal() {}
  union {
    PutBuildingGroupAttachRequest _instance;
  };
};

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PutBuildingGroupAttachRequestDefaultTypeInternal _PutBuildingGroupAttachRequest_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR PostBuildingResponse::PostBuildingResponse(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_.type_)*/{}
  , /*decltype(_impl_._cached_size_)*/{}
  , /*decltype(_impl_._oneof_case_)*/{}} {}
struct PostBuildingResponseDefaultTypeInternal {
  PROTOBUF_CONSTEXPR PostBuildingResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  ~PostBuildingResponseDefaultTypeInternal() {}
  union {
    PostBuildingResponse _instance;
  };
};

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PostBuildingResponseDefaultTypeInternal _PostBuildingResponse_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR PutBuildingGroupAttachResponse::PutBuildingGroupAttachResponse(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_._cached_size_)*/{}} {}
struct PutBuildingGroupAttachResponseDefaultTypeInternal {
  PROTOBUF_CONSTEXPR PutBuildingGroupAttachResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  ~PutBuildingGroupAttachResponseDefaultTypeInternal() {}
  union {
    PutBuildingGroupAttachResponse _instance;
  };
};

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PutBuildingGroupAttachResponseDefaultTypeInternal _PutBuildingGroupAttachResponse_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR GetBuildingRequest::GetBuildingRequest(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_.id_)*/ 0

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

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetBuildingRequestDefaultTypeInternal _GetBuildingRequest_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR GetBuildingResponse::GetBuildingResponse(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_.type_)*/{}
  , /*decltype(_impl_._cached_size_)*/{}
  , /*decltype(_impl_._oneof_case_)*/{}} {}
struct GetBuildingResponseDefaultTypeInternal {
  PROTOBUF_CONSTEXPR GetBuildingResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  ~GetBuildingResponseDefaultTypeInternal() {}
  union {
    GetBuildingResponse _instance;
  };
};

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

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

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetBuildingGroupListRequestDefaultTypeInternal _GetBuildingGroupListRequest_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR BuildingGroupPaging::BuildingGroupPaging(
    ::_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 BuildingGroupPagingDefaultTypeInternal {
  PROTOBUF_CONSTEXPR BuildingGroupPagingDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  ~BuildingGroupPagingDefaultTypeInternal() {}
  union {
    BuildingGroupPaging _instance;
  };
};

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 BuildingGroupPagingDefaultTypeInternal _BuildingGroupPaging_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR BuildingPaging::BuildingPaging(
    ::_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 BuildingPagingDefaultTypeInternal {
  PROTOBUF_CONSTEXPR BuildingPagingDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  ~BuildingPagingDefaultTypeInternal() {}
  union {
    BuildingPaging _instance;
  };
};

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 BuildingPagingDefaultTypeInternal _BuildingPaging_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR GetBuildingListResponse::GetBuildingListResponse(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_.type_)*/{}
  , /*decltype(_impl_._cached_size_)*/{}
  , /*decltype(_impl_._oneof_case_)*/{}} {}
struct GetBuildingListResponseDefaultTypeInternal {
  PROTOBUF_CONSTEXPR GetBuildingListResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  ~GetBuildingListResponseDefaultTypeInternal() {}
  union {
    GetBuildingListResponse _instance;
  };
};

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetBuildingListResponseDefaultTypeInternal _GetBuildingListResponse_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR GetBuildingGroupListResponse::GetBuildingGroupListResponse(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_.type_)*/{}
  , /*decltype(_impl_._cached_size_)*/{}
  , /*decltype(_impl_._oneof_case_)*/{}} {}
struct GetBuildingGroupListResponseDefaultTypeInternal {
  PROTOBUF_CONSTEXPR GetBuildingGroupListResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  ~GetBuildingGroupListResponseDefaultTypeInternal() {}
  union {
    GetBuildingGroupListResponse _instance;
  };
};

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetBuildingGroupListResponseDefaultTypeInternal _GetBuildingGroupListResponse_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR PostBuildingFullDuplexResponse_RemoveBuildingEvent::PostBuildingFullDuplexResponse_RemoveBuildingEvent(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_.id_)*/ 0

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

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PostBuildingFullDuplexResponse_RemoveBuildingEventDefaultTypeInternal _PostBuildingFullDuplexResponse_RemoveBuildingEvent_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR PostBuildingFullDuplexResponse_UpsertBuildingEvent::PostBuildingFullDuplexResponse_UpsertBuildingEvent(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_._has_bits_)*/{}
  , /*decltype(_impl_._cached_size_)*/{}
  , /*decltype(_impl_.data_)*/nullptr} {}
struct PostBuildingFullDuplexResponse_UpsertBuildingEventDefaultTypeInternal {
  PROTOBUF_CONSTEXPR PostBuildingFullDuplexResponse_UpsertBuildingEventDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  ~PostBuildingFullDuplexResponse_UpsertBuildingEventDefaultTypeInternal() {}
  union {
    PostBuildingFullDuplexResponse_UpsertBuildingEvent _instance;
  };
};

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PostBuildingFullDuplexResponse_UpsertBuildingEventDefaultTypeInternal _PostBuildingFullDuplexResponse_UpsertBuildingEvent_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR PostBuildingFullDuplexResponse::PostBuildingFullDuplexResponse(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_.request_id_)*/ {
    &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {}
  }

  , /*decltype(_impl_.event_)*/{}
  , /*decltype(_impl_._cached_size_)*/{}
  , /*decltype(_impl_._oneof_case_)*/{}} {}
struct PostBuildingFullDuplexResponseDefaultTypeInternal {
  PROTOBUF_CONSTEXPR PostBuildingFullDuplexResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  ~PostBuildingFullDuplexResponseDefaultTypeInternal() {}
  union {
    PostBuildingFullDuplexResponse _instance;
  };
};

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PostBuildingFullDuplexResponseDefaultTypeInternal _PostBuildingFullDuplexResponse_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR PostBuildingFullDuplexRequest_BuildingAsyncStatus_Success::PostBuildingFullDuplexRequest_BuildingAsyncStatus_Success(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_._cached_size_)*/{}} {}
struct PostBuildingFullDuplexRequest_BuildingAsyncStatus_SuccessDefaultTypeInternal {
  PROTOBUF_CONSTEXPR PostBuildingFullDuplexRequest_BuildingAsyncStatus_SuccessDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  ~PostBuildingFullDuplexRequest_BuildingAsyncStatus_SuccessDefaultTypeInternal() {}
  union {
    PostBuildingFullDuplexRequest_BuildingAsyncStatus_Success _instance;
  };
};

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PostBuildingFullDuplexRequest_BuildingAsyncStatus_SuccessDefaultTypeInternal _PostBuildingFullDuplexRequest_BuildingAsyncStatus_Success_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR PostBuildingFullDuplexRequest_BuildingAsyncStatus_Error_UnknownError::PostBuildingFullDuplexRequest_BuildingAsyncStatus_Error_UnknownError(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_.message_)*/ {
    &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {}
  }

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

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PostBuildingFullDuplexRequest_BuildingAsyncStatus_Error_UnknownErrorDefaultTypeInternal _PostBuildingFullDuplexRequest_BuildingAsyncStatus_Error_UnknownError_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR PostBuildingFullDuplexRequest_BuildingAsyncStatus_Error::PostBuildingFullDuplexRequest_BuildingAsyncStatus_Error(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_.reason_)*/{}
  , /*decltype(_impl_._cached_size_)*/{}
  , /*decltype(_impl_._oneof_case_)*/{}} {}
struct PostBuildingFullDuplexRequest_BuildingAsyncStatus_ErrorDefaultTypeInternal {
  PROTOBUF_CONSTEXPR PostBuildingFullDuplexRequest_BuildingAsyncStatus_ErrorDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  ~PostBuildingFullDuplexRequest_BuildingAsyncStatus_ErrorDefaultTypeInternal() {}
  union {
    PostBuildingFullDuplexRequest_BuildingAsyncStatus_Error _instance;
  };
};

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PostBuildingFullDuplexRequest_BuildingAsyncStatus_ErrorDefaultTypeInternal _PostBuildingFullDuplexRequest_BuildingAsyncStatus_Error_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR PostBuildingFullDuplexRequest_BuildingAsyncStatus::PostBuildingFullDuplexRequest_BuildingAsyncStatus(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_.building_id_)*/ 0

  , /*decltype(_impl_.type_)*/{}
  , /*decltype(_impl_._cached_size_)*/{}
  , /*decltype(_impl_._oneof_case_)*/{}} {}
struct PostBuildingFullDuplexRequest_BuildingAsyncStatusDefaultTypeInternal {
  PROTOBUF_CONSTEXPR PostBuildingFullDuplexRequest_BuildingAsyncStatusDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  ~PostBuildingFullDuplexRequest_BuildingAsyncStatusDefaultTypeInternal() {}
  union {
    PostBuildingFullDuplexRequest_BuildingAsyncStatus _instance;
  };
};

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PostBuildingFullDuplexRequest_BuildingAsyncStatusDefaultTypeInternal _PostBuildingFullDuplexRequest_BuildingAsyncStatus_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR PostBuildingFullDuplexRequest::PostBuildingFullDuplexRequest(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_.request_id_)*/ {
    &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {}
  }

  , /*decltype(_impl_.task_)*/{}
  , /*decltype(_impl_._cached_size_)*/{}
  , /*decltype(_impl_._oneof_case_)*/{}} {}
struct PostBuildingFullDuplexRequestDefaultTypeInternal {
  PROTOBUF_CONSTEXPR PostBuildingFullDuplexRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  ~PostBuildingFullDuplexRequestDefaultTypeInternal() {}
  union {
    PostBuildingFullDuplexRequest _instance;
  };
};

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PostBuildingFullDuplexRequestDefaultTypeInternal _PostBuildingFullDuplexRequest_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR BuildingFilter::BuildingFilter(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_._has_bits_)*/{}
  , /*decltype(_impl_._cached_size_)*/{}
  , /*decltype(_impl_.fias_id_)*/{}
  , /*decltype(_impl_.mrf_types_)*/ {}
  , /*decltype(_impl_._mrf_types_cached_byte_size_)*/ { 0 }

  , /*decltype(_impl_.rf_types_)*/ {}
  , /*decltype(_impl_._rf_types_cached_byte_size_)*/ { 0 }

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

  , /*decltype(_impl_.orpons_)*/ {}
  ,/* _impl_._orpons_cached_byte_size_ = */ { 0 }

  , /*decltype(_impl_.title_)*/nullptr
  , /*decltype(_impl_.after_created_at_)*/nullptr
  , /*decltype(_impl_.before_created_at_)*/nullptr} {}
struct BuildingFilterDefaultTypeInternal {
  PROTOBUF_CONSTEXPR BuildingFilterDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  ~BuildingFilterDefaultTypeInternal() {}
  union {
    BuildingFilter _instance;
  };
};

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 BuildingFilterDefaultTypeInternal _BuildingFilter_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR BuildingGroupFilter::BuildingGroupFilter(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_.group_ids_)*/{}
  , /*decltype(_impl_.building_ids_)*/ {}
  ,/* _impl_._building_ids_cached_byte_size_ = */ { 0 }

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

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 BuildingGroupFilterDefaultTypeInternal _BuildingGroupFilter_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR GetBuildingCountRequest::GetBuildingCountRequest(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_._has_bits_)*/{}
  , /*decltype(_impl_._cached_size_)*/{}
  , /*decltype(_impl_.filter_)*/nullptr} {}
struct GetBuildingCountRequestDefaultTypeInternal {
  PROTOBUF_CONSTEXPR GetBuildingCountRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  ~GetBuildingCountRequestDefaultTypeInternal() {}
  union {
    GetBuildingCountRequest _instance;
  };
};

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetBuildingCountRequestDefaultTypeInternal _GetBuildingCountRequest_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR GetBuildingGroupCountRequest::GetBuildingGroupCountRequest(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_._has_bits_)*/{}
  , /*decltype(_impl_._cached_size_)*/{}
  , /*decltype(_impl_.filter_)*/nullptr} {}
struct GetBuildingGroupCountRequestDefaultTypeInternal {
  PROTOBUF_CONSTEXPR GetBuildingGroupCountRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  ~GetBuildingGroupCountRequestDefaultTypeInternal() {}
  union {
    GetBuildingGroupCountRequest _instance;
  };
};

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetBuildingGroupCountRequestDefaultTypeInternal _GetBuildingGroupCountRequest_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR GetBuildingCountResponse::GetBuildingCountResponse(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_.type_)*/{}
  , /*decltype(_impl_._cached_size_)*/{}
  , /*decltype(_impl_._oneof_case_)*/{}} {}
struct GetBuildingCountResponseDefaultTypeInternal {
  PROTOBUF_CONSTEXPR GetBuildingCountResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  ~GetBuildingCountResponseDefaultTypeInternal() {}
  union {
    GetBuildingCountResponse _instance;
  };
};

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetBuildingCountResponseDefaultTypeInternal _GetBuildingCountResponse_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR GetBuildingGroupCountResponse::GetBuildingGroupCountResponse(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_.type_)*/{}
  , /*decltype(_impl_._cached_size_)*/{}
  , /*decltype(_impl_._oneof_case_)*/{}} {}
struct GetBuildingGroupCountResponseDefaultTypeInternal {
  PROTOBUF_CONSTEXPR GetBuildingGroupCountResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  ~GetBuildingGroupCountResponseDefaultTypeInternal() {}
  union {
    GetBuildingGroupCountResponse _instance;
  };
};

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetBuildingGroupCountResponseDefaultTypeInternal _GetBuildingGroupCountResponse_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR DeleteBuildingRequest::DeleteBuildingRequest(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_.id_)*/ 0

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

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DeleteBuildingRequestDefaultTypeInternal _DeleteBuildingRequest_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR DeleteBuildingResponse::DeleteBuildingResponse(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_._cached_size_)*/{}} {}
struct DeleteBuildingResponseDefaultTypeInternal {
  PROTOBUF_CONSTEXPR DeleteBuildingResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  ~DeleteBuildingResponseDefaultTypeInternal() {}
  union {
    DeleteBuildingResponse _instance;
  };
};

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DeleteBuildingResponseDefaultTypeInternal _DeleteBuildingResponse_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR PutBuildingGroupDetachRequest::PutBuildingGroupDetachRequest(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_._has_bits_)*/{}
  , /*decltype(_impl_._cached_size_)*/{}
  , /*decltype(_impl_.building_group_)*/nullptr} {}
struct PutBuildingGroupDetachRequestDefaultTypeInternal {
  PROTOBUF_CONSTEXPR PutBuildingGroupDetachRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  ~PutBuildingGroupDetachRequestDefaultTypeInternal() {}
  union {
    PutBuildingGroupDetachRequest _instance;
  };
};

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PutBuildingGroupDetachRequestDefaultTypeInternal _PutBuildingGroupDetachRequest_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR PutBuildingGroupDetachResponse::PutBuildingGroupDetachResponse(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_._cached_size_)*/{}} {}
struct PutBuildingGroupDetachResponseDefaultTypeInternal {
  PROTOBUF_CONSTEXPR PutBuildingGroupDetachResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  ~PutBuildingGroupDetachResponseDefaultTypeInternal() {}
  union {
    PutBuildingGroupDetachResponse _instance;
  };
};

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PutBuildingGroupDetachResponseDefaultTypeInternal _PutBuildingGroupDetachResponse_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR Building::Building(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_._has_bits_)*/{}
  , /*decltype(_impl_._cached_size_)*/{}
  , /*decltype(_impl_.title_)*/ {
    &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {}
  }

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

  , /*decltype(_impl_.created_at_)*/nullptr
  , /*decltype(_impl_.changed_at_)*/nullptr
  , /*decltype(_impl_.fias_id_)*/nullptr
  , /*decltype(_impl_.id_)*/ 0

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

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

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

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

  , /*decltype(_impl_.status_type_)*/ 0
} {}
struct BuildingDefaultTypeInternal {
  PROTOBUF_CONSTEXPR BuildingDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  ~BuildingDefaultTypeInternal() {}
  union {
    Building _instance;
  };
};

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 BuildingDefaultTypeInternal _Building_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR BuildingGroup::BuildingGroup(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_.group_id_)*/ {
    &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {}
  }

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

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

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 BuildingGroupDefaultTypeInternal _BuildingGroup_default_instance_;
}  // namespace v1
}  // namespace telemetry_control
}  // namespace keyapis
namespace keyapis {
namespace telemetry_control {
namespace v1 {
bool BuildingGroupPaging_OrderByType_IsValid(int value) {
  switch (value) {
    case 0:
    case 1:
    case 2:
      return true;
    default:
      return false;
  }
}
static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<std::string>
    BuildingGroupPaging_OrderByType_strings[3] = {};

static const char BuildingGroupPaging_OrderByType_names[] = {
    "BUILDING_ID"
    "GROUP_ID"
    "ORDER_BY_TYPE_UNKNOWN"
};

static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry BuildingGroupPaging_OrderByType_entries[] =
    {
        {{&BuildingGroupPaging_OrderByType_names[0], 11}, 2},
        {{&BuildingGroupPaging_OrderByType_names[11], 8}, 1},
        {{&BuildingGroupPaging_OrderByType_names[19], 21}, 0},
};

static const int BuildingGroupPaging_OrderByType_entries_by_number[] = {
    2,  // 0 -> ORDER_BY_TYPE_UNKNOWN
    1,  // 1 -> GROUP_ID
    0,  // 2 -> BUILDING_ID
};

const std::string& BuildingGroupPaging_OrderByType_Name(BuildingGroupPaging_OrderByType value) {
  static const bool kDummy =
      ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings(
          BuildingGroupPaging_OrderByType_entries, BuildingGroupPaging_OrderByType_entries_by_number,
          3, BuildingGroupPaging_OrderByType_strings);
  (void)kDummy;

  int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName(
      BuildingGroupPaging_OrderByType_entries, BuildingGroupPaging_OrderByType_entries_by_number, 3,
      value);
  return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString()
                   : BuildingGroupPaging_OrderByType_strings[idx].get();
}

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

constexpr BuildingGroupPaging_OrderByType BuildingGroupPaging::ORDER_BY_TYPE_UNKNOWN;
constexpr BuildingGroupPaging_OrderByType BuildingGroupPaging::GROUP_ID;
constexpr BuildingGroupPaging_OrderByType BuildingGroupPaging::BUILDING_ID;
constexpr BuildingGroupPaging_OrderByType BuildingGroupPaging::OrderByType_MIN;
constexpr BuildingGroupPaging_OrderByType BuildingGroupPaging::OrderByType_MAX;
constexpr int BuildingGroupPaging::OrderByType_ARRAYSIZE;

#endif  // (__cplusplus < 201703) &&
        // (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
bool BuildingGroupPaging_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>
    BuildingGroupPaging_DirectionType_strings[3] = {};

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

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

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

const std::string& BuildingGroupPaging_DirectionType_Name(BuildingGroupPaging_DirectionType value) {
  static const bool kDummy =
      ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings(
          BuildingGroupPaging_DirectionType_entries, BuildingGroupPaging_DirectionType_entries_by_number,
          3, BuildingGroupPaging_DirectionType_strings);
  (void)kDummy;

  int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName(
      BuildingGroupPaging_DirectionType_entries, BuildingGroupPaging_DirectionType_entries_by_number, 3,
      value);
  return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString()
                   : BuildingGroupPaging_DirectionType_strings[idx].get();
}

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

constexpr BuildingGroupPaging_DirectionType BuildingGroupPaging::DIRECTION_TYPE_UNKNOWN;
constexpr BuildingGroupPaging_DirectionType BuildingGroupPaging::DESC;
constexpr BuildingGroupPaging_DirectionType BuildingGroupPaging::ASC;
constexpr BuildingGroupPaging_DirectionType BuildingGroupPaging::DirectionType_MIN;
constexpr BuildingGroupPaging_DirectionType BuildingGroupPaging::DirectionType_MAX;
constexpr int BuildingGroupPaging::DirectionType_ARRAYSIZE;

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

static const char BuildingPaging_OrderByType_names[] = {
    "CHANGED_AT"
    "CREATED_AT"
    "FIAS_ID"
    "ID"
    "ORDER_BY_TYPE_UNKNOWN"
    "TITLE"
};

static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry BuildingPaging_OrderByType_entries[] =
    {
        {{&BuildingPaging_OrderByType_names[0], 10}, 4},
        {{&BuildingPaging_OrderByType_names[10], 10}, 3},
        {{&BuildingPaging_OrderByType_names[20], 7}, 5},
        {{&BuildingPaging_OrderByType_names[27], 2}, 1},
        {{&BuildingPaging_OrderByType_names[29], 21}, 0},
        {{&BuildingPaging_OrderByType_names[50], 5}, 2},
};

static const int BuildingPaging_OrderByType_entries_by_number[] = {
    4,  // 0 -> ORDER_BY_TYPE_UNKNOWN
    3,  // 1 -> ID
    5,  // 2 -> TITLE
    1,  // 3 -> CREATED_AT
    0,  // 4 -> CHANGED_AT
    2,  // 5 -> FIAS_ID
};

const std::string& BuildingPaging_OrderByType_Name(BuildingPaging_OrderByType value) {
  static const bool kDummy =
      ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings(
          BuildingPaging_OrderByType_entries, BuildingPaging_OrderByType_entries_by_number,
          6, BuildingPaging_OrderByType_strings);
  (void)kDummy;

  int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName(
      BuildingPaging_OrderByType_entries, BuildingPaging_OrderByType_entries_by_number, 6,
      value);
  return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString()
                   : BuildingPaging_OrderByType_strings[idx].get();
}

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

constexpr BuildingPaging_OrderByType BuildingPaging::ORDER_BY_TYPE_UNKNOWN;
constexpr BuildingPaging_OrderByType BuildingPaging::ID;
constexpr BuildingPaging_OrderByType BuildingPaging::TITLE;
constexpr BuildingPaging_OrderByType BuildingPaging::CREATED_AT;
constexpr BuildingPaging_OrderByType BuildingPaging::CHANGED_AT;
constexpr BuildingPaging_OrderByType BuildingPaging::FIAS_ID;
constexpr BuildingPaging_OrderByType BuildingPaging::OrderByType_MIN;
constexpr BuildingPaging_OrderByType BuildingPaging::OrderByType_MAX;
constexpr int BuildingPaging::OrderByType_ARRAYSIZE;

#endif  // (__cplusplus < 201703) &&
        // (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
bool BuildingPaging_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>
    BuildingPaging_DirectionType_strings[3] = {};

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

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

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

const std::string& BuildingPaging_DirectionType_Name(BuildingPaging_DirectionType value) {
  static const bool kDummy =
      ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings(
          BuildingPaging_DirectionType_entries, BuildingPaging_DirectionType_entries_by_number,
          3, BuildingPaging_DirectionType_strings);
  (void)kDummy;

  int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName(
      BuildingPaging_DirectionType_entries, BuildingPaging_DirectionType_entries_by_number, 3,
      value);
  return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString()
                   : BuildingPaging_DirectionType_strings[idx].get();
}

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

constexpr BuildingPaging_DirectionType BuildingPaging::DIRECTION_TYPE_UNKNOWN;
constexpr BuildingPaging_DirectionType BuildingPaging::DESC;
constexpr BuildingPaging_DirectionType BuildingPaging::ASC;
constexpr BuildingPaging_DirectionType BuildingPaging::DirectionType_MIN;
constexpr BuildingPaging_DirectionType BuildingPaging::DirectionType_MAX;
constexpr int BuildingPaging::DirectionType_ARRAYSIZE;

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

static const char Building_MrfType_names[] = {
    "DALNIY_VOSTOK"
    "MRF_TYPE_UNKNOWN"
    "SEVERO_ZAPAD"
    "SIBIR"
    "TSENTR"
    "URAL"
    "VOLGA"
    "YUG"
};

static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry Building_MrfType_entries[] =
    {
        {{&Building_MrfType_names[0], 13}, 6},
        {{&Building_MrfType_names[13], 16}, 0},
        {{&Building_MrfType_names[29], 12}, 5},
        {{&Building_MrfType_names[41], 5}, 4},
        {{&Building_MrfType_names[46], 6}, 1},
        {{&Building_MrfType_names[52], 4}, 3},
        {{&Building_MrfType_names[56], 5}, 7},
        {{&Building_MrfType_names[61], 3}, 2},
};

static const int Building_MrfType_entries_by_number[] = {
    1,  // 0 -> MRF_TYPE_UNKNOWN
    4,  // 1 -> TSENTR
    7,  // 2 -> YUG
    5,  // 3 -> URAL
    3,  // 4 -> SIBIR
    2,  // 5 -> SEVERO_ZAPAD
    0,  // 6 -> DALNIY_VOSTOK
    6,  // 7 -> VOLGA
};

const std::string& Building_MrfType_Name(Building_MrfType value) {
  static const bool kDummy =
      ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings(
          Building_MrfType_entries, Building_MrfType_entries_by_number,
          8, Building_MrfType_strings);
  (void)kDummy;

  int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName(
      Building_MrfType_entries, Building_MrfType_entries_by_number, 8,
      value);
  return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString()
                   : Building_MrfType_strings[idx].get();
}

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

constexpr Building_MrfType Building::MRF_TYPE_UNKNOWN;
constexpr Building_MrfType Building::TSENTR;
constexpr Building_MrfType Building::YUG;
constexpr Building_MrfType Building::URAL;
constexpr Building_MrfType Building::SIBIR;
constexpr Building_MrfType Building::SEVERO_ZAPAD;
constexpr Building_MrfType Building::DALNIY_VOSTOK;
constexpr Building_MrfType Building::VOLGA;
constexpr Building_MrfType Building::MrfType_MIN;
constexpr Building_MrfType Building::MrfType_MAX;
constexpr int Building::MrfType_ARRAYSIZE;

#endif  // (__cplusplus < 201703) &&
        // (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
bool Building_RfType_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:
    case 17:
    case 18:
    case 19:
    case 20:
    case 21:
    case 22:
    case 23:
    case 24:
    case 25:
    case 26:
    case 27:
    case 28:
    case 29:
    case 30:
    case 31:
    case 32:
    case 33:
    case 34:
    case 35:
    case 36:
    case 37:
    case 38:
    case 39:
    case 40:
    case 41:
    case 42:
    case 43:
    case 44:
    case 45:
    case 46:
    case 47:
    case 48:
    case 49:
    case 50:
    case 51:
    case 52:
    case 53:
    case 54:
    case 55:
    case 56:
    case 57:
    case 58:
    case 59:
    case 60:
    case 61:
    case 62:
    case 63:
    case 64:
    case 65:
    case 66:
    case 67:
    case 68:
    case 69:
    case 70:
    case 71:
    case 72:
    case 73:
    case 74:
    case 75:
    case 76:
    case 77:
    case 78:
    case 79:
    case 80:
    case 81:
    case 82:
      return true;
    default:
      return false;
  }
}
static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<std::string>
    Building_RfType_strings[83] = {};

static const char Building_RfType_names[] = {
    "ALTAI"
    "AMUR"
    "ARCHANGELSK"
    "ASTRAKHAN"
    "BELGOROD"
    "BRYANSK"
    "BURYATIYA"
    "CHELYABINSK"
    "CHERKESSK"
    "CHITA"
    "CHUKOTKA"
    "CHUVASHIYA"
    "EAO"
    "EKT"
    "ELISTA"
    "HAKASIYA"
    "HANTY"
    "INGUSHETIA"
    "IRKUTSK"
    "IVANOVO"
    "KALININGRAD"
    "KALUGA"
    "KAMCHATKA"
    "KARELIA"
    "KAZAN"
    "KEMEROVO"
    "KHABAROVSK"
    "KIROV"
    "KOMI"
    "KOSTROMA"
    "KRASNODAR"
    "KRASNOYARSK"
    "KURGAN"
    "KURSK"
    "LENOBLAST"
    "LIPETSK"
    "MAGADAN"
    "MAHACHKALA"
    "MARYEL"
    "MAYKOP"
    "MORDOVIYA"
    "MOSCOW"
    "MOSOBLAST"
    "MURMANSK"
    "NALCHIK"
    "NNOVGOROD"
    "NOVGOROD"
    "NOVOSIBIRSK"
    "OMSK"
    "OREL"
    "ORENBURG"
    "PENZA"
    "PERM"
    "PRIMORYE"
    "PSKOV"
    "RALTAY"
    "RF_TYPE_UNKNOWN"
    "ROSTOV"
    "RYAZAN"
    "SAKHA"
    "SAKHALIN"
    "SAMARA"
    "SARATOV"
    "SMOLENSK"
    "SPB"
    "STAVROPOL"
    "TAMBOV"
    "TEST"
    "TOMSK"
    "TULA"
    "TUMEN"
    "TUVA"
    "TVER"
    "UDMURTIYA"
    "UFA"
    "ULYANOVSK"
    "VLADIKAVKAZ"
    "VLADIMIR"
    "VOLGOGRAD"
    "VOLOGDA"
    "VORONEZH"
    "YAMAL"
    "YAROSLAVL"
};

static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry Building_RfType_entries[] =
    {
        {{&Building_RfType_names[0], 5}, 39},
        {{&Building_RfType_names[5], 4}, 21},
        {{&Building_RfType_names[9], 11}, 29},
        {{&Building_RfType_names[20], 9}, 79},
        {{&Building_RfType_names[29], 8}, 50},
        {{&Building_RfType_names[37], 7}, 72},
        {{&Building_RfType_names[44], 9}, 40},
        {{&Building_RfType_names[53], 11}, 55},
        {{&Building_RfType_names[64], 9}, 77},
        {{&Building_RfType_names[73], 5}, 27},
        {{&Building_RfType_names[78], 8}, 28},
        {{&Building_RfType_names[86], 10}, 70},
        {{&Building_RfType_names[96], 3}, 17},
        {{&Building_RfType_names[99], 3}, 52},
        {{&Building_RfType_names[102], 6}, 61},
        {{&Building_RfType_names[108], 8}, 45},
        {{&Building_RfType_names[116], 5}, 20},
        {{&Building_RfType_names[121], 10}, 59},
        {{&Building_RfType_names[131], 7}, 41},
        {{&Building_RfType_names[138], 7}, 3},
        {{&Building_RfType_names[145], 11}, 31},
        {{&Building_RfType_names[156], 6}, 4},
        {{&Building_RfType_names[162], 9}, 22},
        {{&Building_RfType_names[171], 7}, 32},
        {{&Building_RfType_names[178], 5}, 65},
        {{&Building_RfType_names[183], 8}, 42},
        {{&Building_RfType_names[191], 10}, 26},
        {{&Building_RfType_names[201], 5}, 2},
        {{&Building_RfType_names[206], 4}, 33},
        {{&Building_RfType_names[210], 8}, 5},
        {{&Building_RfType_names[218], 9}, 80},
        {{&Building_RfType_names[227], 11}, 43},
        {{&Building_RfType_names[238], 6}, 18},
        {{&Building_RfType_names[244], 5}, 6},
        {{&Building_RfType_names[249], 9}, 34},
        {{&Building_RfType_names[258], 7}, 7},
        {{&Building_RfType_names[265], 7}, 23},
        {{&Building_RfType_names[272], 10}, 63},
        {{&Building_RfType_names[282], 6}, 57},
        {{&Building_RfType_names[288], 6}, 78},
        {{&Building_RfType_names[294], 9}, 64},
        {{&Building_RfType_names[303], 6}, 16},
        {{&Building_RfType_names[309], 9}, 8},
        {{&Building_RfType_names[318], 8}, 35},
        {{&Building_RfType_names[326], 7}, 60},
        {{&Building_RfType_names[333], 9}, 71},
        {{&Building_RfType_names[342], 8}, 36},
        {{&Building_RfType_names[350], 11}, 82},
        {{&Building_RfType_names[361], 4}, 44},
        {{&Building_RfType_names[365], 4}, 9},
        {{&Building_RfType_names[369], 8}, 49},
        {{&Building_RfType_names[377], 5}, 58},
        {{&Building_RfType_names[382], 4}, 56},
        {{&Building_RfType_names[386], 8}, 24},
        {{&Building_RfType_names[394], 5}, 37},
        {{&Building_RfType_names[399], 6}, 46},
        {{&Building_RfType_names[405], 15}, 0},
        {{&Building_RfType_names[420], 6}, 62},
        {{&Building_RfType_names[426], 6}, 10},
        {{&Building_RfType_names[432], 5}, 51},
        {{&Building_RfType_names[437], 8}, 25},
        {{&Building_RfType_names[445], 6}, 66},
        {{&Building_RfType_names[451], 7}, 67},
        {{&Building_RfType_names[458], 8}, 14},
        {{&Building_RfType_names[466], 3}, 38},
        {{&Building_RfType_names[469], 9}, 76},
        {{&Building_RfType_names[478], 6}, 11},
        {{&Building_RfType_names[484], 4}, 81},
        {{&Building_RfType_names[488], 5}, 48},
        {{&Building_RfType_names[493], 4}, 15},
        {{&Building_RfType_names[497], 5}, 19},
        {{&Building_RfType_names[502], 4}, 47},
        {{&Building_RfType_names[506], 4}, 12},
        {{&Building_RfType_names[510], 9}, 68},
        {{&Building_RfType_names[519], 3}, 1},
        {{&Building_RfType_names[522], 9}, 69},
        {{&Building_RfType_names[531], 11}, 75},
        {{&Building_RfType_names[542], 8}, 73},
        {{&Building_RfType_names[550], 9}, 53},
        {{&Building_RfType_names[559], 7}, 30},
        {{&Building_RfType_names[566], 8}, 74},
        {{&Building_RfType_names[574], 5}, 54},
        {{&Building_RfType_names[579], 9}, 13},
};

static const int Building_RfType_entries_by_number[] = {
    56,  // 0 -> RF_TYPE_UNKNOWN
    74,  // 1 -> UFA
    27,  // 2 -> KIROV
    19,  // 3 -> IVANOVO
    21,  // 4 -> KALUGA
    29,  // 5 -> KOSTROMA
    33,  // 6 -> KURSK
    35,  // 7 -> LIPETSK
    42,  // 8 -> MOSOBLAST
    49,  // 9 -> OREL
    58,  // 10 -> RYAZAN
    66,  // 11 -> TAMBOV
    72,  // 12 -> TVER
    82,  // 13 -> YAROSLAVL
    63,  // 14 -> SMOLENSK
    69,  // 15 -> TULA
    41,  // 16 -> MOSCOW
    12,  // 17 -> EAO
    32,  // 18 -> KURGAN
    70,  // 19 -> TUMEN
    16,  // 20 -> HANTY
    1,  // 21 -> AMUR
    22,  // 22 -> KAMCHATKA
    36,  // 23 -> MAGADAN
    53,  // 24 -> PRIMORYE
    60,  // 25 -> SAKHALIN
    26,  // 26 -> KHABAROVSK
    9,  // 27 -> CHITA
    10,  // 28 -> CHUKOTKA
    2,  // 29 -> ARCHANGELSK
    79,  // 30 -> VOLOGDA
    20,  // 31 -> KALININGRAD
    23,  // 32 -> KARELIA
    28,  // 33 -> KOMI
    34,  // 34 -> LENOBLAST
    43,  // 35 -> MURMANSK
    46,  // 36 -> NOVGOROD
    54,  // 37 -> PSKOV
    64,  // 38 -> SPB
    0,  // 39 -> ALTAI
    6,  // 40 -> BURYATIYA
    18,  // 41 -> IRKUTSK
    25,  // 42 -> KEMEROVO
    31,  // 43 -> KRASNOYARSK
    48,  // 44 -> OMSK
    15,  // 45 -> HAKASIYA
    55,  // 46 -> RALTAY
    71,  // 47 -> TUVA
    68,  // 48 -> TOMSK
    50,  // 49 -> ORENBURG
    4,  // 50 -> BELGOROD
    59,  // 51 -> SAKHA
    13,  // 52 -> EKT
    78,  // 53 -> VOLGOGRAD
    81,  // 54 -> YAMAL
    7,  // 55 -> CHELYABINSK
    52,  // 56 -> PERM
    38,  // 57 -> MARYEL
    51,  // 58 -> PENZA
    17,  // 59 -> INGUSHETIA
    44,  // 60 -> NALCHIK
    14,  // 61 -> ELISTA
    57,  // 62 -> ROSTOV
    37,  // 63 -> MAHACHKALA
    40,  // 64 -> MORDOVIYA
    24,  // 65 -> KAZAN
    61,  // 66 -> SAMARA
    62,  // 67 -> SARATOV
    73,  // 68 -> UDMURTIYA
    75,  // 69 -> ULYANOVSK
    11,  // 70 -> CHUVASHIYA
    45,  // 71 -> NNOVGOROD
    5,  // 72 -> BRYANSK
    77,  // 73 -> VLADIMIR
    80,  // 74 -> VORONEZH
    76,  // 75 -> VLADIKAVKAZ
    65,  // 76 -> STAVROPOL
    8,  // 77 -> CHERKESSK
    39,  // 78 -> MAYKOP
    3,  // 79 -> ASTRAKHAN
    30,  // 80 -> KRASNODAR
    67,  // 81 -> TEST
    47,  // 82 -> NOVOSIBIRSK
};

const std::string& Building_RfType_Name(Building_RfType value) {
  static const bool kDummy =
      ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings(
          Building_RfType_entries, Building_RfType_entries_by_number,
          83, Building_RfType_strings);
  (void)kDummy;

  int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName(
      Building_RfType_entries, Building_RfType_entries_by_number, 83,
      value);
  return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString()
                   : Building_RfType_strings[idx].get();
}

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

constexpr Building_RfType Building::RF_TYPE_UNKNOWN;
constexpr Building_RfType Building::UFA;
constexpr Building_RfType Building::KIROV;
constexpr Building_RfType Building::IVANOVO;
constexpr Building_RfType Building::KALUGA;
constexpr Building_RfType Building::KOSTROMA;
constexpr Building_RfType Building::KURSK;
constexpr Building_RfType Building::LIPETSK;
constexpr Building_RfType Building::MOSOBLAST;
constexpr Building_RfType Building::OREL;
constexpr Building_RfType Building::RYAZAN;
constexpr Building_RfType Building::TAMBOV;
constexpr Building_RfType Building::TVER;
constexpr Building_RfType Building::YAROSLAVL;
constexpr Building_RfType Building::SMOLENSK;
constexpr Building_RfType Building::TULA;
constexpr Building_RfType Building::MOSCOW;
constexpr Building_RfType Building::EAO;
constexpr Building_RfType Building::KURGAN;
constexpr Building_RfType Building::TUMEN;
constexpr Building_RfType Building::HANTY;
constexpr Building_RfType Building::AMUR;
constexpr Building_RfType Building::KAMCHATKA;
constexpr Building_RfType Building::MAGADAN;
constexpr Building_RfType Building::PRIMORYE;
constexpr Building_RfType Building::SAKHALIN;
constexpr Building_RfType Building::KHABAROVSK;
constexpr Building_RfType Building::CHITA;
constexpr Building_RfType Building::CHUKOTKA;
constexpr Building_RfType Building::ARCHANGELSK;
constexpr Building_RfType Building::VOLOGDA;
constexpr Building_RfType Building::KALININGRAD;
constexpr Building_RfType Building::KARELIA;
constexpr Building_RfType Building::KOMI;
constexpr Building_RfType Building::LENOBLAST;
constexpr Building_RfType Building::MURMANSK;
constexpr Building_RfType Building::NOVGOROD;
constexpr Building_RfType Building::PSKOV;
constexpr Building_RfType Building::SPB;
constexpr Building_RfType Building::ALTAI;
constexpr Building_RfType Building::BURYATIYA;
constexpr Building_RfType Building::IRKUTSK;
constexpr Building_RfType Building::KEMEROVO;
constexpr Building_RfType Building::KRASNOYARSK;
constexpr Building_RfType Building::OMSK;
constexpr Building_RfType Building::HAKASIYA;
constexpr Building_RfType Building::RALTAY;
constexpr Building_RfType Building::TUVA;
constexpr Building_RfType Building::TOMSK;
constexpr Building_RfType Building::ORENBURG;
constexpr Building_RfType Building::BELGOROD;
constexpr Building_RfType Building::SAKHA;
constexpr Building_RfType Building::EKT;
constexpr Building_RfType Building::VOLGOGRAD;
constexpr Building_RfType Building::YAMAL;
constexpr Building_RfType Building::CHELYABINSK;
constexpr Building_RfType Building::PERM;
constexpr Building_RfType Building::MARYEL;
constexpr Building_RfType Building::PENZA;
constexpr Building_RfType Building::INGUSHETIA;
constexpr Building_RfType Building::NALCHIK;
constexpr Building_RfType Building::ELISTA;
constexpr Building_RfType Building::ROSTOV;
constexpr Building_RfType Building::MAHACHKALA;
constexpr Building_RfType Building::MORDOVIYA;
constexpr Building_RfType Building::KAZAN;
constexpr Building_RfType Building::SAMARA;
constexpr Building_RfType Building::SARATOV;
constexpr Building_RfType Building::UDMURTIYA;
constexpr Building_RfType Building::ULYANOVSK;
constexpr Building_RfType Building::CHUVASHIYA;
constexpr Building_RfType Building::NNOVGOROD;
constexpr Building_RfType Building::BRYANSK;
constexpr Building_RfType Building::VLADIMIR;
constexpr Building_RfType Building::VORONEZH;
constexpr Building_RfType Building::VLADIKAVKAZ;
constexpr Building_RfType Building::STAVROPOL;
constexpr Building_RfType Building::CHERKESSK;
constexpr Building_RfType Building::MAYKOP;
constexpr Building_RfType Building::ASTRAKHAN;
constexpr Building_RfType Building::KRASNODAR;
constexpr Building_RfType Building::TEST;
constexpr Building_RfType Building::NOVOSIBIRSK;
constexpr Building_RfType Building::RfType_MIN;
constexpr Building_RfType Building::RfType_MAX;
constexpr int Building::RfType_ARRAYSIZE;

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

static const char Building_StatusType_names[] = {
    "ACCEPTANCE"
    "ACTIVE"
    "ARCHIVE"
    "BUILDING"
    "CANCELLED"
    "STATUS_TYPE_UNKNOWN"
    "TEST_STATUS_TYPE"
};

static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry Building_StatusType_entries[] =
    {
        {{&Building_StatusType_names[0], 10}, 2},
        {{&Building_StatusType_names[10], 6}, 3},
        {{&Building_StatusType_names[16], 7}, 4},
        {{&Building_StatusType_names[23], 8}, 1},
        {{&Building_StatusType_names[31], 9}, 5},
        {{&Building_StatusType_names[40], 19}, 0},
        {{&Building_StatusType_names[59], 16}, 6},
};

static const int Building_StatusType_entries_by_number[] = {
    5,  // 0 -> STATUS_TYPE_UNKNOWN
    3,  // 1 -> BUILDING
    0,  // 2 -> ACCEPTANCE
    1,  // 3 -> ACTIVE
    2,  // 4 -> ARCHIVE
    4,  // 5 -> CANCELLED
    6,  // 6 -> TEST_STATUS_TYPE
};

const std::string& Building_StatusType_Name(Building_StatusType value) {
  static const bool kDummy =
      ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings(
          Building_StatusType_entries, Building_StatusType_entries_by_number,
          7, Building_StatusType_strings);
  (void)kDummy;

  int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName(
      Building_StatusType_entries, Building_StatusType_entries_by_number, 7,
      value);
  return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString()
                   : Building_StatusType_strings[idx].get();
}

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

constexpr Building_StatusType Building::STATUS_TYPE_UNKNOWN;
constexpr Building_StatusType Building::BUILDING;
constexpr Building_StatusType Building::ACCEPTANCE;
constexpr Building_StatusType Building::ACTIVE;
constexpr Building_StatusType Building::ARCHIVE;
constexpr Building_StatusType Building::CANCELLED;
constexpr Building_StatusType Building::TEST_STATUS_TYPE;
constexpr Building_StatusType Building::StatusType_MIN;
constexpr Building_StatusType Building::StatusType_MAX;
constexpr int Building::StatusType_ARRAYSIZE;

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

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

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

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

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

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

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

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

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

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

const char* PostBuildingRequest::_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.telemetry_control.v1.Building data = 1 [(.google.api.field_behavior) = REQUIRED];
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
          ptr = ctx->ParseMessage(_internal_mutable_data(), ptr);
          CHK_(ptr);
        } else {
          goto handle_unusual;
        }
        continue;
      default:
        goto handle_unusual;
    }  // switch
  handle_unusual:
    if ((tag == 0) || ((tag & 7) == 4)) {
      CHK_(ptr);
      ctx->SetLastTag(tag);
      goto message_done;
    }
    ptr = UnknownFieldParse(
        tag,
        _internal_metadata_.mutable_unknown_fields<std::string>(),
        ptr, ctx);
    CHK_(ptr != nullptr);
  }  // while
message_done:
  _impl_._has_bits_.Or(has_bits);
  return ptr;
failure:
  ptr = nullptr;
  goto message_done;
#undef CHK_
}

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

  cached_has_bits = _impl_._has_bits_[0];
  // .keyapis.telemetry_control.v1.Building data = 1 [(.google.api.field_behavior) = REQUIRED];
  if (cached_has_bits & 0x00000001u) {
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
      InternalWriteMessage(1, _Internal::data(this),
        _Internal::data(this).GetCachedSize(), target, stream);
  }

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

::size_t PostBuildingRequest::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:keyapis.telemetry_control.v1.PostBuildingRequest)
  ::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.telemetry_control.v1.Building data = 1 [(.google.api.field_behavior) = REQUIRED];
  cached_has_bits = _impl_._has_bits_[0];
  if (cached_has_bits & 0x00000001u) {
    total_size += 1 +
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
        *_impl_.data_);
  }

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

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

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

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

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

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

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

std::string PostBuildingRequest::GetTypeName() const {
  return "keyapis.telemetry_control.v1.PostBuildingRequest";
}

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

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

const ::keyapis::telemetry_control::v1::BuildingGroup&
PutBuildingGroupAttachRequest::_Internal::building_group(const PutBuildingGroupAttachRequest* msg) {
  return *msg->_impl_.building_group_;
}
PutBuildingGroupAttachRequest::PutBuildingGroupAttachRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) {
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:keyapis.telemetry_control.v1.PutBuildingGroupAttachRequest)
}
PutBuildingGroupAttachRequest::PutBuildingGroupAttachRequest(const PutBuildingGroupAttachRequest& from)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
  PutBuildingGroupAttachRequest* const _this = this; (void)_this;
  new (&_impl_) Impl_{
      decltype(_impl_._has_bits_){from._impl_._has_bits_}
    , /*decltype(_impl_._cached_size_)*/{}
    , decltype(_impl_.building_group_){nullptr}};

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

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

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

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

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

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

const char* PutBuildingGroupAttachRequest::_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.telemetry_control.v1.BuildingGroup building_group = 1 [(.google.api.field_behavior) = REQUIRED];
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
          ptr = ctx->ParseMessage(_internal_mutable_building_group(), 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* PutBuildingGroupAttachRequest::_InternalSerialize(
    ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:keyapis.telemetry_control.v1.PutBuildingGroupAttachRequest)
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  cached_has_bits = _impl_._has_bits_[0];
  // .keyapis.telemetry_control.v1.BuildingGroup building_group = 1 [(.google.api.field_behavior) = REQUIRED];
  if (cached_has_bits & 0x00000001u) {
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
      InternalWriteMessage(1, _Internal::building_group(this),
        _Internal::building_group(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.telemetry_control.v1.PutBuildingGroupAttachRequest)
  return target;
}

::size_t PutBuildingGroupAttachRequest::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:keyapis.telemetry_control.v1.PutBuildingGroupAttachRequest)
  ::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.telemetry_control.v1.BuildingGroup building_group = 1 [(.google.api.field_behavior) = REQUIRED];
  cached_has_bits = _impl_._has_bits_[0];
  if (cached_has_bits & 0x00000001u) {
    total_size += 1 +
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
        *_impl_.building_group_);
  }

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

void PutBuildingGroupAttachRequest::MergeFrom(const PutBuildingGroupAttachRequest& from) {
  PutBuildingGroupAttachRequest* const _this = this;
  // @@protoc_insertion_point(class_specific_merge_from_start:keyapis.telemetry_control.v1.PutBuildingGroupAttachRequest)
  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_building_group()->::keyapis::telemetry_control::v1::BuildingGroup::MergeFrom(
        from._internal_building_group());
  }
  _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
}

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

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

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

std::string PutBuildingGroupAttachRequest::GetTypeName() const {
  return "keyapis.telemetry_control.v1.PutBuildingGroupAttachRequest";
}

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

class PostBuildingResponse::_Internal {
 public:
  static constexpr ::int32_t kOneofCaseOffset =
    PROTOBUF_FIELD_OFFSET(::keyapis::telemetry_control::v1::PostBuildingResponse, _impl_._oneof_case_);
  static const ::keyapis::telemetry_control::v1::Building& data(const PostBuildingResponse* msg);
};

const ::keyapis::telemetry_control::v1::Building&
PostBuildingResponse::_Internal::data(const PostBuildingResponse* msg) {
  return *msg->_impl_.type_.data_;
}
void PostBuildingResponse::set_allocated_data(::keyapis::telemetry_control::v1::Building* 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.telemetry_control.v1.PostBuildingResponse.data)
}
PostBuildingResponse::PostBuildingResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) {
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:keyapis.telemetry_control.v1.PostBuildingResponse)
}
PostBuildingResponse::PostBuildingResponse(const PostBuildingResponse& from)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
  PostBuildingResponse* 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::telemetry_control::v1::Building::MergeFrom(
          from._internal_data());
      break;
    }
    case TYPE_NOT_SET: {
      break;
    }
  }
  // @@protoc_insertion_point(copy_constructor:keyapis.telemetry_control.v1.PostBuildingResponse)
}

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

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

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

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

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


void PostBuildingResponse::Clear() {
// @@protoc_insertion_point(message_clear_start:keyapis.telemetry_control.v1.PostBuildingResponse)
  ::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* PostBuildingResponse::_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.telemetry_control.v1.Building data = 1;
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
          ptr = ctx->ParseMessage(_internal_mutable_data(), ptr);
          CHK_(ptr);
        } else {
          goto handle_unusual;
        }
        continue;
      default:
        goto handle_unusual;
    }  // switch
  handle_unusual:
    if ((tag == 0) || ((tag & 7) == 4)) {
      CHK_(ptr);
      ctx->SetLastTag(tag);
      goto message_done;
    }
    ptr = UnknownFieldParse(
        tag,
        _internal_metadata_.mutable_unknown_fields<std::string>(),
        ptr, ctx);
    CHK_(ptr != nullptr);
  }  // while
message_done:
  return ptr;
failure:
  ptr = nullptr;
  goto message_done;
#undef CHK_
}

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

  // .keyapis.telemetry_control.v1.Building data = 1;
  if (type_case() == kData) {
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
      InternalWriteMessage(1, _Internal::data(this),
        _Internal::data(this).GetCachedSize(), target, stream);
  }

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

::size_t PostBuildingResponse::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:keyapis.telemetry_control.v1.PostBuildingResponse)
  ::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.telemetry_control.v1.Building data = 1;
    case kData: {
      total_size += 1 +
        ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
          *_impl_.type_.data_);
      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 PostBuildingResponse::CheckTypeAndMergeFrom(
    const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
  MergeFrom(*::_pbi::DownCast<const PostBuildingResponse*>(
      &from));
}

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

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

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

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

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

class PutBuildingGroupAttachResponse::_Internal {
 public:
};

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

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

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

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

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

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

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

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

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

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

std::string PutBuildingGroupAttachResponse::GetTypeName() const {
  return "keyapis.telemetry_control.v1.PutBuildingGroupAttachResponse";
}

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

class GetBuildingRequest::_Internal {
 public:
};

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

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

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

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

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

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

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

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

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

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

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

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

std::string GetBuildingRequest::GetTypeName() const {
  return "keyapis.telemetry_control.v1.GetBuildingRequest";
}

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

class GetBuildingResponse::_Internal {
 public:
  static constexpr ::int32_t kOneofCaseOffset =
    PROTOBUF_FIELD_OFFSET(::keyapis::telemetry_control::v1::GetBuildingResponse, _impl_._oneof_case_);
  static const ::keyapis::telemetry_control::v1::Building& data(const GetBuildingResponse* msg);
};

const ::keyapis::telemetry_control::v1::Building&
GetBuildingResponse::_Internal::data(const GetBuildingResponse* msg) {
  return *msg->_impl_.type_.data_;
}
void GetBuildingResponse::set_allocated_data(::keyapis::telemetry_control::v1::Building* 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.telemetry_control.v1.GetBuildingResponse.data)
}
GetBuildingResponse::GetBuildingResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) {
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:keyapis.telemetry_control.v1.GetBuildingResponse)
}
GetBuildingResponse::GetBuildingResponse(const GetBuildingResponse& from)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
  GetBuildingResponse* 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::telemetry_control::v1::Building::MergeFrom(
          from._internal_data());
      break;
    }
    case TYPE_NOT_SET: {
      break;
    }
  }
  // @@protoc_insertion_point(copy_constructor:keyapis.telemetry_control.v1.GetBuildingResponse)
}

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

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

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

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

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


void GetBuildingResponse::Clear() {
// @@protoc_insertion_point(message_clear_start:keyapis.telemetry_control.v1.GetBuildingResponse)
  ::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* GetBuildingResponse::_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.telemetry_control.v1.Building data = 1;
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
          ptr = ctx->ParseMessage(_internal_mutable_data(), ptr);
          CHK_(ptr);
        } else {
          goto handle_unusual;
        }
        continue;
      default:
        goto handle_unusual;
    }  // switch
  handle_unusual:
    if ((tag == 0) || ((tag & 7) == 4)) {
      CHK_(ptr);
      ctx->SetLastTag(tag);
      goto message_done;
    }
    ptr = UnknownFieldParse(
        tag,
        _internal_metadata_.mutable_unknown_fields<std::string>(),
        ptr, ctx);
    CHK_(ptr != nullptr);
  }  // while
message_done:
  return ptr;
failure:
  ptr = nullptr;
  goto message_done;
#undef CHK_
}

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

  // .keyapis.telemetry_control.v1.Building data = 1;
  if (type_case() == kData) {
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
      InternalWriteMessage(1, _Internal::data(this),
        _Internal::data(this).GetCachedSize(), target, stream);
  }

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

::size_t GetBuildingResponse::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:keyapis.telemetry_control.v1.GetBuildingResponse)
  ::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.telemetry_control.v1.Building data = 1;
    case kData: {
      total_size += 1 +
        ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
          *_impl_.type_.data_);
      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 GetBuildingResponse::CheckTypeAndMergeFrom(
    const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
  MergeFrom(*::_pbi::DownCast<const GetBuildingResponse*>(
      &from));
}

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

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

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

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

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

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

const ::keyapis::telemetry_control::v1::BuildingFilter&
GetBuildingListRequest::_Internal::filter(const GetBuildingListRequest* msg) {
  return *msg->_impl_.filter_;
}
const ::keyapis::telemetry_control::v1::BuildingPaging&
GetBuildingListRequest::_Internal::paging(const GetBuildingListRequest* msg) {
  return *msg->_impl_.pagination_.paging_;
}
void GetBuildingListRequest::set_allocated_paging(::keyapis::telemetry_control::v1::BuildingPaging* 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.telemetry_control.v1.GetBuildingListRequest.paging)
}
GetBuildingListRequest::GetBuildingListRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) {
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:keyapis.telemetry_control.v1.GetBuildingListRequest)
}
GetBuildingListRequest::GetBuildingListRequest(const GetBuildingListRequest& from)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
  GetBuildingListRequest* 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::telemetry_control::v1::BuildingFilter(*from._impl_.filter_);
  }
  clear_has_pagination();
  switch (from.pagination_case()) {
    case kPaging: {
      _this->_internal_mutable_paging()->::keyapis::telemetry_control::v1::BuildingPaging::MergeFrom(
          from._internal_paging());
      break;
    }
    case PAGINATION_NOT_SET: {
      break;
    }
  }
  // @@protoc_insertion_point(copy_constructor:keyapis.telemetry_control.v1.GetBuildingListRequest)
}

inline void GetBuildingListRequest::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();
}

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

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

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

void GetBuildingListRequest::clear_pagination() {
// @@protoc_insertion_point(one_of_clear_start:keyapis.telemetry_control.v1.GetBuildingListRequest)
  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 GetBuildingListRequest::Clear() {
// @@protoc_insertion_point(message_clear_start:keyapis.telemetry_control.v1.GetBuildingListRequest)
  ::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* GetBuildingListRequest::_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.telemetry_control.v1.BuildingFilter 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.telemetry_control.v1.BuildingPaging 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* GetBuildingListRequest::_InternalSerialize(
    ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:keyapis.telemetry_control.v1.GetBuildingListRequest)
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  cached_has_bits = _impl_._has_bits_[0];
  // .keyapis.telemetry_control.v1.BuildingFilter 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.telemetry_control.v1.BuildingPaging 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.telemetry_control.v1.GetBuildingListRequest)
  return target;
}

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

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

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

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

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

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

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

const ::keyapis::telemetry_control::v1::BuildingGroupFilter&
GetBuildingGroupListRequest::_Internal::filter(const GetBuildingGroupListRequest* msg) {
  return *msg->_impl_.filter_;
}
const ::keyapis::telemetry_control::v1::BuildingGroupPaging&
GetBuildingGroupListRequest::_Internal::paging(const GetBuildingGroupListRequest* msg) {
  return *msg->_impl_.pagination_.paging_;
}
void GetBuildingGroupListRequest::set_allocated_paging(::keyapis::telemetry_control::v1::BuildingGroupPaging* 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.telemetry_control.v1.GetBuildingGroupListRequest.paging)
}
GetBuildingGroupListRequest::GetBuildingGroupListRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) {
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:keyapis.telemetry_control.v1.GetBuildingGroupListRequest)
}
GetBuildingGroupListRequest::GetBuildingGroupListRequest(const GetBuildingGroupListRequest& from)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
  GetBuildingGroupListRequest* 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::telemetry_control::v1::BuildingGroupFilter(*from._impl_.filter_);
  }
  clear_has_pagination();
  switch (from.pagination_case()) {
    case kPaging: {
      _this->_internal_mutable_paging()->::keyapis::telemetry_control::v1::BuildingGroupPaging::MergeFrom(
          from._internal_paging());
      break;
    }
    case PAGINATION_NOT_SET: {
      break;
    }
  }
  // @@protoc_insertion_point(copy_constructor:keyapis.telemetry_control.v1.GetBuildingGroupListRequest)
}

inline void GetBuildingGroupListRequest::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();
}

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

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

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

void GetBuildingGroupListRequest::clear_pagination() {
// @@protoc_insertion_point(one_of_clear_start:keyapis.telemetry_control.v1.GetBuildingGroupListRequest)
  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 GetBuildingGroupListRequest::Clear() {
// @@protoc_insertion_point(message_clear_start:keyapis.telemetry_control.v1.GetBuildingGroupListRequest)
  ::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* GetBuildingGroupListRequest::_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.telemetry_control.v1.BuildingGroupFilter 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.telemetry_control.v1.BuildingGroupPaging 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* GetBuildingGroupListRequest::_InternalSerialize(
    ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:keyapis.telemetry_control.v1.GetBuildingGroupListRequest)
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  cached_has_bits = _impl_._has_bits_[0];
  // .keyapis.telemetry_control.v1.BuildingGroupFilter 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.telemetry_control.v1.BuildingGroupPaging 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.telemetry_control.v1.GetBuildingGroupListRequest)
  return target;
}

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

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

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

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

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

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

class BuildingGroupPaging::_Internal {
 public:
};

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

inline void BuildingGroupPaging::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_)*/{}
  };
}

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

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

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

void BuildingGroupPaging::Clear() {
// @@protoc_insertion_point(message_clear_start:keyapis.telemetry_control.v1.BuildingGroupPaging)
  ::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* BuildingGroupPaging::_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.telemetry_control.v1.BuildingGroupPaging.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::telemetry_control::v1::BuildingGroupPaging_OrderByType>(val));
        } else {
          goto handle_unusual;
        }
        continue;
      // .keyapis.telemetry_control.v1.BuildingGroupPaging.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::telemetry_control::v1::BuildingGroupPaging_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* BuildingGroupPaging::_InternalSerialize(
    ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:keyapis.telemetry_control.v1.BuildingGroupPaging)
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  // .keyapis.telemetry_control.v1.BuildingGroupPaging.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.telemetry_control.v1.BuildingGroupPaging.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.telemetry_control.v1.BuildingGroupPaging)
  return target;
}

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

  // .keyapis.telemetry_control.v1.BuildingGroupPaging.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 BuildingGroupPaging::CheckTypeAndMergeFrom(
    const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
  MergeFrom(*::_pbi::DownCast<const BuildingGroupPaging*>(
      &from));
}

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

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

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

std::string BuildingGroupPaging::GetTypeName() const {
  return "keyapis.telemetry_control.v1.BuildingGroupPaging";
}

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

class BuildingPaging::_Internal {
 public:
};

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

inline void BuildingPaging::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_)*/{}
  };
}

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

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

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

void BuildingPaging::Clear() {
// @@protoc_insertion_point(message_clear_start:keyapis.telemetry_control.v1.BuildingPaging)
  ::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* BuildingPaging::_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.telemetry_control.v1.BuildingPaging.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::telemetry_control::v1::BuildingPaging_OrderByType>(val));
        } else {
          goto handle_unusual;
        }
        continue;
      // .keyapis.telemetry_control.v1.BuildingPaging.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::telemetry_control::v1::BuildingPaging_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* BuildingPaging::_InternalSerialize(
    ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:keyapis.telemetry_control.v1.BuildingPaging)
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  // .keyapis.telemetry_control.v1.BuildingPaging.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.telemetry_control.v1.BuildingPaging.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.telemetry_control.v1.BuildingPaging)
  return target;
}

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

  // .keyapis.telemetry_control.v1.BuildingPaging.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 BuildingPaging::CheckTypeAndMergeFrom(
    const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
  MergeFrom(*::_pbi::DownCast<const BuildingPaging*>(
      &from));
}

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

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

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

std::string BuildingPaging::GetTypeName() const {
  return "keyapis.telemetry_control.v1.BuildingPaging";
}

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

class GetBuildingListResponse::_Internal {
 public:
  static constexpr ::int32_t kOneofCaseOffset =
    PROTOBUF_FIELD_OFFSET(::keyapis::telemetry_control::v1::GetBuildingListResponse, _impl_._oneof_case_);
  static const ::keyapis::telemetry_control::v1::Building& data(const GetBuildingListResponse* msg);
};

const ::keyapis::telemetry_control::v1::Building&
GetBuildingListResponse::_Internal::data(const GetBuildingListResponse* msg) {
  return *msg->_impl_.type_.data_;
}
void GetBuildingListResponse::set_allocated_data(::keyapis::telemetry_control::v1::Building* 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.telemetry_control.v1.GetBuildingListResponse.data)
}
GetBuildingListResponse::GetBuildingListResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) {
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:keyapis.telemetry_control.v1.GetBuildingListResponse)
}
GetBuildingListResponse::GetBuildingListResponse(const GetBuildingListResponse& from)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
  GetBuildingListResponse* 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::telemetry_control::v1::Building::MergeFrom(
          from._internal_data());
      break;
    }
    case TYPE_NOT_SET: {
      break;
    }
  }
  // @@protoc_insertion_point(copy_constructor:keyapis.telemetry_control.v1.GetBuildingListResponse)
}

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

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

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

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

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


void GetBuildingListResponse::Clear() {
// @@protoc_insertion_point(message_clear_start:keyapis.telemetry_control.v1.GetBuildingListResponse)
  ::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* GetBuildingListResponse::_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.telemetry_control.v1.Building data = 1;
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
          ptr = ctx->ParseMessage(_internal_mutable_data(), ptr);
          CHK_(ptr);
        } else {
          goto handle_unusual;
        }
        continue;
      default:
        goto handle_unusual;
    }  // switch
  handle_unusual:
    if ((tag == 0) || ((tag & 7) == 4)) {
      CHK_(ptr);
      ctx->SetLastTag(tag);
      goto message_done;
    }
    ptr = UnknownFieldParse(
        tag,
        _internal_metadata_.mutable_unknown_fields<std::string>(),
        ptr, ctx);
    CHK_(ptr != nullptr);
  }  // while
message_done:
  return ptr;
failure:
  ptr = nullptr;
  goto message_done;
#undef CHK_
}

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

  // .keyapis.telemetry_control.v1.Building data = 1;
  if (type_case() == kData) {
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
      InternalWriteMessage(1, _Internal::data(this),
        _Internal::data(this).GetCachedSize(), target, stream);
  }

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

::size_t GetBuildingListResponse::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:keyapis.telemetry_control.v1.GetBuildingListResponse)
  ::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.telemetry_control.v1.Building data = 1;
    case kData: {
      total_size += 1 +
        ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
          *_impl_.type_.data_);
      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 GetBuildingListResponse::CheckTypeAndMergeFrom(
    const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
  MergeFrom(*::_pbi::DownCast<const GetBuildingListResponse*>(
      &from));
}

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

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

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

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

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

class GetBuildingGroupListResponse::_Internal {
 public:
  static constexpr ::int32_t kOneofCaseOffset =
    PROTOBUF_FIELD_OFFSET(::keyapis::telemetry_control::v1::GetBuildingGroupListResponse, _impl_._oneof_case_);
  static const ::keyapis::telemetry_control::v1::BuildingGroup& data(const GetBuildingGroupListResponse* msg);
};

const ::keyapis::telemetry_control::v1::BuildingGroup&
GetBuildingGroupListResponse::_Internal::data(const GetBuildingGroupListResponse* msg) {
  return *msg->_impl_.type_.data_;
}
void GetBuildingGroupListResponse::set_allocated_data(::keyapis::telemetry_control::v1::BuildingGroup* 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.telemetry_control.v1.GetBuildingGroupListResponse.data)
}
GetBuildingGroupListResponse::GetBuildingGroupListResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) {
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:keyapis.telemetry_control.v1.GetBuildingGroupListResponse)
}
GetBuildingGroupListResponse::GetBuildingGroupListResponse(const GetBuildingGroupListResponse& from)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
  GetBuildingGroupListResponse* 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::telemetry_control::v1::BuildingGroup::MergeFrom(
          from._internal_data());
      break;
    }
    case TYPE_NOT_SET: {
      break;
    }
  }
  // @@protoc_insertion_point(copy_constructor:keyapis.telemetry_control.v1.GetBuildingGroupListResponse)
}

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

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

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

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

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


void GetBuildingGroupListResponse::Clear() {
// @@protoc_insertion_point(message_clear_start:keyapis.telemetry_control.v1.GetBuildingGroupListResponse)
  ::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* GetBuildingGroupListResponse::_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.telemetry_control.v1.BuildingGroup data = 1;
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
          ptr = ctx->ParseMessage(_internal_mutable_data(), ptr);
          CHK_(ptr);
        } else {
          goto handle_unusual;
        }
        continue;
      default:
        goto handle_unusual;
    }  // switch
  handle_unusual:
    if ((tag == 0) || ((tag & 7) == 4)) {
      CHK_(ptr);
      ctx->SetLastTag(tag);
      goto message_done;
    }
    ptr = UnknownFieldParse(
        tag,
        _internal_metadata_.mutable_unknown_fields<std::string>(),
        ptr, ctx);
    CHK_(ptr != nullptr);
  }  // while
message_done:
  return ptr;
failure:
  ptr = nullptr;
  goto message_done;
#undef CHK_
}

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

  // .keyapis.telemetry_control.v1.BuildingGroup data = 1;
  if (type_case() == kData) {
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
      InternalWriteMessage(1, _Internal::data(this),
        _Internal::data(this).GetCachedSize(), target, stream);
  }

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

::size_t GetBuildingGroupListResponse::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:keyapis.telemetry_control.v1.GetBuildingGroupListResponse)
  ::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.telemetry_control.v1.BuildingGroup data = 1;
    case kData: {
      total_size += 1 +
        ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
          *_impl_.type_.data_);
      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 GetBuildingGroupListResponse::CheckTypeAndMergeFrom(
    const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
  MergeFrom(*::_pbi::DownCast<const GetBuildingGroupListResponse*>(
      &from));
}

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

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

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

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

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

class PostBuildingFullDuplexResponse_RemoveBuildingEvent::_Internal {
 public:
};

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

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

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

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

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

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

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

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

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

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

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

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

std::string PostBuildingFullDuplexResponse_RemoveBuildingEvent::GetTypeName() const {
  return "keyapis.telemetry_control.v1.PostBuildingFullDuplexResponse.RemoveBuildingEvent";
}

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

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

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

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

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

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

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

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

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

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

const char* PostBuildingFullDuplexResponse_UpsertBuildingEvent::_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.telemetry_control.v1.Building data = 1 [(.google.api.field_behavior) = REQUIRED];
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
          ptr = ctx->ParseMessage(_internal_mutable_data(), ptr);
          CHK_(ptr);
        } else {
          goto handle_unusual;
        }
        continue;
      default:
        goto handle_unusual;
    }  // switch
  handle_unusual:
    if ((tag == 0) || ((tag & 7) == 4)) {
      CHK_(ptr);
      ctx->SetLastTag(tag);
      goto message_done;
    }
    ptr = UnknownFieldParse(
        tag,
        _internal_metadata_.mutable_unknown_fields<std::string>(),
        ptr, ctx);
    CHK_(ptr != nullptr);
  }  // while
message_done:
  _impl_._has_bits_.Or(has_bits);
  return ptr;
failure:
  ptr = nullptr;
  goto message_done;
#undef CHK_
}

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

  cached_has_bits = _impl_._has_bits_[0];
  // .keyapis.telemetry_control.v1.Building data = 1 [(.google.api.field_behavior) = REQUIRED];
  if (cached_has_bits & 0x00000001u) {
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
      InternalWriteMessage(1, _Internal::data(this),
        _Internal::data(this).GetCachedSize(), target, stream);
  }

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

::size_t PostBuildingFullDuplexResponse_UpsertBuildingEvent::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:keyapis.telemetry_control.v1.PostBuildingFullDuplexResponse.UpsertBuildingEvent)
  ::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.telemetry_control.v1.Building data = 1 [(.google.api.field_behavior) = REQUIRED];
  cached_has_bits = _impl_._has_bits_[0];
  if (cached_has_bits & 0x00000001u) {
    total_size += 1 +
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
        *_impl_.data_);
  }

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

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

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

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

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

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

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

std::string PostBuildingFullDuplexResponse_UpsertBuildingEvent::GetTypeName() const {
  return "keyapis.telemetry_control.v1.PostBuildingFullDuplexResponse.UpsertBuildingEvent";
}

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

class PostBuildingFullDuplexResponse::_Internal {
 public:
  static constexpr ::int32_t kOneofCaseOffset =
    PROTOBUF_FIELD_OFFSET(::keyapis::telemetry_control::v1::PostBuildingFullDuplexResponse, _impl_._oneof_case_);
  static const ::keyapis::telemetry_control::v1::PostBuildingFullDuplexResponse_UpsertBuildingEvent& upsert_building_event(const PostBuildingFullDuplexResponse* msg);
  static const ::keyapis::telemetry_control::v1::PostBuildingFullDuplexResponse_RemoveBuildingEvent& remove_building_event(const PostBuildingFullDuplexResponse* msg);
};

const ::keyapis::telemetry_control::v1::PostBuildingFullDuplexResponse_UpsertBuildingEvent&
PostBuildingFullDuplexResponse::_Internal::upsert_building_event(const PostBuildingFullDuplexResponse* msg) {
  return *msg->_impl_.event_.upsert_building_event_;
}
const ::keyapis::telemetry_control::v1::PostBuildingFullDuplexResponse_RemoveBuildingEvent&
PostBuildingFullDuplexResponse::_Internal::remove_building_event(const PostBuildingFullDuplexResponse* msg) {
  return *msg->_impl_.event_.remove_building_event_;
}
void PostBuildingFullDuplexResponse::set_allocated_upsert_building_event(::keyapis::telemetry_control::v1::PostBuildingFullDuplexResponse_UpsertBuildingEvent* upsert_building_event) {
  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
  clear_event();
  if (upsert_building_event) {
    ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
      ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(upsert_building_event);
    if (message_arena != submessage_arena) {
      upsert_building_event = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
          message_arena, upsert_building_event, submessage_arena);
    }
    set_has_upsert_building_event();
    _impl_.event_.upsert_building_event_ = upsert_building_event;
  }
  // @@protoc_insertion_point(field_set_allocated:keyapis.telemetry_control.v1.PostBuildingFullDuplexResponse.upsert_building_event)
}
void PostBuildingFullDuplexResponse::set_allocated_remove_building_event(::keyapis::telemetry_control::v1::PostBuildingFullDuplexResponse_RemoveBuildingEvent* remove_building_event) {
  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
  clear_event();
  if (remove_building_event) {
    ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
      ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(remove_building_event);
    if (message_arena != submessage_arena) {
      remove_building_event = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
          message_arena, remove_building_event, submessage_arena);
    }
    set_has_remove_building_event();
    _impl_.event_.remove_building_event_ = remove_building_event;
  }
  // @@protoc_insertion_point(field_set_allocated:keyapis.telemetry_control.v1.PostBuildingFullDuplexResponse.remove_building_event)
}
PostBuildingFullDuplexResponse::PostBuildingFullDuplexResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) {
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:keyapis.telemetry_control.v1.PostBuildingFullDuplexResponse)
}
PostBuildingFullDuplexResponse::PostBuildingFullDuplexResponse(const PostBuildingFullDuplexResponse& from)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
  PostBuildingFullDuplexResponse* const _this = this; (void)_this;
  new (&_impl_) Impl_{
      decltype(_impl_.request_id_) {}

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

  _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
  _impl_.request_id_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
        _impl_.request_id_.Set("", GetArenaForAllocation());
  #endif  // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  if (!from._internal_request_id().empty()) {
    _this->_impl_.request_id_.Set(from._internal_request_id(), _this->GetArenaForAllocation());
  }
  clear_has_event();
  switch (from.event_case()) {
    case kUpsertBuildingEvent: {
      _this->_internal_mutable_upsert_building_event()->::keyapis::telemetry_control::v1::PostBuildingFullDuplexResponse_UpsertBuildingEvent::MergeFrom(
          from._internal_upsert_building_event());
      break;
    }
    case kRemoveBuildingEvent: {
      _this->_internal_mutable_remove_building_event()->::keyapis::telemetry_control::v1::PostBuildingFullDuplexResponse_RemoveBuildingEvent::MergeFrom(
          from._internal_remove_building_event());
      break;
    }
    case EVENT_NOT_SET: {
      break;
    }
  }
  // @@protoc_insertion_point(copy_constructor:keyapis.telemetry_control.v1.PostBuildingFullDuplexResponse)
}

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

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

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

inline void PostBuildingFullDuplexResponse::SharedDtor() {
  ABSL_DCHECK(GetArenaForAllocation() == nullptr);
  _impl_.request_id_.Destroy();
  if (has_event()) {
    clear_event();
  }
}

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

void PostBuildingFullDuplexResponse::clear_event() {
// @@protoc_insertion_point(one_of_clear_start:keyapis.telemetry_control.v1.PostBuildingFullDuplexResponse)
  switch (event_case()) {
    case kUpsertBuildingEvent: {
      if (GetArenaForAllocation() == nullptr) {
        delete _impl_.event_.upsert_building_event_;
      }
      break;
    }
    case kRemoveBuildingEvent: {
      if (GetArenaForAllocation() == nullptr) {
        delete _impl_.event_.remove_building_event_;
      }
      break;
    }
    case EVENT_NOT_SET: {
      break;
    }
  }
  _impl_._oneof_case_[0] = EVENT_NOT_SET;
}


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

  _impl_.request_id_.ClearToEmpty();
  clear_event();
  _internal_metadata_.Clear<std::string>();
}

const char* PostBuildingFullDuplexResponse::_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 request_id = 1 [(.google.api.field_behavior) = REQUIRED];
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
          auto str = _internal_mutable_request_id();
          ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
          CHK_(ptr);
          CHK_(::_pbi::VerifyUTF8(str, nullptr));
        } else {
          goto handle_unusual;
        }
        continue;
      // .keyapis.telemetry_control.v1.PostBuildingFullDuplexResponse.UpsertBuildingEvent upsert_building_event = 2;
      case 2:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
          ptr = ctx->ParseMessage(_internal_mutable_upsert_building_event(), ptr);
          CHK_(ptr);
        } else {
          goto handle_unusual;
        }
        continue;
      // .keyapis.telemetry_control.v1.PostBuildingFullDuplexResponse.RemoveBuildingEvent remove_building_event = 3;
      case 3:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 26)) {
          ptr = ctx->ParseMessage(_internal_mutable_remove_building_event(), 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* PostBuildingFullDuplexResponse::_InternalSerialize(
    ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:keyapis.telemetry_control.v1.PostBuildingFullDuplexResponse)
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

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

  switch (event_case()) {
    case kUpsertBuildingEvent: {
      target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
        InternalWriteMessage(2, _Internal::upsert_building_event(this),
          _Internal::upsert_building_event(this).GetCachedSize(), target, stream);
      break;
    }
    case kRemoveBuildingEvent: {
      target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
        InternalWriteMessage(3, _Internal::remove_building_event(this),
          _Internal::remove_building_event(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.telemetry_control.v1.PostBuildingFullDuplexResponse)
  return target;
}

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

  switch (event_case()) {
    // .keyapis.telemetry_control.v1.PostBuildingFullDuplexResponse.UpsertBuildingEvent upsert_building_event = 2;
    case kUpsertBuildingEvent: {
      total_size += 1 +
        ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
          *_impl_.event_.upsert_building_event_);
      break;
    }
    // .keyapis.telemetry_control.v1.PostBuildingFullDuplexResponse.RemoveBuildingEvent remove_building_event = 3;
    case kRemoveBuildingEvent: {
      total_size += 1 +
        ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
          *_impl_.event_.remove_building_event_);
      break;
    }
    case EVENT_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 PostBuildingFullDuplexResponse::CheckTypeAndMergeFrom(
    const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
  MergeFrom(*::_pbi::DownCast<const PostBuildingFullDuplexResponse*>(
      &from));
}

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

  if (!from._internal_request_id().empty()) {
    _this->_internal_set_request_id(from._internal_request_id());
  }
  switch (from.event_case()) {
    case kUpsertBuildingEvent: {
      _this->_internal_mutable_upsert_building_event()->::keyapis::telemetry_control::v1::PostBuildingFullDuplexResponse_UpsertBuildingEvent::MergeFrom(
          from._internal_upsert_building_event());
      break;
    }
    case kRemoveBuildingEvent: {
      _this->_internal_mutable_remove_building_event()->::keyapis::telemetry_control::v1::PostBuildingFullDuplexResponse_RemoveBuildingEvent::MergeFrom(
          from._internal_remove_building_event());
      break;
    }
    case EVENT_NOT_SET: {
      break;
    }
  }
  _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
}

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

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

void PostBuildingFullDuplexResponse::InternalSwap(PostBuildingFullDuplexResponse* other) {
  using std::swap;
  auto* lhs_arena = GetArenaForAllocation();
  auto* rhs_arena = other->GetArenaForAllocation();
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.request_id_, lhs_arena,
                                       &other->_impl_.request_id_, rhs_arena);
  swap(_impl_.event_, other->_impl_.event_);
  swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]);
}

std::string PostBuildingFullDuplexResponse::GetTypeName() const {
  return "keyapis.telemetry_control.v1.PostBuildingFullDuplexResponse";
}

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

class PostBuildingFullDuplexRequest_BuildingAsyncStatus_Success::_Internal {
 public:
};

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

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

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

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

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

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

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

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

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

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

std::string PostBuildingFullDuplexRequest_BuildingAsyncStatus_Success::GetTypeName() const {
  return "keyapis.telemetry_control.v1.PostBuildingFullDuplexRequest.BuildingAsyncStatus.Success";
}

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

class PostBuildingFullDuplexRequest_BuildingAsyncStatus_Error_UnknownError::_Internal {
 public:
};

PostBuildingFullDuplexRequest_BuildingAsyncStatus_Error_UnknownError::PostBuildingFullDuplexRequest_BuildingAsyncStatus_Error_UnknownError(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) {
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:keyapis.telemetry_control.v1.PostBuildingFullDuplexRequest.BuildingAsyncStatus.Error.UnknownError)
}
PostBuildingFullDuplexRequest_BuildingAsyncStatus_Error_UnknownError::PostBuildingFullDuplexRequest_BuildingAsyncStatus_Error_UnknownError(const PostBuildingFullDuplexRequest_BuildingAsyncStatus_Error_UnknownError& from)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
  PostBuildingFullDuplexRequest_BuildingAsyncStatus_Error_UnknownError* const _this = this; (void)_this;
  new (&_impl_) Impl_{
      decltype(_impl_.message_) {}

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

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

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

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

PostBuildingFullDuplexRequest_BuildingAsyncStatus_Error_UnknownError::~PostBuildingFullDuplexRequest_BuildingAsyncStatus_Error_UnknownError() {
  // @@protoc_insertion_point(destructor:keyapis.telemetry_control.v1.PostBuildingFullDuplexRequest.BuildingAsyncStatus.Error.UnknownError)
  if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
  (void)arena;
    return;
  }
  SharedDtor();
}

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

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

void PostBuildingFullDuplexRequest_BuildingAsyncStatus_Error_UnknownError::Clear() {
// @@protoc_insertion_point(message_clear_start:keyapis.telemetry_control.v1.PostBuildingFullDuplexRequest.BuildingAsyncStatus.Error.UnknownError)
  ::uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

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

const char* PostBuildingFullDuplexRequest_BuildingAsyncStatus_Error_UnknownError::_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 message = 1 [(.google.api.field_behavior) = REQUIRED];
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
          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* PostBuildingFullDuplexRequest_BuildingAsyncStatus_Error_UnknownError::_InternalSerialize(
    ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:keyapis.telemetry_control.v1.PostBuildingFullDuplexRequest.BuildingAsyncStatus.Error.UnknownError)
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  // string message = 1 [(.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.telemetry_control.v1.PostBuildingFullDuplexRequest.BuildingAsyncStatus.Error.UnknownError.message");
    target = stream->WriteStringMaybeAliased(1, _s, target);
  }

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

::size_t PostBuildingFullDuplexRequest_BuildingAsyncStatus_Error_UnknownError::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:keyapis.telemetry_control.v1.PostBuildingFullDuplexRequest.BuildingAsyncStatus.Error.UnknownError)
  ::size_t total_size = 0;

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

  // string message = 1 [(.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 PostBuildingFullDuplexRequest_BuildingAsyncStatus_Error_UnknownError::CheckTypeAndMergeFrom(
    const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
  MergeFrom(*::_pbi::DownCast<const PostBuildingFullDuplexRequest_BuildingAsyncStatus_Error_UnknownError*>(
      &from));
}

void PostBuildingFullDuplexRequest_BuildingAsyncStatus_Error_UnknownError::MergeFrom(const PostBuildingFullDuplexRequest_BuildingAsyncStatus_Error_UnknownError& from) {
  PostBuildingFullDuplexRequest_BuildingAsyncStatus_Error_UnknownError* const _this = this;
  // @@protoc_insertion_point(class_specific_merge_from_start:keyapis.telemetry_control.v1.PostBuildingFullDuplexRequest.BuildingAsyncStatus.Error.UnknownError)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

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

void PostBuildingFullDuplexRequest_BuildingAsyncStatus_Error_UnknownError::CopyFrom(const PostBuildingFullDuplexRequest_BuildingAsyncStatus_Error_UnknownError& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:keyapis.telemetry_control.v1.PostBuildingFullDuplexRequest.BuildingAsyncStatus.Error.UnknownError)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

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

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

std::string PostBuildingFullDuplexRequest_BuildingAsyncStatus_Error_UnknownError::GetTypeName() const {
  return "keyapis.telemetry_control.v1.PostBuildingFullDuplexRequest.BuildingAsyncStatus.Error.UnknownError";
}

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

class PostBuildingFullDuplexRequest_BuildingAsyncStatus_Error::_Internal {
 public:
  static constexpr ::int32_t kOneofCaseOffset =
    PROTOBUF_FIELD_OFFSET(::keyapis::telemetry_control::v1::PostBuildingFullDuplexRequest_BuildingAsyncStatus_Error, _impl_._oneof_case_);
  static const ::keyapis::telemetry_control::v1::PostBuildingFullDuplexRequest_BuildingAsyncStatus_Error_UnknownError& unknown(const PostBuildingFullDuplexRequest_BuildingAsyncStatus_Error* msg);
};

const ::keyapis::telemetry_control::v1::PostBuildingFullDuplexRequest_BuildingAsyncStatus_Error_UnknownError&
PostBuildingFullDuplexRequest_BuildingAsyncStatus_Error::_Internal::unknown(const PostBuildingFullDuplexRequest_BuildingAsyncStatus_Error* msg) {
  return *msg->_impl_.reason_.unknown_;
}
void PostBuildingFullDuplexRequest_BuildingAsyncStatus_Error::set_allocated_unknown(::keyapis::telemetry_control::v1::PostBuildingFullDuplexRequest_BuildingAsyncStatus_Error_UnknownError* unknown) {
  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
  clear_reason();
  if (unknown) {
    ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
      ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(unknown);
    if (message_arena != submessage_arena) {
      unknown = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
          message_arena, unknown, submessage_arena);
    }
    set_has_unknown();
    _impl_.reason_.unknown_ = unknown;
  }
  // @@protoc_insertion_point(field_set_allocated:keyapis.telemetry_control.v1.PostBuildingFullDuplexRequest.BuildingAsyncStatus.Error.unknown)
}
PostBuildingFullDuplexRequest_BuildingAsyncStatus_Error::PostBuildingFullDuplexRequest_BuildingAsyncStatus_Error(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) {
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:keyapis.telemetry_control.v1.PostBuildingFullDuplexRequest.BuildingAsyncStatus.Error)
}
PostBuildingFullDuplexRequest_BuildingAsyncStatus_Error::PostBuildingFullDuplexRequest_BuildingAsyncStatus_Error(const PostBuildingFullDuplexRequest_BuildingAsyncStatus_Error& from)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
  PostBuildingFullDuplexRequest_BuildingAsyncStatus_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 kUnknown: {
      _this->_internal_mutable_unknown()->::keyapis::telemetry_control::v1::PostBuildingFullDuplexRequest_BuildingAsyncStatus_Error_UnknownError::MergeFrom(
          from._internal_unknown());
      break;
    }
    case REASON_NOT_SET: {
      break;
    }
  }
  // @@protoc_insertion_point(copy_constructor:keyapis.telemetry_control.v1.PostBuildingFullDuplexRequest.BuildingAsyncStatus.Error)
}

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

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

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

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

void PostBuildingFullDuplexRequest_BuildingAsyncStatus_Error::clear_reason() {
// @@protoc_insertion_point(one_of_clear_start:keyapis.telemetry_control.v1.PostBuildingFullDuplexRequest.BuildingAsyncStatus.Error)
  switch (reason_case()) {
    case kUnknown: {
      if (GetArenaForAllocation() == nullptr) {
        delete _impl_.reason_.unknown_;
      }
      break;
    }
    case REASON_NOT_SET: {
      break;
    }
  }
  _impl_._oneof_case_[0] = REASON_NOT_SET;
}


void PostBuildingFullDuplexRequest_BuildingAsyncStatus_Error::Clear() {
// @@protoc_insertion_point(message_clear_start:keyapis.telemetry_control.v1.PostBuildingFullDuplexRequest.BuildingAsyncStatus.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* PostBuildingFullDuplexRequest_BuildingAsyncStatus_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.telemetry_control.v1.PostBuildingFullDuplexRequest.BuildingAsyncStatus.Error.UnknownError unknown = 1;
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
          ptr = ctx->ParseMessage(_internal_mutable_unknown(), 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* PostBuildingFullDuplexRequest_BuildingAsyncStatus_Error::_InternalSerialize(
    ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:keyapis.telemetry_control.v1.PostBuildingFullDuplexRequest.BuildingAsyncStatus.Error)
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  // .keyapis.telemetry_control.v1.PostBuildingFullDuplexRequest.BuildingAsyncStatus.Error.UnknownError unknown = 1;
  if (reason_case() == kUnknown) {
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
      InternalWriteMessage(1, _Internal::unknown(this),
        _Internal::unknown(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.telemetry_control.v1.PostBuildingFullDuplexRequest.BuildingAsyncStatus.Error)
  return target;
}

::size_t PostBuildingFullDuplexRequest_BuildingAsyncStatus_Error::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:keyapis.telemetry_control.v1.PostBuildingFullDuplexRequest.BuildingAsyncStatus.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.telemetry_control.v1.PostBuildingFullDuplexRequest.BuildingAsyncStatus.Error.UnknownError unknown = 1;
    case kUnknown: {
      total_size += 1 +
        ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
          *_impl_.reason_.unknown_);
      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 PostBuildingFullDuplexRequest_BuildingAsyncStatus_Error::CheckTypeAndMergeFrom(
    const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
  MergeFrom(*::_pbi::DownCast<const PostBuildingFullDuplexRequest_BuildingAsyncStatus_Error*>(
      &from));
}

void PostBuildingFullDuplexRequest_BuildingAsyncStatus_Error::MergeFrom(const PostBuildingFullDuplexRequest_BuildingAsyncStatus_Error& from) {
  PostBuildingFullDuplexRequest_BuildingAsyncStatus_Error* const _this = this;
  // @@protoc_insertion_point(class_specific_merge_from_start:keyapis.telemetry_control.v1.PostBuildingFullDuplexRequest.BuildingAsyncStatus.Error)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  switch (from.reason_case()) {
    case kUnknown: {
      _this->_internal_mutable_unknown()->::keyapis::telemetry_control::v1::PostBuildingFullDuplexRequest_BuildingAsyncStatus_Error_UnknownError::MergeFrom(
          from._internal_unknown());
      break;
    }
    case REASON_NOT_SET: {
      break;
    }
  }
  _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
}

void PostBuildingFullDuplexRequest_BuildingAsyncStatus_Error::CopyFrom(const PostBuildingFullDuplexRequest_BuildingAsyncStatus_Error& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:keyapis.telemetry_control.v1.PostBuildingFullDuplexRequest.BuildingAsyncStatus.Error)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

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

void PostBuildingFullDuplexRequest_BuildingAsyncStatus_Error::InternalSwap(PostBuildingFullDuplexRequest_BuildingAsyncStatus_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 PostBuildingFullDuplexRequest_BuildingAsyncStatus_Error::GetTypeName() const {
  return "keyapis.telemetry_control.v1.PostBuildingFullDuplexRequest.BuildingAsyncStatus.Error";
}

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

class PostBuildingFullDuplexRequest_BuildingAsyncStatus::_Internal {
 public:
  static constexpr ::int32_t kOneofCaseOffset =
    PROTOBUF_FIELD_OFFSET(::keyapis::telemetry_control::v1::PostBuildingFullDuplexRequest_BuildingAsyncStatus, _impl_._oneof_case_);
  static const ::keyapis::telemetry_control::v1::PostBuildingFullDuplexRequest_BuildingAsyncStatus_Success& data(const PostBuildingFullDuplexRequest_BuildingAsyncStatus* msg);
  static const ::keyapis::telemetry_control::v1::PostBuildingFullDuplexRequest_BuildingAsyncStatus_Error& error(const PostBuildingFullDuplexRequest_BuildingAsyncStatus* msg);
};

const ::keyapis::telemetry_control::v1::PostBuildingFullDuplexRequest_BuildingAsyncStatus_Success&
PostBuildingFullDuplexRequest_BuildingAsyncStatus::_Internal::data(const PostBuildingFullDuplexRequest_BuildingAsyncStatus* msg) {
  return *msg->_impl_.type_.data_;
}
const ::keyapis::telemetry_control::v1::PostBuildingFullDuplexRequest_BuildingAsyncStatus_Error&
PostBuildingFullDuplexRequest_BuildingAsyncStatus::_Internal::error(const PostBuildingFullDuplexRequest_BuildingAsyncStatus* msg) {
  return *msg->_impl_.type_.error_;
}
void PostBuildingFullDuplexRequest_BuildingAsyncStatus::set_allocated_data(::keyapis::telemetry_control::v1::PostBuildingFullDuplexRequest_BuildingAsyncStatus_Success* 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.telemetry_control.v1.PostBuildingFullDuplexRequest.BuildingAsyncStatus.data)
}
void PostBuildingFullDuplexRequest_BuildingAsyncStatus::set_allocated_error(::keyapis::telemetry_control::v1::PostBuildingFullDuplexRequest_BuildingAsyncStatus_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.telemetry_control.v1.PostBuildingFullDuplexRequest.BuildingAsyncStatus.error)
}
PostBuildingFullDuplexRequest_BuildingAsyncStatus::PostBuildingFullDuplexRequest_BuildingAsyncStatus(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) {
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:keyapis.telemetry_control.v1.PostBuildingFullDuplexRequest.BuildingAsyncStatus)
}
PostBuildingFullDuplexRequest_BuildingAsyncStatus::PostBuildingFullDuplexRequest_BuildingAsyncStatus(const PostBuildingFullDuplexRequest_BuildingAsyncStatus& from)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
  PostBuildingFullDuplexRequest_BuildingAsyncStatus* const _this = this; (void)_this;
  new (&_impl_) Impl_{
      decltype(_impl_.building_id_) {}

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

  _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
  _this->_impl_.building_id_ = from._impl_.building_id_;
  clear_has_type();
  switch (from.type_case()) {
    case kData: {
      _this->_internal_mutable_data()->::keyapis::telemetry_control::v1::PostBuildingFullDuplexRequest_BuildingAsyncStatus_Success::MergeFrom(
          from._internal_data());
      break;
    }
    case kError: {
      _this->_internal_mutable_error()->::keyapis::telemetry_control::v1::PostBuildingFullDuplexRequest_BuildingAsyncStatus_Error::MergeFrom(
          from._internal_error());
      break;
    }
    case TYPE_NOT_SET: {
      break;
    }
  }
  // @@protoc_insertion_point(copy_constructor:keyapis.telemetry_control.v1.PostBuildingFullDuplexRequest.BuildingAsyncStatus)
}

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

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

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

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

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

void PostBuildingFullDuplexRequest_BuildingAsyncStatus::clear_type() {
// @@protoc_insertion_point(one_of_clear_start:keyapis.telemetry_control.v1.PostBuildingFullDuplexRequest.BuildingAsyncStatus)
  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 PostBuildingFullDuplexRequest_BuildingAsyncStatus::Clear() {
// @@protoc_insertion_point(message_clear_start:keyapis.telemetry_control.v1.PostBuildingFullDuplexRequest.BuildingAsyncStatus)
  ::uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

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

const char* PostBuildingFullDuplexRequest_BuildingAsyncStatus::_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 building_id = 1 [(.google.api.field_behavior) = REQUIRED];
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
          _impl_.building_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
          CHK_(ptr);
        } else {
          goto handle_unusual;
        }
        continue;
      // .keyapis.telemetry_control.v1.PostBuildingFullDuplexRequest.BuildingAsyncStatus.Success data = 2;
      case 2:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
          ptr = ctx->ParseMessage(_internal_mutable_data(), ptr);
          CHK_(ptr);
        } else {
          goto handle_unusual;
        }
        continue;
      // .keyapis.telemetry_control.v1.PostBuildingFullDuplexRequest.BuildingAsyncStatus.Error error = 3;
      case 3:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 26)) {
          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* PostBuildingFullDuplexRequest_BuildingAsyncStatus::_InternalSerialize(
    ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:keyapis.telemetry_control.v1.PostBuildingFullDuplexRequest.BuildingAsyncStatus)
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

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

  switch (type_case()) {
    case kData: {
      target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
        InternalWriteMessage(2, _Internal::data(this),
          _Internal::data(this).GetCachedSize(), target, stream);
      break;
    }
    case kError: {
      target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
        InternalWriteMessage(3, _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.telemetry_control.v1.PostBuildingFullDuplexRequest.BuildingAsyncStatus)
  return target;
}

::size_t PostBuildingFullDuplexRequest_BuildingAsyncStatus::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:keyapis.telemetry_control.v1.PostBuildingFullDuplexRequest.BuildingAsyncStatus)
  ::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 building_id = 1 [(.google.api.field_behavior) = REQUIRED];
  if (this->_internal_building_id() != 0) {
    total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
        this->_internal_building_id());
  }

  switch (type_case()) {
    // .keyapis.telemetry_control.v1.PostBuildingFullDuplexRequest.BuildingAsyncStatus.Success data = 2;
    case kData: {
      total_size += 1 +
        ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
          *_impl_.type_.data_);
      break;
    }
    // .keyapis.telemetry_control.v1.PostBuildingFullDuplexRequest.BuildingAsyncStatus.Error error = 3;
    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 PostBuildingFullDuplexRequest_BuildingAsyncStatus::CheckTypeAndMergeFrom(
    const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
  MergeFrom(*::_pbi::DownCast<const PostBuildingFullDuplexRequest_BuildingAsyncStatus*>(
      &from));
}

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

  if (from._internal_building_id() != 0) {
    _this->_internal_set_building_id(from._internal_building_id());
  }
  switch (from.type_case()) {
    case kData: {
      _this->_internal_mutable_data()->::keyapis::telemetry_control::v1::PostBuildingFullDuplexRequest_BuildingAsyncStatus_Success::MergeFrom(
          from._internal_data());
      break;
    }
    case kError: {
      _this->_internal_mutable_error()->::keyapis::telemetry_control::v1::PostBuildingFullDuplexRequest_BuildingAsyncStatus_Error::MergeFrom(
          from._internal_error());
      break;
    }
    case TYPE_NOT_SET: {
      break;
    }
  }
  _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
}

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

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

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

  swap(_impl_.building_id_, other->_impl_.building_id_);
  swap(_impl_.type_, other->_impl_.type_);
  swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]);
}

std::string PostBuildingFullDuplexRequest_BuildingAsyncStatus::GetTypeName() const {
  return "keyapis.telemetry_control.v1.PostBuildingFullDuplexRequest.BuildingAsyncStatus";
}

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

class PostBuildingFullDuplexRequest::_Internal {
 public:
  static constexpr ::int32_t kOneofCaseOffset =
    PROTOBUF_FIELD_OFFSET(::keyapis::telemetry_control::v1::PostBuildingFullDuplexRequest, _impl_._oneof_case_);
  static const ::keyapis::telemetry_control::v1::PostBuildingFullDuplexRequest_BuildingAsyncStatus& building_async_status(const PostBuildingFullDuplexRequest* msg);
};

const ::keyapis::telemetry_control::v1::PostBuildingFullDuplexRequest_BuildingAsyncStatus&
PostBuildingFullDuplexRequest::_Internal::building_async_status(const PostBuildingFullDuplexRequest* msg) {
  return *msg->_impl_.task_.building_async_status_;
}
void PostBuildingFullDuplexRequest::set_allocated_building_async_status(::keyapis::telemetry_control::v1::PostBuildingFullDuplexRequest_BuildingAsyncStatus* building_async_status) {
  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
  clear_task();
  if (building_async_status) {
    ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
      ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(building_async_status);
    if (message_arena != submessage_arena) {
      building_async_status = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
          message_arena, building_async_status, submessage_arena);
    }
    set_has_building_async_status();
    _impl_.task_.building_async_status_ = building_async_status;
  }
  // @@protoc_insertion_point(field_set_allocated:keyapis.telemetry_control.v1.PostBuildingFullDuplexRequest.building_async_status)
}
PostBuildingFullDuplexRequest::PostBuildingFullDuplexRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) {
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:keyapis.telemetry_control.v1.PostBuildingFullDuplexRequest)
}
PostBuildingFullDuplexRequest::PostBuildingFullDuplexRequest(const PostBuildingFullDuplexRequest& from)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
  PostBuildingFullDuplexRequest* const _this = this; (void)_this;
  new (&_impl_) Impl_{
      decltype(_impl_.request_id_) {}

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

  _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
  _impl_.request_id_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
        _impl_.request_id_.Set("", GetArenaForAllocation());
  #endif  // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  if (!from._internal_request_id().empty()) {
    _this->_impl_.request_id_.Set(from._internal_request_id(), _this->GetArenaForAllocation());
  }
  clear_has_task();
  switch (from.task_case()) {
    case kBuildingAsyncStatus: {
      _this->_internal_mutable_building_async_status()->::keyapis::telemetry_control::v1::PostBuildingFullDuplexRequest_BuildingAsyncStatus::MergeFrom(
          from._internal_building_async_status());
      break;
    }
    case TASK_NOT_SET: {
      break;
    }
  }
  // @@protoc_insertion_point(copy_constructor:keyapis.telemetry_control.v1.PostBuildingFullDuplexRequest)
}

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

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

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

inline void PostBuildingFullDuplexRequest::SharedDtor() {
  ABSL_DCHECK(GetArenaForAllocation() == nullptr);
  _impl_.request_id_.Destroy();
  if (has_task()) {
    clear_task();
  }
}

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

void PostBuildingFullDuplexRequest::clear_task() {
// @@protoc_insertion_point(one_of_clear_start:keyapis.telemetry_control.v1.PostBuildingFullDuplexRequest)
  switch (task_case()) {
    case kBuildingAsyncStatus: {
      if (GetArenaForAllocation() == nullptr) {
        delete _impl_.task_.building_async_status_;
      }
      break;
    }
    case TASK_NOT_SET: {
      break;
    }
  }
  _impl_._oneof_case_[0] = TASK_NOT_SET;
}


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

  _impl_.request_id_.ClearToEmpty();
  clear_task();
  _internal_metadata_.Clear<std::string>();
}

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

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

  // .keyapis.telemetry_control.v1.PostBuildingFullDuplexRequest.BuildingAsyncStatus building_async_status = 2;
  if (task_case() == kBuildingAsyncStatus) {
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
      InternalWriteMessage(2, _Internal::building_async_status(this),
        _Internal::building_async_status(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.telemetry_control.v1.PostBuildingFullDuplexRequest)
  return target;
}

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

  switch (task_case()) {
    // .keyapis.telemetry_control.v1.PostBuildingFullDuplexRequest.BuildingAsyncStatus building_async_status = 2;
    case kBuildingAsyncStatus: {
      total_size += 1 +
        ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
          *_impl_.task_.building_async_status_);
      break;
    }
    case TASK_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 PostBuildingFullDuplexRequest::CheckTypeAndMergeFrom(
    const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
  MergeFrom(*::_pbi::DownCast<const PostBuildingFullDuplexRequest*>(
      &from));
}

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

  if (!from._internal_request_id().empty()) {
    _this->_internal_set_request_id(from._internal_request_id());
  }
  switch (from.task_case()) {
    case kBuildingAsyncStatus: {
      _this->_internal_mutable_building_async_status()->::keyapis::telemetry_control::v1::PostBuildingFullDuplexRequest_BuildingAsyncStatus::MergeFrom(
          from._internal_building_async_status());
      break;
    }
    case TASK_NOT_SET: {
      break;
    }
  }
  _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
}

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

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

void PostBuildingFullDuplexRequest::InternalSwap(PostBuildingFullDuplexRequest* other) {
  using std::swap;
  auto* lhs_arena = GetArenaForAllocation();
  auto* rhs_arena = other->GetArenaForAllocation();
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.request_id_, lhs_arena,
                                       &other->_impl_.request_id_, rhs_arena);
  swap(_impl_.task_, other->_impl_.task_);
  swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]);
}

std::string PostBuildingFullDuplexRequest::GetTypeName() const {
  return "keyapis.telemetry_control.v1.PostBuildingFullDuplexRequest";
}

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

class BuildingFilter::_Internal {
 public:
  using HasBits = decltype(std::declval<BuildingFilter>()._impl_._has_bits_);
  static constexpr ::int32_t kHasBitsOffset =
    8 * PROTOBUF_FIELD_OFFSET(BuildingFilter, _impl_._has_bits_);
  static const ::PROTOBUF_NAMESPACE_ID::StringValue& title(const BuildingFilter* msg);
  static void set_has_title(HasBits* has_bits) {
    (*has_bits)[0] |= 1u;
  }
  static const ::PROTOBUF_NAMESPACE_ID::Timestamp& after_created_at(const BuildingFilter* msg);
  static void set_has_after_created_at(HasBits* has_bits) {
    (*has_bits)[0] |= 2u;
  }
  static const ::PROTOBUF_NAMESPACE_ID::Timestamp& before_created_at(const BuildingFilter* msg);
  static void set_has_before_created_at(HasBits* has_bits) {
    (*has_bits)[0] |= 4u;
  }
};

const ::PROTOBUF_NAMESPACE_ID::StringValue&
BuildingFilter::_Internal::title(const BuildingFilter* msg) {
  return *msg->_impl_.title_;
}
const ::PROTOBUF_NAMESPACE_ID::Timestamp&
BuildingFilter::_Internal::after_created_at(const BuildingFilter* msg) {
  return *msg->_impl_.after_created_at_;
}
const ::PROTOBUF_NAMESPACE_ID::Timestamp&
BuildingFilter::_Internal::before_created_at(const BuildingFilter* msg) {
  return *msg->_impl_.before_created_at_;
}
void BuildingFilter::clear_fias_id() {
  _internal_mutable_fias_id()->Clear();
}
void BuildingFilter::clear_title() {
  if (_impl_.title_ != nullptr) _impl_.title_->Clear();
  _impl_._has_bits_[0] &= ~0x00000001u;
}
void BuildingFilter::clear_after_created_at() {
  if (_impl_.after_created_at_ != nullptr) _impl_.after_created_at_->Clear();
  _impl_._has_bits_[0] &= ~0x00000002u;
}
void BuildingFilter::clear_before_created_at() {
  if (_impl_.before_created_at_ != nullptr) _impl_.before_created_at_->Clear();
  _impl_._has_bits_[0] &= ~0x00000004u;
}
BuildingFilter::BuildingFilter(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) {
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:keyapis.telemetry_control.v1.BuildingFilter)
}
BuildingFilter::BuildingFilter(const BuildingFilter& from)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
  BuildingFilter* const _this = this; (void)_this;
  new (&_impl_) Impl_{
      decltype(_impl_._has_bits_){from._impl_._has_bits_}
    , /*decltype(_impl_._cached_size_)*/{}
    , decltype(_impl_.fias_id_){from._impl_.fias_id_}
    , decltype(_impl_.mrf_types_) { from._internal_mrf_types() }
    , /*decltype(_impl_._mrf_types_cached_byte_size_)*/ { 0 }

    , decltype(_impl_.rf_types_) { from._internal_rf_types() }
    , /*decltype(_impl_._rf_types_cached_byte_size_)*/ { 0 }

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

    , decltype(_impl_.orpons_) { from._impl_.orpons_ }
    ,/* _impl_._orpons_cached_byte_size_ = */ { 0 }

    , decltype(_impl_.title_){nullptr}
    , decltype(_impl_.after_created_at_){nullptr}
    , decltype(_impl_.before_created_at_){nullptr}};

  _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
  if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) {
    _this->_impl_.title_ = new ::PROTOBUF_NAMESPACE_ID::StringValue(*from._impl_.title_);
  }
  if ((from._impl_._has_bits_[0] & 0x00000002u) != 0) {
    _this->_impl_.after_created_at_ = new ::PROTOBUF_NAMESPACE_ID::Timestamp(*from._impl_.after_created_at_);
  }
  if ((from._impl_._has_bits_[0] & 0x00000004u) != 0) {
    _this->_impl_.before_created_at_ = new ::PROTOBUF_NAMESPACE_ID::Timestamp(*from._impl_.before_created_at_);
  }
  // @@protoc_insertion_point(copy_constructor:keyapis.telemetry_control.v1.BuildingFilter)
}

inline void BuildingFilter::SharedCtor(::_pb::Arena* arena) {
  (void)arena;
  new (&_impl_) Impl_{
      decltype(_impl_._has_bits_){}
    , /*decltype(_impl_._cached_size_)*/{}
    , decltype(_impl_.fias_id_){arena}
    , decltype(_impl_.mrf_types_) { arena }
    , /*decltype(_impl_._mrf_types_cached_byte_size_)*/ { 0 }

    , decltype(_impl_.rf_types_) { arena }
    , /*decltype(_impl_._rf_types_cached_byte_size_)*/ { 0 }

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

    , decltype(_impl_.orpons_) { arena }
    ,/* _impl_._orpons_cached_byte_size_ = */ { 0 }

    , decltype(_impl_.title_){nullptr}
    , decltype(_impl_.after_created_at_){nullptr}
    , decltype(_impl_.before_created_at_){nullptr}
  };
}

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

inline void BuildingFilter::SharedDtor() {
  ABSL_DCHECK(GetArenaForAllocation() == nullptr);
  _internal_mutable_fias_id()->~RepeatedPtrField();
  _internal_mutable_mrf_types()->~RepeatedField();
  _internal_mutable_rf_types()->~RepeatedField();
  _internal_mutable_status_types()->~RepeatedField();
  _impl_.orpons_.~RepeatedField();
  if (this != internal_default_instance()) delete _impl_.title_;
  if (this != internal_default_instance()) delete _impl_.after_created_at_;
  if (this != internal_default_instance()) delete _impl_.before_created_at_;
}

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

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

  _internal_mutable_fias_id()->Clear();
  _internal_mutable_mrf_types()->Clear();
  _internal_mutable_rf_types()->Clear();
  _internal_mutable_status_types()->Clear();
  _internal_mutable_orpons()->Clear();
  cached_has_bits = _impl_._has_bits_[0];
  if (cached_has_bits & 0x00000007u) {
    if (cached_has_bits & 0x00000001u) {
      ABSL_DCHECK(_impl_.title_ != nullptr);
      _impl_.title_->Clear();
    }
    if (cached_has_bits & 0x00000002u) {
      ABSL_DCHECK(_impl_.after_created_at_ != nullptr);
      _impl_.after_created_at_->Clear();
    }
    if (cached_has_bits & 0x00000004u) {
      ABSL_DCHECK(_impl_.before_created_at_ != nullptr);
      _impl_.before_created_at_->Clear();
    }
  }
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<std::string>();
}

const char* BuildingFilter::_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) {
      // repeated .google.protobuf.StringValue fias_id = 1;
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
          ptr -= 1;
          do {
            ptr += 1;
            ptr = ctx->ParseMessage(_internal_add_fias_id(), ptr);
            CHK_(ptr);
            if (!ctx->DataAvailable(ptr)) break;
          } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
        } else {
          goto handle_unusual;
        }
        continue;
      // .google.protobuf.StringValue title = 2;
      case 2:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
          ptr = ctx->ParseMessage(_internal_mutable_title(), ptr);
          CHK_(ptr);
        } else {
          goto handle_unusual;
        }
        continue;
      // .google.protobuf.Timestamp after_created_at = 3;
      case 3:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 26)) {
          ptr = ctx->ParseMessage(_internal_mutable_after_created_at(), ptr);
          CHK_(ptr);
        } else {
          goto handle_unusual;
        }
        continue;
      // .google.protobuf.Timestamp before_created_at = 4;
      case 4:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 34)) {
          ptr = ctx->ParseMessage(_internal_mutable_before_created_at(), ptr);
          CHK_(ptr);
        } else {
          goto handle_unusual;
        }
        continue;
      // repeated .keyapis.telemetry_control.v1.Building.MrfType mrf_types = 5;
      case 5:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 42)) {
          ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedEnumParser(_internal_mutable_mrf_types(), ptr, ctx);
          CHK_(ptr);
        } else if (static_cast<::uint8_t>(tag) == 40) {
          ::int32_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
          CHK_(ptr);
          _internal_add_mrf_types(static_cast<::keyapis::telemetry_control::v1::Building_MrfType>(val));
        } else {
          goto handle_unusual;
        }
        continue;
      // repeated .keyapis.telemetry_control.v1.Building.RfType rf_types = 6;
      case 6:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 50)) {
          ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedEnumParser(_internal_mutable_rf_types(), ptr, ctx);
          CHK_(ptr);
        } else if (static_cast<::uint8_t>(tag) == 48) {
          ::int32_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
          CHK_(ptr);
          _internal_add_rf_types(static_cast<::keyapis::telemetry_control::v1::Building_RfType>(val));
        } else {
          goto handle_unusual;
        }
        continue;
      // repeated .keyapis.telemetry_control.v1.Building.StatusType status_types = 7;
      case 7:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 58)) {
          ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedEnumParser(_internal_mutable_status_types(), ptr, ctx);
          CHK_(ptr);
        } else if (static_cast<::uint8_t>(tag) == 56) {
          ::int32_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
          CHK_(ptr);
          _internal_add_status_types(static_cast<::keyapis::telemetry_control::v1::Building_StatusType>(val));
        } else {
          goto handle_unusual;
        }
        continue;
      // repeated int64 orpons = 8;
      case 8:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 66)) {
          ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt64Parser(_internal_mutable_orpons(), ptr, ctx);
          CHK_(ptr);
        } else if (static_cast<::uint8_t>(tag) == 64) {
          _internal_add_orpons(::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:
  _impl_._has_bits_.Or(has_bits);
  return ptr;
failure:
  ptr = nullptr;
  goto message_done;
#undef CHK_
}

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

  // repeated .google.protobuf.StringValue fias_id = 1;
  for (unsigned i = 0,
      n = static_cast<unsigned>(this->_internal_fias_id_size()); i < n; i++) {
    const auto& repfield = this->_internal_fias_id(i);
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
        InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream);
  }

  cached_has_bits = _impl_._has_bits_[0];
  // .google.protobuf.StringValue title = 2;
  if (cached_has_bits & 0x00000001u) {
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
      InternalWriteMessage(2, _Internal::title(this),
        _Internal::title(this).GetCachedSize(), target, stream);
  }

  // .google.protobuf.Timestamp after_created_at = 3;
  if (cached_has_bits & 0x00000002u) {
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
      InternalWriteMessage(3, _Internal::after_created_at(this),
        _Internal::after_created_at(this).GetCachedSize(), target, stream);
  }

  // .google.protobuf.Timestamp before_created_at = 4;
  if (cached_has_bits & 0x00000004u) {
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
      InternalWriteMessage(4, _Internal::before_created_at(this),
        _Internal::before_created_at(this).GetCachedSize(), target, stream);
  }

  // repeated .keyapis.telemetry_control.v1.Building.MrfType mrf_types = 5;
  {
    int byte_size = _impl_._mrf_types_cached_byte_size_.Get();
    if (byte_size > 0) {
      target = stream->WriteEnumPacked(5, _internal_mrf_types(),
                                       byte_size, target);
    }
  }

  // repeated .keyapis.telemetry_control.v1.Building.RfType rf_types = 6;
  {
    int byte_size = _impl_._rf_types_cached_byte_size_.Get();
    if (byte_size > 0) {
      target = stream->WriteEnumPacked(6, _internal_rf_types(),
                                       byte_size, target);
    }
  }

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

  // repeated int64 orpons = 8;
  {
    int byte_size = _impl_._orpons_cached_byte_size_.Get();
    if (byte_size > 0) {
      target = stream->WriteInt64Packed(8, _internal_orpons(),
                                                 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.telemetry_control.v1.BuildingFilter)
  return target;
}

::size_t BuildingFilter::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:keyapis.telemetry_control.v1.BuildingFilter)
  ::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 .google.protobuf.StringValue fias_id = 1;
  total_size += 1UL * this->_internal_fias_id_size();
  for (const auto& msg : this->_internal_fias_id()) {
    total_size +=
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
  }

  // repeated .keyapis.telemetry_control.v1.Building.MrfType mrf_types = 5;
  {
    std::size_t data_size = 0;
    auto count = static_cast<std::size_t>(this->_internal_mrf_types_size());

    for (std::size_t i = 0; i < count; ++i) {
      data_size += ::_pbi::WireFormatLite::EnumSize(
          this->_internal_mrf_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_._mrf_types_cached_byte_size_.Set(::_pbi::ToCachedSize(data_size));
  }

  // repeated .keyapis.telemetry_control.v1.Building.RfType rf_types = 6;
  {
    std::size_t data_size = 0;
    auto count = static_cast<std::size_t>(this->_internal_rf_types_size());

    for (std::size_t i = 0; i < count; ++i) {
      data_size += ::_pbi::WireFormatLite::EnumSize(
          this->_internal_rf_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_._rf_types_cached_byte_size_.Set(::_pbi::ToCachedSize(data_size));
  }

  // repeated .keyapis.telemetry_control.v1.Building.StatusType status_types = 7;
  {
    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 orpons = 8;
  {
    std::size_t data_size = ::_pbi::WireFormatLite::Int64Size(
        this->_internal_orpons())
    ;
    _impl_._orpons_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;
  }

  cached_has_bits = _impl_._has_bits_[0];
  if (cached_has_bits & 0x00000007u) {
    // .google.protobuf.StringValue title = 2;
    if (cached_has_bits & 0x00000001u) {
      total_size += 1 +
        ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
          *_impl_.title_);
    }

    // .google.protobuf.Timestamp after_created_at = 3;
    if (cached_has_bits & 0x00000002u) {
      total_size += 1 +
        ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
          *_impl_.after_created_at_);
    }

    // .google.protobuf.Timestamp before_created_at = 4;
    if (cached_has_bits & 0x00000004u) {
      total_size += 1 +
        ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
          *_impl_.before_created_at_);
    }

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

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

  _this->_internal_mutable_fias_id()->MergeFrom(from._internal_fias_id());
  _this->_internal_mutable_mrf_types()->MergeFrom(from._internal_mrf_types());
  _this->_internal_mutable_rf_types()->MergeFrom(from._internal_rf_types());
  _this->_internal_mutable_status_types()->MergeFrom(from._internal_status_types());
  _this->_impl_.orpons_.MergeFrom(from._impl_.orpons_);
  cached_has_bits = from._impl_._has_bits_[0];
  if (cached_has_bits & 0x00000007u) {
    if (cached_has_bits & 0x00000001u) {
      _this->_internal_mutable_title()->::PROTOBUF_NAMESPACE_ID::StringValue::MergeFrom(
          from._internal_title());
    }
    if (cached_has_bits & 0x00000002u) {
      _this->_internal_mutable_after_created_at()->::PROTOBUF_NAMESPACE_ID::Timestamp::MergeFrom(
          from._internal_after_created_at());
    }
    if (cached_has_bits & 0x00000004u) {
      _this->_internal_mutable_before_created_at()->::PROTOBUF_NAMESPACE_ID::Timestamp::MergeFrom(
          from._internal_before_created_at());
    }
  }
  _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
}

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

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

void BuildingFilter::InternalSwap(BuildingFilter* other) {
  using std::swap;
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
  _internal_mutable_fias_id()->InternalSwap(other->_internal_mutable_fias_id());
  _internal_mutable_mrf_types()->InternalSwap(
      other->_internal_mutable_mrf_types());
  _internal_mutable_rf_types()->InternalSwap(
      other->_internal_mutable_rf_types());
  _internal_mutable_status_types()->InternalSwap(
      other->_internal_mutable_status_types());
  _impl_.orpons_.InternalSwap(&other->_impl_.orpons_);
  ::PROTOBUF_NAMESPACE_ID::internal::memswap<
      PROTOBUF_FIELD_OFFSET(BuildingFilter, _impl_.before_created_at_)
      + sizeof(BuildingFilter::_impl_.before_created_at_)
      - PROTOBUF_FIELD_OFFSET(BuildingFilter, _impl_.title_)>(
          reinterpret_cast<char*>(&_impl_.title_),
          reinterpret_cast<char*>(&other->_impl_.title_));
}

std::string BuildingFilter::GetTypeName() const {
  return "keyapis.telemetry_control.v1.BuildingFilter";
}

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

class BuildingGroupFilter::_Internal {
 public:
};

BuildingGroupFilter::BuildingGroupFilter(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) {
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:keyapis.telemetry_control.v1.BuildingGroupFilter)
}
BuildingGroupFilter::BuildingGroupFilter(const BuildingGroupFilter& from)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
  BuildingGroupFilter* const _this = this; (void)_this;
  new (&_impl_) Impl_{
      decltype(_impl_.group_ids_){from._impl_.group_ids_}
    , decltype(_impl_.building_ids_) { from._impl_.building_ids_ }
    ,/* _impl_._building_ids_cached_byte_size_ = */ { 0 }

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

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

inline void BuildingGroupFilter::SharedCtor(::_pb::Arena* arena) {
  (void)arena;
  new (&_impl_) Impl_{
      decltype(_impl_.group_ids_){arena}
    , decltype(_impl_.building_ids_) { arena }
    ,/* _impl_._building_ids_cached_byte_size_ = */ { 0 }

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

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

inline void BuildingGroupFilter::SharedDtor() {
  ABSL_DCHECK(GetArenaForAllocation() == nullptr);
  _internal_mutable_group_ids()->~RepeatedPtrField();
  _impl_.building_ids_.~RepeatedField();
}

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

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

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

const char* BuildingGroupFilter::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  while (!ctx->Done(&ptr)) {
    ::uint32_t tag;
    ptr = ::_pbi::ReadTag(ptr, &tag);
    switch (tag >> 3) {
      // repeated string group_ids = 1;
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
          ptr -= 1;
          do {
            ptr += 1;
            auto str = _internal_add_group_ids();
            ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
            CHK_(ptr);
            CHK_(::_pbi::VerifyUTF8(str, nullptr));
            if (!ctx->DataAvailable(ptr)) break;
          } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
        } else {
          goto handle_unusual;
        }
        continue;
      // repeated int32 building_ids = 2;
      case 2:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
          ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt32Parser(_internal_mutable_building_ids(), ptr, ctx);
          CHK_(ptr);
        } else if (static_cast<::uint8_t>(tag) == 16) {
          _internal_add_building_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* BuildingGroupFilter::_InternalSerialize(
    ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:keyapis.telemetry_control.v1.BuildingGroupFilter)
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

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

  // repeated int32 building_ids = 2;
  {
    int byte_size = _impl_._building_ids_cached_byte_size_.Get();
    if (byte_size > 0) {
      target = stream->WriteInt32Packed(2, _internal_building_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.telemetry_control.v1.BuildingGroupFilter)
  return target;
}

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

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

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

  // repeated int32 building_ids = 2;
  {
    std::size_t data_size = ::_pbi::WireFormatLite::Int32Size(
        this->_internal_building_ids())
    ;
    _impl_._building_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 BuildingGroupFilter::CheckTypeAndMergeFrom(
    const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
  MergeFrom(*::_pbi::DownCast<const BuildingGroupFilter*>(
      &from));
}

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

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

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

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

void BuildingGroupFilter::InternalSwap(BuildingGroupFilter* other) {
  using std::swap;
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  _internal_mutable_group_ids()->InternalSwap(
      other->_internal_mutable_group_ids());
  _impl_.building_ids_.InternalSwap(&other->_impl_.building_ids_);
}

std::string BuildingGroupFilter::GetTypeName() const {
  return "keyapis.telemetry_control.v1.BuildingGroupFilter";
}

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

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

const ::keyapis::telemetry_control::v1::BuildingFilter&
GetBuildingCountRequest::_Internal::filter(const GetBuildingCountRequest* msg) {
  return *msg->_impl_.filter_;
}
GetBuildingCountRequest::GetBuildingCountRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) {
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:keyapis.telemetry_control.v1.GetBuildingCountRequest)
}
GetBuildingCountRequest::GetBuildingCountRequest(const GetBuildingCountRequest& from)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
  GetBuildingCountRequest* 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::telemetry_control::v1::BuildingFilter(*from._impl_.filter_);
  }
  // @@protoc_insertion_point(copy_constructor:keyapis.telemetry_control.v1.GetBuildingCountRequest)
}

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

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

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

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

void GetBuildingCountRequest::Clear() {
// @@protoc_insertion_point(message_clear_start:keyapis.telemetry_control.v1.GetBuildingCountRequest)
  ::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* GetBuildingCountRequest::_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.telemetry_control.v1.BuildingFilter 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* GetBuildingCountRequest::_InternalSerialize(
    ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:keyapis.telemetry_control.v1.GetBuildingCountRequest)
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  cached_has_bits = _impl_._has_bits_[0];
  // .keyapis.telemetry_control.v1.BuildingFilter 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.telemetry_control.v1.GetBuildingCountRequest)
  return target;
}

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

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

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

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

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

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

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

const ::keyapis::telemetry_control::v1::BuildingGroupFilter&
GetBuildingGroupCountRequest::_Internal::filter(const GetBuildingGroupCountRequest* msg) {
  return *msg->_impl_.filter_;
}
GetBuildingGroupCountRequest::GetBuildingGroupCountRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) {
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:keyapis.telemetry_control.v1.GetBuildingGroupCountRequest)
}
GetBuildingGroupCountRequest::GetBuildingGroupCountRequest(const GetBuildingGroupCountRequest& from)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
  GetBuildingGroupCountRequest* 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::telemetry_control::v1::BuildingGroupFilter(*from._impl_.filter_);
  }
  // @@protoc_insertion_point(copy_constructor:keyapis.telemetry_control.v1.GetBuildingGroupCountRequest)
}

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

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

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

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

void GetBuildingGroupCountRequest::Clear() {
// @@protoc_insertion_point(message_clear_start:keyapis.telemetry_control.v1.GetBuildingGroupCountRequest)
  ::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* GetBuildingGroupCountRequest::_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.telemetry_control.v1.BuildingGroupFilter 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* GetBuildingGroupCountRequest::_InternalSerialize(
    ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:keyapis.telemetry_control.v1.GetBuildingGroupCountRequest)
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  cached_has_bits = _impl_._has_bits_[0];
  // .keyapis.telemetry_control.v1.BuildingGroupFilter 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.telemetry_control.v1.GetBuildingGroupCountRequest)
  return target;
}

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

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

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

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

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

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

class GetBuildingCountResponse::_Internal {
 public:
  static constexpr ::int32_t kOneofCaseOffset =
    PROTOBUF_FIELD_OFFSET(::keyapis::telemetry_control::v1::GetBuildingCountResponse, _impl_._oneof_case_);
};

GetBuildingCountResponse::GetBuildingCountResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) {
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:keyapis.telemetry_control.v1.GetBuildingCountResponse)
}
GetBuildingCountResponse::GetBuildingCountResponse(const GetBuildingCountResponse& from)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
  GetBuildingCountResponse* 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 TYPE_NOT_SET: {
      break;
    }
  }
  // @@protoc_insertion_point(copy_constructor:keyapis.telemetry_control.v1.GetBuildingCountResponse)
}

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

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

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

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

void GetBuildingCountResponse::clear_type() {
// @@protoc_insertion_point(one_of_clear_start:keyapis.telemetry_control.v1.GetBuildingCountResponse)
  switch (type_case()) {
    case kData: {
      // No need to clear
      break;
    }
    case TYPE_NOT_SET: {
      break;
    }
  }
  _impl_._oneof_case_[0] = TYPE_NOT_SET;
}


void GetBuildingCountResponse::Clear() {
// @@protoc_insertion_point(message_clear_start:keyapis.telemetry_control.v1.GetBuildingCountResponse)
  ::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* GetBuildingCountResponse::_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;
      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* GetBuildingCountResponse::_InternalSerialize(
    ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:keyapis.telemetry_control.v1.GetBuildingCountResponse)
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

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

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

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

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

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

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

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

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

class GetBuildingGroupCountResponse::_Internal {
 public:
  static constexpr ::int32_t kOneofCaseOffset =
    PROTOBUF_FIELD_OFFSET(::keyapis::telemetry_control::v1::GetBuildingGroupCountResponse, _impl_._oneof_case_);
};

GetBuildingGroupCountResponse::GetBuildingGroupCountResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) {
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:keyapis.telemetry_control.v1.GetBuildingGroupCountResponse)
}
GetBuildingGroupCountResponse::GetBuildingGroupCountResponse(const GetBuildingGroupCountResponse& from)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
  GetBuildingGroupCountResponse* 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 TYPE_NOT_SET: {
      break;
    }
  }
  // @@protoc_insertion_point(copy_constructor:keyapis.telemetry_control.v1.GetBuildingGroupCountResponse)
}

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

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

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

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

void GetBuildingGroupCountResponse::clear_type() {
// @@protoc_insertion_point(one_of_clear_start:keyapis.telemetry_control.v1.GetBuildingGroupCountResponse)
  switch (type_case()) {
    case kData: {
      // No need to clear
      break;
    }
    case TYPE_NOT_SET: {
      break;
    }
  }
  _impl_._oneof_case_[0] = TYPE_NOT_SET;
}


void GetBuildingGroupCountResponse::Clear() {
// @@protoc_insertion_point(message_clear_start:keyapis.telemetry_control.v1.GetBuildingGroupCountResponse)
  ::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* GetBuildingGroupCountResponse::_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;
      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* GetBuildingGroupCountResponse::_InternalSerialize(
    ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:keyapis.telemetry_control.v1.GetBuildingGroupCountResponse)
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

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

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

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

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

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

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

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

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

class DeleteBuildingRequest::_Internal {
 public:
};

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

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

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

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

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

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

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

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

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

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

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

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

std::string DeleteBuildingRequest::GetTypeName() const {
  return "keyapis.telemetry_control.v1.DeleteBuildingRequest";
}

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

class DeleteBuildingResponse::_Internal {
 public:
};

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

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

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

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

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

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

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

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

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

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

std::string DeleteBuildingResponse::GetTypeName() const {
  return "keyapis.telemetry_control.v1.DeleteBuildingResponse";
}

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

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

const ::keyapis::telemetry_control::v1::BuildingGroup&
PutBuildingGroupDetachRequest::_Internal::building_group(const PutBuildingGroupDetachRequest* msg) {
  return *msg->_impl_.building_group_;
}
PutBuildingGroupDetachRequest::PutBuildingGroupDetachRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) {
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:keyapis.telemetry_control.v1.PutBuildingGroupDetachRequest)
}
PutBuildingGroupDetachRequest::PutBuildingGroupDetachRequest(const PutBuildingGroupDetachRequest& from)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
  PutBuildingGroupDetachRequest* const _this = this; (void)_this;
  new (&_impl_) Impl_{
      decltype(_impl_._has_bits_){from._impl_._has_bits_}
    , /*decltype(_impl_._cached_size_)*/{}
    , decltype(_impl_.building_group_){nullptr}};

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

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

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

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

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

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

const char* PutBuildingGroupDetachRequest::_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.telemetry_control.v1.BuildingGroup building_group = 1 [(.google.api.field_behavior) = REQUIRED];
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
          ptr = ctx->ParseMessage(_internal_mutable_building_group(), 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* PutBuildingGroupDetachRequest::_InternalSerialize(
    ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:keyapis.telemetry_control.v1.PutBuildingGroupDetachRequest)
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  cached_has_bits = _impl_._has_bits_[0];
  // .keyapis.telemetry_control.v1.BuildingGroup building_group = 1 [(.google.api.field_behavior) = REQUIRED];
  if (cached_has_bits & 0x00000001u) {
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
      InternalWriteMessage(1, _Internal::building_group(this),
        _Internal::building_group(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.telemetry_control.v1.PutBuildingGroupDetachRequest)
  return target;
}

::size_t PutBuildingGroupDetachRequest::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:keyapis.telemetry_control.v1.PutBuildingGroupDetachRequest)
  ::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.telemetry_control.v1.BuildingGroup building_group = 1 [(.google.api.field_behavior) = REQUIRED];
  cached_has_bits = _impl_._has_bits_[0];
  if (cached_has_bits & 0x00000001u) {
    total_size += 1 +
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
        *_impl_.building_group_);
  }

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

void PutBuildingGroupDetachRequest::MergeFrom(const PutBuildingGroupDetachRequest& from) {
  PutBuildingGroupDetachRequest* const _this = this;
  // @@protoc_insertion_point(class_specific_merge_from_start:keyapis.telemetry_control.v1.PutBuildingGroupDetachRequest)
  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_building_group()->::keyapis::telemetry_control::v1::BuildingGroup::MergeFrom(
        from._internal_building_group());
  }
  _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
}

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

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

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

std::string PutBuildingGroupDetachRequest::GetTypeName() const {
  return "keyapis.telemetry_control.v1.PutBuildingGroupDetachRequest";
}

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

class PutBuildingGroupDetachResponse::_Internal {
 public:
};

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

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

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

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

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

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

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

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

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

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

std::string PutBuildingGroupDetachResponse::GetTypeName() const {
  return "keyapis.telemetry_control.v1.PutBuildingGroupDetachResponse";
}

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

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

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

    , decltype(_impl_.full_address_) {}

    , decltype(_impl_.created_at_){nullptr}
    , decltype(_impl_.changed_at_){nullptr}
    , decltype(_impl_.fias_id_){nullptr}
    , decltype(_impl_.id_) {}

    , decltype(_impl_.utc_offset_) {}

    , decltype(_impl_.mrf_type_) {}

    , decltype(_impl_.rf_type_) {}

    , decltype(_impl_.orpon_) {}

    , decltype(_impl_.status_type_) {}
  };

  _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
  _impl_.title_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
        _impl_.title_.Set("", GetArenaForAllocation());
  #endif  // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  if (!from._internal_title().empty()) {
    _this->_impl_.title_.Set(from._internal_title(), _this->GetArenaForAllocation());
  }
  _impl_.full_address_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
        _impl_.full_address_.Set("", GetArenaForAllocation());
  #endif  // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  if (!from._internal_full_address().empty()) {
    _this->_impl_.full_address_.Set(from._internal_full_address(), _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_);
  }
  if ((from._impl_._has_bits_[0] & 0x00000004u) != 0) {
    _this->_impl_.fias_id_ = new ::PROTOBUF_NAMESPACE_ID::StringValue(*from._impl_.fias_id_);
  }
  ::memcpy(&_impl_.id_, &from._impl_.id_,
    static_cast<::size_t>(reinterpret_cast<char*>(&_impl_.status_type_) -
    reinterpret_cast<char*>(&_impl_.id_)) + sizeof(_impl_.status_type_));
  // @@protoc_insertion_point(copy_constructor:keyapis.telemetry_control.v1.Building)
}

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

    , decltype(_impl_.full_address_) {}

    , decltype(_impl_.created_at_){nullptr}
    , decltype(_impl_.changed_at_){nullptr}
    , decltype(_impl_.fias_id_){nullptr}
    , decltype(_impl_.id_) { 0 }

    , decltype(_impl_.utc_offset_) { 0 }

    , decltype(_impl_.mrf_type_) { 0 }

    , decltype(_impl_.rf_type_) { 0 }

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

    , decltype(_impl_.status_type_) { 0 }

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

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

inline void Building::SharedDtor() {
  ABSL_DCHECK(GetArenaForAllocation() == nullptr);
  _impl_.title_.Destroy();
  _impl_.full_address_.Destroy();
  if (this != internal_default_instance()) delete _impl_.created_at_;
  if (this != internal_default_instance()) delete _impl_.changed_at_;
  if (this != internal_default_instance()) delete _impl_.fias_id_;
}

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

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

  _impl_.title_.ClearToEmpty();
  _impl_.full_address_.ClearToEmpty();
  cached_has_bits = _impl_._has_bits_[0];
  if (cached_has_bits & 0x00000007u) {
    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();
    }
    if (cached_has_bits & 0x00000004u) {
      ABSL_DCHECK(_impl_.fias_id_ != nullptr);
      _impl_.fias_id_->Clear();
    }
  }
  ::memset(&_impl_.id_, 0, static_cast<::size_t>(
      reinterpret_cast<char*>(&_impl_.status_type_) -
      reinterpret_cast<char*>(&_impl_.id_)) + sizeof(_impl_.status_type_));
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<std::string>();
}

const char* Building::_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;
      // string title = 2;
      case 2:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
          auto str = _internal_mutable_title();
          ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
          CHK_(ptr);
          CHK_(::_pbi::VerifyUTF8(str, nullptr));
        } else {
          goto handle_unusual;
        }
        continue;
      // .google.protobuf.Timestamp created_at = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      case 3:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 26)) {
          ptr = ctx->ParseMessage(_internal_mutable_created_at(), ptr);
          CHK_(ptr);
        } else {
          goto handle_unusual;
        }
        continue;
      // .google.protobuf.Timestamp changed_at = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      case 4:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 34)) {
          ptr = ctx->ParseMessage(_internal_mutable_changed_at(), ptr);
          CHK_(ptr);
        } else {
          goto handle_unusual;
        }
        continue;
      // int32 utc_offset = 5 [(.google.api.field_behavior) = REQUIRED];
      case 5:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 40)) {
          _impl_.utc_offset_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
          CHK_(ptr);
        } else {
          goto handle_unusual;
        }
        continue;
      // .google.protobuf.StringValue fias_id = 6;
      case 6:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 50)) {
          ptr = ctx->ParseMessage(_internal_mutable_fias_id(), ptr);
          CHK_(ptr);
        } else {
          goto handle_unusual;
        }
        continue;
      // .keyapis.telemetry_control.v1.Building.MrfType mrf_type = 7;
      case 7:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 56)) {
          ::int32_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
          CHK_(ptr);
          _internal_set_mrf_type(static_cast<::keyapis::telemetry_control::v1::Building_MrfType>(val));
        } else {
          goto handle_unusual;
        }
        continue;
      // .keyapis.telemetry_control.v1.Building.RfType rf_type = 8;
      case 8:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 64)) {
          ::int32_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
          CHK_(ptr);
          _internal_set_rf_type(static_cast<::keyapis::telemetry_control::v1::Building_RfType>(val));
        } else {
          goto handle_unusual;
        }
        continue;
      // .keyapis.telemetry_control.v1.Building.StatusType status_type = 9;
      case 9:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 72)) {
          ::int32_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
          CHK_(ptr);
          _internal_set_status_type(static_cast<::keyapis::telemetry_control::v1::Building_StatusType>(val));
        } else {
          goto handle_unusual;
        }
        continue;
      // string full_address = 10;
      case 10:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 82)) {
          auto str = _internal_mutable_full_address();
          ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
          CHK_(ptr);
          CHK_(::_pbi::VerifyUTF8(str, nullptr));
        } else {
          goto handle_unusual;
        }
        continue;
      // int64 orpon = 11;
      case 11:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 88)) {
          _impl_.orpon_ = ::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:
  _impl_._has_bits_.Or(has_bits);
  return ptr;
failure:
  ptr = nullptr;
  goto message_done;
#undef CHK_
}

::uint8_t* Building::_InternalSerialize(
    ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:keyapis.telemetry_control.v1.Building)
  ::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);
  }

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

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

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

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

  // .google.protobuf.StringValue fias_id = 6;
  if (cached_has_bits & 0x00000004u) {
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
      InternalWriteMessage(6, _Internal::fias_id(this),
        _Internal::fias_id(this).GetCachedSize(), target, stream);
  }

  // .keyapis.telemetry_control.v1.Building.MrfType mrf_type = 7;
  if (this->_internal_mrf_type() != 0) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteEnumToArray(
        7, this->_internal_mrf_type(), target);
  }

  // .keyapis.telemetry_control.v1.Building.RfType rf_type = 8;
  if (this->_internal_rf_type() != 0) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteEnumToArray(
        8, this->_internal_rf_type(), target);
  }

  // .keyapis.telemetry_control.v1.Building.StatusType status_type = 9;
  if (this->_internal_status_type() != 0) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteEnumToArray(
        9, this->_internal_status_type(), target);
  }

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

  // int64 orpon = 11;
  if (this->_internal_orpon() != 0) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteInt64ToArray(
        11, this->_internal_orpon(), 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.telemetry_control.v1.Building)
  return target;
}

::size_t Building::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:keyapis.telemetry_control.v1.Building)
  ::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 title = 2;
  if (!this->_internal_title().empty()) {
    total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
                                    this->_internal_title());
  }

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

  cached_has_bits = _impl_._has_bits_[0];
  if (cached_has_bits & 0x00000007u) {
    // .google.protobuf.Timestamp created_at = 3 [(.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 = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    if (cached_has_bits & 0x00000002u) {
      total_size += 1 +
        ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
          *_impl_.changed_at_);
    }

    // .google.protobuf.StringValue fias_id = 6;
    if (cached_has_bits & 0x00000004u) {
      total_size += 1 +
        ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
          *_impl_.fias_id_);
    }

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

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

  // .keyapis.telemetry_control.v1.Building.MrfType mrf_type = 7;
  if (this->_internal_mrf_type() != 0) {
    total_size += 1 +
                  ::_pbi::WireFormatLite::EnumSize(this->_internal_mrf_type());
  }

  // .keyapis.telemetry_control.v1.Building.RfType rf_type = 8;
  if (this->_internal_rf_type() != 0) {
    total_size += 1 +
                  ::_pbi::WireFormatLite::EnumSize(this->_internal_rf_type());
  }

  // int64 orpon = 11;
  if (this->_internal_orpon() != 0) {
    total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
        this->_internal_orpon());
  }

  // .keyapis.telemetry_control.v1.Building.StatusType status_type = 9;
  if (this->_internal_status_type() != 0) {
    total_size += 1 +
                  ::_pbi::WireFormatLite::EnumSize(this->_internal_status_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 Building::CheckTypeAndMergeFrom(
    const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
  MergeFrom(*::_pbi::DownCast<const Building*>(
      &from));
}

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

  if (!from._internal_title().empty()) {
    _this->_internal_set_title(from._internal_title());
  }
  if (!from._internal_full_address().empty()) {
    _this->_internal_set_full_address(from._internal_full_address());
  }
  cached_has_bits = from._impl_._has_bits_[0];
  if (cached_has_bits & 0x00000007u) {
    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 (cached_has_bits & 0x00000004u) {
      _this->_internal_mutable_fias_id()->::PROTOBUF_NAMESPACE_ID::StringValue::MergeFrom(
          from._internal_fias_id());
    }
  }
  if (from._internal_id() != 0) {
    _this->_internal_set_id(from._internal_id());
  }
  if (from._internal_utc_offset() != 0) {
    _this->_internal_set_utc_offset(from._internal_utc_offset());
  }
  if (from._internal_mrf_type() != 0) {
    _this->_internal_set_mrf_type(from._internal_mrf_type());
  }
  if (from._internal_rf_type() != 0) {
    _this->_internal_set_rf_type(from._internal_rf_type());
  }
  if (from._internal_orpon() != 0) {
    _this->_internal_set_orpon(from._internal_orpon());
  }
  if (from._internal_status_type() != 0) {
    _this->_internal_set_status_type(from._internal_status_type());
  }
  _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
}

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

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

void Building::InternalSwap(Building* 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_.title_, lhs_arena,
                                       &other->_impl_.title_, rhs_arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.full_address_, lhs_arena,
                                       &other->_impl_.full_address_, rhs_arena);
  ::PROTOBUF_NAMESPACE_ID::internal::memswap<
      PROTOBUF_FIELD_OFFSET(Building, _impl_.status_type_)
      + sizeof(Building::_impl_.status_type_)
      - PROTOBUF_FIELD_OFFSET(Building, _impl_.created_at_)>(
          reinterpret_cast<char*>(&_impl_.created_at_),
          reinterpret_cast<char*>(&other->_impl_.created_at_));
}

std::string Building::GetTypeName() const {
  return "keyapis.telemetry_control.v1.Building";
}

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

class BuildingGroup::_Internal {
 public:
};

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

    , decltype(_impl_.building_id_) {}

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

  _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
  _impl_.group_id_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
        _impl_.group_id_.Set("", GetArenaForAllocation());
  #endif  // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  if (!from._internal_group_id().empty()) {
    _this->_impl_.group_id_.Set(from._internal_group_id(), _this->GetArenaForAllocation());
  }
  _this->_impl_.building_id_ = from._impl_.building_id_;
  // @@protoc_insertion_point(copy_constructor:keyapis.telemetry_control.v1.BuildingGroup)
}

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

    , decltype(_impl_.building_id_) { 0 }

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

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

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

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

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

  _impl_.group_id_.ClearToEmpty();
  _impl_.building_id_ = 0;
  _internal_metadata_.Clear<std::string>();
}

const char* BuildingGroup::_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 group_id = 1 [(.google.api.field_behavior) = REQUIRED];
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
          auto str = _internal_mutable_group_id();
          ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
          CHK_(ptr);
          CHK_(::_pbi::VerifyUTF8(str, nullptr));
        } else {
          goto handle_unusual;
        }
        continue;
      // int32 building_id = 2 [(.google.api.field_behavior) = REQUIRED];
      case 2:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
          _impl_.building_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* BuildingGroup::_InternalSerialize(
    ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:keyapis.telemetry_control.v1.BuildingGroup)
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

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

  // int32 building_id = 2 [(.google.api.field_behavior) = REQUIRED];
  if (this->_internal_building_id() != 0) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteInt32ToArray(
        2, this->_internal_building_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.telemetry_control.v1.BuildingGroup)
  return target;
}

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

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

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

  if (!from._internal_group_id().empty()) {
    _this->_internal_set_group_id(from._internal_group_id());
  }
  if (from._internal_building_id() != 0) {
    _this->_internal_set_building_id(from._internal_building_id());
  }
  _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
}

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

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

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

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

std::string BuildingGroup::GetTypeName() const {
  return "keyapis.telemetry_control.v1.BuildingGroup";
}

// @@protoc_insertion_point(namespace_scope)
}  // namespace v1
}  // namespace telemetry_control
}  // namespace keyapis
PROTOBUF_NAMESPACE_OPEN
template<> PROTOBUF_NOINLINE ::keyapis::telemetry_control::v1::PostBuildingRequest*
Arena::CreateMaybeMessage< ::keyapis::telemetry_control::v1::PostBuildingRequest >(Arena* arena) {
  return Arena::CreateMessageInternal< ::keyapis::telemetry_control::v1::PostBuildingRequest >(arena);
}
template<> PROTOBUF_NOINLINE ::keyapis::telemetry_control::v1::PutBuildingGroupAttachRequest*
Arena::CreateMaybeMessage< ::keyapis::telemetry_control::v1::PutBuildingGroupAttachRequest >(Arena* arena) {
  return Arena::CreateMessageInternal< ::keyapis::telemetry_control::v1::PutBuildingGroupAttachRequest >(arena);
}
template<> PROTOBUF_NOINLINE ::keyapis::telemetry_control::v1::PostBuildingResponse*
Arena::CreateMaybeMessage< ::keyapis::telemetry_control::v1::PostBuildingResponse >(Arena* arena) {
  return Arena::CreateMessageInternal< ::keyapis::telemetry_control::v1::PostBuildingResponse >(arena);
}
template<> PROTOBUF_NOINLINE ::keyapis::telemetry_control::v1::PutBuildingGroupAttachResponse*
Arena::CreateMaybeMessage< ::keyapis::telemetry_control::v1::PutBuildingGroupAttachResponse >(Arena* arena) {
  return Arena::CreateMessageInternal< ::keyapis::telemetry_control::v1::PutBuildingGroupAttachResponse >(arena);
}
template<> PROTOBUF_NOINLINE ::keyapis::telemetry_control::v1::GetBuildingRequest*
Arena::CreateMaybeMessage< ::keyapis::telemetry_control::v1::GetBuildingRequest >(Arena* arena) {
  return Arena::CreateMessageInternal< ::keyapis::telemetry_control::v1::GetBuildingRequest >(arena);
}
template<> PROTOBUF_NOINLINE ::keyapis::telemetry_control::v1::GetBuildingResponse*
Arena::CreateMaybeMessage< ::keyapis::telemetry_control::v1::GetBuildingResponse >(Arena* arena) {
  return Arena::CreateMessageInternal< ::keyapis::telemetry_control::v1::GetBuildingResponse >(arena);
}
template<> PROTOBUF_NOINLINE ::keyapis::telemetry_control::v1::GetBuildingListRequest*
Arena::CreateMaybeMessage< ::keyapis::telemetry_control::v1::GetBuildingListRequest >(Arena* arena) {
  return Arena::CreateMessageInternal< ::keyapis::telemetry_control::v1::GetBuildingListRequest >(arena);
}
template<> PROTOBUF_NOINLINE ::keyapis::telemetry_control::v1::GetBuildingGroupListRequest*
Arena::CreateMaybeMessage< ::keyapis::telemetry_control::v1::GetBuildingGroupListRequest >(Arena* arena) {
  return Arena::CreateMessageInternal< ::keyapis::telemetry_control::v1::GetBuildingGroupListRequest >(arena);
}
template<> PROTOBUF_NOINLINE ::keyapis::telemetry_control::v1::BuildingGroupPaging*
Arena::CreateMaybeMessage< ::keyapis::telemetry_control::v1::BuildingGroupPaging >(Arena* arena) {
  return Arena::CreateMessageInternal< ::keyapis::telemetry_control::v1::BuildingGroupPaging >(arena);
}
template<> PROTOBUF_NOINLINE ::keyapis::telemetry_control::v1::BuildingPaging*
Arena::CreateMaybeMessage< ::keyapis::telemetry_control::v1::BuildingPaging >(Arena* arena) {
  return Arena::CreateMessageInternal< ::keyapis::telemetry_control::v1::BuildingPaging >(arena);
}
template<> PROTOBUF_NOINLINE ::keyapis::telemetry_control::v1::GetBuildingListResponse*
Arena::CreateMaybeMessage< ::keyapis::telemetry_control::v1::GetBuildingListResponse >(Arena* arena) {
  return Arena::CreateMessageInternal< ::keyapis::telemetry_control::v1::GetBuildingListResponse >(arena);
}
template<> PROTOBUF_NOINLINE ::keyapis::telemetry_control::v1::GetBuildingGroupListResponse*
Arena::CreateMaybeMessage< ::keyapis::telemetry_control::v1::GetBuildingGroupListResponse >(Arena* arena) {
  return Arena::CreateMessageInternal< ::keyapis::telemetry_control::v1::GetBuildingGroupListResponse >(arena);
}
template<> PROTOBUF_NOINLINE ::keyapis::telemetry_control::v1::PostBuildingFullDuplexResponse_RemoveBuildingEvent*
Arena::CreateMaybeMessage< ::keyapis::telemetry_control::v1::PostBuildingFullDuplexResponse_RemoveBuildingEvent >(Arena* arena) {
  return Arena::CreateMessageInternal< ::keyapis::telemetry_control::v1::PostBuildingFullDuplexResponse_RemoveBuildingEvent >(arena);
}
template<> PROTOBUF_NOINLINE ::keyapis::telemetry_control::v1::PostBuildingFullDuplexResponse_UpsertBuildingEvent*
Arena::CreateMaybeMessage< ::keyapis::telemetry_control::v1::PostBuildingFullDuplexResponse_UpsertBuildingEvent >(Arena* arena) {
  return Arena::CreateMessageInternal< ::keyapis::telemetry_control::v1::PostBuildingFullDuplexResponse_UpsertBuildingEvent >(arena);
}
template<> PROTOBUF_NOINLINE ::keyapis::telemetry_control::v1::PostBuildingFullDuplexResponse*
Arena::CreateMaybeMessage< ::keyapis::telemetry_control::v1::PostBuildingFullDuplexResponse >(Arena* arena) {
  return Arena::CreateMessageInternal< ::keyapis::telemetry_control::v1::PostBuildingFullDuplexResponse >(arena);
}
template<> PROTOBUF_NOINLINE ::keyapis::telemetry_control::v1::PostBuildingFullDuplexRequest_BuildingAsyncStatus_Success*
Arena::CreateMaybeMessage< ::keyapis::telemetry_control::v1::PostBuildingFullDuplexRequest_BuildingAsyncStatus_Success >(Arena* arena) {
  return Arena::CreateMessageInternal< ::keyapis::telemetry_control::v1::PostBuildingFullDuplexRequest_BuildingAsyncStatus_Success >(arena);
}
template<> PROTOBUF_NOINLINE ::keyapis::telemetry_control::v1::PostBuildingFullDuplexRequest_BuildingAsyncStatus_Error_UnknownError*
Arena::CreateMaybeMessage< ::keyapis::telemetry_control::v1::PostBuildingFullDuplexRequest_BuildingAsyncStatus_Error_UnknownError >(Arena* arena) {
  return Arena::CreateMessageInternal< ::keyapis::telemetry_control::v1::PostBuildingFullDuplexRequest_BuildingAsyncStatus_Error_UnknownError >(arena);
}
template<> PROTOBUF_NOINLINE ::keyapis::telemetry_control::v1::PostBuildingFullDuplexRequest_BuildingAsyncStatus_Error*
Arena::CreateMaybeMessage< ::keyapis::telemetry_control::v1::PostBuildingFullDuplexRequest_BuildingAsyncStatus_Error >(Arena* arena) {
  return Arena::CreateMessageInternal< ::keyapis::telemetry_control::v1::PostBuildingFullDuplexRequest_BuildingAsyncStatus_Error >(arena);
}
template<> PROTOBUF_NOINLINE ::keyapis::telemetry_control::v1::PostBuildingFullDuplexRequest_BuildingAsyncStatus*
Arena::CreateMaybeMessage< ::keyapis::telemetry_control::v1::PostBuildingFullDuplexRequest_BuildingAsyncStatus >(Arena* arena) {
  return Arena::CreateMessageInternal< ::keyapis::telemetry_control::v1::PostBuildingFullDuplexRequest_BuildingAsyncStatus >(arena);
}
template<> PROTOBUF_NOINLINE ::keyapis::telemetry_control::v1::PostBuildingFullDuplexRequest*
Arena::CreateMaybeMessage< ::keyapis::telemetry_control::v1::PostBuildingFullDuplexRequest >(Arena* arena) {
  return Arena::CreateMessageInternal< ::keyapis::telemetry_control::v1::PostBuildingFullDuplexRequest >(arena);
}
template<> PROTOBUF_NOINLINE ::keyapis::telemetry_control::v1::BuildingFilter*
Arena::CreateMaybeMessage< ::keyapis::telemetry_control::v1::BuildingFilter >(Arena* arena) {
  return Arena::CreateMessageInternal< ::keyapis::telemetry_control::v1::BuildingFilter >(arena);
}
template<> PROTOBUF_NOINLINE ::keyapis::telemetry_control::v1::BuildingGroupFilter*
Arena::CreateMaybeMessage< ::keyapis::telemetry_control::v1::BuildingGroupFilter >(Arena* arena) {
  return Arena::CreateMessageInternal< ::keyapis::telemetry_control::v1::BuildingGroupFilter >(arena);
}
template<> PROTOBUF_NOINLINE ::keyapis::telemetry_control::v1::GetBuildingCountRequest*
Arena::CreateMaybeMessage< ::keyapis::telemetry_control::v1::GetBuildingCountRequest >(Arena* arena) {
  return Arena::CreateMessageInternal< ::keyapis::telemetry_control::v1::GetBuildingCountRequest >(arena);
}
template<> PROTOBUF_NOINLINE ::keyapis::telemetry_control::v1::GetBuildingGroupCountRequest*
Arena::CreateMaybeMessage< ::keyapis::telemetry_control::v1::GetBuildingGroupCountRequest >(Arena* arena) {
  return Arena::CreateMessageInternal< ::keyapis::telemetry_control::v1::GetBuildingGroupCountRequest >(arena);
}
template<> PROTOBUF_NOINLINE ::keyapis::telemetry_control::v1::GetBuildingCountResponse*
Arena::CreateMaybeMessage< ::keyapis::telemetry_control::v1::GetBuildingCountResponse >(Arena* arena) {
  return Arena::CreateMessageInternal< ::keyapis::telemetry_control::v1::GetBuildingCountResponse >(arena);
}
template<> PROTOBUF_NOINLINE ::keyapis::telemetry_control::v1::GetBuildingGroupCountResponse*
Arena::CreateMaybeMessage< ::keyapis::telemetry_control::v1::GetBuildingGroupCountResponse >(Arena* arena) {
  return Arena::CreateMessageInternal< ::keyapis::telemetry_control::v1::GetBuildingGroupCountResponse >(arena);
}
template<> PROTOBUF_NOINLINE ::keyapis::telemetry_control::v1::DeleteBuildingRequest*
Arena::CreateMaybeMessage< ::keyapis::telemetry_control::v1::DeleteBuildingRequest >(Arena* arena) {
  return Arena::CreateMessageInternal< ::keyapis::telemetry_control::v1::DeleteBuildingRequest >(arena);
}
template<> PROTOBUF_NOINLINE ::keyapis::telemetry_control::v1::DeleteBuildingResponse*
Arena::CreateMaybeMessage< ::keyapis::telemetry_control::v1::DeleteBuildingResponse >(Arena* arena) {
  return Arena::CreateMessageInternal< ::keyapis::telemetry_control::v1::DeleteBuildingResponse >(arena);
}
template<> PROTOBUF_NOINLINE ::keyapis::telemetry_control::v1::PutBuildingGroupDetachRequest*
Arena::CreateMaybeMessage< ::keyapis::telemetry_control::v1::PutBuildingGroupDetachRequest >(Arena* arena) {
  return Arena::CreateMessageInternal< ::keyapis::telemetry_control::v1::PutBuildingGroupDetachRequest >(arena);
}
template<> PROTOBUF_NOINLINE ::keyapis::telemetry_control::v1::PutBuildingGroupDetachResponse*
Arena::CreateMaybeMessage< ::keyapis::telemetry_control::v1::PutBuildingGroupDetachResponse >(Arena* arena) {
  return Arena::CreateMessageInternal< ::keyapis::telemetry_control::v1::PutBuildingGroupDetachResponse >(arena);
}
template<> PROTOBUF_NOINLINE ::keyapis::telemetry_control::v1::Building*
Arena::CreateMaybeMessage< ::keyapis::telemetry_control::v1::Building >(Arena* arena) {
  return Arena::CreateMessageInternal< ::keyapis::telemetry_control::v1::Building >(arena);
}
template<> PROTOBUF_NOINLINE ::keyapis::telemetry_control::v1::BuildingGroup*
Arena::CreateMaybeMessage< ::keyapis::telemetry_control::v1::BuildingGroup >(Arena* arena) {
  return Arena::CreateMessageInternal< ::keyapis::telemetry_control::v1::BuildingGroup >(arena);
}
PROTOBUF_NAMESPACE_CLOSE
// @@protoc_insertion_point(global_scope)
#include "google/protobuf/port_undef.inc"
