// Generated by the protocol buffer compiler.  DO NOT EDIT!
// NO CHECKED-IN PROTOBUF GENCODE
// source: third_party/metrics_proto/translate_event.proto
// Protobuf C++ Version: 7.35.1

#include "third_party/metrics_proto/translate_event.pb.h"

#include <algorithm>
#include <type_traits>
#include "google/protobuf/io/coded_stream.h"
#include "google/protobuf/generated_message_tctable_impl.h"
#include "google/protobuf/internal_visibility.h"
#include "google/protobuf/extension_set.h"
#include "google/protobuf/generated_message_util.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 = ::google::protobuf;
namespace _pbi = ::google::protobuf::internal;
namespace _fl = ::google::protobuf::internal::field_layout;
namespace metrics {
class TranslateEventProto::_Internal {
 public:
  using HasBits = decltype(::std::declval<TranslateEventProto>()._impl_._has_bits_);
  static constexpr ::int32_t kHasBitsOffset =
      8 * PROTOBUF_FIELD_OFFSET(TranslateEventProto, _impl_._has_bits_);
};

constexpr TranslateEventProto::ParseTableT_ TranslateEventProto::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(TranslateEventProto, _impl_._has_bits_),
      0, // no _extensions_
      15, 120,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4294934528,  // skipmap
      offsetof(ParseTableT_, field_entries),
      15,  // num_field_entries
      3,  // num_aux_entries
      offsetof(ParseTableT_, aux_entries),
      class_data,
      nullptr,  // post_loop_handler
      ::_pbi::TcParser::GenericFallbackLite,  // fallback
      #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
      ::_pbi::TcParser::GetTable<::metrics::TranslateEventProto>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      {::_pbi::TcParser::MiniParse, {}},
      // string source_language = 1;
      {::_pbi::TcParser::FastBS1,
       {10, 2, 0,
        PROTOBUF_FIELD_OFFSET(TranslateEventProto, _impl_.source_language_)}},
      // string target_language = 2;
      {::_pbi::TcParser::FastBS1,
       {18, 3, 0,
        PROTOBUF_FIELD_OFFSET(TranslateEventProto, _impl_.target_language_)}},
      // int32 accept_count = 3;
      {::_pbi::TcParser::FastV32S1,
       {24, 7, 0,
        PROTOBUF_FIELD_OFFSET(TranslateEventProto, _impl_.accept_count_)}},
      // int32 decline_count = 4;
      {::_pbi::TcParser::FastV32S1,
       {32, 8, 0,
        PROTOBUF_FIELD_OFFSET(TranslateEventProto, _impl_.decline_count_)}},
      // int32 ignore_count = 5;
      {::_pbi::TcParser::FastV32S1,
       {40, 9, 0,
        PROTOBUF_FIELD_OFFSET(TranslateEventProto, _impl_.ignore_count_)}},
      // repeated string language_list = 6;
      {::_pbi::TcParser::FastBR1,
       {50, 0, 0,
        PROTOBUF_FIELD_OFFSET(TranslateEventProto, _impl_.language_list_)}},
      // uint32 ranker_version = 7;
      {::_pbi::TcParser::FastV32S1,
       {56, 10, 0,
        PROTOBUF_FIELD_OFFSET(TranslateEventProto, _impl_.ranker_version_)}},
      // int64 ranker_request_timestamp_sec = 8;
      {::_pbi::TcParser::FastV64S1,
       {64, 11, 0,
        PROTOBUF_FIELD_OFFSET(TranslateEventProto, _impl_.ranker_request_timestamp_sec_)}},
      // .metrics.TranslateEventProto.RankerResponse ranker_response = 9 [default = NOT_QUERIED];
      {::_pbi::TcParser::FastEr0S1,
       {72, 14, 2,
        PROTOBUF_FIELD_OFFSET(TranslateEventProto, _impl_.ranker_response_)}},
      // .metrics.TranslateEventProto.EventType event_type = 10;
      {::_pbi::TcParser::FastEr0S1,
       {80, 13, 28,
        PROTOBUF_FIELD_OFFSET(TranslateEventProto, _impl_.event_type_)}},
      // int64 event_timestamp_sec = 11;
      {::_pbi::TcParser::FastV64S1,
       {88, 12, 0,
        PROTOBUF_FIELD_OFFSET(TranslateEventProto, _impl_.event_timestamp_sec_)}},
      // string modified_source_language = 12;
      {::_pbi::TcParser::FastBS1,
       {98, 4, 0,
        PROTOBUF_FIELD_OFFSET(TranslateEventProto, _impl_.modified_source_language_)}},
      // string modified_target_language = 13;
      {::_pbi::TcParser::FastBS1,
       {106, 5, 0,
        PROTOBUF_FIELD_OFFSET(TranslateEventProto, _impl_.modified_target_language_)}},
      // string country = 14;
      {::_pbi::TcParser::FastBS1,
       {114, 6, 0,
        PROTOBUF_FIELD_OFFSET(TranslateEventProto, _impl_.country_)}},
      // repeated .metrics.TranslateEventProto.EventType decision_overrides = 15;
      {::_pbi::TcParser::FastEr0P1,
       {122, 1, 28,
        PROTOBUF_FIELD_OFFSET(TranslateEventProto, _impl_.decision_overrides_)}},
    }}, {{
      65535, 65535
    }}, {{
      // string source_language = 1;
      {PROTOBUF_FIELD_OFFSET(TranslateEventProto, _impl_.source_language_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // string target_language = 2;
      {PROTOBUF_FIELD_OFFSET(TranslateEventProto, _impl_.target_language_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // int32 accept_count = 3;
      {PROTOBUF_FIELD_OFFSET(TranslateEventProto, _impl_.accept_count_), _Internal::kHasBitsOffset + 7, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
      // int32 decline_count = 4;
      {PROTOBUF_FIELD_OFFSET(TranslateEventProto, _impl_.decline_count_), _Internal::kHasBitsOffset + 8, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
      // int32 ignore_count = 5;
      {PROTOBUF_FIELD_OFFSET(TranslateEventProto, _impl_.ignore_count_), _Internal::kHasBitsOffset + 9, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
      // repeated string language_list = 6;
      {PROTOBUF_FIELD_OFFSET(TranslateEventProto, _impl_.language_list_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kBytes | ::_fl::kRepSString)},
      // uint32 ranker_version = 7;
      {PROTOBUF_FIELD_OFFSET(TranslateEventProto, _impl_.ranker_version_), _Internal::kHasBitsOffset + 10, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)},
      // int64 ranker_request_timestamp_sec = 8;
      {PROTOBUF_FIELD_OFFSET(TranslateEventProto, _impl_.ranker_request_timestamp_sec_), _Internal::kHasBitsOffset + 11, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
      // .metrics.TranslateEventProto.RankerResponse ranker_response = 9 [default = NOT_QUERIED];
      {PROTOBUF_FIELD_OFFSET(TranslateEventProto, _impl_.ranker_response_), _Internal::kHasBitsOffset + 14, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
      // .metrics.TranslateEventProto.EventType event_type = 10;
      {PROTOBUF_FIELD_OFFSET(TranslateEventProto, _impl_.event_type_), _Internal::kHasBitsOffset + 13, 1, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
      // int64 event_timestamp_sec = 11;
      {PROTOBUF_FIELD_OFFSET(TranslateEventProto, _impl_.event_timestamp_sec_), _Internal::kHasBitsOffset + 12, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
      // string modified_source_language = 12;
      {PROTOBUF_FIELD_OFFSET(TranslateEventProto, _impl_.modified_source_language_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // string modified_target_language = 13;
      {PROTOBUF_FIELD_OFFSET(TranslateEventProto, _impl_.modified_target_language_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // string country = 14;
      {PROTOBUF_FIELD_OFFSET(TranslateEventProto, _impl_.country_), _Internal::kHasBitsOffset + 6, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // repeated .metrics.TranslateEventProto.EventType decision_overrides = 15;
      {PROTOBUF_FIELD_OFFSET(TranslateEventProto, _impl_.decision_overrides_), _Internal::kHasBitsOffset + 1, 2, (0 | ::_fl::kFcRepeated | ::_fl::kPackedEnumRange)},
    }},
    {{
        {0, 2},
        {0, 28},
        {0, 28},
    }},
    {{
    }},
  };
}


inline constexpr TranslateEventProto::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        language_list_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::metrics::TranslateEventProto,
            PROTOBUF_FIELD_OFFSET(::metrics::TranslateEventProto, _impl_.language_list_)>()
         }
        ,
        decision_overrides_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::metrics::TranslateEventProto,
            PROTOBUF_FIELD_OFFSET(::metrics::TranslateEventProto, _impl_.decision_overrides_)>()
         }
        ,
        _decision_overrides_cached_byte_size_{0},
        source_language_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        target_language_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        modified_source_language_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        modified_target_language_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        country_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        accept_count_{0},
        decline_count_{0},
        ignore_count_{0},
        ranker_version_{0u},
        ranker_request_timestamp_sec_{::int64_t{0}},
        event_timestamp_sec_{::int64_t{0}},
        event_type_{static_cast< ::metrics::TranslateEventProto_EventType >(0)},
        ranker_response_{static_cast< ::metrics::TranslateEventProto_RankerResponse >(2)} {}

template <typename>
constexpr TranslateEventProto::TranslateEventProto(::_pbi::ConstantInitialized,
                       const ::_pbi::ClassData* PROTOBUF_NONNULL class_data)
    : ::google::protobuf::MessageLite(
#if defined(PROTOBUF_CUSTOM_VTABLE)
          class_data
#endif  // PROTOBUF_CUSTOM_VTABLE
          ),
      _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) {
}
inline void* PROTOBUF_NONNULL TranslateEventProto::PlacementNew_(
    const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
  return ::new (mem) TranslateEventProto(arena);
}
constexpr auto TranslateEventProto::InternalNewImpl_() {
  return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(TranslateEventProto), alignof(TranslateEventProto));
}
constexpr auto TranslateEventProto::InternalGenerateClassData_(
    const MessageLite& prototype,
    const ::google::protobuf::internal::TcParseTableBase* tc_table) {
  return ::google::protobuf::internal::ClassDataLite{
      {
          &prototype,
#ifndef PROTOBUF_MESSAGE_GLOBALS
          &_table_.header,
#else
          tc_table,
#endif
          nullptr,  // IsInitialized
          &TranslateEventProto::MergeImpl,
          ::google::protobuf::MessageLite::GetNewImpl<TranslateEventProto>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
          &TranslateEventProto::SharedDtor,
          ::google::protobuf::MessageLite::GetClearImpl<TranslateEventProto>(), &TranslateEventProto::ByteSizeLong,
              &TranslateEventProto::_InternalSerialize,
#endif  // PROTOBUF_CUSTOM_VTABLE
          PROTOBUF_FIELD_OFFSET(TranslateEventProto, _impl_._cached_size_),
          true,
      },
      "metrics.TranslateEventProto",
  };
}
struct TranslateEventProtoGlobalsTypeInternal : ::_pbi::MessageGlobalsBase {
  constexpr TranslateEventProtoGlobalsTypeInternal()
      :
#ifndef PROTOBUF_MESSAGE_GLOBALS
        _default(::_pbi::ConstantInitialized{},
                 TranslateEventProto_class_data_.base())
#else   // !PROTOBUF_MESSAGE_GLOBALS
        MessageGlobalsBase(TranslateEventProto::InternalGenerateClassData_(
            _default, &TranslateEventProto_globals_._table.header)),
        _default(::_pbi::ConstantInitialized{}, GetClassData()),
        _table(::_pbi::PrivateAccess::GenerateParseTable<TranslateEventProto>(
            GetClassData()))
#endif  // PROTOBUF_MESSAGE_GLOBALS
  {
  }
  ~TranslateEventProtoGlobalsTypeInternal() {}
  union {
    alignas(::_pbi::kMaxMessageAlignment) TranslateEventProto _default;
  };
#ifdef PROTOBUF_MESSAGE_GLOBALS
  decltype(::_pbi::PrivateAccess::GenerateParseTable<TranslateEventProto>(
      ::std::declval<const ::_pbi::ClassData*>())) _table;
#endif
};
#ifdef PROTOBUF_MESSAGE_GLOBALS
static_assert(PROTOBUF_FIELD_OFFSET(TranslateEventProtoGlobalsTypeInternal, _default) ==
              ::_pbi::MessageGlobalsBase::OffsetToDefault());
#endif  // PROTOBUF_MESSAGE_GLOBALS

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST TranslateEventProtoGlobalsTypeInternal TranslateEventProto_globals_
        PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
#if defined(PROTOBUF_CUSTOM_VTABLE)
namespace {
const ::_pbi::ClassData* TranslateEventProto_get_class_data() {
#ifdef PROTOBUF_MESSAGE_GLOBALS
  return TranslateEventProto_globals_.GetClassData();
#else
  return TranslateEventProto_class_data_.base();
#endif  // PROTOBUF_MESSAGE_GLOBALS
}
}  // namespace
#endif  // PROTOBUF_CUSTOM_VTABLE
}  // namespace metrics
namespace metrics {
PROTOBUF_CONSTINIT const uint32_t TranslateEventProto_RankerResponse_internal_data_[] = {
    196608u, 0u, };
static const char TranslateEventProto_RankerResponse_names[] = {
    "DONT_SHOW"
    "NOT_QUERIED"
    "SHOW"
};

static const ::google::protobuf::internal::EnumEntry TranslateEventProto_RankerResponse_entries[] = {
    {{&TranslateEventProto_RankerResponse_names[0], 9}, 1},
    {{&TranslateEventProto_RankerResponse_names[9], 11}, 2},
    {{&TranslateEventProto_RankerResponse_names[20], 4}, 0},
};

static const int TranslateEventProto_RankerResponse_entries_by_number[] = {
    2,  // 0 -> SHOW
    0,  // 1 -> DONT_SHOW
    1,  // 2 -> NOT_QUERIED
};

bool TranslateEventProto_RankerResponse_Parse(::absl::string_view name,
                                  TranslateEventProto_RankerResponse* PROTOBUF_NONNULL value) {
  int int_value;
  bool success = ::google::protobuf::internal::LookUpEnumValue(
      TranslateEventProto_RankerResponse_entries, 3, name, &int_value);
  if (success) {
    *value = static_cast<TranslateEventProto_RankerResponse>(int_value);
  }
  return success;
}
static ::google::protobuf::internal::ExplicitlyConstructed<::std::string>
    TranslateEventProto_RankerResponse_strings[3] = {};

const ::std::string& TranslateEventProto_RankerResponse_Name(TranslateEventProto_RankerResponse value) {
  static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings(
      TranslateEventProto_RankerResponse_entries, TranslateEventProto_RankerResponse_entries_by_number, 3,
      TranslateEventProto_RankerResponse_strings);
  (void)kDummy;

  int idx = ::google::protobuf::internal::LookUpEnumName(TranslateEventProto_RankerResponse_entries,
                                  TranslateEventProto_RankerResponse_entries_by_number,
                                  3, value);
  return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : TranslateEventProto_RankerResponse_strings[idx].get();
}
PROTOBUF_CONSTINIT const uint32_t TranslateEventProto_EventType_internal_data_[] = {
    1900544u, 0u, };
static const char TranslateEventProto_EventType_names[] = {
    "AUTOMATICALLY_TRANSLATED"
    "AUTO_TRANSLATION_BY_COMMANDLINE"
    "AUTO_TRANSLATION_BY_LINK"
    "AUTO_TRANSLATION_BY_PREF"
    "BROWSER_WINDOW_IS_INVALID"
    "BROWSER_WINDOW_IS_MINIMIZED"
    "BROWSER_WINDOW_NOT_ACTIVE"
    "DISABLED_BY_PREF"
    "DISABLED_BY_RANKER"
    "EDITABLE_FIELD_IS_ACTIVE"
    "INITIALIZATION_ERROR"
    "LANGUAGE_DISABLED_BY_AUTO_BLACKLIST"
    "LANGUAGE_DISABLED_BY_USER_CONFIG"
    "LANGUAGE_IN_ULP"
    "MATCHES_PREVIOUS_LANGUAGE"
    "UNKNOWN"
    "UNSUPPORTED_LANGUAGE"
    "UNSUPPORTED_URL"
    "URL_DISABLED_BY_USER_CONFIG"
    "USER_ACCEPT"
    "USER_ALWAYS_TRANSLATE_LANGUAGE"
    "USER_CONTEXT_MENU_TRANSLATE"
    "USER_DECLINE"
    "USER_DISMISS"
    "USER_IGNORE"
    "USER_NEVER_TRANSLATE_LANGUAGE"
    "USER_NEVER_TRANSLATE_SITE"
    "USER_REVERT"
    "WEB_CONTENTS_NOT_ACTIVE"
};

static const ::google::protobuf::internal::EnumEntry TranslateEventProto_EventType_entries[] = {
    {{&TranslateEventProto_EventType_names[0], 24}, 10},
    {{&TranslateEventProto_EventType_names[24], 31}, 28},
    {{&TranslateEventProto_EventType_names[55], 24}, 26},
    {{&TranslateEventProto_EventType_names[79], 24}, 25},
    {{&TranslateEventProto_EventType_names[103], 25}, 19},
    {{&TranslateEventProto_EventType_names[128], 27}, 21},
    {{&TranslateEventProto_EventType_names[155], 25}, 20},
    {{&TranslateEventProto_EventType_names[180], 16}, 11},
    {{&TranslateEventProto_EventType_names[196], 18}, 15},
    {{&TranslateEventProto_EventType_names[214], 24}, 23},
    {{&TranslateEventProto_EventType_names[238], 20}, 27},
    {{&TranslateEventProto_EventType_names[258], 35}, 14},
    {{&TranslateEventProto_EventType_names[293], 32}, 12},
    {{&TranslateEventProto_EventType_names[325], 15}, 24},
    {{&TranslateEventProto_EventType_names[340], 25}, 18},
    {{&TranslateEventProto_EventType_names[365], 7}, 0},
    {{&TranslateEventProto_EventType_names[372], 20}, 16},
    {{&TranslateEventProto_EventType_names[392], 15}, 17},
    {{&TranslateEventProto_EventType_names[407], 27}, 13},
    {{&TranslateEventProto_EventType_names[434], 11}, 2},
    {{&TranslateEventProto_EventType_names[445], 30}, 7},
    {{&TranslateEventProto_EventType_names[475], 27}, 8},
    {{&TranslateEventProto_EventType_names[502], 12}, 1},
    {{&TranslateEventProto_EventType_names[514], 12}, 3},
    {{&TranslateEventProto_EventType_names[526], 11}, 4},
    {{&TranslateEventProto_EventType_names[537], 29}, 5},
    {{&TranslateEventProto_EventType_names[566], 25}, 6},
    {{&TranslateEventProto_EventType_names[591], 11}, 9},
    {{&TranslateEventProto_EventType_names[602], 23}, 22},
};

static const int TranslateEventProto_EventType_entries_by_number[] = {
    15,  // 0 -> UNKNOWN
    22,  // 1 -> USER_DECLINE
    19,  // 2 -> USER_ACCEPT
    23,  // 3 -> USER_DISMISS
    24,  // 4 -> USER_IGNORE
    25,  // 5 -> USER_NEVER_TRANSLATE_LANGUAGE
    26,  // 6 -> USER_NEVER_TRANSLATE_SITE
    20,  // 7 -> USER_ALWAYS_TRANSLATE_LANGUAGE
    21,  // 8 -> USER_CONTEXT_MENU_TRANSLATE
    27,  // 9 -> USER_REVERT
    0,  // 10 -> AUTOMATICALLY_TRANSLATED
    7,  // 11 -> DISABLED_BY_PREF
    12,  // 12 -> LANGUAGE_DISABLED_BY_USER_CONFIG
    18,  // 13 -> URL_DISABLED_BY_USER_CONFIG
    11,  // 14 -> LANGUAGE_DISABLED_BY_AUTO_BLACKLIST
    8,  // 15 -> DISABLED_BY_RANKER
    16,  // 16 -> UNSUPPORTED_LANGUAGE
    17,  // 17 -> UNSUPPORTED_URL
    14,  // 18 -> MATCHES_PREVIOUS_LANGUAGE
    4,  // 19 -> BROWSER_WINDOW_IS_INVALID
    6,  // 20 -> BROWSER_WINDOW_NOT_ACTIVE
    5,  // 21 -> BROWSER_WINDOW_IS_MINIMIZED
    28,  // 22 -> WEB_CONTENTS_NOT_ACTIVE
    9,  // 23 -> EDITABLE_FIELD_IS_ACTIVE
    13,  // 24 -> LANGUAGE_IN_ULP
    3,  // 25 -> AUTO_TRANSLATION_BY_PREF
    2,  // 26 -> AUTO_TRANSLATION_BY_LINK
    10,  // 27 -> INITIALIZATION_ERROR
    1,  // 28 -> AUTO_TRANSLATION_BY_COMMANDLINE
};

bool TranslateEventProto_EventType_Parse(::absl::string_view name,
                                  TranslateEventProto_EventType* PROTOBUF_NONNULL value) {
  int int_value;
  bool success = ::google::protobuf::internal::LookUpEnumValue(
      TranslateEventProto_EventType_entries, 29, name, &int_value);
  if (success) {
    *value = static_cast<TranslateEventProto_EventType>(int_value);
  }
  return success;
}
static ::google::protobuf::internal::ExplicitlyConstructed<::std::string>
    TranslateEventProto_EventType_strings[29] = {};

const ::std::string& TranslateEventProto_EventType_Name(TranslateEventProto_EventType value) {
  static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings(
      TranslateEventProto_EventType_entries, TranslateEventProto_EventType_entries_by_number, 29,
      TranslateEventProto_EventType_strings);
  (void)kDummy;

  int idx = ::google::protobuf::internal::LookUpEnumName(TranslateEventProto_EventType_entries,
                                  TranslateEventProto_EventType_entries_by_number,
                                  29, value);
  return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : TranslateEventProto_EventType_strings[idx].get();
}
// ===================================================================

TranslateEventProto::TranslateEventProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, TranslateEventProto_get_class_data()) {
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:metrics.TranslateEventProto)
}
PROTOBUF_NDEBUG_INLINE TranslateEventProto::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
    [[maybe_unused]] const ::metrics::TranslateEventProto& from_msg)
      : _has_bits_{from._has_bits_},
        _cached_size_{0},
        language_list_ {
          visibility, ::_pbi::InternalMetadataOffset::Build<
              ::metrics::TranslateEventProto,
              PROTOBUF_FIELD_OFFSET(::metrics::TranslateEventProto, _impl_.language_list_)>()
          , from.language_list_
        }
        ,
        decision_overrides_ {
          visibility, ::_pbi::InternalMetadataOffset::Build<
              ::metrics::TranslateEventProto,
              PROTOBUF_FIELD_OFFSET(::metrics::TranslateEventProto, _impl_.decision_overrides_)>()
          , from.decision_overrides_
        }
        ,
        _decision_overrides_cached_byte_size_{0},
        source_language_(arena, from.source_language_),
        target_language_(arena, from.target_language_),
        modified_source_language_(arena, from.modified_source_language_),
        modified_target_language_(arena, from.modified_target_language_),
        country_(arena, from.country_) {}

TranslateEventProto::TranslateEventProto(
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
    const TranslateEventProto& from)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, TranslateEventProto_get_class_data()) {

#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  TranslateEventProto* const _this = this;
  (void)_this;
  _internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
  new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
  ::memcpy(reinterpret_cast<char*>(&_impl_) +
               offsetof(Impl_, accept_count_),
           reinterpret_cast<const char*>(&from._impl_) +
               offsetof(Impl_, accept_count_),
           offsetof(Impl_, ranker_response_) -
               offsetof(Impl_, accept_count_) +
               sizeof(Impl_::ranker_response_));

  // @@protoc_insertion_point(copy_constructor:metrics.TranslateEventProto)
}
PROTOBUF_NDEBUG_INLINE TranslateEventProto::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
      : _cached_size_{0},
        language_list_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::metrics::TranslateEventProto,
            PROTOBUF_FIELD_OFFSET(::metrics::TranslateEventProto, _impl_.language_list_)>()
         }
        ,
        decision_overrides_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::metrics::TranslateEventProto,
            PROTOBUF_FIELD_OFFSET(::metrics::TranslateEventProto, _impl_.decision_overrides_)>()
         }
        ,
        _decision_overrides_cached_byte_size_{0},
        source_language_(arena),
        target_language_(arena),
        modified_source_language_(arena),
        modified_target_language_(arena),
        country_(arena),
        ranker_response_{static_cast< ::metrics::TranslateEventProto_RankerResponse >(2)} {}

inline void TranslateEventProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
  new (&_impl_) Impl_(internal_visibility(), arena);
  ::memset(reinterpret_cast<char*>(&_impl_) +
               offsetof(Impl_, accept_count_),
           0,
           offsetof(Impl_, event_type_) -
               offsetof(Impl_, accept_count_) +
               sizeof(Impl_::event_type_));
}
TranslateEventProto::~TranslateEventProto() {
  // @@protoc_insertion_point(destructor:metrics.TranslateEventProto)
  SharedDtor(*this);
}
inline void TranslateEventProto::SharedDtor(MessageLite& self) {
  TranslateEventProto& this_ = static_cast<TranslateEventProto&>(self);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    this_.CheckHasBitConsistency();
  }
  this_._internal_metadata_.Delete<::std::string>();
  ABSL_DCHECK(this_.GetArena() == nullptr);
  this_._impl_.source_language_.Destroy();
  this_._impl_.target_language_.Destroy();
  this_._impl_.modified_source_language_.Destroy();
  this_._impl_.modified_target_language_.Destroy();
  this_._impl_.country_.Destroy();
  this_._impl_.~Impl_();
}

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite TranslateEventProto_class_data_ =
    TranslateEventProto::InternalGenerateClassData_(TranslateEventProto_globals_._default);

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
TranslateEventProto::GetClassData() const {
  return TranslateEventProto_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
TranslateEventProto::GetClassData() const {
  return TranslateEventProto_globals_.GetClassData();
}
#endif  // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const TranslateEventProto::ParseTableT_
    TranslateEventProto::_table_ =
        TranslateEventProto::InternalGenerateParseTable_(TranslateEventProto_class_data_.base());
#endif  // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void TranslateEventProto::Clear() {
// @@protoc_insertion_point(message_clear_start:metrics.TranslateEventProto)
  ::google::protobuf::internal::TSanWrite(&_impl_);
  ::uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  cached_has_bits = _impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x0000007fU)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      _impl_.language_list_.Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _impl_.decision_overrides_.Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      _impl_.source_language_.ClearNonDefaultToEmpty();
    }
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      _impl_.target_language_.ClearNonDefaultToEmpty();
    }
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      _impl_.modified_source_language_.ClearNonDefaultToEmpty();
    }
    if (CheckHasBit(cached_has_bits, 0x00000020U)) {
      _impl_.modified_target_language_.ClearNonDefaultToEmpty();
    }
    if (CheckHasBit(cached_has_bits, 0x00000040U)) {
      _impl_.country_.ClearNonDefaultToEmpty();
    }
  }
  _impl_.accept_count_ = 0;
  if (BatchCheckHasBit(cached_has_bits, 0x00007f00U)) {
    ::memset(&_impl_.decline_count_, 0, static_cast<::size_t>(
        reinterpret_cast<char*>(&_impl_.event_type_) -
        reinterpret_cast<char*>(&_impl_.decline_count_)) + sizeof(_impl_.event_type_));
    _impl_.ranker_response_ = 2;
  }
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::uint8_t* PROTOBUF_NONNULL TranslateEventProto::_InternalSerialize(
    const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
    ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
  const TranslateEventProto& this_ = static_cast<const TranslateEventProto&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::uint8_t* PROTOBUF_NONNULL TranslateEventProto::_InternalSerialize(
    ::uint8_t* PROTOBUF_NONNULL target,
    ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
  const TranslateEventProto& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    this_.CheckHasBitConsistency();
  }
  // @@protoc_insertion_point(serialize_to_array_start:metrics.TranslateEventProto)
  ::uint32_t cached_has_bits = 0;
  (void)cached_has_bits;

  cached_has_bits = this_._impl_._has_bits_[0];
  // string source_language = 1;
  if (CheckHasBit(cached_has_bits, 0x00000004U)) {
    const ::std::string& _s = this_._internal_source_language();
    target = stream->WriteStringMaybeAliased(1, _s, target);
  }

  // string target_language = 2;
  if (CheckHasBit(cached_has_bits, 0x00000008U)) {
    const ::std::string& _s = this_._internal_target_language();
    target = stream->WriteStringMaybeAliased(2, _s, target);
  }

  // int32 accept_count = 3;
  if (CheckHasBit(cached_has_bits, 0x00000080U)) {
    target =
        ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<3>(
            stream, this_._internal_accept_count(), target);
  }

  // int32 decline_count = 4;
  if (CheckHasBit(cached_has_bits, 0x00000100U)) {
    target =
        ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<4>(
            stream, this_._internal_decline_count(), target);
  }

  // int32 ignore_count = 5;
  if (CheckHasBit(cached_has_bits, 0x00000200U)) {
    target =
        ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<5>(
            stream, this_._internal_ignore_count(), target);
  }

  // repeated string language_list = 6;
  if (CheckHasBit(cached_has_bits, 0x00000001U)) {
    for (int i = 0, n = this_._internal_language_list_size(); i < n; ++i) {
      const auto& s = this_._internal_language_list().Get(i);
      target = stream->WriteString(6, s, target);
    }
  }

  // uint32 ranker_version = 7;
  if (CheckHasBit(cached_has_bits, 0x00000400U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteUInt32ToArray(
        7, this_._internal_ranker_version(), target);
  }

  // int64 ranker_request_timestamp_sec = 8;
  if (CheckHasBit(cached_has_bits, 0x00000800U)) {
    target =
        ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<8>(
            stream, this_._internal_ranker_request_timestamp_sec(), target);
  }

  // .metrics.TranslateEventProto.RankerResponse ranker_response = 9 [default = NOT_QUERIED];
  if (CheckHasBit(cached_has_bits, 0x00004000U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteEnumToArray(
        9, this_._internal_ranker_response(), target);
  }

  // .metrics.TranslateEventProto.EventType event_type = 10;
  if (CheckHasBit(cached_has_bits, 0x00002000U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteEnumToArray(
        10, this_._internal_event_type(), target);
  }

  // int64 event_timestamp_sec = 11;
  if (CheckHasBit(cached_has_bits, 0x00001000U)) {
    target =
        ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<11>(
            stream, this_._internal_event_timestamp_sec(), target);
  }

  // string modified_source_language = 12;
  if (CheckHasBit(cached_has_bits, 0x00000010U)) {
    const ::std::string& _s = this_._internal_modified_source_language();
    target = stream->WriteStringMaybeAliased(12, _s, target);
  }

  // string modified_target_language = 13;
  if (CheckHasBit(cached_has_bits, 0x00000020U)) {
    const ::std::string& _s = this_._internal_modified_target_language();
    target = stream->WriteStringMaybeAliased(13, _s, target);
  }

  // string country = 14;
  if (CheckHasBit(cached_has_bits, 0x00000040U)) {
    const ::std::string& _s = this_._internal_country();
    target = stream->WriteStringMaybeAliased(14, _s, target);
  }

  // repeated .metrics.TranslateEventProto.EventType decision_overrides = 15;
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    {
      ::size_t byte_size = this_._impl_._decision_overrides_cached_byte_size_.Get();
      if (byte_size > 0) {
        target = stream->WriteEnumPacked(
            15, this_._internal_decision_overrides(), byte_size, target);
      }
    }
  }

  if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
    target = stream->WriteRaw(
        this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(),
        static_cast<int>(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target);
  }
  // @@protoc_insertion_point(serialize_to_array_end:metrics.TranslateEventProto)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t TranslateEventProto::ByteSizeLong(const MessageLite& base) {
  const TranslateEventProto& this_ = static_cast<const TranslateEventProto&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t TranslateEventProto::ByteSizeLong() const {
  const TranslateEventProto& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:metrics.TranslateEventProto)
  ::size_t total_size = 0;

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

  ::_pbi::Prefetch5LinesFrom7Lines(&this_);
  cached_has_bits = this_._impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) {
    // repeated string language_list = 6;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size +=
          1 * ::google::protobuf::internal::FromIntSize(this_._internal_language_list().size());
      for (int i = 0, n = this_._internal_language_list().size(); i < n; ++i) {
        total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
            this_._internal_language_list().Get(i));
      }
    }
    // repeated .metrics.TranslateEventProto.EventType decision_overrides = 15;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size += ::_pbi::WireFormatLite::EnumSizeWithPackedTagSize(
          this_._internal_decision_overrides(), 1, this_._impl_._decision_overrides_cached_byte_size_);
    }
    // string source_language = 1;
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_source_language());
    }
    // string target_language = 2;
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_target_language());
    }
    // string modified_source_language = 12;
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_modified_source_language());
    }
    // string modified_target_language = 13;
    if (CheckHasBit(cached_has_bits, 0x00000020U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_modified_target_language());
    }
    // string country = 14;
    if (CheckHasBit(cached_has_bits, 0x00000040U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_country());
    }
    // int32 accept_count = 3;
    if (CheckHasBit(cached_has_bits, 0x00000080U)) {
      total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
          this_._internal_accept_count());
    }
  }
  if (BatchCheckHasBit(cached_has_bits, 0x00007f00U)) {
    // int32 decline_count = 4;
    if (CheckHasBit(cached_has_bits, 0x00000100U)) {
      total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
          this_._internal_decline_count());
    }
    // int32 ignore_count = 5;
    if (CheckHasBit(cached_has_bits, 0x00000200U)) {
      total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
          this_._internal_ignore_count());
    }
    // uint32 ranker_version = 7;
    if (CheckHasBit(cached_has_bits, 0x00000400U)) {
      total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(
          this_._internal_ranker_version());
    }
    // int64 ranker_request_timestamp_sec = 8;
    if (CheckHasBit(cached_has_bits, 0x00000800U)) {
      total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
          this_._internal_ranker_request_timestamp_sec());
    }
    // int64 event_timestamp_sec = 11;
    if (CheckHasBit(cached_has_bits, 0x00001000U)) {
      total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
          this_._internal_event_timestamp_sec());
    }
    // .metrics.TranslateEventProto.EventType event_type = 10;
    if (CheckHasBit(cached_has_bits, 0x00002000U)) {
      total_size += 1 +
                    ::_pbi::WireFormatLite::EnumSize(this_._internal_event_type());
    }
    // .metrics.TranslateEventProto.RankerResponse ranker_response = 9 [default = NOT_QUERIED];
    if (CheckHasBit(cached_has_bits, 0x00004000U)) {
      total_size += 1 +
                    ::_pbi::WireFormatLite::EnumSize(this_._internal_ranker_response());
    }
  }
  if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
    total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size();
  }
  this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size));
  return total_size;
}

void TranslateEventProto::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<TranslateEventProto*>(&to_msg);
  auto& from = static_cast<const TranslateEventProto&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  ::google::protobuf::Arena* arena = _this->GetArena();
  // @@protoc_insertion_point(class_specific_merge_from_start:metrics.TranslateEventProto)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void)cached_has_bits;

  cached_has_bits = from._impl_._has_bits_[0];
  if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      _this->_internal_mutable_language_list()->InternalMergeFromWithArena(
          ::google::protobuf::MessageLite::internal_visibility(), arena,
          from._internal_language_list());
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _this->_internal_mutable_decision_overrides()->MergeFrom(from._internal_decision_overrides());
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      _this->_internal_set_source_language(from._internal_source_language());
    }
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      _this->_internal_set_target_language(from._internal_target_language());
    }
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      _this->_internal_set_modified_source_language(from._internal_modified_source_language());
    }
    if (CheckHasBit(cached_has_bits, 0x00000020U)) {
      _this->_internal_set_modified_target_language(from._internal_modified_target_language());
    }
    if (CheckHasBit(cached_has_bits, 0x00000040U)) {
      _this->_internal_set_country(from._internal_country());
    }
    if (CheckHasBit(cached_has_bits, 0x00000080U)) {
      _this->_impl_.accept_count_ = from._impl_.accept_count_;
    }
  }
  if (BatchCheckHasBit(cached_has_bits, 0x00007f00U)) {
    if (CheckHasBit(cached_has_bits, 0x00000100U)) {
      _this->_impl_.decline_count_ = from._impl_.decline_count_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000200U)) {
      _this->_impl_.ignore_count_ = from._impl_.ignore_count_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000400U)) {
      _this->_impl_.ranker_version_ = from._impl_.ranker_version_;
    }
    if (CheckHasBit(cached_has_bits, 0x00000800U)) {
      _this->_impl_.ranker_request_timestamp_sec_ = from._impl_.ranker_request_timestamp_sec_;
    }
    if (CheckHasBit(cached_has_bits, 0x00001000U)) {
      _this->_impl_.event_timestamp_sec_ = from._impl_.event_timestamp_sec_;
    }
    if (CheckHasBit(cached_has_bits, 0x00002000U)) {
      _this->_impl_.event_type_ = from._impl_.event_type_;
    }
    if (CheckHasBit(cached_has_bits, 0x00004000U)) {
      _this->_impl_.ranker_response_ = from._impl_.ranker_response_;
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

void TranslateEventProto::CopyFrom(const TranslateEventProto& from) {
  // @@protoc_insertion_point(class_specific_copy_from_start:metrics.TranslateEventProto)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}


void TranslateEventProto::InternalSwap(TranslateEventProto* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
  using ::std::swap;
  auto* arena = GetArena();
  ABSL_DCHECK_EQ(arena, other->GetArena());
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
  _impl_.language_list_.InternalSwap(&other->_impl_.language_list_);
  _impl_.decision_overrides_.InternalSwap(&other->_impl_.decision_overrides_);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.source_language_, &other->_impl_.source_language_, arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.target_language_, &other->_impl_.target_language_, arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.modified_source_language_, &other->_impl_.modified_source_language_, arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.modified_target_language_, &other->_impl_.modified_target_language_, arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.country_, &other->_impl_.country_, arena);
  ::google::protobuf::internal::memswap<
      PROTOBUF_FIELD_OFFSET(TranslateEventProto, _impl_.ranker_response_)
      + sizeof(TranslateEventProto::_impl_.ranker_response_)
      - PROTOBUF_FIELD_OFFSET(TranslateEventProto, _impl_.accept_count_)>(
          reinterpret_cast<char*>(&_impl_.accept_count_),
          reinterpret_cast<char*>(&other->_impl_.accept_count_));
}

// @@protoc_insertion_point(namespace_scope)
}  // namespace metrics
namespace google {
namespace protobuf {
}  // namespace protobuf
}  // namespace google
// @@protoc_insertion_point(global_scope)
#include "google/protobuf/port_undef.inc"
