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

#include "keyapis/dial/v1/keyapis_dial_alert_scenario_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 dial {
namespace v1 {
template <typename>
PROTOBUF_CONSTEXPR PostBroadcastAlertStartRequest::PostBroadcastAlertStartRequest(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_.to_number_)*/ {
    &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {}
  }

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

  , /*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_ScenarioNotFound::PostBroadcastAlertStartResponse_Error_ScenarioNotFound(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_._cached_size_)*/{}} {}
struct PostBroadcastAlertStartResponse_Error_ScenarioNotFoundDefaultTypeInternal {
  PROTOBUF_CONSTEXPR PostBroadcastAlertStartResponse_Error_ScenarioNotFoundDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  ~PostBroadcastAlertStartResponse_Error_ScenarioNotFoundDefaultTypeInternal() {}
  union {
    PostBroadcastAlertStartResponse_Error_ScenarioNotFound _instance;
  };
};

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PostBroadcastAlertStartResponse_Error_ScenarioNotFoundDefaultTypeInternal _PostBroadcastAlertStartResponse_Error_ScenarioNotFound_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 ValidationError::ValidationError(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_.path_)*/ {
    &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {}
  }

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

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

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ValidationErrorDefaultTypeInternal _ValidationError_default_instance_;
}  // namespace v1
}  // namespace dial
}  // namespace keyapis
namespace keyapis {
namespace dial {
namespace v1 {
// ===================================================================

class PostBroadcastAlertStartRequest::_Internal {
 public:
};

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

    , decltype(_impl_.from_number_) {}

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

  _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
  _impl_.to_number_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
        _impl_.to_number_.Set("", GetArenaForAllocation());
  #endif  // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  if (!from._internal_to_number().empty()) {
    _this->_impl_.to_number_.Set(from._internal_to_number(), _this->GetArenaForAllocation());
  }
  _impl_.from_number_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
        _impl_.from_number_.Set("", GetArenaForAllocation());
  #endif  // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  if (!from._internal_from_number().empty()) {
    _this->_impl_.from_number_.Set(from._internal_from_number(), _this->GetArenaForAllocation());
  }
  // @@protoc_insertion_point(copy_constructor:keyapis.dial.v1.PostBroadcastAlertStartRequest)
}

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

    , decltype(_impl_.from_number_) {}

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

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

inline void PostBroadcastAlertStartRequest::SharedDtor() {
  ABSL_DCHECK(GetArenaForAllocation() == nullptr);
  _impl_.to_number_.Destroy();
  _impl_.from_number_.Destroy();
}

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

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

  _impl_.to_number_.ClearToEmpty();
  _impl_.from_number_.ClearToEmpty();
  _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 to_number = 1 [(.google.api.field_behavior) = REQUIRED];
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
          auto str = _internal_mutable_to_number();
          ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
          CHK_(ptr);
          CHK_(::_pbi::VerifyUTF8(str, nullptr));
        } else {
          goto handle_unusual;
        }
        continue;
      // string from_number = 2 [(.google.api.field_behavior) = REQUIRED];
      case 2:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
          auto str = _internal_mutable_from_number();
          ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
          CHK_(ptr);
          CHK_(::_pbi::VerifyUTF8(str, nullptr));
        } else {
          goto handle_unusual;
        }
        continue;
      default:
        goto handle_unusual;
    }  // switch
  handle_unusual:
    if ((tag == 0) || ((tag & 7) == 4)) {
      CHK_(ptr);
      ctx->SetLastTag(tag);
      goto message_done;
    }
    ptr = UnknownFieldParse(
        tag,
        _internal_metadata_.mutable_unknown_fields<std::string>(),
        ptr, ctx);
    CHK_(ptr != nullptr);
  }  // while
message_done:
  return ptr;
failure:
  ptr = nullptr;
  goto message_done;
#undef CHK_
}

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

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

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

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

::size_t PostBroadcastAlertStartRequest::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:keyapis.dial.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;

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

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

  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.dial.v1.PostBroadcastAlertStartRequest)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  if (!from._internal_to_number().empty()) {
    _this->_internal_set_to_number(from._internal_to_number());
  }
  if (!from._internal_from_number().empty()) {
    _this->_internal_set_from_number(from._internal_from_number());
  }
  _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
}

void PostBroadcastAlertStartRequest::CopyFrom(const PostBroadcastAlertStartRequest& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:keyapis.dial.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_);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.to_number_, lhs_arena,
                                       &other->_impl_.to_number_, rhs_arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.from_number_, lhs_arena,
                                       &other->_impl_.from_number_, rhs_arena);
}

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

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

class PostBroadcastAlertStartResponse_Error_ScenarioNotFound::_Internal {
 public:
};

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

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

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

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

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

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

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

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

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

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

std::string PostBroadcastAlertStartResponse_Error_ScenarioNotFound::GetTypeName() const {
  return "keyapis.dial.v1.PostBroadcastAlertStartResponse.Error.ScenarioNotFound";
}

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

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

const ::keyapis::dial::v1::ValidationError&
PostBroadcastAlertStartResponse_Error::_Internal::validation(const PostBroadcastAlertStartResponse_Error* msg) {
  return *msg->_impl_.reason_.validation_;
}
const ::keyapis::dial::v1::PostBroadcastAlertStartResponse_Error_ScenarioNotFound&
PostBroadcastAlertStartResponse_Error::_Internal::scenario_not_found(const PostBroadcastAlertStartResponse_Error* msg) {
  return *msg->_impl_.reason_.scenario_not_found_;
}
void PostBroadcastAlertStartResponse_Error::set_allocated_validation(::keyapis::dial::v1::ValidationError* validation) {
  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
  clear_reason();
  if (validation) {
    ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
      ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(validation);
    if (message_arena != submessage_arena) {
      validation = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
          message_arena, validation, submessage_arena);
    }
    set_has_validation();
    _impl_.reason_.validation_ = validation;
  }
  // @@protoc_insertion_point(field_set_allocated:keyapis.dial.v1.PostBroadcastAlertStartResponse.Error.validation)
}
void PostBroadcastAlertStartResponse_Error::set_allocated_scenario_not_found(::keyapis::dial::v1::PostBroadcastAlertStartResponse_Error_ScenarioNotFound* scenario_not_found) {
  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
  clear_reason();
  if (scenario_not_found) {
    ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
      ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(scenario_not_found);
    if (message_arena != submessage_arena) {
      scenario_not_found = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
          message_arena, scenario_not_found, submessage_arena);
    }
    set_has_scenario_not_found();
    _impl_.reason_.scenario_not_found_ = scenario_not_found;
  }
  // @@protoc_insertion_point(field_set_allocated:keyapis.dial.v1.PostBroadcastAlertStartResponse.Error.scenario_not_found)
}
PostBroadcastAlertStartResponse_Error::PostBroadcastAlertStartResponse_Error(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) {
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:keyapis.dial.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::dial::v1::ValidationError::MergeFrom(
          from._internal_validation());
      break;
    }
    case kScenarioNotFound: {
      _this->_internal_mutable_scenario_not_found()->::keyapis::dial::v1::PostBroadcastAlertStartResponse_Error_ScenarioNotFound::MergeFrom(
          from._internal_scenario_not_found());
      break;
    }
    case REASON_NOT_SET: {
      break;
    }
  }
  // @@protoc_insertion_point(copy_constructor:keyapis.dial.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.dial.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.dial.v1.PostBroadcastAlertStartResponse.Error)
  switch (reason_case()) {
    case kValidation: {
      if (GetArenaForAllocation() == nullptr) {
        delete _impl_.reason_.validation_;
      }
      break;
    }
    case kScenarioNotFound: {
      if (GetArenaForAllocation() == nullptr) {
        delete _impl_.reason_.scenario_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.dial.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.dial.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.dial.v1.PostBroadcastAlertStartResponse.Error.ScenarioNotFound scenario_not_found = 2;
      case 2:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
          ptr = ctx->ParseMessage(_internal_mutable_scenario_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.dial.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 kScenarioNotFound: {
      target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
        InternalWriteMessage(2, _Internal::scenario_not_found(this),
          _Internal::scenario_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.dial.v1.PostBroadcastAlertStartResponse.Error)
  return target;
}

::size_t PostBroadcastAlertStartResponse_Error::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:keyapis.dial.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.dial.v1.ValidationError validation = 1;
    case kValidation: {
      total_size += 1 +
        ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
          *_impl_.reason_.validation_);
      break;
    }
    // .keyapis.dial.v1.PostBroadcastAlertStartResponse.Error.ScenarioNotFound scenario_not_found = 2;
    case kScenarioNotFound: {
      total_size += 1 +
        ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
          *_impl_.reason_.scenario_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.dial.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::dial::v1::ValidationError::MergeFrom(
          from._internal_validation());
      break;
    }
    case kScenarioNotFound: {
      _this->_internal_mutable_scenario_not_found()->::keyapis::dial::v1::PostBroadcastAlertStartResponse_Error_ScenarioNotFound::MergeFrom(
          from._internal_scenario_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.dial.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.dial.v1.PostBroadcastAlertStartResponse.Error";
}

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

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

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

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

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

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

class ValidationError::_Internal {
 public:
};

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

    , decltype(_impl_.message_) {}

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

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

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

    , decltype(_impl_.message_) {}

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

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

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

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

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

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

const char* ValidationError::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  while (!ctx->Done(&ptr)) {
    ::uint32_t tag;
    ptr = ::_pbi::ReadTag(ptr, &tag);
    switch (tag >> 3) {
      // string path = 1 [(.google.api.field_behavior) = REQUIRED];
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
          auto str = _internal_mutable_path();
          ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
          CHK_(ptr);
          CHK_(::_pbi::VerifyUTF8(str, nullptr));
        } else {
          goto handle_unusual;
        }
        continue;
      // string message = 2 [(.google.api.field_behavior) = REQUIRED];
      case 2:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
          auto str = _internal_mutable_message();
          ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
          CHK_(ptr);
          CHK_(::_pbi::VerifyUTF8(str, nullptr));
        } else {
          goto handle_unusual;
        }
        continue;
      default:
        goto handle_unusual;
    }  // switch
  handle_unusual:
    if ((tag == 0) || ((tag & 7) == 4)) {
      CHK_(ptr);
      ctx->SetLastTag(tag);
      goto message_done;
    }
    ptr = UnknownFieldParse(
        tag,
        _internal_metadata_.mutable_unknown_fields<std::string>(),
        ptr, ctx);
    CHK_(ptr != nullptr);
  }  // while
message_done:
  return ptr;
failure:
  ptr = nullptr;
  goto message_done;
#undef CHK_
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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