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

#include "third_party/metrics_proto/printer_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 PrinterEventProto::_Internal {
 public:
  using HasBits = decltype(::std::declval<PrinterEventProto>()._impl_._has_bits_);
  static constexpr ::int32_t kHasBitsOffset =
      8 * PROTOBUF_FIELD_OFFSET(PrinterEventProto, _impl_._has_bits_);
};

constexpr PrinterEventProto::ParseTableT_ PrinterEventProto::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) {
  return ParseTableT_{
    {
      PROTOBUF_FIELD_OFFSET(PrinterEventProto, _impl_._has_bits_),
      0, // no _extensions_
      20, 248,  // max_field_number, fast_idx_mask
      offsetof(ParseTableT_, field_lookup_table),
      4293918720,  // skipmap
      offsetof(ParseTableT_, field_entries),
      20,  // 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::PrinterEventProto>(),  // to_prefetch
      #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
    }, {{
      {::_pbi::TcParser::MiniParse, {}},
      // string usb_printer_manufacturer = 1;
      {::_pbi::TcParser::FastBS1,
       {10, 6, 0,
        PROTOBUF_FIELD_OFFSET(PrinterEventProto, _impl_.usb_printer_manufacturer_)}},
      // string usb_printer_model = 2;
      {::_pbi::TcParser::FastBS1,
       {18, 7, 0,
        PROTOBUF_FIELD_OFFSET(PrinterEventProto, _impl_.usb_printer_model_)}},
      // int32 usb_vendor_id = 3;
      {::_pbi::TcParser::FastV32S1,
       {24, 15, 0,
        PROTOBUF_FIELD_OFFSET(PrinterEventProto, _impl_.usb_vendor_id_)}},
      // int32 usb_model_id = 4;
      {::_pbi::TcParser::FastV32S1,
       {32, 16, 0,
        PROTOBUF_FIELD_OFFSET(PrinterEventProto, _impl_.usb_model_id_)}},
      // string ipp_make_and_model = 5;
      {::_pbi::TcParser::FastBS1,
       {42, 8, 0,
        PROTOBUF_FIELD_OFFSET(PrinterEventProto, _impl_.ipp_make_and_model_)}},
      // bool user_ppd = 6;
      {::_pbi::TcParser::FastV8S1,
       {48, 18, 0,
        PROTOBUF_FIELD_OFFSET(PrinterEventProto, _impl_.user_ppd_)}},
      // string ppd_identifier = 7;
      {::_pbi::TcParser::FastBS1,
       {58, 9, 0,
        PROTOBUF_FIELD_OFFSET(PrinterEventProto, _impl_.ppd_identifier_)}},
      // .metrics.PrinterEventProto.EventType event_type = 8;
      {::_pbi::TcParser::FastEr0S1,
       {64, 17, 4,
        PROTOBUF_FIELD_OFFSET(PrinterEventProto, _impl_.event_type_)}},
      // repeated string document_format_supported = 9;
      {::_pbi::TcParser::FastBR1,
       {74, 0, 0,
        PROTOBUF_FIELD_OFFSET(PrinterEventProto, _impl_.document_format_supported_)}},
      // string document_format_preferred = 10;
      {::_pbi::TcParser::FastBS1,
       {82, 10, 0,
        PROTOBUF_FIELD_OFFSET(PrinterEventProto, _impl_.document_format_preferred_)}},
      // string document_format_default = 11;
      {::_pbi::TcParser::FastBS1,
       {90, 11, 0,
        PROTOBUF_FIELD_OFFSET(PrinterEventProto, _impl_.document_format_default_)}},
      // repeated string urf_supported = 12;
      {::_pbi::TcParser::FastBR1,
       {98, 1, 0,
        PROTOBUF_FIELD_OFFSET(PrinterEventProto, _impl_.urf_supported_)}},
      // repeated .metrics.PrinterEventProto.PdfVersion pdf_versions_supported = 13;
      {::_pbi::TcParser::FastEr0P1,
       {106, 2, 19,
        PROTOBUF_FIELD_OFFSET(PrinterEventProto, _impl_.pdf_versions_supported_)}},
      // repeated .metrics.PrinterEventProto.IppFeature ipp_features_supported = 14;
      {::_pbi::TcParser::FastEr0P1,
       {114, 3, 28,
        PROTOBUF_FIELD_OFFSET(PrinterEventProto, _impl_.ipp_features_supported_)}},
      // string mopria_certified = 15;
      {::_pbi::TcParser::FastBS1,
       {122, 12, 0,
        PROTOBUF_FIELD_OFFSET(PrinterEventProto, _impl_.mopria_certified_)}},
      // repeated string printer_kind = 16;
      {::_pbi::TcParser::FastBR2,
       {386, 4, 0,
        PROTOBUF_FIELD_OFFSET(PrinterEventProto, _impl_.printer_kind_)}},
      // bool roll_sizes_available = 17;
      {::_pbi::TcParser::FastV8S2,
       {392, 19, 0,
        PROTOBUF_FIELD_OFFSET(PrinterEventProto, _impl_.roll_sizes_available_)}},
      // string ppd_file_name = 18;
      {::_pbi::TcParser::FastBS2,
       {402, 13, 0,
        PROTOBUF_FIELD_OFFSET(PrinterEventProto, _impl_.ppd_file_name_)}},
      // repeated string cups_filters = 19;
      {::_pbi::TcParser::FastBR2,
       {410, 5, 0,
        PROTOBUF_FIELD_OFFSET(PrinterEventProto, _impl_.cups_filters_)}},
      // string device_id = 20;
      {::_pbi::TcParser::FastBS2,
       {418, 14, 0,
        PROTOBUF_FIELD_OFFSET(PrinterEventProto, _impl_.device_id_)}},
      {::_pbi::TcParser::MiniParse, {}},
      {::_pbi::TcParser::MiniParse, {}},
      {::_pbi::TcParser::MiniParse, {}},
      {::_pbi::TcParser::MiniParse, {}},
      {::_pbi::TcParser::MiniParse, {}},
      {::_pbi::TcParser::MiniParse, {}},
      {::_pbi::TcParser::MiniParse, {}},
      {::_pbi::TcParser::MiniParse, {}},
      {::_pbi::TcParser::MiniParse, {}},
      {::_pbi::TcParser::MiniParse, {}},
      {::_pbi::TcParser::MiniParse, {}},
    }}, {{
      65535, 65535
    }}, {{
      // string usb_printer_manufacturer = 1;
      {PROTOBUF_FIELD_OFFSET(PrinterEventProto, _impl_.usb_printer_manufacturer_), _Internal::kHasBitsOffset + 6, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // string usb_printer_model = 2;
      {PROTOBUF_FIELD_OFFSET(PrinterEventProto, _impl_.usb_printer_model_), _Internal::kHasBitsOffset + 7, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // int32 usb_vendor_id = 3;
      {PROTOBUF_FIELD_OFFSET(PrinterEventProto, _impl_.usb_vendor_id_), _Internal::kHasBitsOffset + 15, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
      // int32 usb_model_id = 4;
      {PROTOBUF_FIELD_OFFSET(PrinterEventProto, _impl_.usb_model_id_), _Internal::kHasBitsOffset + 16, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
      // string ipp_make_and_model = 5;
      {PROTOBUF_FIELD_OFFSET(PrinterEventProto, _impl_.ipp_make_and_model_), _Internal::kHasBitsOffset + 8, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // bool user_ppd = 6;
      {PROTOBUF_FIELD_OFFSET(PrinterEventProto, _impl_.user_ppd_), _Internal::kHasBitsOffset + 18, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
      // string ppd_identifier = 7;
      {PROTOBUF_FIELD_OFFSET(PrinterEventProto, _impl_.ppd_identifier_), _Internal::kHasBitsOffset + 9, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // .metrics.PrinterEventProto.EventType event_type = 8;
      {PROTOBUF_FIELD_OFFSET(PrinterEventProto, _impl_.event_type_), _Internal::kHasBitsOffset + 17, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
      // repeated string document_format_supported = 9;
      {PROTOBUF_FIELD_OFFSET(PrinterEventProto, _impl_.document_format_supported_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kBytes | ::_fl::kRepSString)},
      // string document_format_preferred = 10;
      {PROTOBUF_FIELD_OFFSET(PrinterEventProto, _impl_.document_format_preferred_), _Internal::kHasBitsOffset + 10, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // string document_format_default = 11;
      {PROTOBUF_FIELD_OFFSET(PrinterEventProto, _impl_.document_format_default_), _Internal::kHasBitsOffset + 11, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // repeated string urf_supported = 12;
      {PROTOBUF_FIELD_OFFSET(PrinterEventProto, _impl_.urf_supported_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcRepeated | ::_fl::kBytes | ::_fl::kRepSString)},
      // repeated .metrics.PrinterEventProto.PdfVersion pdf_versions_supported = 13;
      {PROTOBUF_FIELD_OFFSET(PrinterEventProto, _impl_.pdf_versions_supported_), _Internal::kHasBitsOffset + 2, 1, (0 | ::_fl::kFcRepeated | ::_fl::kPackedEnumRange)},
      // repeated .metrics.PrinterEventProto.IppFeature ipp_features_supported = 14;
      {PROTOBUF_FIELD_OFFSET(PrinterEventProto, _impl_.ipp_features_supported_), _Internal::kHasBitsOffset + 3, 2, (0 | ::_fl::kFcRepeated | ::_fl::kPackedEnumRange)},
      // string mopria_certified = 15;
      {PROTOBUF_FIELD_OFFSET(PrinterEventProto, _impl_.mopria_certified_), _Internal::kHasBitsOffset + 12, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // repeated string printer_kind = 16;
      {PROTOBUF_FIELD_OFFSET(PrinterEventProto, _impl_.printer_kind_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcRepeated | ::_fl::kBytes | ::_fl::kRepSString)},
      // bool roll_sizes_available = 17;
      {PROTOBUF_FIELD_OFFSET(PrinterEventProto, _impl_.roll_sizes_available_), _Internal::kHasBitsOffset + 19, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
      // string ppd_file_name = 18;
      {PROTOBUF_FIELD_OFFSET(PrinterEventProto, _impl_.ppd_file_name_), _Internal::kHasBitsOffset + 13, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
      // repeated string cups_filters = 19;
      {PROTOBUF_FIELD_OFFSET(PrinterEventProto, _impl_.cups_filters_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcRepeated | ::_fl::kBytes | ::_fl::kRepSString)},
      // string device_id = 20;
      {PROTOBUF_FIELD_OFFSET(PrinterEventProto, _impl_.device_id_), _Internal::kHasBitsOffset + 14, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
    }},
    {{
        {0, 4},
        {0, 19},
        {0, 28},
    }},
    {{
    }},
  };
}


inline constexpr PrinterEventProto::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    ::_pbi::ConstantInitialized) noexcept
      : _cached_size_{0},
        document_format_supported_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::metrics::PrinterEventProto,
            PROTOBUF_FIELD_OFFSET(::metrics::PrinterEventProto, _impl_.document_format_supported_)>()
         }
        ,
        urf_supported_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::metrics::PrinterEventProto,
            PROTOBUF_FIELD_OFFSET(::metrics::PrinterEventProto, _impl_.urf_supported_)>()
         }
        ,
        pdf_versions_supported_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::metrics::PrinterEventProto,
            PROTOBUF_FIELD_OFFSET(::metrics::PrinterEventProto, _impl_.pdf_versions_supported_)>()
         }
        ,
        _pdf_versions_supported_cached_byte_size_{0},
        ipp_features_supported_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::metrics::PrinterEventProto,
            PROTOBUF_FIELD_OFFSET(::metrics::PrinterEventProto, _impl_.ipp_features_supported_)>()
         }
        ,
        _ipp_features_supported_cached_byte_size_{0},
        printer_kind_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::metrics::PrinterEventProto,
            PROTOBUF_FIELD_OFFSET(::metrics::PrinterEventProto, _impl_.printer_kind_)>()
         }
        ,
        cups_filters_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::metrics::PrinterEventProto,
            PROTOBUF_FIELD_OFFSET(::metrics::PrinterEventProto, _impl_.cups_filters_)>()
         }
        ,
        usb_printer_manufacturer_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        usb_printer_model_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        ipp_make_and_model_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        ppd_identifier_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        document_format_preferred_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        document_format_default_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        mopria_certified_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        ppd_file_name_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        device_id_(
            &::google::protobuf::internal::fixed_address_empty_string,
            ::_pbi::ConstantInitialized()),
        usb_vendor_id_{0},
        usb_model_id_{0},
        event_type_{static_cast< ::metrics::PrinterEventProto_EventType >(0)},
        user_ppd_{false},
        roll_sizes_available_{false} {}

template <typename>
constexpr PrinterEventProto::PrinterEventProto(::_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 PrinterEventProto::PlacementNew_(
    const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
  return ::new (mem) PrinterEventProto(arena);
}
constexpr auto PrinterEventProto::InternalNewImpl_() {
  return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(PrinterEventProto), alignof(PrinterEventProto));
}
constexpr auto PrinterEventProto::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
          &PrinterEventProto::MergeImpl,
          ::google::protobuf::MessageLite::GetNewImpl<PrinterEventProto>(),
#if defined(PROTOBUF_CUSTOM_VTABLE)
          &PrinterEventProto::SharedDtor,
          ::google::protobuf::MessageLite::GetClearImpl<PrinterEventProto>(), &PrinterEventProto::ByteSizeLong,
              &PrinterEventProto::_InternalSerialize,
#endif  // PROTOBUF_CUSTOM_VTABLE
          PROTOBUF_FIELD_OFFSET(PrinterEventProto, _impl_._cached_size_),
          true,
      },
      "metrics.PrinterEventProto",
  };
}
struct PrinterEventProtoGlobalsTypeInternal : ::_pbi::MessageGlobalsBase {
  constexpr PrinterEventProtoGlobalsTypeInternal()
      :
#ifndef PROTOBUF_MESSAGE_GLOBALS
        _default(::_pbi::ConstantInitialized{},
                 PrinterEventProto_class_data_.base())
#else   // !PROTOBUF_MESSAGE_GLOBALS
        MessageGlobalsBase(PrinterEventProto::InternalGenerateClassData_(
            _default, &PrinterEventProto_globals_._table.header)),
        _default(::_pbi::ConstantInitialized{}, GetClassData()),
        _table(::_pbi::PrivateAccess::GenerateParseTable<PrinterEventProto>(
            GetClassData()))
#endif  // PROTOBUF_MESSAGE_GLOBALS
  {
  }
  ~PrinterEventProtoGlobalsTypeInternal() {}
  union {
    alignas(::_pbi::kMaxMessageAlignment) PrinterEventProto _default;
  };
#ifdef PROTOBUF_MESSAGE_GLOBALS
  decltype(::_pbi::PrivateAccess::GenerateParseTable<PrinterEventProto>(
      ::std::declval<const ::_pbi::ClassData*>())) _table;
#endif
};
#ifdef PROTOBUF_MESSAGE_GLOBALS
static_assert(PROTOBUF_FIELD_OFFSET(PrinterEventProtoGlobalsTypeInternal, _default) ==
              ::_pbi::MessageGlobalsBase::OffsetToDefault());
#endif  // PROTOBUF_MESSAGE_GLOBALS

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST PrinterEventProtoGlobalsTypeInternal PrinterEventProto_globals_
        PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro);
#if defined(PROTOBUF_CUSTOM_VTABLE)
namespace {
const ::_pbi::ClassData* PrinterEventProto_get_class_data() {
#ifdef PROTOBUF_MESSAGE_GLOBALS
  return PrinterEventProto_globals_.GetClassData();
#else
  return PrinterEventProto_class_data_.base();
#endif  // PROTOBUF_MESSAGE_GLOBALS
}
}  // namespace
#endif  // PROTOBUF_CUSTOM_VTABLE
}  // namespace metrics
namespace metrics {
PROTOBUF_CONSTINIT const uint32_t PrinterEventProto_EventType_internal_data_[] = {
    327680u, 0u, };
static const char PrinterEventProto_EventType_names[] = {
    "PRINTER_DELETED"
    "SETUP_ABANDONED"
    "SETUP_AUTOMATIC"
    "SETUP_MANUAL"
    "UNKNOWN"
};

static const ::google::protobuf::internal::EnumEntry PrinterEventProto_EventType_entries[] = {
    {{&PrinterEventProto_EventType_names[0], 15}, 4},
    {{&PrinterEventProto_EventType_names[15], 15}, 3},
    {{&PrinterEventProto_EventType_names[30], 15}, 1},
    {{&PrinterEventProto_EventType_names[45], 12}, 2},
    {{&PrinterEventProto_EventType_names[57], 7}, 0},
};

static const int PrinterEventProto_EventType_entries_by_number[] = {
    4,  // 0 -> UNKNOWN
    2,  // 1 -> SETUP_AUTOMATIC
    3,  // 2 -> SETUP_MANUAL
    1,  // 3 -> SETUP_ABANDONED
    0,  // 4 -> PRINTER_DELETED
};

bool PrinterEventProto_EventType_Parse(::absl::string_view name,
                                  PrinterEventProto_EventType* PROTOBUF_NONNULL value) {
  int int_value;
  bool success = ::google::protobuf::internal::LookUpEnumValue(
      PrinterEventProto_EventType_entries, 5, name, &int_value);
  if (success) {
    *value = static_cast<PrinterEventProto_EventType>(int_value);
  }
  return success;
}
static ::google::protobuf::internal::ExplicitlyConstructed<::std::string>
    PrinterEventProto_EventType_strings[5] = {};

const ::std::string& PrinterEventProto_EventType_Name(PrinterEventProto_EventType value) {
  static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings(
      PrinterEventProto_EventType_entries, PrinterEventProto_EventType_entries_by_number, 5,
      PrinterEventProto_EventType_strings);
  (void)kDummy;

  int idx = ::google::protobuf::internal::LookUpEnumName(PrinterEventProto_EventType_entries,
                                  PrinterEventProto_EventType_entries_by_number,
                                  5, value);
  return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : PrinterEventProto_EventType_strings[idx].get();
}
PROTOBUF_CONSTINIT const uint32_t PrinterEventProto_PdfVersion_internal_data_[] = {
    1310720u, 0u, };
static const char PrinterEventProto_PdfVersion_names[] = {
    "ADOBE_1_3"
    "ADOBE_1_4"
    "ADOBE_1_5"
    "ADOBE_1_6"
    "ADOBE_1_7"
    "ISO_15930_1_2001"
    "ISO_15930_3_2002"
    "ISO_15930_4_2003"
    "ISO_15930_6_2003"
    "ISO_15930_7_2010"
    "ISO_15930_8_2010"
    "ISO_16612_2_2010"
    "ISO_19005_1_2005"
    "ISO_19005_2_2011"
    "ISO_19005_3_2012"
    "ISO_23504_1_2020"
    "ISO_32000_1_2008"
    "ISO_32000_2_2017"
    "PDF_VERSION_UNKNOWN"
    "PWG_5102_3"
};

static const ::google::protobuf::internal::EnumEntry PrinterEventProto_PdfVersion_entries[] = {
    {{&PrinterEventProto_PdfVersion_names[0], 9}, 1},
    {{&PrinterEventProto_PdfVersion_names[9], 9}, 2},
    {{&PrinterEventProto_PdfVersion_names[18], 9}, 3},
    {{&PrinterEventProto_PdfVersion_names[27], 9}, 4},
    {{&PrinterEventProto_PdfVersion_names[36], 9}, 5},
    {{&PrinterEventProto_PdfVersion_names[45], 16}, 6},
    {{&PrinterEventProto_PdfVersion_names[61], 16}, 7},
    {{&PrinterEventProto_PdfVersion_names[77], 16}, 8},
    {{&PrinterEventProto_PdfVersion_names[93], 16}, 9},
    {{&PrinterEventProto_PdfVersion_names[109], 16}, 10},
    {{&PrinterEventProto_PdfVersion_names[125], 16}, 11},
    {{&PrinterEventProto_PdfVersion_names[141], 16}, 12},
    {{&PrinterEventProto_PdfVersion_names[157], 16}, 13},
    {{&PrinterEventProto_PdfVersion_names[173], 16}, 14},
    {{&PrinterEventProto_PdfVersion_names[189], 16}, 15},
    {{&PrinterEventProto_PdfVersion_names[205], 16}, 16},
    {{&PrinterEventProto_PdfVersion_names[221], 16}, 17},
    {{&PrinterEventProto_PdfVersion_names[237], 16}, 18},
    {{&PrinterEventProto_PdfVersion_names[253], 19}, 0},
    {{&PrinterEventProto_PdfVersion_names[272], 10}, 19},
};

static const int PrinterEventProto_PdfVersion_entries_by_number[] = {
    18,  // 0 -> PDF_VERSION_UNKNOWN
    0,  // 1 -> ADOBE_1_3
    1,  // 2 -> ADOBE_1_4
    2,  // 3 -> ADOBE_1_5
    3,  // 4 -> ADOBE_1_6
    4,  // 5 -> ADOBE_1_7
    5,  // 6 -> ISO_15930_1_2001
    6,  // 7 -> ISO_15930_3_2002
    7,  // 8 -> ISO_15930_4_2003
    8,  // 9 -> ISO_15930_6_2003
    9,  // 10 -> ISO_15930_7_2010
    10,  // 11 -> ISO_15930_8_2010
    11,  // 12 -> ISO_16612_2_2010
    12,  // 13 -> ISO_19005_1_2005
    13,  // 14 -> ISO_19005_2_2011
    14,  // 15 -> ISO_19005_3_2012
    15,  // 16 -> ISO_23504_1_2020
    16,  // 17 -> ISO_32000_1_2008
    17,  // 18 -> ISO_32000_2_2017
    19,  // 19 -> PWG_5102_3
};

bool PrinterEventProto_PdfVersion_Parse(::absl::string_view name,
                                  PrinterEventProto_PdfVersion* PROTOBUF_NONNULL value) {
  int int_value;
  bool success = ::google::protobuf::internal::LookUpEnumValue(
      PrinterEventProto_PdfVersion_entries, 20, name, &int_value);
  if (success) {
    *value = static_cast<PrinterEventProto_PdfVersion>(int_value);
  }
  return success;
}
static ::google::protobuf::internal::ExplicitlyConstructed<::std::string>
    PrinterEventProto_PdfVersion_strings[20] = {};

const ::std::string& PrinterEventProto_PdfVersion_Name(PrinterEventProto_PdfVersion value) {
  static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings(
      PrinterEventProto_PdfVersion_entries, PrinterEventProto_PdfVersion_entries_by_number, 20,
      PrinterEventProto_PdfVersion_strings);
  (void)kDummy;

  int idx = ::google::protobuf::internal::LookUpEnumName(PrinterEventProto_PdfVersion_entries,
                                  PrinterEventProto_PdfVersion_entries_by_number,
                                  20, value);
  return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : PrinterEventProto_PdfVersion_strings[idx].get();
}
PROTOBUF_CONSTINIT const uint32_t PrinterEventProto_IppFeature_internal_data_[] = {
    1900544u, 0u, };
static const char PrinterEventProto_IppFeature_names[] = {
    "ADF"
    "AIRPRINT_1_6"
    "AIRPRINT_1_7"
    "AIRPRINT_1_8"
    "AIRPRINT_2_1"
    "DOCUMENT_OBJECT"
    "FAXOUT"
    "FILM_READER"
    "ICC_COLOR_MATCHING"
    "INFRASTRUCTURE_PRINTER"
    "IPP_3D"
    "IPP_EVERYWHERE"
    "IPP_EVERYWHERE_SERVER"
    "IPP_FEATURE_UNKNOWN"
    "JOB_RELEASE"
    "JOB_SAVE"
    "JOB_STORAGE"
    "NONE"
    "PAGE_OVERRIDES"
    "PLATEN"
    "PRINT_POLICY"
    "PRODUCTION"
    "PROOF_AND_SUSPEND"
    "PROOF_PRINT"
    "RESOURCE_OBJECT"
    "SCAN"
    "SUBSCRIPTION_OBJECT"
    "SYSTEM_OBJECT"
    "WFDS_PRINT_1_0"
};

static const ::google::protobuf::internal::EnumEntry PrinterEventProto_IppFeature_entries[] = {
    {{&PrinterEventProto_IppFeature_names[0], 3}, 1},
    {{&PrinterEventProto_IppFeature_names[3], 12}, 25},
    {{&PrinterEventProto_IppFeature_names[15], 12}, 26},
    {{&PrinterEventProto_IppFeature_names[27], 12}, 27},
    {{&PrinterEventProto_IppFeature_names[39], 12}, 28},
    {{&PrinterEventProto_IppFeature_names[51], 15}, 4},
    {{&PrinterEventProto_IppFeature_names[66], 6}, 5},
    {{&PrinterEventProto_IppFeature_names[72], 11}, 2},
    {{&PrinterEventProto_IppFeature_names[83], 18}, 6},
    {{&PrinterEventProto_IppFeature_names[101], 22}, 7},
    {{&PrinterEventProto_IppFeature_names[123], 6}, 8},
    {{&PrinterEventProto_IppFeature_names[129], 14}, 9},
    {{&PrinterEventProto_IppFeature_names[143], 21}, 10},
    {{&PrinterEventProto_IppFeature_names[164], 19}, 0},
    {{&PrinterEventProto_IppFeature_names[183], 11}, 11},
    {{&PrinterEventProto_IppFeature_names[194], 8}, 12},
    {{&PrinterEventProto_IppFeature_names[202], 11}, 13},
    {{&PrinterEventProto_IppFeature_names[213], 4}, 14},
    {{&PrinterEventProto_IppFeature_names[217], 14}, 15},
    {{&PrinterEventProto_IppFeature_names[231], 6}, 3},
    {{&PrinterEventProto_IppFeature_names[237], 12}, 16},
    {{&PrinterEventProto_IppFeature_names[249], 10}, 17},
    {{&PrinterEventProto_IppFeature_names[259], 17}, 18},
    {{&PrinterEventProto_IppFeature_names[276], 11}, 19},
    {{&PrinterEventProto_IppFeature_names[287], 15}, 20},
    {{&PrinterEventProto_IppFeature_names[302], 4}, 21},
    {{&PrinterEventProto_IppFeature_names[306], 19}, 22},
    {{&PrinterEventProto_IppFeature_names[325], 13}, 23},
    {{&PrinterEventProto_IppFeature_names[338], 14}, 24},
};

static const int PrinterEventProto_IppFeature_entries_by_number[] = {
    13,  // 0 -> IPP_FEATURE_UNKNOWN
    0,  // 1 -> ADF
    7,  // 2 -> FILM_READER
    19,  // 3 -> PLATEN
    5,  // 4 -> DOCUMENT_OBJECT
    6,  // 5 -> FAXOUT
    8,  // 6 -> ICC_COLOR_MATCHING
    9,  // 7 -> INFRASTRUCTURE_PRINTER
    10,  // 8 -> IPP_3D
    11,  // 9 -> IPP_EVERYWHERE
    12,  // 10 -> IPP_EVERYWHERE_SERVER
    14,  // 11 -> JOB_RELEASE
    15,  // 12 -> JOB_SAVE
    16,  // 13 -> JOB_STORAGE
    17,  // 14 -> NONE
    18,  // 15 -> PAGE_OVERRIDES
    20,  // 16 -> PRINT_POLICY
    21,  // 17 -> PRODUCTION
    22,  // 18 -> PROOF_AND_SUSPEND
    23,  // 19 -> PROOF_PRINT
    24,  // 20 -> RESOURCE_OBJECT
    25,  // 21 -> SCAN
    26,  // 22 -> SUBSCRIPTION_OBJECT
    27,  // 23 -> SYSTEM_OBJECT
    28,  // 24 -> WFDS_PRINT_1_0
    1,  // 25 -> AIRPRINT_1_6
    2,  // 26 -> AIRPRINT_1_7
    3,  // 27 -> AIRPRINT_1_8
    4,  // 28 -> AIRPRINT_2_1
};

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

const ::std::string& PrinterEventProto_IppFeature_Name(PrinterEventProto_IppFeature value) {
  static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings(
      PrinterEventProto_IppFeature_entries, PrinterEventProto_IppFeature_entries_by_number, 29,
      PrinterEventProto_IppFeature_strings);
  (void)kDummy;

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

PrinterEventProto::PrinterEventProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
#if defined(PROTOBUF_CUSTOM_VTABLE)
    : ::google::protobuf::MessageLite(arena, PrinterEventProto_get_class_data()) {
#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:metrics.PrinterEventProto)
}
PROTOBUF_NDEBUG_INLINE PrinterEventProto::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
    [[maybe_unused]] const ::metrics::PrinterEventProto& from_msg)
      : _has_bits_{from._has_bits_},
        _cached_size_{0},
        document_format_supported_ {
          visibility, ::_pbi::InternalMetadataOffset::Build<
              ::metrics::PrinterEventProto,
              PROTOBUF_FIELD_OFFSET(::metrics::PrinterEventProto, _impl_.document_format_supported_)>()
          , from.document_format_supported_
        }
        ,
        urf_supported_ {
          visibility, ::_pbi::InternalMetadataOffset::Build<
              ::metrics::PrinterEventProto,
              PROTOBUF_FIELD_OFFSET(::metrics::PrinterEventProto, _impl_.urf_supported_)>()
          , from.urf_supported_
        }
        ,
        pdf_versions_supported_ {
          visibility, ::_pbi::InternalMetadataOffset::Build<
              ::metrics::PrinterEventProto,
              PROTOBUF_FIELD_OFFSET(::metrics::PrinterEventProto, _impl_.pdf_versions_supported_)>()
          , from.pdf_versions_supported_
        }
        ,
        _pdf_versions_supported_cached_byte_size_{0},
        ipp_features_supported_ {
          visibility, ::_pbi::InternalMetadataOffset::Build<
              ::metrics::PrinterEventProto,
              PROTOBUF_FIELD_OFFSET(::metrics::PrinterEventProto, _impl_.ipp_features_supported_)>()
          , from.ipp_features_supported_
        }
        ,
        _ipp_features_supported_cached_byte_size_{0},
        printer_kind_ {
          visibility, ::_pbi::InternalMetadataOffset::Build<
              ::metrics::PrinterEventProto,
              PROTOBUF_FIELD_OFFSET(::metrics::PrinterEventProto, _impl_.printer_kind_)>()
          , from.printer_kind_
        }
        ,
        cups_filters_ {
          visibility, ::_pbi::InternalMetadataOffset::Build<
              ::metrics::PrinterEventProto,
              PROTOBUF_FIELD_OFFSET(::metrics::PrinterEventProto, _impl_.cups_filters_)>()
          , from.cups_filters_
        }
        ,
        usb_printer_manufacturer_(arena, from.usb_printer_manufacturer_),
        usb_printer_model_(arena, from.usb_printer_model_),
        ipp_make_and_model_(arena, from.ipp_make_and_model_),
        ppd_identifier_(arena, from.ppd_identifier_),
        document_format_preferred_(arena, from.document_format_preferred_),
        document_format_default_(arena, from.document_format_default_),
        mopria_certified_(arena, from.mopria_certified_),
        ppd_file_name_(arena, from.ppd_file_name_),
        device_id_(arena, from.device_id_) {}

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

#else   // PROTOBUF_CUSTOM_VTABLE
    : ::google::protobuf::MessageLite(arena) {
#endif  // PROTOBUF_CUSTOM_VTABLE
  PrinterEventProto* 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_, usb_vendor_id_),
           reinterpret_cast<const char*>(&from._impl_) +
               offsetof(Impl_, usb_vendor_id_),
           offsetof(Impl_, roll_sizes_available_) -
               offsetof(Impl_, usb_vendor_id_) +
               sizeof(Impl_::roll_sizes_available_));

  // @@protoc_insertion_point(copy_constructor:metrics.PrinterEventProto)
}
PROTOBUF_NDEBUG_INLINE PrinterEventProto::Impl_::Impl_(
    [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
    [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
      : _cached_size_{0},
        document_format_supported_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::metrics::PrinterEventProto,
            PROTOBUF_FIELD_OFFSET(::metrics::PrinterEventProto, _impl_.document_format_supported_)>()
         }
        ,
        urf_supported_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::metrics::PrinterEventProto,
            PROTOBUF_FIELD_OFFSET(::metrics::PrinterEventProto, _impl_.urf_supported_)>()
         }
        ,
        pdf_versions_supported_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::metrics::PrinterEventProto,
            PROTOBUF_FIELD_OFFSET(::metrics::PrinterEventProto, _impl_.pdf_versions_supported_)>()
         }
        ,
        _pdf_versions_supported_cached_byte_size_{0},
        ipp_features_supported_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::metrics::PrinterEventProto,
            PROTOBUF_FIELD_OFFSET(::metrics::PrinterEventProto, _impl_.ipp_features_supported_)>()
         }
        ,
        _ipp_features_supported_cached_byte_size_{0},
        printer_kind_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::metrics::PrinterEventProto,
            PROTOBUF_FIELD_OFFSET(::metrics::PrinterEventProto, _impl_.printer_kind_)>()
         }
        ,
        cups_filters_ { visibility, ::_pbi::InternalMetadataOffset::Build<
            ::metrics::PrinterEventProto,
            PROTOBUF_FIELD_OFFSET(::metrics::PrinterEventProto, _impl_.cups_filters_)>()
         }
        ,
        usb_printer_manufacturer_(arena),
        usb_printer_model_(arena),
        ipp_make_and_model_(arena),
        ppd_identifier_(arena),
        document_format_preferred_(arena),
        document_format_default_(arena),
        mopria_certified_(arena),
        ppd_file_name_(arena),
        device_id_(arena) {}

inline void PrinterEventProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
  new (&_impl_) Impl_(internal_visibility(), arena);
  ::memset(reinterpret_cast<char*>(&_impl_) +
               offsetof(Impl_, usb_vendor_id_),
           0,
           offsetof(Impl_, roll_sizes_available_) -
               offsetof(Impl_, usb_vendor_id_) +
               sizeof(Impl_::roll_sizes_available_));
}
PrinterEventProto::~PrinterEventProto() {
  // @@protoc_insertion_point(destructor:metrics.PrinterEventProto)
  SharedDtor(*this);
}
inline void PrinterEventProto::SharedDtor(MessageLite& self) {
  PrinterEventProto& this_ = static_cast<PrinterEventProto&>(self);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    this_.CheckHasBitConsistency();
  }
  this_._internal_metadata_.Delete<::std::string>();
  ABSL_DCHECK(this_.GetArena() == nullptr);
  this_._impl_.usb_printer_manufacturer_.Destroy();
  this_._impl_.usb_printer_model_.Destroy();
  this_._impl_.ipp_make_and_model_.Destroy();
  this_._impl_.ppd_identifier_.Destroy();
  this_._impl_.document_format_preferred_.Destroy();
  this_._impl_.document_format_default_.Destroy();
  this_._impl_.mopria_certified_.Destroy();
  this_._impl_.ppd_file_name_.Destroy();
  this_._impl_.device_id_.Destroy();
  this_._impl_.~Impl_();
}

#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
const ::google::protobuf::internal::ClassDataLite PrinterEventProto_class_data_ =
    PrinterEventProto::InternalGenerateClassData_(PrinterEventProto_globals_._default);

PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
PrinterEventProto::GetClassData() const {
  return PrinterEventProto_class_data_.base();
}
#else
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
PrinterEventProto::GetClassData() const {
  return PrinterEventProto_globals_.GetClassData();
}
#endif  // !PROTOBUF_MESSAGE_GLOBALS
#ifndef PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_CONSTINIT
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const PrinterEventProto::ParseTableT_
    PrinterEventProto::_table_ =
        PrinterEventProto::InternalGenerateParseTable_(PrinterEventProto_class_data_.base());
#endif  // !PROTOBUF_MESSAGE_GLOBALS
PROTOBUF_NOINLINE void PrinterEventProto::Clear() {
// @@protoc_insertion_point(message_clear_start:metrics.PrinterEventProto)
  ::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, 0x000000ffU)) {
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      _impl_.document_format_supported_.Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _impl_.urf_supported_.Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      _impl_.pdf_versions_supported_.Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      _impl_.ipp_features_supported_.Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      _impl_.printer_kind_.Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00000020U)) {
      _impl_.cups_filters_.Clear();
    }
    if (CheckHasBit(cached_has_bits, 0x00000040U)) {
      _impl_.usb_printer_manufacturer_.ClearNonDefaultToEmpty();
    }
    if (CheckHasBit(cached_has_bits, 0x00000080U)) {
      _impl_.usb_printer_model_.ClearNonDefaultToEmpty();
    }
  }
  if (BatchCheckHasBit(cached_has_bits, 0x00007f00U)) {
    if (CheckHasBit(cached_has_bits, 0x00000100U)) {
      _impl_.ipp_make_and_model_.ClearNonDefaultToEmpty();
    }
    if (CheckHasBit(cached_has_bits, 0x00000200U)) {
      _impl_.ppd_identifier_.ClearNonDefaultToEmpty();
    }
    if (CheckHasBit(cached_has_bits, 0x00000400U)) {
      _impl_.document_format_preferred_.ClearNonDefaultToEmpty();
    }
    if (CheckHasBit(cached_has_bits, 0x00000800U)) {
      _impl_.document_format_default_.ClearNonDefaultToEmpty();
    }
    if (CheckHasBit(cached_has_bits, 0x00001000U)) {
      _impl_.mopria_certified_.ClearNonDefaultToEmpty();
    }
    if (CheckHasBit(cached_has_bits, 0x00002000U)) {
      _impl_.ppd_file_name_.ClearNonDefaultToEmpty();
    }
    if (CheckHasBit(cached_has_bits, 0x00004000U)) {
      _impl_.device_id_.ClearNonDefaultToEmpty();
    }
  }
  _impl_.usb_vendor_id_ = 0;
  if (BatchCheckHasBit(cached_has_bits, 0x000f0000U)) {
    ::memset(&_impl_.usb_model_id_, 0, static_cast<::size_t>(
        reinterpret_cast<char*>(&_impl_.roll_sizes_available_) -
        reinterpret_cast<char*>(&_impl_.usb_model_id_)) + sizeof(_impl_.roll_sizes_available_));
  }
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::std::string>();
}

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

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

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

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

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

  // string ipp_make_and_model = 5;
  if (CheckHasBit(cached_has_bits, 0x00000100U)) {
    const ::std::string& _s = this_._internal_ipp_make_and_model();
    target = stream->WriteStringMaybeAliased(5, _s, target);
  }

  // bool user_ppd = 6;
  if (CheckHasBit(cached_has_bits, 0x00040000U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteBoolToArray(
        6, this_._internal_user_ppd(), target);
  }

  // string ppd_identifier = 7;
  if (CheckHasBit(cached_has_bits, 0x00000200U)) {
    const ::std::string& _s = this_._internal_ppd_identifier();
    target = stream->WriteStringMaybeAliased(7, _s, target);
  }

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

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

  // string document_format_preferred = 10;
  if (CheckHasBit(cached_has_bits, 0x00000400U)) {
    const ::std::string& _s = this_._internal_document_format_preferred();
    target = stream->WriteStringMaybeAliased(10, _s, target);
  }

  // string document_format_default = 11;
  if (CheckHasBit(cached_has_bits, 0x00000800U)) {
    const ::std::string& _s = this_._internal_document_format_default();
    target = stream->WriteStringMaybeAliased(11, _s, target);
  }

  // repeated string urf_supported = 12;
  if (CheckHasBit(cached_has_bits, 0x00000002U)) {
    for (int i = 0, n = this_._internal_urf_supported_size(); i < n; ++i) {
      const auto& s = this_._internal_urf_supported().Get(i);
      target = stream->WriteString(12, s, target);
    }
  }

  // repeated .metrics.PrinterEventProto.PdfVersion pdf_versions_supported = 13;
  if (CheckHasBit(cached_has_bits, 0x00000004U)) {
    {
      ::size_t byte_size = this_._impl_._pdf_versions_supported_cached_byte_size_.Get();
      if (byte_size > 0) {
        target = stream->WriteEnumPacked(
            13, this_._internal_pdf_versions_supported(), byte_size, target);
      }
    }
  }

  // repeated .metrics.PrinterEventProto.IppFeature ipp_features_supported = 14;
  if (CheckHasBit(cached_has_bits, 0x00000008U)) {
    {
      ::size_t byte_size = this_._impl_._ipp_features_supported_cached_byte_size_.Get();
      if (byte_size > 0) {
        target = stream->WriteEnumPacked(
            14, this_._internal_ipp_features_supported(), byte_size, target);
      }
    }
  }

  // string mopria_certified = 15;
  if (CheckHasBit(cached_has_bits, 0x00001000U)) {
    const ::std::string& _s = this_._internal_mopria_certified();
    target = stream->WriteStringMaybeAliased(15, _s, target);
  }

  // repeated string printer_kind = 16;
  if (CheckHasBit(cached_has_bits, 0x00000010U)) {
    for (int i = 0, n = this_._internal_printer_kind_size(); i < n; ++i) {
      const auto& s = this_._internal_printer_kind().Get(i);
      target = stream->WriteString(16, s, target);
    }
  }

  // bool roll_sizes_available = 17;
  if (CheckHasBit(cached_has_bits, 0x00080000U)) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteBoolToArray(
        17, this_._internal_roll_sizes_available(), target);
  }

  // string ppd_file_name = 18;
  if (CheckHasBit(cached_has_bits, 0x00002000U)) {
    const ::std::string& _s = this_._internal_ppd_file_name();
    target = stream->WriteStringMaybeAliased(18, _s, target);
  }

  // repeated string cups_filters = 19;
  if (CheckHasBit(cached_has_bits, 0x00000020U)) {
    for (int i = 0, n = this_._internal_cups_filters_size(); i < n; ++i) {
      const auto& s = this_._internal_cups_filters().Get(i);
      target = stream->WriteString(19, s, target);
    }
  }

  // string device_id = 20;
  if (CheckHasBit(cached_has_bits, 0x00004000U)) {
    const ::std::string& _s = this_._internal_device_id();
    target = stream->WriteStringMaybeAliased(20, _s, 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.PrinterEventProto)
  return target;
}

#if defined(PROTOBUF_CUSTOM_VTABLE)
::size_t PrinterEventProto::ByteSizeLong(const MessageLite& base) {
  const PrinterEventProto& this_ = static_cast<const PrinterEventProto&>(base);
#else   // PROTOBUF_CUSTOM_VTABLE
::size_t PrinterEventProto::ByteSizeLong() const {
  const PrinterEventProto& this_ = *this;
#endif  // PROTOBUF_CUSTOM_VTABLE
  // @@protoc_insertion_point(message_byte_size_start:metrics.PrinterEventProto)
  ::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];
  total_size += static_cast<bool>(0x00080000U & cached_has_bits) * 3;
  total_size += static_cast<bool>(0x00040000U & cached_has_bits) * 2;
  if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) {
    // repeated string document_format_supported = 9;
    if (CheckHasBit(cached_has_bits, 0x00000001U)) {
      total_size +=
          1 * ::google::protobuf::internal::FromIntSize(this_._internal_document_format_supported().size());
      for (int i = 0, n = this_._internal_document_format_supported().size(); i < n; ++i) {
        total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
            this_._internal_document_format_supported().Get(i));
      }
    }
    // repeated string urf_supported = 12;
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      total_size +=
          1 * ::google::protobuf::internal::FromIntSize(this_._internal_urf_supported().size());
      for (int i = 0, n = this_._internal_urf_supported().size(); i < n; ++i) {
        total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
            this_._internal_urf_supported().Get(i));
      }
    }
    // repeated .metrics.PrinterEventProto.PdfVersion pdf_versions_supported = 13;
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      total_size += ::_pbi::WireFormatLite::EnumSizeWithPackedTagSize(
          this_._internal_pdf_versions_supported(), 1, this_._impl_._pdf_versions_supported_cached_byte_size_);
    }
    // repeated .metrics.PrinterEventProto.IppFeature ipp_features_supported = 14;
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      total_size += ::_pbi::WireFormatLite::EnumSizeWithPackedTagSize(
          this_._internal_ipp_features_supported(), 1, this_._impl_._ipp_features_supported_cached_byte_size_);
    }
    // repeated string printer_kind = 16;
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      total_size +=
          2 * ::google::protobuf::internal::FromIntSize(this_._internal_printer_kind().size());
      for (int i = 0, n = this_._internal_printer_kind().size(); i < n; ++i) {
        total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
            this_._internal_printer_kind().Get(i));
      }
    }
    // repeated string cups_filters = 19;
    if (CheckHasBit(cached_has_bits, 0x00000020U)) {
      total_size +=
          2 * ::google::protobuf::internal::FromIntSize(this_._internal_cups_filters().size());
      for (int i = 0, n = this_._internal_cups_filters().size(); i < n; ++i) {
        total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
            this_._internal_cups_filters().Get(i));
      }
    }
    // string usb_printer_manufacturer = 1;
    if (CheckHasBit(cached_has_bits, 0x00000040U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_usb_printer_manufacturer());
    }
    // string usb_printer_model = 2;
    if (CheckHasBit(cached_has_bits, 0x00000080U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_usb_printer_model());
    }
  }
  if (BatchCheckHasBit(cached_has_bits, 0x0000ff00U)) {
    // string ipp_make_and_model = 5;
    if (CheckHasBit(cached_has_bits, 0x00000100U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_ipp_make_and_model());
    }
    // string ppd_identifier = 7;
    if (CheckHasBit(cached_has_bits, 0x00000200U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_ppd_identifier());
    }
    // string document_format_preferred = 10;
    if (CheckHasBit(cached_has_bits, 0x00000400U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_document_format_preferred());
    }
    // string document_format_default = 11;
    if (CheckHasBit(cached_has_bits, 0x00000800U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_document_format_default());
    }
    // string mopria_certified = 15;
    if (CheckHasBit(cached_has_bits, 0x00001000U)) {
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_mopria_certified());
    }
    // string ppd_file_name = 18;
    if (CheckHasBit(cached_has_bits, 0x00002000U)) {
      total_size += 2 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_ppd_file_name());
    }
    // string device_id = 20;
    if (CheckHasBit(cached_has_bits, 0x00004000U)) {
      total_size += 2 + ::google::protobuf::internal::WireFormatLite::StringSize(
                                      this_._internal_device_id());
    }
    // int32 usb_vendor_id = 3;
    if (CheckHasBit(cached_has_bits, 0x00008000U)) {
      total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
          this_._internal_usb_vendor_id());
    }
  }
  if (BatchCheckHasBit(cached_has_bits, 0x00030000U)) {
    // int32 usb_model_id = 4;
    if (CheckHasBit(cached_has_bits, 0x00010000U)) {
      total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
          this_._internal_usb_model_id());
    }
    // .metrics.PrinterEventProto.EventType event_type = 8;
    if (CheckHasBit(cached_has_bits, 0x00020000U)) {
      total_size += 1 +
                    ::_pbi::WireFormatLite::EnumSize(this_._internal_event_type());
    }
  }
  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 PrinterEventProto::MergeImpl(::google::protobuf::MessageLite& to_msg,
                      const ::google::protobuf::MessageLite& from_msg) {
   auto* const _this = static_cast<PrinterEventProto*>(&to_msg);
  auto& from = static_cast<const PrinterEventProto&>(from_msg);
  if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
    from.CheckHasBitConsistency();
  }
  ::google::protobuf::Arena* arena = _this->GetArena();
  // @@protoc_insertion_point(class_specific_merge_from_start:metrics.PrinterEventProto)
  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_document_format_supported()->InternalMergeFromWithArena(
          ::google::protobuf::MessageLite::internal_visibility(), arena,
          from._internal_document_format_supported());
    }
    if (CheckHasBit(cached_has_bits, 0x00000002U)) {
      _this->_internal_mutable_urf_supported()->InternalMergeFromWithArena(
          ::google::protobuf::MessageLite::internal_visibility(), arena,
          from._internal_urf_supported());
    }
    if (CheckHasBit(cached_has_bits, 0x00000004U)) {
      _this->_internal_mutable_pdf_versions_supported()->MergeFrom(from._internal_pdf_versions_supported());
    }
    if (CheckHasBit(cached_has_bits, 0x00000008U)) {
      _this->_internal_mutable_ipp_features_supported()->MergeFrom(from._internal_ipp_features_supported());
    }
    if (CheckHasBit(cached_has_bits, 0x00000010U)) {
      _this->_internal_mutable_printer_kind()->InternalMergeFromWithArena(
          ::google::protobuf::MessageLite::internal_visibility(), arena,
          from._internal_printer_kind());
    }
    if (CheckHasBit(cached_has_bits, 0x00000020U)) {
      _this->_internal_mutable_cups_filters()->InternalMergeFromWithArena(
          ::google::protobuf::MessageLite::internal_visibility(), arena,
          from._internal_cups_filters());
    }
    if (CheckHasBit(cached_has_bits, 0x00000040U)) {
      _this->_internal_set_usb_printer_manufacturer(from._internal_usb_printer_manufacturer());
    }
    if (CheckHasBit(cached_has_bits, 0x00000080U)) {
      _this->_internal_set_usb_printer_model(from._internal_usb_printer_model());
    }
  }
  if (BatchCheckHasBit(cached_has_bits, 0x0000ff00U)) {
    if (CheckHasBit(cached_has_bits, 0x00000100U)) {
      _this->_internal_set_ipp_make_and_model(from._internal_ipp_make_and_model());
    }
    if (CheckHasBit(cached_has_bits, 0x00000200U)) {
      _this->_internal_set_ppd_identifier(from._internal_ppd_identifier());
    }
    if (CheckHasBit(cached_has_bits, 0x00000400U)) {
      _this->_internal_set_document_format_preferred(from._internal_document_format_preferred());
    }
    if (CheckHasBit(cached_has_bits, 0x00000800U)) {
      _this->_internal_set_document_format_default(from._internal_document_format_default());
    }
    if (CheckHasBit(cached_has_bits, 0x00001000U)) {
      _this->_internal_set_mopria_certified(from._internal_mopria_certified());
    }
    if (CheckHasBit(cached_has_bits, 0x00002000U)) {
      _this->_internal_set_ppd_file_name(from._internal_ppd_file_name());
    }
    if (CheckHasBit(cached_has_bits, 0x00004000U)) {
      _this->_internal_set_device_id(from._internal_device_id());
    }
    if (CheckHasBit(cached_has_bits, 0x00008000U)) {
      _this->_impl_.usb_vendor_id_ = from._impl_.usb_vendor_id_;
    }
  }
  if (BatchCheckHasBit(cached_has_bits, 0x000f0000U)) {
    if (CheckHasBit(cached_has_bits, 0x00010000U)) {
      _this->_impl_.usb_model_id_ = from._impl_.usb_model_id_;
    }
    if (CheckHasBit(cached_has_bits, 0x00020000U)) {
      _this->_impl_.event_type_ = from._impl_.event_type_;
    }
    if (CheckHasBit(cached_has_bits, 0x00040000U)) {
      _this->_impl_.user_ppd_ = from._impl_.user_ppd_;
    }
    if (CheckHasBit(cached_has_bits, 0x00080000U)) {
      _this->_impl_.roll_sizes_available_ = from._impl_.roll_sizes_available_;
    }
  }
  _this->_impl_._has_bits_[0] |= cached_has_bits;
  _this->_internal_metadata_.MergeFrom<::std::string>(
      from._internal_metadata_);
}

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


void PrinterEventProto::InternalSwap(PrinterEventProto* 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_.document_format_supported_.InternalSwap(&other->_impl_.document_format_supported_);
  _impl_.urf_supported_.InternalSwap(&other->_impl_.urf_supported_);
  _impl_.pdf_versions_supported_.InternalSwap(&other->_impl_.pdf_versions_supported_);
  _impl_.ipp_features_supported_.InternalSwap(&other->_impl_.ipp_features_supported_);
  _impl_.printer_kind_.InternalSwap(&other->_impl_.printer_kind_);
  _impl_.cups_filters_.InternalSwap(&other->_impl_.cups_filters_);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.usb_printer_manufacturer_, &other->_impl_.usb_printer_manufacturer_, arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.usb_printer_model_, &other->_impl_.usb_printer_model_, arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.ipp_make_and_model_, &other->_impl_.ipp_make_and_model_, arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.ppd_identifier_, &other->_impl_.ppd_identifier_, arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.document_format_preferred_, &other->_impl_.document_format_preferred_, arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.document_format_default_, &other->_impl_.document_format_default_, arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.mopria_certified_, &other->_impl_.mopria_certified_, arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.ppd_file_name_, &other->_impl_.ppd_file_name_, arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.device_id_, &other->_impl_.device_id_, arena);
  ::google::protobuf::internal::memswap<
      PROTOBUF_FIELD_OFFSET(PrinterEventProto, _impl_.roll_sizes_available_)
      + sizeof(PrinterEventProto::_impl_.roll_sizes_available_)
      - PROTOBUF_FIELD_OFFSET(PrinterEventProto, _impl_.usb_vendor_id_)>(
          reinterpret_cast<char*>(&_impl_.usb_vendor_id_),
          reinterpret_cast<char*>(&other->_impl_.usb_vendor_id_));
}

// @@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"
