// Generated by the protocol buffer compiler.  DO NOT EDIT!
// NO CHECKED-IN PROTOBUF GENCODE
// source: components/download/database/proto/download_source.proto
// Protobuf C++ Version: 7.35.1

#include "components/download/database/proto/download_source.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"
// @@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 download_pb {
}  // namespace download_pb
namespace download_pb {
PROTOBUF_CONSTINIT const uint32_t DownloadSource_internal_data_[] = {
    851968u, 0u, };
static const char DownloadSource_names[] = {
    "CONTEXT_MENU"
    "DRAG_AND_DROP"
    "EXTENSION_API"
    "EXTENSION_INSTALLER"
    "FROM_RENDERER"
    "INTERNAL_API"
    "NAVIGATION"
    "OFFLINE_PAGE"
    "RETRY"
    "RETRY_FROM_BUBBLE"
    "TOOLBAR_MENU"
    "UNKNOWN"
    "WEB_CONTENTS_API"
};

static const ::google::protobuf::internal::EnumEntry DownloadSource_entries[] = {
    {{&DownloadSource_names[0], 12}, 9},
    {{&DownloadSource_names[12], 13}, 2},
    {{&DownloadSource_names[25], 13}, 4},
    {{&DownloadSource_names[38], 19}, 5},
    {{&DownloadSource_names[57], 13}, 3},
    {{&DownloadSource_names[70], 12}, 6},
    {{&DownloadSource_names[82], 10}, 1},
    {{&DownloadSource_names[92], 12}, 8},
    {{&DownloadSource_names[104], 5}, 10},
    {{&DownloadSource_names[109], 17}, 11},
    {{&DownloadSource_names[126], 12}, 12},
    {{&DownloadSource_names[138], 7}, 0},
    {{&DownloadSource_names[145], 16}, 7},
};

static const int DownloadSource_entries_by_number[] = {
    11,  // 0 -> UNKNOWN
    6,  // 1 -> NAVIGATION
    1,  // 2 -> DRAG_AND_DROP
    4,  // 3 -> FROM_RENDERER
    2,  // 4 -> EXTENSION_API
    3,  // 5 -> EXTENSION_INSTALLER
    5,  // 6 -> INTERNAL_API
    12,  // 7 -> WEB_CONTENTS_API
    7,  // 8 -> OFFLINE_PAGE
    0,  // 9 -> CONTEXT_MENU
    8,  // 10 -> RETRY
    9,  // 11 -> RETRY_FROM_BUBBLE
    10,  // 12 -> TOOLBAR_MENU
};

bool DownloadSource_Parse(::absl::string_view name,
                                  DownloadSource* PROTOBUF_NONNULL value) {
  int int_value;
  bool success = ::google::protobuf::internal::LookUpEnumValue(
      DownloadSource_entries, 13, name, &int_value);
  if (success) {
    *value = static_cast<DownloadSource>(int_value);
  }
  return success;
}
static ::google::protobuf::internal::ExplicitlyConstructed<::std::string>
    DownloadSource_strings[13] = {};

const ::std::string& DownloadSource_Name(DownloadSource value) {
  static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings(
      DownloadSource_entries, DownloadSource_entries_by_number, 13,
      DownloadSource_strings);
  (void)kDummy;

  int idx = ::google::protobuf::internal::LookUpEnumName(DownloadSource_entries,
                                  DownloadSource_entries_by_number,
                                  13, value);
  return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : DownloadSource_strings[idx].get();
}
// @@protoc_insertion_point(namespace_scope)
}  // namespace download_pb
namespace google {
namespace protobuf {
}  // namespace protobuf
}  // namespace google
// @@protoc_insertion_point(global_scope)
#include "google/protobuf/port_undef.inc"
