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

#include "keyapis/access_control/v1/keyapis_access_control_broadcast_alert_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 access_control {
namespace v1 {
template <typename>
PROTOBUF_CONSTEXPR PostBroadcastAlertStartRequest::PostBroadcastAlertStartRequest(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_.orpons_)*/ {}
  ,/* _impl_._orpons_cached_byte_size_ = */ { 0 }

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

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

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

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

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

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

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PostBroadcastAlertStartRequestDefaultTypeInternal _PostBroadcastAlertStartRequest_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR PostBroadcastAlertStartResponse_Error_SoundFileNotFound::PostBroadcastAlertStartResponse_Error_SoundFileNotFound(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_._cached_size_)*/{}} {}
struct PostBroadcastAlertStartResponse_Error_SoundFileNotFoundDefaultTypeInternal {
  PROTOBUF_CONSTEXPR PostBroadcastAlertStartResponse_Error_SoundFileNotFoundDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  ~PostBroadcastAlertStartResponse_Error_SoundFileNotFoundDefaultTypeInternal() {}
  union {
    PostBroadcastAlertStartResponse_Error_SoundFileNotFound _instance;
  };
};

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PostBroadcastAlertStartResponse_Error_SoundFileNotFoundDefaultTypeInternal _PostBroadcastAlertStartResponse_Error_SoundFileNotFound_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR PostBroadcastAlertStartResponse_Error::PostBroadcastAlertStartResponse_Error(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_.reason_)*/{}
  , /*decltype(_impl_._cached_size_)*/{}
  , /*decltype(_impl_._oneof_case_)*/{}} {}
struct PostBroadcastAlertStartResponse_ErrorDefaultTypeInternal {
  PROTOBUF_CONSTEXPR PostBroadcastAlertStartResponse_ErrorDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  ~PostBroadcastAlertStartResponse_ErrorDefaultTypeInternal() {}
  union {
    PostBroadcastAlertStartResponse_Error _instance;
  };
};

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PostBroadcastAlertStartResponse_ErrorDefaultTypeInternal _PostBroadcastAlertStartResponse_Error_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR PostBroadcastAlertStartResponse::PostBroadcastAlertStartResponse(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_.type_)*/{}
  , /*decltype(_impl_._cached_size_)*/{}
  , /*decltype(_impl_._oneof_case_)*/{}} {}
struct PostBroadcastAlertStartResponseDefaultTypeInternal {
  PROTOBUF_CONSTEXPR PostBroadcastAlertStartResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  ~PostBroadcastAlertStartResponseDefaultTypeInternal() {}
  union {
    PostBroadcastAlertStartResponse _instance;
  };
};

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PostBroadcastAlertStartResponseDefaultTypeInternal _PostBroadcastAlertStartResponse_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR PostBroadcastAlertStopRequest::PostBroadcastAlertStopRequest(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_.orpons_)*/ {}
  ,/* _impl_._orpons_cached_byte_size_ = */ { 0 }

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

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PostBroadcastAlertStopRequestDefaultTypeInternal _PostBroadcastAlertStopRequest_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR PostBroadcastAlertStopResponse_Error::PostBroadcastAlertStopResponse_Error(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_.reason_)*/{}
  , /*decltype(_impl_._cached_size_)*/{}
  , /*decltype(_impl_._oneof_case_)*/{}} {}
struct PostBroadcastAlertStopResponse_ErrorDefaultTypeInternal {
  PROTOBUF_CONSTEXPR PostBroadcastAlertStopResponse_ErrorDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  ~PostBroadcastAlertStopResponse_ErrorDefaultTypeInternal() {}
  union {
    PostBroadcastAlertStopResponse_Error _instance;
  };
};

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PostBroadcastAlertStopResponse_ErrorDefaultTypeInternal _PostBroadcastAlertStopResponse_Error_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR PostBroadcastAlertStopResponse::PostBroadcastAlertStopResponse(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_.type_)*/{}
  , /*decltype(_impl_._cached_size_)*/{}
  , /*decltype(_impl_._oneof_case_)*/{}} {}
struct PostBroadcastAlertStopResponseDefaultTypeInternal {
  PROTOBUF_CONSTEXPR PostBroadcastAlertStopResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  ~PostBroadcastAlertStopResponseDefaultTypeInternal() {}
  union {
    PostBroadcastAlertStopResponse _instance;
  };
};

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PostBroadcastAlertStopResponseDefaultTypeInternal _PostBroadcastAlertStopResponse_default_instance_;
}  // namespace v1
}  // namespace access_control
}  // namespace keyapis
namespace keyapis {
namespace access_control {
namespace v1 {
bool PostBroadcastAlertStartRequest_PlayType_IsValid(int value) {
  switch (value) {
    case 0:
    case 1:
    case 2:
    case 3:
    case 4:
      return true;
    default:
      return false;
  }
}
static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<std::string>
    PostBroadcastAlertStartRequest_PlayType_strings[5] = {};

static const char PostBroadcastAlertStartRequest_PlayType_names[] = {
    "HANDSET_AND_SPEAKER"
    "HANDSET_ONLY"
    "PLAY_TYPE_UNKNOWN"
    "SPEAKER_AND_HANDSET"
    "SPEAKER_ONLY"
};

static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry PostBroadcastAlertStartRequest_PlayType_entries[] =
    {
        {{&PostBroadcastAlertStartRequest_PlayType_names[0], 19}, 3},
        {{&PostBroadcastAlertStartRequest_PlayType_names[19], 12}, 1},
        {{&PostBroadcastAlertStartRequest_PlayType_names[31], 17}, 0},
        {{&PostBroadcastAlertStartRequest_PlayType_names[48], 19}, 4},
        {{&PostBroadcastAlertStartRequest_PlayType_names[67], 12}, 2},
};

static const int PostBroadcastAlertStartRequest_PlayType_entries_by_number[] = {
    2,  // 0 -> PLAY_TYPE_UNKNOWN
    1,  // 1 -> HANDSET_ONLY
    4,  // 2 -> SPEAKER_ONLY
    0,  // 3 -> HANDSET_AND_SPEAKER
    3,  // 4 -> SPEAKER_AND_HANDSET
};

const std::string& PostBroadcastAlertStartRequest_PlayType_Name(PostBroadcastAlertStartRequest_PlayType value) {
  static const bool kDummy =
      ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings(
          PostBroadcastAlertStartRequest_PlayType_entries, PostBroadcastAlertStartRequest_PlayType_entries_by_number,
          5, PostBroadcastAlertStartRequest_PlayType_strings);
  (void)kDummy;

  int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName(
      PostBroadcastAlertStartRequest_PlayType_entries, PostBroadcastAlertStartRequest_PlayType_entries_by_number, 5,
      value);
  return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString()
                   : PostBroadcastAlertStartRequest_PlayType_strings[idx].get();
}

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

constexpr PostBroadcastAlertStartRequest_PlayType PostBroadcastAlertStartRequest::PLAY_TYPE_UNKNOWN;
constexpr PostBroadcastAlertStartRequest_PlayType PostBroadcastAlertStartRequest::HANDSET_ONLY;
constexpr PostBroadcastAlertStartRequest_PlayType PostBroadcastAlertStartRequest::SPEAKER_ONLY;
constexpr PostBroadcastAlertStartRequest_PlayType PostBroadcastAlertStartRequest::HANDSET_AND_SPEAKER;
constexpr PostBroadcastAlertStartRequest_PlayType PostBroadcastAlertStartRequest::SPEAKER_AND_HANDSET;
constexpr PostBroadcastAlertStartRequest_PlayType PostBroadcastAlertStartRequest::PlayType_MIN;
constexpr PostBroadcastAlertStartRequest_PlayType PostBroadcastAlertStartRequest::PlayType_MAX;
constexpr int PostBroadcastAlertStartRequest::PlayType_ARRAYSIZE;

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

class PostBroadcastAlertStartRequest::_Internal {
 public:
};

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

    , decltype(_impl_.sound_file_uri_) {}

    , decltype(_impl_.tact_play_duration_) {}

    , decltype(_impl_.tact_repeat_count_) {}

    , decltype(_impl_.play_repeat_count_) {}

    , decltype(_impl_.play_type_) {}

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

  _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
  _impl_.sound_file_uri_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
        _impl_.sound_file_uri_.Set("", GetArenaForAllocation());
  #endif  // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  if (!from._internal_sound_file_uri().empty()) {
    _this->_impl_.sound_file_uri_.Set(from._internal_sound_file_uri(), _this->GetArenaForAllocation());
  }
  ::memcpy(&_impl_.tact_play_duration_, &from._impl_.tact_play_duration_,
    static_cast<::size_t>(reinterpret_cast<char*>(&_impl_.play_type_) -
    reinterpret_cast<char*>(&_impl_.tact_play_duration_)) + sizeof(_impl_.play_type_));
  // @@protoc_insertion_point(copy_constructor:keyapis.access_control.v1.PostBroadcastAlertStartRequest)
}

inline void PostBroadcastAlertStartRequest::SharedCtor(::_pb::Arena* arena) {
  (void)arena;
  new (&_impl_) Impl_{
      decltype(_impl_.orpons_) { arena }
    ,/* _impl_._orpons_cached_byte_size_ = */ { 0 }

    , decltype(_impl_.sound_file_uri_) {}

    , decltype(_impl_.tact_play_duration_) { 0 }

    , decltype(_impl_.tact_repeat_count_) { 0 }

    , decltype(_impl_.play_repeat_count_) { 0 }

    , decltype(_impl_.play_type_) { 0 }

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

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

inline void PostBroadcastAlertStartRequest::SharedDtor() {
  ABSL_DCHECK(GetArenaForAllocation() == nullptr);
  _impl_.orpons_.~RepeatedField();
  _impl_.sound_file_uri_.Destroy();
}

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

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

  _internal_mutable_orpons()->Clear();
  _impl_.sound_file_uri_.ClearToEmpty();
  ::memset(&_impl_.tact_play_duration_, 0, static_cast<::size_t>(
      reinterpret_cast<char*>(&_impl_.play_type_) -
      reinterpret_cast<char*>(&_impl_.tact_play_duration_)) + sizeof(_impl_.play_type_));
  _internal_metadata_.Clear<std::string>();
}

const char* PostBroadcastAlertStartRequest::_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 sound_file_uri = 1 [(.google.api.field_behavior) = REQUIRED];
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
          auto str = _internal_mutable_sound_file_uri();
          ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
          CHK_(ptr);
          CHK_(::_pbi::VerifyUTF8(str, nullptr));
        } else {
          goto handle_unusual;
        }
        continue;
      // repeated int64 orpons = 2;
      case 2:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
          ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt64Parser(_internal_mutable_orpons(), ptr, ctx);
          CHK_(ptr);
        } else if (static_cast<::uint8_t>(tag) == 16) {
          _internal_add_orpons(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr));
          CHK_(ptr);
        } else {
          goto handle_unusual;
        }
        continue;
      // int32 tact_play_duration = 3 [(.google.api.field_behavior) = REQUIRED];
      case 3:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) {
          _impl_.tact_play_duration_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
          CHK_(ptr);
        } else {
          goto handle_unusual;
        }
        continue;
      // int32 tact_repeat_count = 4 [(.google.api.field_behavior) = REQUIRED];
      case 4:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 32)) {
          _impl_.tact_repeat_count_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
          CHK_(ptr);
        } else {
          goto handle_unusual;
        }
        continue;
      // int32 play_repeat_count = 5 [(.google.api.field_behavior) = REQUIRED];
      case 5:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 40)) {
          _impl_.play_repeat_count_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
          CHK_(ptr);
        } else {
          goto handle_unusual;
        }
        continue;
      // .keyapis.access_control.v1.PostBroadcastAlertStartRequest.PlayType play_type = 6 [(.google.api.field_behavior) = REQUIRED];
      case 6:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 48)) {
          ::int32_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
          CHK_(ptr);
          _internal_set_play_type(static_cast<::keyapis::access_control::v1::PostBroadcastAlertStartRequest_PlayType>(val));
        } else {
          goto handle_unusual;
        }
        continue;
      default:
        goto handle_unusual;
    }  // switch
  handle_unusual:
    if ((tag == 0) || ((tag & 7) == 4)) {
      CHK_(ptr);
      ctx->SetLastTag(tag);
      goto message_done;
    }
    ptr = UnknownFieldParse(
        tag,
        _internal_metadata_.mutable_unknown_fields<std::string>(),
        ptr, ctx);
    CHK_(ptr != nullptr);
  }  // while
message_done:
  return ptr;
failure:
  ptr = nullptr;
  goto message_done;
#undef CHK_
}

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

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

  // repeated int64 orpons = 2;
  {
    int byte_size = _impl_._orpons_cached_byte_size_.Get();
    if (byte_size > 0) {
      target = stream->WriteInt64Packed(2, _internal_orpons(),
                                                 byte_size, target);
    }
  }

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

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

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

  // .keyapis.access_control.v1.PostBroadcastAlertStartRequest.PlayType play_type = 6 [(.google.api.field_behavior) = REQUIRED];
  if (this->_internal_play_type() != 0) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteEnumToArray(
        6, this->_internal_play_type(), target);
  }

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

::size_t PostBroadcastAlertStartRequest::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:keyapis.access_control.v1.PostBroadcastAlertStartRequest)
  ::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 int64 orpons = 2;
  {
    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;
  }

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

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

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

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

  // .keyapis.access_control.v1.PostBroadcastAlertStartRequest.PlayType play_type = 6 [(.google.api.field_behavior) = REQUIRED];
  if (this->_internal_play_type() != 0) {
    total_size += 1 +
                  ::_pbi::WireFormatLite::EnumSize(this->_internal_play_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 PostBroadcastAlertStartRequest::CheckTypeAndMergeFrom(
    const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
  MergeFrom(*::_pbi::DownCast<const PostBroadcastAlertStartRequest*>(
      &from));
}

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

  _this->_impl_.orpons_.MergeFrom(from._impl_.orpons_);
  if (!from._internal_sound_file_uri().empty()) {
    _this->_internal_set_sound_file_uri(from._internal_sound_file_uri());
  }
  if (from._internal_tact_play_duration() != 0) {
    _this->_internal_set_tact_play_duration(from._internal_tact_play_duration());
  }
  if (from._internal_tact_repeat_count() != 0) {
    _this->_internal_set_tact_repeat_count(from._internal_tact_repeat_count());
  }
  if (from._internal_play_repeat_count() != 0) {
    _this->_internal_set_play_repeat_count(from._internal_play_repeat_count());
  }
  if (from._internal_play_type() != 0) {
    _this->_internal_set_play_type(from._internal_play_type());
  }
  _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
}

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

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

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

std::string PostBroadcastAlertStartRequest::GetTypeName() const {
  return "keyapis.access_control.v1.PostBroadcastAlertStartRequest";
}

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

class PostBroadcastAlertStartResponse_Error_SoundFileNotFound::_Internal {
 public:
};

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

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

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

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

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

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

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

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

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

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

std::string PostBroadcastAlertStartResponse_Error_SoundFileNotFound::GetTypeName() const {
  return "keyapis.access_control.v1.PostBroadcastAlertStartResponse.Error.SoundFileNotFound";
}

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

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

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

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

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

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

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

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

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


void PostBroadcastAlertStartResponse_Error::Clear() {
// @@protoc_insertion_point(message_clear_start:keyapis.access_control.v1.PostBroadcastAlertStartResponse.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* PostBroadcastAlertStartResponse_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.access_control.v1.ValidationError validation = 1;
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
          ptr = ctx->ParseMessage(_internal_mutable_validation(), ptr);
          CHK_(ptr);
        } else {
          goto handle_unusual;
        }
        continue;
      // .keyapis.access_control.v1.PostBroadcastAlertStartResponse.Error.SoundFileNotFound sound_file_not_found = 2;
      case 2:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
          ptr = ctx->ParseMessage(_internal_mutable_sound_file_not_found(), 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* PostBroadcastAlertStartResponse_Error::_InternalSerialize(
    ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:keyapis.access_control.v1.PostBroadcastAlertStartResponse.Error)
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

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

::size_t PostBroadcastAlertStartResponse_Error::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:keyapis.access_control.v1.PostBroadcastAlertStartResponse.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.access_control.v1.ValidationError validation = 1;
    case kValidation: {
      total_size += 1 +
        ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
          *_impl_.reason_.validation_);
      break;
    }
    // .keyapis.access_control.v1.PostBroadcastAlertStartResponse.Error.SoundFileNotFound sound_file_not_found = 2;
    case kSoundFileNotFound: {
      total_size += 1 +
        ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
          *_impl_.reason_.sound_file_not_found_);
      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 PostBroadcastAlertStartResponse_Error::CheckTypeAndMergeFrom(
    const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
  MergeFrom(*::_pbi::DownCast<const PostBroadcastAlertStartResponse_Error*>(
      &from));
}

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

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

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

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

void PostBroadcastAlertStartResponse_Error::InternalSwap(PostBroadcastAlertStartResponse_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 PostBroadcastAlertStartResponse_Error::GetTypeName() const {
  return "keyapis.access_control.v1.PostBroadcastAlertStartResponse.Error";
}

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

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

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

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

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

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

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

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


void PostBroadcastAlertStartResponse::Clear() {
// @@protoc_insertion_point(message_clear_start:keyapis.access_control.v1.PostBroadcastAlertStartResponse)
  ::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* PostBroadcastAlertStartResponse::_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.access_control.v1.PostBroadcastAlertStartResponse.Error error = 1;
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
          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* PostBroadcastAlertStartResponse::_InternalSerialize(
    ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:keyapis.access_control.v1.PostBroadcastAlertStartResponse)
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  // .keyapis.access_control.v1.PostBroadcastAlertStartResponse.Error error = 1;
  if (type_case() == kError) {
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
      InternalWriteMessage(1, _Internal::error(this),
        _Internal::error(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.access_control.v1.PostBroadcastAlertStartResponse)
  return target;
}

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

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

  switch (from.type_case()) {
    case kError: {
      _this->_internal_mutable_error()->::keyapis::access_control::v1::PostBroadcastAlertStartResponse_Error::MergeFrom(
          from._internal_error());
      break;
    }
    case TYPE_NOT_SET: {
      break;
    }
  }
  _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
}

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

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

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

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

class PostBroadcastAlertStopRequest::_Internal {
 public:
};

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

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

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

inline void PostBroadcastAlertStopRequest::SharedCtor(::_pb::Arena* arena) {
  (void)arena;
  new (&_impl_) Impl_{
      decltype(_impl_.orpons_) { arena }
    ,/* _impl_._orpons_cached_byte_size_ = */ { 0 }

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

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

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

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

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

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

const char* PostBroadcastAlertStopRequest::_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 int64 orpons = 1;
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
          ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt64Parser(_internal_mutable_orpons(), ptr, ctx);
          CHK_(ptr);
        } else if (static_cast<::uint8_t>(tag) == 8) {
          _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:
  return ptr;
failure:
  ptr = nullptr;
  goto message_done;
#undef CHK_
}

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

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

::size_t PostBroadcastAlertStopRequest::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:keyapis.access_control.v1.PostBroadcastAlertStopRequest)
  ::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 int64 orpons = 1;
  {
    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;
  }

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

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

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

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

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

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

std::string PostBroadcastAlertStopRequest::GetTypeName() const {
  return "keyapis.access_control.v1.PostBroadcastAlertStopRequest";
}

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

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

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

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

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

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

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

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

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


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

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

  // .keyapis.access_control.v1.ValidationError validation = 1;
  if (reason_case() == kValidation) {
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
      InternalWriteMessage(1, _Internal::validation(this),
        _Internal::validation(this).GetCachedSize(), target, stream);
  }

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

::size_t PostBroadcastAlertStopResponse_Error::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:keyapis.access_control.v1.PostBroadcastAlertStopResponse.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.access_control.v1.ValidationError validation = 1;
    case kValidation: {
      total_size += 1 +
        ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
          *_impl_.reason_.validation_);
      break;
    }
    case REASON_NOT_SET: {
      break;
    }
  }
  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
  }
  int cached_size = ::_pbi::ToCachedSize(total_size);
  SetCachedSize(cached_size);
  return total_size;
}

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

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

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

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

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

void PostBroadcastAlertStopResponse_Error::InternalSwap(PostBroadcastAlertStopResponse_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 PostBroadcastAlertStopResponse_Error::GetTypeName() const {
  return "keyapis.access_control.v1.PostBroadcastAlertStopResponse.Error";
}

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

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

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

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

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

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

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

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


void PostBroadcastAlertStopResponse::Clear() {
// @@protoc_insertion_point(message_clear_start:keyapis.access_control.v1.PostBroadcastAlertStopResponse)
  ::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* PostBroadcastAlertStopResponse::_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.access_control.v1.PostBroadcastAlertStopResponse.Error error = 1;
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
          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* PostBroadcastAlertStopResponse::_InternalSerialize(
    ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:keyapis.access_control.v1.PostBroadcastAlertStopResponse)
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  // .keyapis.access_control.v1.PostBroadcastAlertStopResponse.Error error = 1;
  if (type_case() == kError) {
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
      InternalWriteMessage(1, _Internal::error(this),
        _Internal::error(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.access_control.v1.PostBroadcastAlertStopResponse)
  return target;
}

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

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

  switch (from.type_case()) {
    case kError: {
      _this->_internal_mutable_error()->::keyapis::access_control::v1::PostBroadcastAlertStopResponse_Error::MergeFrom(
          from._internal_error());
      break;
    }
    case TYPE_NOT_SET: {
      break;
    }
  }
  _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
}

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

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

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

// @@protoc_insertion_point(namespace_scope)
}  // namespace v1
}  // namespace access_control
}  // namespace keyapis
PROTOBUF_NAMESPACE_OPEN
template<> PROTOBUF_NOINLINE ::keyapis::access_control::v1::PostBroadcastAlertStartRequest*
Arena::CreateMaybeMessage< ::keyapis::access_control::v1::PostBroadcastAlertStartRequest >(Arena* arena) {
  return Arena::CreateMessageInternal< ::keyapis::access_control::v1::PostBroadcastAlertStartRequest >(arena);
}
template<> PROTOBUF_NOINLINE ::keyapis::access_control::v1::PostBroadcastAlertStartResponse_Error_SoundFileNotFound*
Arena::CreateMaybeMessage< ::keyapis::access_control::v1::PostBroadcastAlertStartResponse_Error_SoundFileNotFound >(Arena* arena) {
  return Arena::CreateMessageInternal< ::keyapis::access_control::v1::PostBroadcastAlertStartResponse_Error_SoundFileNotFound >(arena);
}
template<> PROTOBUF_NOINLINE ::keyapis::access_control::v1::PostBroadcastAlertStartResponse_Error*
Arena::CreateMaybeMessage< ::keyapis::access_control::v1::PostBroadcastAlertStartResponse_Error >(Arena* arena) {
  return Arena::CreateMessageInternal< ::keyapis::access_control::v1::PostBroadcastAlertStartResponse_Error >(arena);
}
template<> PROTOBUF_NOINLINE ::keyapis::access_control::v1::PostBroadcastAlertStartResponse*
Arena::CreateMaybeMessage< ::keyapis::access_control::v1::PostBroadcastAlertStartResponse >(Arena* arena) {
  return Arena::CreateMessageInternal< ::keyapis::access_control::v1::PostBroadcastAlertStartResponse >(arena);
}
template<> PROTOBUF_NOINLINE ::keyapis::access_control::v1::PostBroadcastAlertStopRequest*
Arena::CreateMaybeMessage< ::keyapis::access_control::v1::PostBroadcastAlertStopRequest >(Arena* arena) {
  return Arena::CreateMessageInternal< ::keyapis::access_control::v1::PostBroadcastAlertStopRequest >(arena);
}
template<> PROTOBUF_NOINLINE ::keyapis::access_control::v1::PostBroadcastAlertStopResponse_Error*
Arena::CreateMaybeMessage< ::keyapis::access_control::v1::PostBroadcastAlertStopResponse_Error >(Arena* arena) {
  return Arena::CreateMessageInternal< ::keyapis::access_control::v1::PostBroadcastAlertStopResponse_Error >(arena);
}
template<> PROTOBUF_NOINLINE ::keyapis::access_control::v1::PostBroadcastAlertStopResponse*
Arena::CreateMaybeMessage< ::keyapis::access_control::v1::PostBroadcastAlertStopResponse >(Arena* arena) {
  return Arena::CreateMessageInternal< ::keyapis::access_control::v1::PostBroadcastAlertStopResponse >(arena);
}
PROTOBUF_NAMESPACE_CLOSE
// @@protoc_insertion_point(global_scope)
#include "google/protobuf/port_undef.inc"
