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

#ifndef components_2foptimization_5fguide_2fproto_2fmodels_2eproto_2epb_2eh
#define components_2foptimization_5fguide_2fproto_2fmodels_2eproto_2epb_2eh

#include <limits>
#include <string>
#include <type_traits>
#include <utility>

// clang-format off
#include "google/protobuf/runtime_version.h"
#if PROTOBUF_VERSION != 7035001
#error "Protobuf C++ gencode is built with an incompatible version of"
#error "Protobuf C++ headers/runtime. See"
#error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp"
#endif
#include "google/protobuf/io/coded_stream.h"
#include "google/protobuf/arena.h"
#include "google/protobuf/arenastring.h"
#include "google/protobuf/generated_message_tctable_decl.h"
#include "google/protobuf/generated_message_util.h"
#include "google/protobuf/metadata_lite.h"
#include "google/protobuf/message_lite.h"
#include "google/protobuf/repeated_field.h"  // IWYU pragma: export
#include "google/protobuf/extension_set.h"  // IWYU pragma: export
#include "google/protobuf/generated_enum_util.h"
#include "components/optimization_guide/proto/common_types.pb.h"
// @@protoc_insertion_point(includes)

// Must be included last.
#include "google/protobuf/port_def.inc"

#define PROTOBUF_INTERNAL_EXPORT_components_2foptimization_5fguide_2fproto_2fmodels_2eproto

namespace google {
namespace protobuf {
namespace internal {
template <typename T>
::absl::string_view GetAnyMessageName();
}  // namespace internal
}  // namespace protobuf
}  // namespace google

// Internal implementation detail -- do not use these members.
struct TableStruct_components_2foptimization_5fguide_2fproto_2fmodels_2eproto {
  static const ::uint32_t offsets[];
};
namespace optimization_guide {
namespace proto {
enum ModelEngineVersion : int;
extern const uint32_t ModelEngineVersion_internal_data_[];
enum OptimizationTarget : int;
extern const uint32_t OptimizationTarget_internal_data_[];
class AdditionalModelFile;
struct AdditionalModelFileGlobalsTypeInternal;
#ifndef PROTOBUF_MESSAGE_GLOBALS
extern AdditionalModelFileGlobalsTypeInternal AdditionalModelFile_globals_;
extern const ::google::protobuf::internal::ClassDataLite AdditionalModelFile_class_data_;
#else
extern const AdditionalModelFileGlobalsTypeInternal AdditionalModelFile_globals_;
#endif  // PROTOBUF_MESSAGE_GLOBALS
class GetModelsRequest;
struct GetModelsRequestGlobalsTypeInternal;
#ifndef PROTOBUF_MESSAGE_GLOBALS
extern GetModelsRequestGlobalsTypeInternal GetModelsRequest_globals_;
extern const ::google::protobuf::internal::ClassDataLite GetModelsRequest_class_data_;
#else
extern const GetModelsRequestGlobalsTypeInternal GetModelsRequest_globals_;
#endif  // PROTOBUF_MESSAGE_GLOBALS
class GetModelsResponse;
struct GetModelsResponseGlobalsTypeInternal;
#ifndef PROTOBUF_MESSAGE_GLOBALS
extern GetModelsResponseGlobalsTypeInternal GetModelsResponse_globals_;
extern const ::google::protobuf::internal::ClassDataLite GetModelsResponse_class_data_;
#else
extern const GetModelsResponseGlobalsTypeInternal GetModelsResponse_globals_;
#endif  // PROTOBUF_MESSAGE_GLOBALS
class Model;
struct ModelGlobalsTypeInternal;
#ifndef PROTOBUF_MESSAGE_GLOBALS
extern ModelGlobalsTypeInternal Model_globals_;
extern const ::google::protobuf::internal::ClassDataLite Model_class_data_;
#else
extern const ModelGlobalsTypeInternal Model_globals_;
#endif  // PROTOBUF_MESSAGE_GLOBALS
class ModelCacheKey;
struct ModelCacheKeyGlobalsTypeInternal;
#ifndef PROTOBUF_MESSAGE_GLOBALS
extern ModelCacheKeyGlobalsTypeInternal ModelCacheKey_globals_;
extern const ::google::protobuf::internal::ClassDataLite ModelCacheKey_class_data_;
#else
extern const ModelCacheKeyGlobalsTypeInternal ModelCacheKey_globals_;
#endif  // PROTOBUF_MESSAGE_GLOBALS
class ModelInfo;
struct ModelInfoGlobalsTypeInternal;
#ifndef PROTOBUF_MESSAGE_GLOBALS
extern ModelInfoGlobalsTypeInternal ModelInfo_globals_;
extern const ::google::protobuf::internal::ClassDataLite ModelInfo_class_data_;
#else
extern const ModelInfoGlobalsTypeInternal ModelInfo_globals_;
#endif  // PROTOBUF_MESSAGE_GLOBALS
class PredictionModel;
struct PredictionModelGlobalsTypeInternal;
#ifndef PROTOBUF_MESSAGE_GLOBALS
extern PredictionModelGlobalsTypeInternal PredictionModel_globals_;
extern const ::google::protobuf::internal::ClassDataLite PredictionModel_class_data_;
#else
extern const PredictionModelGlobalsTypeInternal PredictionModel_globals_;
#endif  // PROTOBUF_MESSAGE_GLOBALS
}  // namespace proto
}  // namespace optimization_guide
namespace google {
namespace protobuf {
template <>
internal::EnumTraitsT<::optimization_guide::proto::ModelEngineVersion_internal_data_>
    internal::EnumTraitsImpl::value<::optimization_guide::proto::ModelEngineVersion>;
template <>
internal::EnumTraitsT<::optimization_guide::proto::OptimizationTarget_internal_data_>
    internal::EnumTraitsImpl::value<::optimization_guide::proto::OptimizationTarget>;
}  // namespace protobuf
}  // namespace google

namespace optimization_guide {
namespace proto {
enum OptimizationTarget : int {
  OPTIMIZATION_TARGET_UNKNOWN = 0,
  OPTIMIZATION_TARGET_PAINFUL_PAGE_LOAD = 1,
  OPTIMIZATION_TARGET_LANGUAGE_DETECTION = 2,
  OPTIMIZATION_TARGET_PAGE_TOPICS = 3,
  OPTIMIZATION_TARGET_SEGMENTATION_NEW_TAB = 4,
  OPTIMIZATION_TARGET_SEGMENTATION_SHARE = 5,
  OPTIMIZATION_TARGET_SEGMENTATION_VOICE = 6,
  OPTIMIZATION_TARGET_MODEL_VALIDATION = 7,
  OPTIMIZATION_TARGET_PAGE_ENTITIES = 8,
  OPTIMIZATION_TARGET_NOTIFICATION_PERMISSION_PREDICTIONS = 9,
  OPTIMIZATION_TARGET_SEGMENTATION_DUMMY = 10,
  OPTIMIZATION_TARGET_SEGMENTATION_CHROME_START_ANDROID = 11,
  OPTIMIZATION_TARGET_SEGMENTATION_QUERY_TILES = 12,
  OPTIMIZATION_TARGET_PAGE_VISIBILITY = 13,
  OPTIMIZATION_TARGET_PAGE_TOPICS_V2 = 15,
  OPTIMIZATION_TARGET_SEGMENTATION_CHROME_LOW_USER_ENGAGEMENT = 16,
  OPTIMIZATION_TARGET_SEGMENTATION_FEED_USER = 17,
  OPTIMIZATION_TARGET_CONTEXTUAL_PAGE_ACTION_PRICE_TRACKING = 18,
  OPTIMIZATION_TARGET_TEXT_CLASSIFIER = 19,
  OPTIMIZATION_TARGET_GEOLOCATION_PERMISSION_PREDICTIONS = 20,
  OPTIMIZATION_TARGET_SEGMENTATION_SHOPPING_USER = 21,
  OPTIMIZATION_TARGET_SEGMENTATION_CHROME_START_ANDROID_V2 = 22,
  OPTIMIZATION_TARGET_SEGMENTATION_SEARCH_USER = 23,
  OPTIMIZATION_TARGET_OMNIBOX_ON_DEVICE_TAIL_SUGGEST = 24,
  OPTIMIZATION_TARGET_CLIENT_SIDE_PHISHING = 25,
  OPTIMIZATION_TARGET_OMNIBOX_URL_SCORING = 26,
  OPTIMIZATION_TARGET_SEGMENTATION_DEVICE_SWITCHER = 27,
  OPTIMIZATION_TARGET_SEGMENTATION_ADAPTIVE_TOOLBAR = 28,
  OPTIMIZATION_TARGET_SEGMENTATION_TABLET_PRODUCTIVITY_USER = 29,
  OPTIMIZATION_TARGET_CLIENT_SIDE_PHISHING_IMAGE_EMBEDDER = 30,
  OPTIMIZATION_TARGET_NEW_TAB_PAGE_HISTORY_CLUSTERS_MODULE_RANKING = 31,
  OPTIMIZATION_TARGET_WEB_APP_INSTALLATION_PROMO = 32,
  OPTIMIZATION_TARGET_TEXT_EMBEDDER = 33,
  OPTIMIZATION_TARGET_VISUAL_SEARCH_CLASSIFICATION = 34,
  OPTIMIZATION_TARGET_SEGMENTATION_BOTTOM_TOOLBAR = 35,
  OPTIMIZATION_TARGET_AUTOFILL_FIELD_CLASSIFICATION = 36,
  OPTIMIZATION_TARGET_SEGMENTATION_IOS_MODULE_RANKER = 37,
  OPTIMIZATION_TARGET_SEGMENTATION_DESKTOP_NTP_MODULE = 38,
  OPTIMIZATION_TARGET_PRELOADING_HEURISTICS = 39,
  OPTIMIZATION_TARGET_TEXT_SAFETY = 40,
  OPTIMIZATION_TARGET_SEGMENTATION_ANDROID_HOME_MODULE_RANKER = 41,
  OPTIMIZATION_TARGET_COMPOSE = 42,
  OPTIMIZATION_TARGET_PASSAGE_EMBEDDER = 43,
  OPTIMIZATION_TARGET_PHRASE_SEGMENTATION = 44,
  OPTIMIZATION_TARGET_SEGMENTATION_COMPOSE_PROMOTION = 45,
  OPTIMIZATION_TARGET_URL_VISIT_RESUMPTION_RANKER = 46,
  OPTIMIZATION_TARGET_CAMERA_BACKGROUND_SEGMENTATION = 47,
  OPTIMIZATION_TARGET_MODEL_EXECUTION_FEATURE_HISTORY_SEARCH = 48,
  OPTIMIZATION_TARGET_MODEL_EXECUTION_FEATURE_PROMPT_API = 49,
  OPTIMIZATION_TARGET_SEGMENTATION_METRICS_CLUSTERING = 50,
  OPTIMIZATION_TARGET_MODEL_EXECUTION_FEATURE_SUMMARIZE = 51,
  OPTIMIZATION_TARGET_PASSWORD_MANAGER_FORM_CLASSIFICATION = 52,
  OPTIMIZATION_TARGET_NOTIFICATION_CONTENT_DETECTION = 53,
  OPTIMIZATION_TARGET_MODEL_EXECUTION_FEATURE_HISTORY_QUERY_INTENT = 54,
  OPTIMIZATION_TARGET_MODEL_EXECUTION_FEATURE_SCAM_DETECTION = 55,
  OPTIMIZATION_TARGET_MODEL_EXECUTION_FEATURE_PERMISSIONS_AI = 56,
  OPTIMIZATION_TARGET_EXPERIMENTAL_EMBEDDER = 57,
  OPTIMIZATION_TARGET_SEGMENTATION_FEDCM_USER = 58,
  OPTIMIZATION_TARGET_MODEL_EXECUTION_FEATURE_WRITING_ASSISTANCE_API = 59,
  OPTIMIZATION_TARGET_GEOLOCATION_IMAGE_PERMISSION_RELEVANCE = 60,
  OPTIMIZATION_TARGET_NOTIFICATION_IMAGE_PERMISSION_RELEVANCE = 61,
  OPTIMIZATION_TARGET_MODEL_EXECUTION_FEATURE_PROOFREADER_API = 62,
  OPTIMIZATION_TARGET_SEGMENTATION_IOS_DEFAULT_BROWSER_PROMO = 63,
  OPTIMIZATION_TARGET_EDU_CLASSIFIER = 64,
  OPTIMIZATION_TARGET_PERMISSIONS_AIV4_GEOLOCATION_DESKTOP = 65,
  OPTIMIZATION_TARGET_PERMISSIONS_AIV4_NOTIFICATIONS_DESKTOP = 66,
  OPTIMIZATION_TARGET_GENERALIZED_SAFETY = 67,
  OPTIMIZATION_TARGET_PERMISSIONS_AIV4_GEOLOCATION_ANDROID = 68,
  OPTIMIZATION_TARGET_PERMISSIONS_AIV4_NOTIFICATIONS_ANDROID = 69,
  OPTIMIZATION_TARGET_MODEL_EXECUTION_FEATURE_ON_DEVICE_SPEECH_RECOGNITION = 70,
  OPTIMIZATION_TARGET_WEBRTC_NEURAL_RESIDUAL_ECHO_ESTIMATOR = 71,
  OPTIMIZATION_TARGET_MODEL_EXECUTION_FEATURE_CLASSIFIER = 72,
  OPTIMIZATION_TARGET_CONTEXTUAL_TASKS_TAB_RELEVANCE = 73,
  OPTIMIZATION_TARGET_SHOPPING_CLASSIFIER = 74,
  OPTIMIZATION_TARGET_MODEL_EXECUTION_FEATURE_ON_DEVICE_SPEECH_RECOGNITION_TINY_GEMMA = 75,
  OPTIMIZATION_TARGET_CONTEXTUAL_TASKS_MULTI_TURN_TAB_RELEVANCE = 76,
  OPTIMIZATION_TARGET_WEBRTC_VOICE_ISOLATION_DENOISER = 77,
};

extern const uint32_t OptimizationTarget_internal_data_[];
inline constexpr OptimizationTarget OptimizationTarget_MIN =
    static_cast<OptimizationTarget>(0);
inline constexpr OptimizationTarget OptimizationTarget_MAX =
    static_cast<OptimizationTarget>(77);
inline bool OptimizationTarget_IsValid(int value) {
  return ::google::protobuf::internal::ValidateEnum(value, OptimizationTarget_internal_data_);
}
inline constexpr int OptimizationTarget_ARRAYSIZE = 77 + 1;
const ::std::string& OptimizationTarget_Name(OptimizationTarget value);
template <typename T>
const ::std::string& OptimizationTarget_Name(T value) {
  static_assert(::std::is_same<T, OptimizationTarget>::value ||
                    ::std::is_integral<T>::value,
                "Incorrect type passed to OptimizationTarget_Name().");
  return OptimizationTarget_Name(static_cast<OptimizationTarget>(value));
}
bool OptimizationTarget_Parse(
    ::absl::string_view name, OptimizationTarget* PROTOBUF_NONNULL value);
enum ModelEngineVersion : int {
  MODEL_ENGINE_VERSION_UNKNOWN = 0,
  MODEL_ENGINE_VERSION_TFLITE_2_3_0 = 2,
  MODEL_ENGINE_VERSION_TFLITE_2_3_0_1 = 3,
  MODEL_ENGINE_VERSION_TFLITE_2_4 = 4,
  MODEL_ENGINE_VERSION_TFLITE_2_7 = 5,
  MODEL_ENGINE_VERSION_TFLITE_2_8 = 6,
  MODEL_ENGINE_VERSION_TFLITE_2_9 = 7,
  MODEL_ENGINE_VERSION_TFLITE_2_9_0_1 = 8,
  MODEL_ENGINE_VERSION_TFLITE_2_10 = 9,
  MODEL_ENGINE_VERSION_TFLITE_2_11 = 10,
  MODEL_ENGINE_VERSION_TFLITE_2_12 = 11,
  MODEL_ENGINE_VERSION_TFLITE_2_13 = 12,
  MODEL_ENGINE_VERSION_TFLITE_2_14 = 13,
  MODEL_ENGINE_VERSION_TFLITE_2_14_1 = 14,
  MODEL_ENGINE_VERSION_TFLITE_2_16 = 15,
  MODEL_ENGINE_VERSION_TFLITE_2_16_1 = 16,
  MODEL_ENGINE_VERSION_TFLITE_2_17 = 17,
  MODEL_ENGINE_VERSION_TFLITE_2_18 = 18,
  MODEL_ENGINE_VERSION_TFLITE_2_20_0 = 19,
  MODEL_ENGINE_VERSION_TFLITE_2_20_1 = 20,
  MODEL_ENGINE_VERSION_TFLITE_2_20_2 = 21,
  MODEL_ENGINE_VERSION_TFLITE_2_22_0 = 22,
};

extern const uint32_t ModelEngineVersion_internal_data_[];
inline constexpr ModelEngineVersion ModelEngineVersion_MIN =
    static_cast<ModelEngineVersion>(0);
inline constexpr ModelEngineVersion ModelEngineVersion_MAX =
    static_cast<ModelEngineVersion>(22);
inline bool ModelEngineVersion_IsValid(int value) {
  return 0 <= value && value <= 22 && ((8388605u >> value) & 1) != 0;
}
inline constexpr int ModelEngineVersion_ARRAYSIZE = 22 + 1;
const ::std::string& ModelEngineVersion_Name(ModelEngineVersion value);
template <typename T>
const ::std::string& ModelEngineVersion_Name(T value) {
  static_assert(::std::is_same<T, ModelEngineVersion>::value ||
                    ::std::is_integral<T>::value,
                "Incorrect type passed to ModelEngineVersion_Name().");
  return ModelEngineVersion_Name(static_cast<ModelEngineVersion>(value));
}
bool ModelEngineVersion_Parse(
    ::absl::string_view name, ModelEngineVersion* PROTOBUF_NONNULL value);
using ::google::protobuf::internal::generated_enum::AbslParseFlag;
using ::google::protobuf::internal::generated_enum::AbslUnparseFlag;

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


// -------------------------------------------------------------------

class  ModelCacheKey final : public ::google::protobuf::MessageLite
/* @@protoc_insertion_point(class_definition:optimization_guide.proto.ModelCacheKey) */ {
 public:
  inline ModelCacheKey() : ModelCacheKey(nullptr) {}
  ~ModelCacheKey() PROTOBUF_FINAL;

#if defined(PROTOBUF_CUSTOM_VTABLE)
  void operator delete(ModelCacheKey* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) {
    SharedDtor(*msg);
    ::google::protobuf::internal::SizedDelete(msg, sizeof(ModelCacheKey));
  }
#endif

  template <typename = void>
  explicit constexpr ModelCacheKey(::google::protobuf::internal::ConstantInitialized,
                           const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
                               class_data);

  inline ModelCacheKey(const ModelCacheKey& from) : ModelCacheKey(nullptr, from) {}
  inline ModelCacheKey(ModelCacheKey&& from) noexcept : ModelCacheKey(nullptr, ::std::move(from)) {}
  inline ModelCacheKey& operator=(const ModelCacheKey& from) {
    CopyFrom(from);
    return *this;
  }
  inline ModelCacheKey& operator=(ModelCacheKey&& from) noexcept {
    if (this == &from) return *this;
    if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
      InternalSwap(&from);
    } else {
      CopyFrom(from);
    }
    return *this;
  }

  inline const ::std::string& unknown_fields() const
      ABSL_ATTRIBUTE_LIFETIME_BOUND {
    return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString);
  }
  inline ::std::string* PROTOBUF_NONNULL
  mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND {
    return _internal_metadata_.mutable_unknown_fields<::std::string>();
  }

  static const ModelCacheKey& default_instance() {
    return *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance<ModelCacheKey>(&ModelCacheKey_globals_);
  }
  static constexpr int kIndexInFileMessages = 6;
  friend void swap(ModelCacheKey& a, ModelCacheKey& b) { a.Swap(&b); }
  PROTOBUF_NOINLINE void Swap(ModelCacheKey* PROTOBUF_NONNULL other) {
    if (other == this) return;
    if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
      InternalSwap(other);
    } else {
      ::google::protobuf::internal::GenericSwap(this, other);
    }
  }
  void UnsafeArenaSwap(ModelCacheKey* PROTOBUF_NONNULL other) {
    if (other == this) return;
    ABSL_DCHECK(GetArena() == other->GetArena());
    InternalSwap(other);
  }

  // implements Message ----------------------------------------------

  ModelCacheKey* PROTOBUF_NONNULL
  New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const {
    return ::google::protobuf::MessageLite::DefaultConstruct<ModelCacheKey>(arena);
  }
  void CopyFrom(const ModelCacheKey& from);
  void MergeFrom(const ModelCacheKey& from) { ModelCacheKey::MergeImpl(*this, from); }

  private:
  static void MergeImpl(::google::protobuf::MessageLite& to_msg,
                        const ::google::protobuf::MessageLite& from_msg);

  public:
  bool IsInitialized() const {
    return true;
  }
  ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL;
  #if defined(PROTOBUF_CUSTOM_VTABLE)
  private:
  static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
  static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
      const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
      ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);

  public:
  ::size_t ByteSizeLong() const { return ByteSizeLong(*this); }
  ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
      ::uint8_t* PROTOBUF_NONNULL target,
      ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
    return _InternalSerialize(*this, target, stream);
  }
  #else   // PROTOBUF_CUSTOM_VTABLE
  ::size_t ByteSizeLong() const final;
  ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
      ::uint8_t* PROTOBUF_NONNULL target,
      ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final;
  #endif  // PROTOBUF_CUSTOM_VTABLE
  int GetCachedSize() const {
    return _impl_._cached_size_.Get();
  }

  private:
  void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
  static void SharedDtor(MessageLite& self);
  void InternalSwap(ModelCacheKey* PROTOBUF_NONNULL other);
 private:
  template <typename T>
  friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)();
  static ::absl::string_view FullMessageName() { return "optimization_guide.proto.ModelCacheKey"; }

  explicit ModelCacheKey(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
  ModelCacheKey(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ModelCacheKey& from);
  ModelCacheKey(
      ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, ModelCacheKey&& from) noexcept
      : ModelCacheKey(arena) {
    *this = ::std::move(from);
  }
  const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
  static void* PROTOBUF_NONNULL PlacementNew_(
      const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
      ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
  static constexpr auto InternalNewImpl_();

 public:
  static constexpr auto InternalGenerateClassData_(
      const MessageLite& prototype,
      const ::google::protobuf::internal::TcParseTableBase* PROTOBUF_NULLABLE tc_table = nullptr);

  // nested types ----------------------------------------------------

  // accessors -------------------------------------------------------
  enum : int {
    kLocaleFieldNumber = 1,
  };
  // optional string locale = 1;
  bool has_locale()
      const;
  void clear_locale() ;
  const ::std::string& locale() const;
  template <typename Arg_ = const ::std::string&, typename... Args_>
  void set_locale(Arg_&& arg, Args_... args);
  ::std::string* PROTOBUF_NONNULL mutable_locale();
  ::std::string* PROTOBUF_NULLABLE release_locale();
  void set_allocated_locale(::std::string* PROTOBUF_NULLABLE value);

  private:
  const ::std::string& _internal_locale() const;
  PROTOBUF_ALWAYS_INLINE void _internal_set_locale(const ::std::string& value);
  ::std::string* PROTOBUF_NONNULL _internal_mutable_locale();

  public:
  // @@protoc_insertion_point(class_scope:optimization_guide.proto.ModelCacheKey)
 private:
  class _Internal;
  using ParseTableT_ =
      ::google::protobuf::internal::TcParseTable<0, 1,
                          0, 0,
                          2>;
  static constexpr ParseTableT_ InternalGenerateParseTable_(
      const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data);
  friend class ::google::protobuf::internal::TcParser;
  #ifndef PROTOBUF_MESSAGE_GLOBALS
  static const ParseTableT_ _table_;
  #endif

  friend class ::google::protobuf::MessageLite;
  friend class ::google::protobuf::Arena;
  friend ::google::protobuf::internal::PrivateAccess;
  template <typename T>
  friend class ::google::protobuf::Arena::InternalHelper;
  using InternalArenaConstructable_ = void;
  using DestructorSkippable_ = void;
  struct Impl_ {
    inline explicit constexpr Impl_(::google::protobuf::internal::InternalVisibility visibility,
                                    ::google::protobuf::internal::ConstantInitialized) noexcept;
    inline explicit Impl_(
        ::google::protobuf::internal::InternalVisibility visibility,
        ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
    inline explicit Impl_(
        ::google::protobuf::internal::InternalVisibility visibility,
        ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
        const ModelCacheKey& from_msg);
    ::google::protobuf::internal::HasBits<1> _has_bits_;
    ::google::protobuf::internal::CachedSize _cached_size_;
    ::google::protobuf::internal::ArenaStringPtr locale_;
    PROTOBUF_TSAN_DECLARE_MEMBER
  };
  union { Impl_ _impl_; };
  friend struct ::TableStruct_components_2foptimization_5fguide_2fproto_2fmodels_2eproto;
};
// -------------------------------------------------------------------

class  Model final : public ::google::protobuf::MessageLite
/* @@protoc_insertion_point(class_definition:optimization_guide.proto.Model) */ {
 public:
  inline Model() : Model(nullptr) {}
  ~Model() PROTOBUF_FINAL;

#if defined(PROTOBUF_CUSTOM_VTABLE)
  void operator delete(Model* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) {
    SharedDtor(*msg);
    ::google::protobuf::internal::SizedDelete(msg, sizeof(Model));
  }
#endif

  template <typename = void>
  explicit constexpr Model(::google::protobuf::internal::ConstantInitialized,
                           const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
                               class_data);

  inline Model(const Model& from) : Model(nullptr, from) {}
  inline Model(Model&& from) noexcept : Model(nullptr, ::std::move(from)) {}
  inline Model& operator=(const Model& from) {
    CopyFrom(from);
    return *this;
  }
  inline Model& operator=(Model&& from) noexcept {
    if (this == &from) return *this;
    if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
      InternalSwap(&from);
    } else {
      CopyFrom(from);
    }
    return *this;
  }

  inline const ::std::string& unknown_fields() const
      ABSL_ATTRIBUTE_LIFETIME_BOUND {
    return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString);
  }
  inline ::std::string* PROTOBUF_NONNULL
  mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND {
    return _internal_metadata_.mutable_unknown_fields<::std::string>();
  }

  static const Model& default_instance() {
    return *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance<Model>(&Model_globals_);
  }
  enum ModelCase {
    kDownloadUrl = 5,
    MODEL_NOT_SET = 0,
  };
  static constexpr int kIndexInFileMessages = 0;
  friend void swap(Model& a, Model& b) { a.Swap(&b); }
  PROTOBUF_NOINLINE void Swap(Model* PROTOBUF_NONNULL other) {
    if (other == this) return;
    if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
      InternalSwap(other);
    } else {
      ::google::protobuf::internal::GenericSwap(this, other);
    }
  }
  void UnsafeArenaSwap(Model* PROTOBUF_NONNULL other) {
    if (other == this) return;
    ABSL_DCHECK(GetArena() == other->GetArena());
    InternalSwap(other);
  }

  // implements Message ----------------------------------------------

  Model* PROTOBUF_NONNULL
  New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const {
    return ::google::protobuf::MessageLite::DefaultConstruct<Model>(arena);
  }
  void CopyFrom(const Model& from);
  void MergeFrom(const Model& from) { Model::MergeImpl(*this, from); }

  private:
  static void MergeImpl(::google::protobuf::MessageLite& to_msg,
                        const ::google::protobuf::MessageLite& from_msg);

  public:
  bool IsInitialized() const {
    return true;
  }
  ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL;
  #if defined(PROTOBUF_CUSTOM_VTABLE)
  private:
  static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
  static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
      const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
      ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);

  public:
  ::size_t ByteSizeLong() const { return ByteSizeLong(*this); }
  ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
      ::uint8_t* PROTOBUF_NONNULL target,
      ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
    return _InternalSerialize(*this, target, stream);
  }
  #else   // PROTOBUF_CUSTOM_VTABLE
  ::size_t ByteSizeLong() const final;
  ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
      ::uint8_t* PROTOBUF_NONNULL target,
      ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final;
  #endif  // PROTOBUF_CUSTOM_VTABLE
  int GetCachedSize() const {
    return _impl_._cached_size_.Get();
  }

  private:
  void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
  static void SharedDtor(MessageLite& self);
  void InternalSwap(Model* PROTOBUF_NONNULL other);
 private:
  template <typename T>
  friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)();
  static ::absl::string_view FullMessageName() { return "optimization_guide.proto.Model"; }

  explicit Model(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
  Model(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Model& from);
  Model(
      ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, Model&& from) noexcept
      : Model(arena) {
    *this = ::std::move(from);
  }
  const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
  static void* PROTOBUF_NONNULL PlacementNew_(
      const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
      ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
  static constexpr auto InternalNewImpl_();

 public:
  static constexpr auto InternalGenerateClassData_(
      const MessageLite& prototype,
      const ::google::protobuf::internal::TcParseTableBase* PROTOBUF_NULLABLE tc_table = nullptr);

  // nested types ----------------------------------------------------

  // accessors -------------------------------------------------------
  enum : int {
    kDownloadUrlFieldNumber = 5,
  };
  // string download_url = 5;
  bool has_download_url()
      const;
  void clear_download_url() ;
  const ::std::string& download_url() const;
  template <typename Arg_ = const ::std::string&, typename... Args_>
  void set_download_url(Arg_&& arg, Args_... args);
  ::std::string* PROTOBUF_NONNULL mutable_download_url();
  ::std::string* PROTOBUF_NULLABLE release_download_url();
  void set_allocated_download_url(::std::string* PROTOBUF_NULLABLE value);

  private:
  const ::std::string& _internal_download_url() const;
  PROTOBUF_ALWAYS_INLINE void _internal_set_download_url(const ::std::string& value);
  ::std::string* PROTOBUF_NONNULL _internal_mutable_download_url();

  public:
  void clear_model();
  ModelCase model_case() const;
  // @@protoc_insertion_point(class_scope:optimization_guide.proto.Model)
 private:
  class _Internal;
  void set_has_download_url();
  inline bool has_model() const;
  inline void clear_has_model();
  using ParseTableT_ =
      ::google::protobuf::internal::TcParseTable<0, 1,
                          0, 0,
                          2>;
  static constexpr ParseTableT_ InternalGenerateParseTable_(
      const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data);
  friend class ::google::protobuf::internal::TcParser;
  #ifndef PROTOBUF_MESSAGE_GLOBALS
  static const ParseTableT_ _table_;
  #endif

  friend class ::google::protobuf::MessageLite;
  friend class ::google::protobuf::Arena;
  friend ::google::protobuf::internal::PrivateAccess;
  template <typename T>
  friend class ::google::protobuf::Arena::InternalHelper;
  using InternalArenaConstructable_ = void;
  using DestructorSkippable_ = void;
  struct Impl_ {
    inline explicit constexpr Impl_(::google::protobuf::internal::InternalVisibility visibility,
                                    ::google::protobuf::internal::ConstantInitialized) noexcept;
    inline explicit Impl_(
        ::google::protobuf::internal::InternalVisibility visibility,
        ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
    inline explicit Impl_(
        ::google::protobuf::internal::InternalVisibility visibility,
        ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
        const Model& from_msg);
    union ModelUnion {
      constexpr ModelUnion() : _constinit_{} {}
      ::google::protobuf::internal::ConstantInitialized _constinit_;
      ::google::protobuf::internal::ArenaStringPtr download_url_;
    } model_;
    ::google::protobuf::internal::CachedSize _cached_size_;
    ::uint32_t _oneof_case_[1];
    PROTOBUF_TSAN_DECLARE_MEMBER
  };
  union { Impl_ _impl_; };
  friend struct ::TableStruct_components_2foptimization_5fguide_2fproto_2fmodels_2eproto;
};
// -------------------------------------------------------------------

class  AdditionalModelFile final : public ::google::protobuf::MessageLite
/* @@protoc_insertion_point(class_definition:optimization_guide.proto.AdditionalModelFile) */ {
 public:
  inline AdditionalModelFile() : AdditionalModelFile(nullptr) {}
  ~AdditionalModelFile() PROTOBUF_FINAL;

#if defined(PROTOBUF_CUSTOM_VTABLE)
  void operator delete(AdditionalModelFile* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) {
    SharedDtor(*msg);
    ::google::protobuf::internal::SizedDelete(msg, sizeof(AdditionalModelFile));
  }
#endif

  template <typename = void>
  explicit constexpr AdditionalModelFile(::google::protobuf::internal::ConstantInitialized,
                           const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
                               class_data);

  inline AdditionalModelFile(const AdditionalModelFile& from) : AdditionalModelFile(nullptr, from) {}
  inline AdditionalModelFile(AdditionalModelFile&& from) noexcept : AdditionalModelFile(nullptr, ::std::move(from)) {}
  inline AdditionalModelFile& operator=(const AdditionalModelFile& from) {
    CopyFrom(from);
    return *this;
  }
  inline AdditionalModelFile& operator=(AdditionalModelFile&& from) noexcept {
    if (this == &from) return *this;
    if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
      InternalSwap(&from);
    } else {
      CopyFrom(from);
    }
    return *this;
  }

  inline const ::std::string& unknown_fields() const
      ABSL_ATTRIBUTE_LIFETIME_BOUND {
    return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString);
  }
  inline ::std::string* PROTOBUF_NONNULL
  mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND {
    return _internal_metadata_.mutable_unknown_fields<::std::string>();
  }

  static const AdditionalModelFile& default_instance() {
    return *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance<AdditionalModelFile>(&AdditionalModelFile_globals_);
  }
  static constexpr int kIndexInFileMessages = 4;
  friend void swap(AdditionalModelFile& a, AdditionalModelFile& b) { a.Swap(&b); }
  PROTOBUF_NOINLINE void Swap(AdditionalModelFile* PROTOBUF_NONNULL other) {
    if (other == this) return;
    if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
      InternalSwap(other);
    } else {
      ::google::protobuf::internal::GenericSwap(this, other);
    }
  }
  void UnsafeArenaSwap(AdditionalModelFile* PROTOBUF_NONNULL other) {
    if (other == this) return;
    ABSL_DCHECK(GetArena() == other->GetArena());
    InternalSwap(other);
  }

  // implements Message ----------------------------------------------

  AdditionalModelFile* PROTOBUF_NONNULL
  New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const {
    return ::google::protobuf::MessageLite::DefaultConstruct<AdditionalModelFile>(arena);
  }
  void CopyFrom(const AdditionalModelFile& from);
  void MergeFrom(const AdditionalModelFile& from) { AdditionalModelFile::MergeImpl(*this, from); }

  private:
  static void MergeImpl(::google::protobuf::MessageLite& to_msg,
                        const ::google::protobuf::MessageLite& from_msg);

  public:
  bool IsInitialized() const {
    return true;
  }
  ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL;
  #if defined(PROTOBUF_CUSTOM_VTABLE)
  private:
  static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
  static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
      const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
      ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);

  public:
  ::size_t ByteSizeLong() const { return ByteSizeLong(*this); }
  ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
      ::uint8_t* PROTOBUF_NONNULL target,
      ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
    return _InternalSerialize(*this, target, stream);
  }
  #else   // PROTOBUF_CUSTOM_VTABLE
  ::size_t ByteSizeLong() const final;
  ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
      ::uint8_t* PROTOBUF_NONNULL target,
      ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final;
  #endif  // PROTOBUF_CUSTOM_VTABLE
  int GetCachedSize() const {
    return _impl_._cached_size_.Get();
  }

  private:
  void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
  static void SharedDtor(MessageLite& self);
  void InternalSwap(AdditionalModelFile* PROTOBUF_NONNULL other);
 private:
  template <typename T>
  friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)();
  static ::absl::string_view FullMessageName() { return "optimization_guide.proto.AdditionalModelFile"; }

  explicit AdditionalModelFile(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
  AdditionalModelFile(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const AdditionalModelFile& from);
  AdditionalModelFile(
      ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, AdditionalModelFile&& from) noexcept
      : AdditionalModelFile(arena) {
    *this = ::std::move(from);
  }
  const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
  static void* PROTOBUF_NONNULL PlacementNew_(
      const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
      ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
  static constexpr auto InternalNewImpl_();

 public:
  static constexpr auto InternalGenerateClassData_(
      const MessageLite& prototype,
      const ::google::protobuf::internal::TcParseTableBase* PROTOBUF_NULLABLE tc_table = nullptr);

  // nested types ----------------------------------------------------

  // accessors -------------------------------------------------------
  enum : int {
    kFilePathFieldNumber = 1,
  };
  // optional string file_path = 1;
  bool has_file_path()
      const;
  void clear_file_path() ;
  const ::std::string& file_path() const;
  template <typename Arg_ = const ::std::string&, typename... Args_>
  void set_file_path(Arg_&& arg, Args_... args);
  ::std::string* PROTOBUF_NONNULL mutable_file_path();
  ::std::string* PROTOBUF_NULLABLE release_file_path();
  void set_allocated_file_path(::std::string* PROTOBUF_NULLABLE value);

  private:
  const ::std::string& _internal_file_path() const;
  PROTOBUF_ALWAYS_INLINE void _internal_set_file_path(const ::std::string& value);
  ::std::string* PROTOBUF_NONNULL _internal_mutable_file_path();

  public:
  // @@protoc_insertion_point(class_scope:optimization_guide.proto.AdditionalModelFile)
 private:
  class _Internal;
  using ParseTableT_ =
      ::google::protobuf::internal::TcParseTable<0, 1,
                          0, 0,
                          2>;
  static constexpr ParseTableT_ InternalGenerateParseTable_(
      const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data);
  friend class ::google::protobuf::internal::TcParser;
  #ifndef PROTOBUF_MESSAGE_GLOBALS
  static const ParseTableT_ _table_;
  #endif

  friend class ::google::protobuf::MessageLite;
  friend class ::google::protobuf::Arena;
  friend ::google::protobuf::internal::PrivateAccess;
  template <typename T>
  friend class ::google::protobuf::Arena::InternalHelper;
  using InternalArenaConstructable_ = void;
  using DestructorSkippable_ = void;
  struct Impl_ {
    inline explicit constexpr Impl_(::google::protobuf::internal::InternalVisibility visibility,
                                    ::google::protobuf::internal::ConstantInitialized) noexcept;
    inline explicit Impl_(
        ::google::protobuf::internal::InternalVisibility visibility,
        ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
    inline explicit Impl_(
        ::google::protobuf::internal::InternalVisibility visibility,
        ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
        const AdditionalModelFile& from_msg);
    ::google::protobuf::internal::HasBits<1> _has_bits_;
    ::google::protobuf::internal::CachedSize _cached_size_;
    ::google::protobuf::internal::ArenaStringPtr file_path_;
    PROTOBUF_TSAN_DECLARE_MEMBER
  };
  union { Impl_ _impl_; };
  friend struct ::TableStruct_components_2foptimization_5fguide_2fproto_2fmodels_2eproto;
};
// -------------------------------------------------------------------

class  ModelInfo final : public ::google::protobuf::MessageLite
/* @@protoc_insertion_point(class_definition:optimization_guide.proto.ModelInfo) */ {
 public:
  inline ModelInfo() : ModelInfo(nullptr) {}
  ~ModelInfo() PROTOBUF_FINAL;

#if defined(PROTOBUF_CUSTOM_VTABLE)
  void operator delete(ModelInfo* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) {
    SharedDtor(*msg);
    ::google::protobuf::internal::SizedDelete(msg, sizeof(ModelInfo));
  }
#endif

  template <typename = void>
  explicit constexpr ModelInfo(::google::protobuf::internal::ConstantInitialized,
                           const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
                               class_data);

  inline ModelInfo(const ModelInfo& from) : ModelInfo(nullptr, from) {}
  inline ModelInfo(ModelInfo&& from) noexcept : ModelInfo(nullptr, ::std::move(from)) {}
  inline ModelInfo& operator=(const ModelInfo& from) {
    CopyFrom(from);
    return *this;
  }
  inline ModelInfo& operator=(ModelInfo&& from) noexcept {
    if (this == &from) return *this;
    if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
      InternalSwap(&from);
    } else {
      CopyFrom(from);
    }
    return *this;
  }

  inline const ::std::string& unknown_fields() const
      ABSL_ATTRIBUTE_LIFETIME_BOUND {
    return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString);
  }
  inline ::std::string* PROTOBUF_NONNULL
  mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND {
    return _internal_metadata_.mutable_unknown_fields<::std::string>();
  }

  static const ModelInfo& default_instance() {
    return *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance<ModelInfo>(&ModelInfo_globals_);
  }
  static constexpr int kIndexInFileMessages = 5;
  friend void swap(ModelInfo& a, ModelInfo& b) { a.Swap(&b); }
  PROTOBUF_NOINLINE void Swap(ModelInfo* PROTOBUF_NONNULL other) {
    if (other == this) return;
    if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
      InternalSwap(other);
    } else {
      ::google::protobuf::internal::GenericSwap(this, other);
    }
  }
  void UnsafeArenaSwap(ModelInfo* PROTOBUF_NONNULL other) {
    if (other == this) return;
    ABSL_DCHECK(GetArena() == other->GetArena());
    InternalSwap(other);
  }

  // implements Message ----------------------------------------------

  ModelInfo* PROTOBUF_NONNULL
  New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const {
    return ::google::protobuf::MessageLite::DefaultConstruct<ModelInfo>(arena);
  }
  void CopyFrom(const ModelInfo& from);
  void MergeFrom(const ModelInfo& from) { ModelInfo::MergeImpl(*this, from); }

  private:
  static void MergeImpl(::google::protobuf::MessageLite& to_msg,
                        const ::google::protobuf::MessageLite& from_msg);

  public:
  bool IsInitialized() const {
    return true;
  }
  ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL;
  #if defined(PROTOBUF_CUSTOM_VTABLE)
  private:
  static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
  static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
      const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
      ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);

  public:
  ::size_t ByteSizeLong() const { return ByteSizeLong(*this); }
  ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
      ::uint8_t* PROTOBUF_NONNULL target,
      ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
    return _InternalSerialize(*this, target, stream);
  }
  #else   // PROTOBUF_CUSTOM_VTABLE
  ::size_t ByteSizeLong() const final;
  ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
      ::uint8_t* PROTOBUF_NONNULL target,
      ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final;
  #endif  // PROTOBUF_CUSTOM_VTABLE
  int GetCachedSize() const {
    return _impl_._cached_size_.Get();
  }

  private:
  void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
  static void SharedDtor(MessageLite& self);
  void InternalSwap(ModelInfo* PROTOBUF_NONNULL other);
 private:
  template <typename T>
  friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)();
  static ::absl::string_view FullMessageName() { return "optimization_guide.proto.ModelInfo"; }

  explicit ModelInfo(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
  ModelInfo(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ModelInfo& from);
  ModelInfo(
      ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, ModelInfo&& from) noexcept
      : ModelInfo(arena) {
    *this = ::std::move(from);
  }
  const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
  static void* PROTOBUF_NONNULL PlacementNew_(
      const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
      ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
  static constexpr auto InternalNewImpl_();

 public:
  static constexpr auto InternalGenerateClassData_(
      const MessageLite& prototype,
      const ::google::protobuf::internal::TcParseTableBase* PROTOBUF_NULLABLE tc_table = nullptr);

  // nested types ----------------------------------------------------

  // accessors -------------------------------------------------------
  enum : int {
    kSupportedModelEngineVersionsFieldNumber = 4,
    kSupportedHostModelFeaturesFieldNumber = 5,
    kAdditionalFilesFieldNumber = 7,
    kModelMetadataFieldNumber = 6,
    kValidDurationFieldNumber = 8,
    kModelCacheKeyFieldNumber = 10,
    kVersionFieldNumber = 2,
    kOptimizationTargetFieldNumber = 1,
    kKeepBeyondValidDurationFieldNumber = 9,
  };
  // repeated .optimization_guide.proto.ModelEngineVersion supported_model_engine_versions = 4;
  int supported_model_engine_versions_size()
      const;
  private:
  int _internal_supported_model_engine_versions_size() const;

  public:
  void clear_supported_model_engine_versions() ;
  public:
  ::optimization_guide::proto::ModelEngineVersion supported_model_engine_versions(int index) const;
  void set_supported_model_engine_versions(int index, ::optimization_guide::proto::ModelEngineVersion value);
  void add_supported_model_engine_versions(::optimization_guide::proto::ModelEngineVersion value);
  const ::google::protobuf::RepeatedField<int>& supported_model_engine_versions()
      const;
  ::google::protobuf::RepeatedField<int>* PROTOBUF_NONNULL mutable_supported_model_engine_versions();

  private:
  const ::google::protobuf::RepeatedField<int>& _internal_supported_model_engine_versions() const;
  ::google::protobuf::RepeatedField<int>* PROTOBUF_NONNULL _internal_mutable_supported_model_engine_versions();

  public:
  // repeated string supported_host_model_features = 5;
  int supported_host_model_features_size()
      const;
  private:
  int _internal_supported_host_model_features_size() const;

  public:
  void clear_supported_host_model_features() ;
  const ::std::string& supported_host_model_features(int index) const;
  ::std::string* PROTOBUF_NONNULL mutable_supported_host_model_features(int index);
  template <typename Arg_ = const ::std::string&, typename... Args_>
  void set_supported_host_model_features(int index, Arg_&& value, Args_... args);
  ::std::string* PROTOBUF_NONNULL add_supported_host_model_features();
  template <typename Arg_ = const ::std::string&, typename... Args_>
  void add_supported_host_model_features(Arg_&& value, Args_... args);
  const
      ::google::protobuf::RepeatedPtrField<::std::string>&
      supported_host_model_features() const;
  ::google::protobuf::RepeatedPtrField<::std::string>*
      PROTOBUF_NONNULL
      mutable_supported_host_model_features();

  private:
  const ::google::protobuf::RepeatedPtrField<::std::string>& _internal_supported_host_model_features() const;
  ::google::protobuf::RepeatedPtrField<::std::string>* PROTOBUF_NONNULL _internal_mutable_supported_host_model_features();

  public:
  // repeated .optimization_guide.proto.AdditionalModelFile additional_files = 7;
  int additional_files_size()
      const;
  private:
  int _internal_additional_files_size() const;

  public:
  void clear_additional_files() ;
  const ::optimization_guide::proto::AdditionalModelFile& additional_files(int index) const;
  ::optimization_guide::proto::AdditionalModelFile* PROTOBUF_NONNULL mutable_additional_files(int index);
  ::optimization_guide::proto::AdditionalModelFile* PROTOBUF_NONNULL add_additional_files();
  const ::google::protobuf::RepeatedPtrField<::optimization_guide::proto::AdditionalModelFile>&
  additional_files() const;
  ::google::protobuf::RepeatedPtrField<::optimization_guide::proto::AdditionalModelFile>* PROTOBUF_NONNULL
  mutable_additional_files();

  private:
  const ::google::protobuf::RepeatedPtrField<::optimization_guide::proto::AdditionalModelFile>& _internal_additional_files() const;
  ::google::protobuf::RepeatedPtrField<::optimization_guide::proto::AdditionalModelFile>* PROTOBUF_NONNULL _internal_mutable_additional_files();

  public:
  // optional .optimization_guide.proto.Any model_metadata = 6;
  bool has_model_metadata()
      const;
  void clear_model_metadata() ;
  const ::optimization_guide::proto::Any& model_metadata() const;
  ::optimization_guide::proto::Any* PROTOBUF_NULLABLE release_model_metadata();
  ::optimization_guide::proto::Any* PROTOBUF_NONNULL mutable_model_metadata();
  void set_allocated_model_metadata(::optimization_guide::proto::Any* PROTOBUF_NULLABLE value);
  void unsafe_arena_set_allocated_model_metadata(::optimization_guide::proto::Any* PROTOBUF_NULLABLE value);
  ::optimization_guide::proto::Any* PROTOBUF_NULLABLE unsafe_arena_release_model_metadata();

  private:
  const ::optimization_guide::proto::Any& _internal_model_metadata() const;
  ::optimization_guide::proto::Any* PROTOBUF_NONNULL _internal_mutable_model_metadata();

  public:
  // optional .optimization_guide.proto.Duration valid_duration = 8;
  bool has_valid_duration()
      const;
  void clear_valid_duration() ;
  const ::optimization_guide::proto::Duration& valid_duration() const;
  ::optimization_guide::proto::Duration* PROTOBUF_NULLABLE release_valid_duration();
  ::optimization_guide::proto::Duration* PROTOBUF_NONNULL mutable_valid_duration();
  void set_allocated_valid_duration(::optimization_guide::proto::Duration* PROTOBUF_NULLABLE value);
  void unsafe_arena_set_allocated_valid_duration(::optimization_guide::proto::Duration* PROTOBUF_NULLABLE value);
  ::optimization_guide::proto::Duration* PROTOBUF_NULLABLE unsafe_arena_release_valid_duration();

  private:
  const ::optimization_guide::proto::Duration& _internal_valid_duration() const;
  ::optimization_guide::proto::Duration* PROTOBUF_NONNULL _internal_mutable_valid_duration();

  public:
  // optional .optimization_guide.proto.ModelCacheKey model_cache_key = 10;
  bool has_model_cache_key()
      const;
  void clear_model_cache_key() ;
  const ::optimization_guide::proto::ModelCacheKey& model_cache_key() const;
  ::optimization_guide::proto::ModelCacheKey* PROTOBUF_NULLABLE release_model_cache_key();
  ::optimization_guide::proto::ModelCacheKey* PROTOBUF_NONNULL mutable_model_cache_key();
  void set_allocated_model_cache_key(::optimization_guide::proto::ModelCacheKey* PROTOBUF_NULLABLE value);
  void unsafe_arena_set_allocated_model_cache_key(::optimization_guide::proto::ModelCacheKey* PROTOBUF_NULLABLE value);
  ::optimization_guide::proto::ModelCacheKey* PROTOBUF_NULLABLE unsafe_arena_release_model_cache_key();

  private:
  const ::optimization_guide::proto::ModelCacheKey& _internal_model_cache_key() const;
  ::optimization_guide::proto::ModelCacheKey* PROTOBUF_NONNULL _internal_mutable_model_cache_key();

  public:
  // optional int64 version = 2;
  bool has_version()
      const;
  void clear_version() ;
  ::int64_t version() const;
  void set_version(::int64_t value);

  private:
  ::int64_t _internal_version() const;
  void _internal_set_version(::int64_t value);

  public:
  // optional .optimization_guide.proto.OptimizationTarget optimization_target = 1;
  bool has_optimization_target()
      const;
  void clear_optimization_target() ;
  ::optimization_guide::proto::OptimizationTarget optimization_target() const;
  void set_optimization_target(::optimization_guide::proto::OptimizationTarget value);

  private:
  ::optimization_guide::proto::OptimizationTarget _internal_optimization_target() const;
  void _internal_set_optimization_target(::optimization_guide::proto::OptimizationTarget value);

  public:
  // optional bool keep_beyond_valid_duration = 9;
  bool has_keep_beyond_valid_duration()
      const;
  void clear_keep_beyond_valid_duration() ;
  bool keep_beyond_valid_duration() const;
  void set_keep_beyond_valid_duration(bool value);

  private:
  bool _internal_keep_beyond_valid_duration() const;
  void _internal_set_keep_beyond_valid_duration(bool value);

  public:
  // @@protoc_insertion_point(class_scope:optimization_guide.proto.ModelInfo)
 private:
  class _Internal;
  using ParseTableT_ =
      ::google::protobuf::internal::TcParseTable<4, 9,
                          6, 0,
                          2>;
  static constexpr ParseTableT_ InternalGenerateParseTable_(
      const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data);
  friend class ::google::protobuf::internal::TcParser;
  #ifndef PROTOBUF_MESSAGE_GLOBALS
  static const ParseTableT_ _table_;
  #endif

  friend class ::google::protobuf::MessageLite;
  friend class ::google::protobuf::Arena;
  friend ::google::protobuf::internal::PrivateAccess;
  template <typename T>
  friend class ::google::protobuf::Arena::InternalHelper;
  using InternalArenaConstructable_ = void;
  using DestructorSkippable_ = void;
  struct Impl_ {
    inline explicit constexpr Impl_(::google::protobuf::internal::InternalVisibility visibility,
                                    ::google::protobuf::internal::ConstantInitialized) noexcept;
    inline explicit Impl_(
        ::google::protobuf::internal::InternalVisibility visibility,
        ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
    inline explicit Impl_(
        ::google::protobuf::internal::InternalVisibility visibility,
        ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
        const ModelInfo& from_msg);
    ::google::protobuf::internal::HasBits<1> _has_bits_;
    ::google::protobuf::internal::CachedSize _cached_size_;
    ::google::protobuf::RepeatedField<int> supported_model_engine_versions_;
    ::google::protobuf::RepeatedPtrField<::std::string> supported_host_model_features_;
    ::google::protobuf::RepeatedPtrField< ::optimization_guide::proto::AdditionalModelFile > additional_files_;
    ::optimization_guide::proto::Any* PROTOBUF_NULLABLE model_metadata_;
    ::optimization_guide::proto::Duration* PROTOBUF_NULLABLE valid_duration_;
    ::optimization_guide::proto::ModelCacheKey* PROTOBUF_NULLABLE model_cache_key_;
    ::int64_t version_;
    int optimization_target_;
    bool keep_beyond_valid_duration_;
    PROTOBUF_TSAN_DECLARE_MEMBER
  };
  union { Impl_ _impl_; };
  friend struct ::TableStruct_components_2foptimization_5fguide_2fproto_2fmodels_2eproto;
};
// -------------------------------------------------------------------

class  PredictionModel final : public ::google::protobuf::MessageLite
/* @@protoc_insertion_point(class_definition:optimization_guide.proto.PredictionModel) */ {
 public:
  inline PredictionModel() : PredictionModel(nullptr) {}
  ~PredictionModel() PROTOBUF_FINAL;

#if defined(PROTOBUF_CUSTOM_VTABLE)
  void operator delete(PredictionModel* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) {
    SharedDtor(*msg);
    ::google::protobuf::internal::SizedDelete(msg, sizeof(PredictionModel));
  }
#endif

  template <typename = void>
  explicit constexpr PredictionModel(::google::protobuf::internal::ConstantInitialized,
                           const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
                               class_data);

  inline PredictionModel(const PredictionModel& from) : PredictionModel(nullptr, from) {}
  inline PredictionModel(PredictionModel&& from) noexcept : PredictionModel(nullptr, ::std::move(from)) {}
  inline PredictionModel& operator=(const PredictionModel& from) {
    CopyFrom(from);
    return *this;
  }
  inline PredictionModel& operator=(PredictionModel&& from) noexcept {
    if (this == &from) return *this;
    if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
      InternalSwap(&from);
    } else {
      CopyFrom(from);
    }
    return *this;
  }

  inline const ::std::string& unknown_fields() const
      ABSL_ATTRIBUTE_LIFETIME_BOUND {
    return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString);
  }
  inline ::std::string* PROTOBUF_NONNULL
  mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND {
    return _internal_metadata_.mutable_unknown_fields<::std::string>();
  }

  static const PredictionModel& default_instance() {
    return *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance<PredictionModel>(&PredictionModel_globals_);
  }
  static constexpr int kIndexInFileMessages = 3;
  friend void swap(PredictionModel& a, PredictionModel& b) { a.Swap(&b); }
  PROTOBUF_NOINLINE void Swap(PredictionModel* PROTOBUF_NONNULL other) {
    if (other == this) return;
    if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
      InternalSwap(other);
    } else {
      ::google::protobuf::internal::GenericSwap(this, other);
    }
  }
  void UnsafeArenaSwap(PredictionModel* PROTOBUF_NONNULL other) {
    if (other == this) return;
    ABSL_DCHECK(GetArena() == other->GetArena());
    InternalSwap(other);
  }

  // implements Message ----------------------------------------------

  PredictionModel* PROTOBUF_NONNULL
  New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const {
    return ::google::protobuf::MessageLite::DefaultConstruct<PredictionModel>(arena);
  }
  void CopyFrom(const PredictionModel& from);
  void MergeFrom(const PredictionModel& from) { PredictionModel::MergeImpl(*this, from); }

  private:
  static void MergeImpl(::google::protobuf::MessageLite& to_msg,
                        const ::google::protobuf::MessageLite& from_msg);

  public:
  bool IsInitialized() const {
    return true;
  }
  ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL;
  #if defined(PROTOBUF_CUSTOM_VTABLE)
  private:
  static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
  static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
      const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
      ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);

  public:
  ::size_t ByteSizeLong() const { return ByteSizeLong(*this); }
  ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
      ::uint8_t* PROTOBUF_NONNULL target,
      ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
    return _InternalSerialize(*this, target, stream);
  }
  #else   // PROTOBUF_CUSTOM_VTABLE
  ::size_t ByteSizeLong() const final;
  ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
      ::uint8_t* PROTOBUF_NONNULL target,
      ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final;
  #endif  // PROTOBUF_CUSTOM_VTABLE
  int GetCachedSize() const {
    return _impl_._cached_size_.Get();
  }

  private:
  void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
  static void SharedDtor(MessageLite& self);
  void InternalSwap(PredictionModel* PROTOBUF_NONNULL other);
 private:
  template <typename T>
  friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)();
  static ::absl::string_view FullMessageName() { return "optimization_guide.proto.PredictionModel"; }

  explicit PredictionModel(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
  PredictionModel(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const PredictionModel& from);
  PredictionModel(
      ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, PredictionModel&& from) noexcept
      : PredictionModel(arena) {
    *this = ::std::move(from);
  }
  const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
  static void* PROTOBUF_NONNULL PlacementNew_(
      const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
      ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
  static constexpr auto InternalNewImpl_();

 public:
  static constexpr auto InternalGenerateClassData_(
      const MessageLite& prototype,
      const ::google::protobuf::internal::TcParseTableBase* PROTOBUF_NULLABLE tc_table = nullptr);

  // nested types ----------------------------------------------------

  // accessors -------------------------------------------------------
  enum : int {
    kModelInfoFieldNumber = 1,
    kModelFieldNumber = 2,
  };
  // optional .optimization_guide.proto.ModelInfo model_info = 1;
  bool has_model_info()
      const;
  void clear_model_info() ;
  const ::optimization_guide::proto::ModelInfo& model_info() const;
  ::optimization_guide::proto::ModelInfo* PROTOBUF_NULLABLE release_model_info();
  ::optimization_guide::proto::ModelInfo* PROTOBUF_NONNULL mutable_model_info();
  void set_allocated_model_info(::optimization_guide::proto::ModelInfo* PROTOBUF_NULLABLE value);
  void unsafe_arena_set_allocated_model_info(::optimization_guide::proto::ModelInfo* PROTOBUF_NULLABLE value);
  ::optimization_guide::proto::ModelInfo* PROTOBUF_NULLABLE unsafe_arena_release_model_info();

  private:
  const ::optimization_guide::proto::ModelInfo& _internal_model_info() const;
  ::optimization_guide::proto::ModelInfo* PROTOBUF_NONNULL _internal_mutable_model_info();

  public:
  // optional .optimization_guide.proto.Model model = 2;
  bool has_model()
      const;
  void clear_model() ;
  const ::optimization_guide::proto::Model& model() const;
  ::optimization_guide::proto::Model* PROTOBUF_NULLABLE release_model();
  ::optimization_guide::proto::Model* PROTOBUF_NONNULL mutable_model();
  void set_allocated_model(::optimization_guide::proto::Model* PROTOBUF_NULLABLE value);
  void unsafe_arena_set_allocated_model(::optimization_guide::proto::Model* PROTOBUF_NULLABLE value);
  ::optimization_guide::proto::Model* PROTOBUF_NULLABLE unsafe_arena_release_model();

  private:
  const ::optimization_guide::proto::Model& _internal_model() const;
  ::optimization_guide::proto::Model* PROTOBUF_NONNULL _internal_mutable_model();

  public:
  // @@protoc_insertion_point(class_scope:optimization_guide.proto.PredictionModel)
 private:
  class _Internal;
  using ParseTableT_ =
      ::google::protobuf::internal::TcParseTable<1, 2,
                          2, 0,
                          2>;
  static constexpr ParseTableT_ InternalGenerateParseTable_(
      const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data);
  friend class ::google::protobuf::internal::TcParser;
  #ifndef PROTOBUF_MESSAGE_GLOBALS
  static const ParseTableT_ _table_;
  #endif

  friend class ::google::protobuf::MessageLite;
  friend class ::google::protobuf::Arena;
  friend ::google::protobuf::internal::PrivateAccess;
  template <typename T>
  friend class ::google::protobuf::Arena::InternalHelper;
  using InternalArenaConstructable_ = void;
  using DestructorSkippable_ = void;
  struct Impl_ {
    inline explicit constexpr Impl_(::google::protobuf::internal::InternalVisibility visibility,
                                    ::google::protobuf::internal::ConstantInitialized) noexcept;
    inline explicit Impl_(
        ::google::protobuf::internal::InternalVisibility visibility,
        ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
    inline explicit Impl_(
        ::google::protobuf::internal::InternalVisibility visibility,
        ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
        const PredictionModel& from_msg);
    ::google::protobuf::internal::HasBits<1> _has_bits_;
    ::google::protobuf::internal::CachedSize _cached_size_;
    ::optimization_guide::proto::ModelInfo* PROTOBUF_NULLABLE model_info_;
    ::optimization_guide::proto::Model* PROTOBUF_NULLABLE model_;
    PROTOBUF_TSAN_DECLARE_MEMBER
  };
  union { Impl_ _impl_; };
  friend struct ::TableStruct_components_2foptimization_5fguide_2fproto_2fmodels_2eproto;
};
// -------------------------------------------------------------------

class  GetModelsRequest final : public ::google::protobuf::MessageLite
/* @@protoc_insertion_point(class_definition:optimization_guide.proto.GetModelsRequest) */ {
 public:
  inline GetModelsRequest() : GetModelsRequest(nullptr) {}
  ~GetModelsRequest() PROTOBUF_FINAL;

#if defined(PROTOBUF_CUSTOM_VTABLE)
  void operator delete(GetModelsRequest* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) {
    SharedDtor(*msg);
    ::google::protobuf::internal::SizedDelete(msg, sizeof(GetModelsRequest));
  }
#endif

  template <typename = void>
  explicit constexpr GetModelsRequest(::google::protobuf::internal::ConstantInitialized,
                           const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
                               class_data);

  inline GetModelsRequest(const GetModelsRequest& from) : GetModelsRequest(nullptr, from) {}
  inline GetModelsRequest(GetModelsRequest&& from) noexcept : GetModelsRequest(nullptr, ::std::move(from)) {}
  inline GetModelsRequest& operator=(const GetModelsRequest& from) {
    CopyFrom(from);
    return *this;
  }
  inline GetModelsRequest& operator=(GetModelsRequest&& from) noexcept {
    if (this == &from) return *this;
    if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
      InternalSwap(&from);
    } else {
      CopyFrom(from);
    }
    return *this;
  }

  inline const ::std::string& unknown_fields() const
      ABSL_ATTRIBUTE_LIFETIME_BOUND {
    return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString);
  }
  inline ::std::string* PROTOBUF_NONNULL
  mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND {
    return _internal_metadata_.mutable_unknown_fields<::std::string>();
  }

  static const GetModelsRequest& default_instance() {
    return *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance<GetModelsRequest>(&GetModelsRequest_globals_);
  }
  static constexpr int kIndexInFileMessages = 1;
  friend void swap(GetModelsRequest& a, GetModelsRequest& b) { a.Swap(&b); }
  PROTOBUF_NOINLINE void Swap(GetModelsRequest* PROTOBUF_NONNULL other) {
    if (other == this) return;
    if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
      InternalSwap(other);
    } else {
      ::google::protobuf::internal::GenericSwap(this, other);
    }
  }
  void UnsafeArenaSwap(GetModelsRequest* PROTOBUF_NONNULL other) {
    if (other == this) return;
    ABSL_DCHECK(GetArena() == other->GetArena());
    InternalSwap(other);
  }

  // implements Message ----------------------------------------------

  GetModelsRequest* PROTOBUF_NONNULL
  New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const {
    return ::google::protobuf::MessageLite::DefaultConstruct<GetModelsRequest>(arena);
  }
  void CopyFrom(const GetModelsRequest& from);
  void MergeFrom(const GetModelsRequest& from) { GetModelsRequest::MergeImpl(*this, from); }

  private:
  static void MergeImpl(::google::protobuf::MessageLite& to_msg,
                        const ::google::protobuf::MessageLite& from_msg);

  public:
  bool IsInitialized() const {
    return true;
  }
  ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL;
  #if defined(PROTOBUF_CUSTOM_VTABLE)
  private:
  static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
  static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
      const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
      ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);

  public:
  ::size_t ByteSizeLong() const { return ByteSizeLong(*this); }
  ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
      ::uint8_t* PROTOBUF_NONNULL target,
      ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
    return _InternalSerialize(*this, target, stream);
  }
  #else   // PROTOBUF_CUSTOM_VTABLE
  ::size_t ByteSizeLong() const final;
  ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
      ::uint8_t* PROTOBUF_NONNULL target,
      ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final;
  #endif  // PROTOBUF_CUSTOM_VTABLE
  int GetCachedSize() const {
    return _impl_._cached_size_.Get();
  }

  private:
  void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
  static void SharedDtor(MessageLite& self);
  void InternalSwap(GetModelsRequest* PROTOBUF_NONNULL other);
 private:
  template <typename T>
  friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)();
  static ::absl::string_view FullMessageName() { return "optimization_guide.proto.GetModelsRequest"; }

  explicit GetModelsRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
  GetModelsRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GetModelsRequest& from);
  GetModelsRequest(
      ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, GetModelsRequest&& from) noexcept
      : GetModelsRequest(arena) {
    *this = ::std::move(from);
  }
  const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
  static void* PROTOBUF_NONNULL PlacementNew_(
      const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
      ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
  static constexpr auto InternalNewImpl_();

 public:
  static constexpr auto InternalGenerateClassData_(
      const MessageLite& prototype,
      const ::google::protobuf::internal::TcParseTableBase* PROTOBUF_NULLABLE tc_table = nullptr);

  // nested types ----------------------------------------------------

  // accessors -------------------------------------------------------
  enum : int {
    kRequestedModelsFieldNumber = 1,
    kLocaleFieldNumber = 5,
    kOriginInfoFieldNumber = 6,
    kRequestContextFieldNumber = 3,
  };
  // repeated .optimization_guide.proto.ModelInfo requested_models = 1;
  int requested_models_size()
      const;
  private:
  int _internal_requested_models_size() const;

  public:
  void clear_requested_models() ;
  const ::optimization_guide::proto::ModelInfo& requested_models(int index) const;
  ::optimization_guide::proto::ModelInfo* PROTOBUF_NONNULL mutable_requested_models(int index);
  ::optimization_guide::proto::ModelInfo* PROTOBUF_NONNULL add_requested_models();
  const ::google::protobuf::RepeatedPtrField<::optimization_guide::proto::ModelInfo>&
  requested_models() const;
  ::google::protobuf::RepeatedPtrField<::optimization_guide::proto::ModelInfo>* PROTOBUF_NONNULL
  mutable_requested_models();

  private:
  const ::google::protobuf::RepeatedPtrField<::optimization_guide::proto::ModelInfo>& _internal_requested_models() const;
  ::google::protobuf::RepeatedPtrField<::optimization_guide::proto::ModelInfo>* PROTOBUF_NONNULL _internal_mutable_requested_models();

  public:
  // optional string locale = 5;
  bool has_locale()
      const;
  void clear_locale() ;
  const ::std::string& locale() const;
  template <typename Arg_ = const ::std::string&, typename... Args_>
  void set_locale(Arg_&& arg, Args_... args);
  ::std::string* PROTOBUF_NONNULL mutable_locale();
  ::std::string* PROTOBUF_NULLABLE release_locale();
  void set_allocated_locale(::std::string* PROTOBUF_NULLABLE value);

  private:
  const ::std::string& _internal_locale() const;
  PROTOBUF_ALWAYS_INLINE void _internal_set_locale(const ::std::string& value);
  ::std::string* PROTOBUF_NONNULL _internal_mutable_locale();

  public:
  // optional .optimization_guide.proto.OriginInfo origin_info = 6;
  bool has_origin_info()
      const;
  void clear_origin_info() ;
  const ::optimization_guide::proto::OriginInfo& origin_info() const;
  ::optimization_guide::proto::OriginInfo* PROTOBUF_NULLABLE release_origin_info();
  ::optimization_guide::proto::OriginInfo* PROTOBUF_NONNULL mutable_origin_info();
  void set_allocated_origin_info(::optimization_guide::proto::OriginInfo* PROTOBUF_NULLABLE value);
  void unsafe_arena_set_allocated_origin_info(::optimization_guide::proto::OriginInfo* PROTOBUF_NULLABLE value);
  ::optimization_guide::proto::OriginInfo* PROTOBUF_NULLABLE unsafe_arena_release_origin_info();

  private:
  const ::optimization_guide::proto::OriginInfo& _internal_origin_info() const;
  ::optimization_guide::proto::OriginInfo* PROTOBUF_NONNULL _internal_mutable_origin_info();

  public:
  // optional .optimization_guide.proto.RequestContext request_context = 3;
  bool has_request_context()
      const;
  void clear_request_context() ;
  ::optimization_guide::proto::RequestContext request_context() const;
  void set_request_context(::optimization_guide::proto::RequestContext value);

  private:
  ::optimization_guide::proto::RequestContext _internal_request_context() const;
  void _internal_set_request_context(::optimization_guide::proto::RequestContext value);

  public:
  // @@protoc_insertion_point(class_scope:optimization_guide.proto.GetModelsRequest)
 private:
  class _Internal;
  using ParseTableT_ =
      ::google::protobuf::internal::TcParseTable<3, 4,
                          3, 0,
                          2>;
  static constexpr ParseTableT_ InternalGenerateParseTable_(
      const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data);
  friend class ::google::protobuf::internal::TcParser;
  #ifndef PROTOBUF_MESSAGE_GLOBALS
  static const ParseTableT_ _table_;
  #endif

  friend class ::google::protobuf::MessageLite;
  friend class ::google::protobuf::Arena;
  friend ::google::protobuf::internal::PrivateAccess;
  template <typename T>
  friend class ::google::protobuf::Arena::InternalHelper;
  using InternalArenaConstructable_ = void;
  using DestructorSkippable_ = void;
  struct Impl_ {
    inline explicit constexpr Impl_(::google::protobuf::internal::InternalVisibility visibility,
                                    ::google::protobuf::internal::ConstantInitialized) noexcept;
    inline explicit Impl_(
        ::google::protobuf::internal::InternalVisibility visibility,
        ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
    inline explicit Impl_(
        ::google::protobuf::internal::InternalVisibility visibility,
        ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
        const GetModelsRequest& from_msg);
    ::google::protobuf::internal::HasBits<1> _has_bits_;
    ::google::protobuf::internal::CachedSize _cached_size_;
    ::google::protobuf::RepeatedPtrField< ::optimization_guide::proto::ModelInfo > requested_models_;
    ::google::protobuf::internal::ArenaStringPtr locale_;
    ::optimization_guide::proto::OriginInfo* PROTOBUF_NULLABLE origin_info_;
    int request_context_;
    PROTOBUF_TSAN_DECLARE_MEMBER
  };
  union { Impl_ _impl_; };
  friend struct ::TableStruct_components_2foptimization_5fguide_2fproto_2fmodels_2eproto;
};
// -------------------------------------------------------------------

class  GetModelsResponse final : public ::google::protobuf::MessageLite
/* @@protoc_insertion_point(class_definition:optimization_guide.proto.GetModelsResponse) */ {
 public:
  inline GetModelsResponse() : GetModelsResponse(nullptr) {}
  ~GetModelsResponse() PROTOBUF_FINAL;

#if defined(PROTOBUF_CUSTOM_VTABLE)
  void operator delete(GetModelsResponse* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) {
    SharedDtor(*msg);
    ::google::protobuf::internal::SizedDelete(msg, sizeof(GetModelsResponse));
  }
#endif

  template <typename = void>
  explicit constexpr GetModelsResponse(::google::protobuf::internal::ConstantInitialized,
                           const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
                               class_data);

  inline GetModelsResponse(const GetModelsResponse& from) : GetModelsResponse(nullptr, from) {}
  inline GetModelsResponse(GetModelsResponse&& from) noexcept : GetModelsResponse(nullptr, ::std::move(from)) {}
  inline GetModelsResponse& operator=(const GetModelsResponse& from) {
    CopyFrom(from);
    return *this;
  }
  inline GetModelsResponse& operator=(GetModelsResponse&& from) noexcept {
    if (this == &from) return *this;
    if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
      InternalSwap(&from);
    } else {
      CopyFrom(from);
    }
    return *this;
  }

  inline const ::std::string& unknown_fields() const
      ABSL_ATTRIBUTE_LIFETIME_BOUND {
    return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString);
  }
  inline ::std::string* PROTOBUF_NONNULL
  mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND {
    return _internal_metadata_.mutable_unknown_fields<::std::string>();
  }

  static const GetModelsResponse& default_instance() {
    return *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance<GetModelsResponse>(&GetModelsResponse_globals_);
  }
  static constexpr int kIndexInFileMessages = 2;
  friend void swap(GetModelsResponse& a, GetModelsResponse& b) { a.Swap(&b); }
  PROTOBUF_NOINLINE void Swap(GetModelsResponse* PROTOBUF_NONNULL other) {
    if (other == this) return;
    if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
      InternalSwap(other);
    } else {
      ::google::protobuf::internal::GenericSwap(this, other);
    }
  }
  void UnsafeArenaSwap(GetModelsResponse* PROTOBUF_NONNULL other) {
    if (other == this) return;
    ABSL_DCHECK(GetArena() == other->GetArena());
    InternalSwap(other);
  }

  // implements Message ----------------------------------------------

  GetModelsResponse* PROTOBUF_NONNULL
  New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const {
    return ::google::protobuf::MessageLite::DefaultConstruct<GetModelsResponse>(arena);
  }
  void CopyFrom(const GetModelsResponse& from);
  void MergeFrom(const GetModelsResponse& from) { GetModelsResponse::MergeImpl(*this, from); }

  private:
  static void MergeImpl(::google::protobuf::MessageLite& to_msg,
                        const ::google::protobuf::MessageLite& from_msg);

  public:
  bool IsInitialized() const {
    return true;
  }
  ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL;
  #if defined(PROTOBUF_CUSTOM_VTABLE)
  private:
  static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
  static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
      const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
      ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);

  public:
  ::size_t ByteSizeLong() const { return ByteSizeLong(*this); }
  ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
      ::uint8_t* PROTOBUF_NONNULL target,
      ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
    return _InternalSerialize(*this, target, stream);
  }
  #else   // PROTOBUF_CUSTOM_VTABLE
  ::size_t ByteSizeLong() const final;
  ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
      ::uint8_t* PROTOBUF_NONNULL target,
      ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final;
  #endif  // PROTOBUF_CUSTOM_VTABLE
  int GetCachedSize() const {
    return _impl_._cached_size_.Get();
  }

  private:
  void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
  static void SharedDtor(MessageLite& self);
  void InternalSwap(GetModelsResponse* PROTOBUF_NONNULL other);
 private:
  template <typename T>
  friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)();
  static ::absl::string_view FullMessageName() { return "optimization_guide.proto.GetModelsResponse"; }

  explicit GetModelsResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
  GetModelsResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GetModelsResponse& from);
  GetModelsResponse(
      ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, GetModelsResponse&& from) noexcept
      : GetModelsResponse(arena) {
    *this = ::std::move(from);
  }
  const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
  static void* PROTOBUF_NONNULL PlacementNew_(
      const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
      ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
  static constexpr auto InternalNewImpl_();

 public:
  static constexpr auto InternalGenerateClassData_(
      const MessageLite& prototype,
      const ::google::protobuf::internal::TcParseTableBase* PROTOBUF_NULLABLE tc_table = nullptr);

  // nested types ----------------------------------------------------

  // accessors -------------------------------------------------------
  enum : int {
    kModelsFieldNumber = 1,
  };
  // repeated .optimization_guide.proto.PredictionModel models = 1;
  int models_size()
      const;
  private:
  int _internal_models_size() const;

  public:
  void clear_models() ;
  const ::optimization_guide::proto::PredictionModel& models(int index) const;
  ::optimization_guide::proto::PredictionModel* PROTOBUF_NONNULL mutable_models(int index);
  ::optimization_guide::proto::PredictionModel* PROTOBUF_NONNULL add_models();
  const ::google::protobuf::RepeatedPtrField<::optimization_guide::proto::PredictionModel>&
  models() const;
  ::google::protobuf::RepeatedPtrField<::optimization_guide::proto::PredictionModel>* PROTOBUF_NONNULL
  mutable_models();

  private:
  const ::google::protobuf::RepeatedPtrField<::optimization_guide::proto::PredictionModel>& _internal_models() const;
  ::google::protobuf::RepeatedPtrField<::optimization_guide::proto::PredictionModel>* PROTOBUF_NONNULL _internal_mutable_models();

  public:
  // @@protoc_insertion_point(class_scope:optimization_guide.proto.GetModelsResponse)
 private:
  class _Internal;
  using ParseTableT_ =
      ::google::protobuf::internal::TcParseTable<0, 1,
                          1, 0,
                          2>;
  static constexpr ParseTableT_ InternalGenerateParseTable_(
      const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data);
  friend class ::google::protobuf::internal::TcParser;
  #ifndef PROTOBUF_MESSAGE_GLOBALS
  static const ParseTableT_ _table_;
  #endif

  friend class ::google::protobuf::MessageLite;
  friend class ::google::protobuf::Arena;
  friend ::google::protobuf::internal::PrivateAccess;
  template <typename T>
  friend class ::google::protobuf::Arena::InternalHelper;
  using InternalArenaConstructable_ = void;
  using DestructorSkippable_ = void;
  struct Impl_ {
    inline explicit constexpr Impl_(::google::protobuf::internal::InternalVisibility visibility,
                                    ::google::protobuf::internal::ConstantInitialized) noexcept;
    inline explicit Impl_(
        ::google::protobuf::internal::InternalVisibility visibility,
        ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
    inline explicit Impl_(
        ::google::protobuf::internal::InternalVisibility visibility,
        ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
        const GetModelsResponse& from_msg);
    ::google::protobuf::internal::HasBits<1> _has_bits_;
    ::google::protobuf::internal::CachedSize _cached_size_;
    ::google::protobuf::RepeatedPtrField< ::optimization_guide::proto::PredictionModel > models_;
    PROTOBUF_TSAN_DECLARE_MEMBER
  };
  union { Impl_ _impl_; };
  friend struct ::TableStruct_components_2foptimization_5fguide_2fproto_2fmodels_2eproto;
};

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




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


#ifdef __GNUC__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
#endif  // __GNUC__
// -------------------------------------------------------------------

// Model

// string download_url = 5;
inline bool Model::has_download_url() const {
  return model_case() == kDownloadUrl;
}
inline void Model::set_has_download_url() {
  _impl_._oneof_case_[0] = kDownloadUrl;
}
inline void Model::clear_download_url() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (model_case() == kDownloadUrl) {
    _impl_.model_.download_url_.Destroy();
    clear_has_model();
  }
}
inline const ::std::string& Model::download_url() const
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_get:optimization_guide.proto.Model.download_url)
  return _internal_download_url();
}
template <typename Arg_, typename... Args_>
PROTOBUF_ALWAYS_INLINE void Model::set_download_url(Arg_&& arg, Args_... args) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (model_case() != kDownloadUrl) {
    clear_model();

    set_has_download_url();
    _impl_.model_.download_url_.InitDefault();
  }
  _impl_.model_.download_url_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
  // @@protoc_insertion_point(field_set:optimization_guide.proto.Model.download_url)
}
inline ::std::string* PROTOBUF_NONNULL Model::mutable_download_url()
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  if (model_case() != kDownloadUrl) {
    clear_model();

    set_has_download_url();
    _impl_.model_.download_url_.InitDefault();
  }
  ::std::string* _s = _internal_mutable_download_url();
  // @@protoc_insertion_point(field_mutable:optimization_guide.proto.Model.download_url)
  return _s;
}
inline const ::std::string& Model::_internal_download_url() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  if (model_case() != kDownloadUrl) {
    return ::google::protobuf::internal::GetEmptyStringAlreadyInited();
  }
  return _impl_.model_.download_url_.Get();
}
inline void Model::_internal_set_download_url(const ::std::string& value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.model_.download_url_.Set(value, GetArena());
}
inline ::std::string* PROTOBUF_NONNULL Model::_internal_mutable_download_url() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  return _impl_.model_.download_url_.Mutable( GetArena());
}
inline ::std::string* PROTOBUF_NULLABLE Model::release_download_url() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  // @@protoc_insertion_point(field_release:optimization_guide.proto.Model.download_url)
  if (model_case() != kDownloadUrl) {
    return nullptr;
  }
  clear_has_model();
  return _impl_.model_.download_url_.Release();
}
inline void Model::set_allocated_download_url(::std::string* PROTOBUF_NULLABLE value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (has_model()) {
    clear_model();
  }
  if (value != nullptr) {
    set_has_download_url();
    _impl_.model_.download_url_.InitAllocated(value, GetArena());
  }
  // @@protoc_insertion_point(field_set_allocated:optimization_guide.proto.Model.download_url)
}

inline bool Model::has_model() const {
  return model_case() != MODEL_NOT_SET;
}
inline void Model::clear_has_model() {
  _impl_._oneof_case_[0] = MODEL_NOT_SET;
}
inline Model::ModelCase Model::model_case() const {
  return Model::ModelCase(_impl_._oneof_case_[0]);
}
// -------------------------------------------------------------------

// GetModelsRequest

// repeated .optimization_guide.proto.ModelInfo requested_models = 1;
inline int GetModelsRequest::_internal_requested_models_size() const {
  return _internal_requested_models().size();
}
inline int GetModelsRequest::requested_models_size() const {
  return _internal_requested_models_size();
}
inline void GetModelsRequest::clear_requested_models() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.requested_models_.Clear();
  ClearHasBit(_impl_._has_bits_[0], 0x00000001U);
}
inline const ::optimization_guide::proto::ModelInfo& GetModelsRequest::requested_models(int index) const
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_get:optimization_guide.proto.GetModelsRequest.requested_models)
  return _internal_requested_models().Get(index);
}
inline ::optimization_guide::proto::ModelInfo* PROTOBUF_NONNULL GetModelsRequest::mutable_requested_models(int index)
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_mutable:optimization_guide.proto.GetModelsRequest.requested_models)
  return _internal_mutable_requested_models()->Mutable(index);
}
inline ::optimization_guide::proto::ModelInfo* PROTOBUF_NONNULL GetModelsRequest::add_requested_models()
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  ::optimization_guide::proto::ModelInfo* _add =
      _internal_mutable_requested_models()->InternalAddWithArena(
          ::google::protobuf::MessageLite::internal_visibility(), GetArena());
  SetHasBit(_impl_._has_bits_[0], 0x00000001U);
  // @@protoc_insertion_point(field_add:optimization_guide.proto.GetModelsRequest.requested_models)
  return _add;
}
inline const ::google::protobuf::RepeatedPtrField<::optimization_guide::proto::ModelInfo>& GetModelsRequest::requested_models() const
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_list:optimization_guide.proto.GetModelsRequest.requested_models)
  return _internal_requested_models();
}
inline ::google::protobuf::RepeatedPtrField<::optimization_guide::proto::ModelInfo>* PROTOBUF_NONNULL
GetModelsRequest::mutable_requested_models() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  SetHasBit(_impl_._has_bits_[0], 0x00000001U);
  // @@protoc_insertion_point(field_mutable_list:optimization_guide.proto.GetModelsRequest.requested_models)
  ::google::protobuf::internal::TSanWrite(&_impl_);
  return _internal_mutable_requested_models();
}
inline const ::google::protobuf::RepeatedPtrField<::optimization_guide::proto::ModelInfo>&
GetModelsRequest::_internal_requested_models() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.requested_models_;
}
inline ::google::protobuf::RepeatedPtrField<::optimization_guide::proto::ModelInfo>* PROTOBUF_NONNULL
GetModelsRequest::_internal_mutable_requested_models() {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return &_impl_.requested_models_;
}

// optional .optimization_guide.proto.RequestContext request_context = 3;
inline bool GetModelsRequest::has_request_context() const {
  bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000008U);
  return value;
}
inline void GetModelsRequest::clear_request_context() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.request_context_ = 0;
  ClearHasBit(_impl_._has_bits_[0], 0x00000008U);
}
inline ::optimization_guide::proto::RequestContext GetModelsRequest::request_context() const {
  // @@protoc_insertion_point(field_get:optimization_guide.proto.GetModelsRequest.request_context)
  return _internal_request_context();
}
inline void GetModelsRequest::set_request_context(::optimization_guide::proto::RequestContext value) {
  _internal_set_request_context(value);
  SetHasBit(_impl_._has_bits_[0], 0x00000008U);
  // @@protoc_insertion_point(field_set:optimization_guide.proto.GetModelsRequest.request_context)
}
inline ::optimization_guide::proto::RequestContext GetModelsRequest::_internal_request_context() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return static_cast<::optimization_guide::proto::RequestContext>(_impl_.request_context_);
}
inline void GetModelsRequest::_internal_set_request_context(::optimization_guide::proto::RequestContext value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);

                                          assert(::google::protobuf::internal::ValidateEnum(
                                              value, ::optimization_guide::proto::RequestContext_internal_data_));
                                          _impl_.request_context_ = value;
}

// optional string locale = 5;
inline bool GetModelsRequest::has_locale() const {
  bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U);
  return value;
}
inline void GetModelsRequest::clear_locale() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.locale_.ClearToEmpty();
  ClearHasBit(_impl_._has_bits_[0], 0x00000002U);
}
inline const ::std::string& GetModelsRequest::locale() const
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_get:optimization_guide.proto.GetModelsRequest.locale)
  return _internal_locale();
}
template <typename Arg_, typename... Args_>
PROTOBUF_ALWAYS_INLINE void GetModelsRequest::set_locale(Arg_&& arg, Args_... args) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  SetHasBit(_impl_._has_bits_[0], 0x00000002U);
  _impl_.locale_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
  // @@protoc_insertion_point(field_set:optimization_guide.proto.GetModelsRequest.locale)
}
inline ::std::string* PROTOBUF_NONNULL GetModelsRequest::mutable_locale()
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  SetHasBit(_impl_._has_bits_[0], 0x00000002U);
  ::std::string* _s = _internal_mutable_locale();
  // @@protoc_insertion_point(field_mutable:optimization_guide.proto.GetModelsRequest.locale)
  return _s;
}
inline const ::std::string& GetModelsRequest::_internal_locale() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.locale_.Get();
}
inline void GetModelsRequest::_internal_set_locale(const ::std::string& value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.locale_.Set(value, GetArena());
}
inline ::std::string* PROTOBUF_NONNULL GetModelsRequest::_internal_mutable_locale() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  return _impl_.locale_.Mutable( GetArena());
}
inline ::std::string* PROTOBUF_NULLABLE GetModelsRequest::release_locale() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  // @@protoc_insertion_point(field_release:optimization_guide.proto.GetModelsRequest.locale)
  if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) {
    return nullptr;
  }
  ClearHasBit(_impl_._has_bits_[0], 0x00000002U);
  auto* released = _impl_.locale_.Release();
  if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) {
    _impl_.locale_.Set("", GetArena());
  }
  return released;
}
inline void GetModelsRequest::set_allocated_locale(::std::string* PROTOBUF_NULLABLE value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (value != nullptr) {
    SetHasBit(_impl_._has_bits_[0], 0x00000002U);
  } else {
    ClearHasBit(_impl_._has_bits_[0], 0x00000002U);
  }
  _impl_.locale_.SetAllocated(value, GetArena());
  if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.locale_.IsDefault()) {
    _impl_.locale_.Set("", GetArena());
  }
  // @@protoc_insertion_point(field_set_allocated:optimization_guide.proto.GetModelsRequest.locale)
}

// optional .optimization_guide.proto.OriginInfo origin_info = 6;
inline bool GetModelsRequest::has_origin_info() const {
  bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U);
  PROTOBUF_ASSUME(!value || _impl_.origin_info_ != nullptr);
  return value;
}
inline const ::optimization_guide::proto::OriginInfo& GetModelsRequest::_internal_origin_info() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  const ::optimization_guide::proto::OriginInfo* p = _impl_.origin_info_;
  return p != nullptr ? *p : *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance<::optimization_guide::proto::OriginInfo>(&::optimization_guide::proto::OriginInfo_globals_);
}
inline const ::optimization_guide::proto::OriginInfo& GetModelsRequest::origin_info() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_get:optimization_guide.proto.GetModelsRequest.origin_info)
  return _internal_origin_info();
}
inline void GetModelsRequest::unsafe_arena_set_allocated_origin_info(
    ::optimization_guide::proto::OriginInfo* PROTOBUF_NULLABLE value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (GetArena() == nullptr) {
    delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.origin_info_);
  }
  _impl_.origin_info_ = reinterpret_cast<::optimization_guide::proto::OriginInfo*>(value);
  if (value != nullptr) {
    SetHasBit(_impl_._has_bits_[0], 0x00000004U);
  } else {
    ClearHasBit(_impl_._has_bits_[0], 0x00000004U);
  }
  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:optimization_guide.proto.GetModelsRequest.origin_info)
}
inline ::optimization_guide::proto::OriginInfo* PROTOBUF_NULLABLE GetModelsRequest::release_origin_info() {
  ::google::protobuf::internal::TSanWrite(&_impl_);

  ClearHasBit(_impl_._has_bits_[0], 0x00000004U);
  ::optimization_guide::proto::OriginInfo* released = _impl_.origin_info_;
  _impl_.origin_info_ = nullptr;
  if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) {
    auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released);
    released = ::google::protobuf::internal::DuplicateIfNonNull(released);
    if (GetArena() == nullptr) {
      delete old;
    }
  } else {
    if (GetArena() != nullptr) {
      released = ::google::protobuf::internal::DuplicateIfNonNull(released);
    }
  }
  return released;
}
inline ::optimization_guide::proto::OriginInfo* PROTOBUF_NULLABLE GetModelsRequest::unsafe_arena_release_origin_info() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  // @@protoc_insertion_point(field_release:optimization_guide.proto.GetModelsRequest.origin_info)

  ClearHasBit(_impl_._has_bits_[0], 0x00000004U);
  ::optimization_guide::proto::OriginInfo* temp = _impl_.origin_info_;
  _impl_.origin_info_ = nullptr;
  return temp;
}
inline ::optimization_guide::proto::OriginInfo* PROTOBUF_NONNULL GetModelsRequest::_internal_mutable_origin_info() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (_impl_.origin_info_ == nullptr) {
    auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::optimization_guide::proto::OriginInfo>(GetArena());
    _impl_.origin_info_ = reinterpret_cast<::optimization_guide::proto::OriginInfo*>(p);
  }
  return _impl_.origin_info_;
}
inline ::optimization_guide::proto::OriginInfo* PROTOBUF_NONNULL GetModelsRequest::mutable_origin_info()
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  SetHasBit(_impl_._has_bits_[0], 0x00000004U);
  ::optimization_guide::proto::OriginInfo* _msg = _internal_mutable_origin_info();
  // @@protoc_insertion_point(field_mutable:optimization_guide.proto.GetModelsRequest.origin_info)
  return _msg;
}
inline void GetModelsRequest::set_allocated_origin_info(::optimization_guide::proto::OriginInfo* PROTOBUF_NULLABLE value) {
  ::google::protobuf::Arena* message_arena = GetArena();
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (message_arena == nullptr) {
    delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.origin_info_);
  }

  if (value != nullptr) {
    ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena();
    if (message_arena != submessage_arena) {
      value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena);
    }
    SetHasBit(_impl_._has_bits_[0], 0x00000004U);
  } else {
    ClearHasBit(_impl_._has_bits_[0], 0x00000004U);
  }

  _impl_.origin_info_ = reinterpret_cast<::optimization_guide::proto::OriginInfo*>(value);
  // @@protoc_insertion_point(field_set_allocated:optimization_guide.proto.GetModelsRequest.origin_info)
}

// -------------------------------------------------------------------

// GetModelsResponse

// repeated .optimization_guide.proto.PredictionModel models = 1;
inline int GetModelsResponse::_internal_models_size() const {
  return _internal_models().size();
}
inline int GetModelsResponse::models_size() const {
  return _internal_models_size();
}
inline void GetModelsResponse::clear_models() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.models_.Clear();
  ClearHasBit(_impl_._has_bits_[0], 0x00000001U);
}
inline const ::optimization_guide::proto::PredictionModel& GetModelsResponse::models(int index) const
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_get:optimization_guide.proto.GetModelsResponse.models)
  return _internal_models().Get(index);
}
inline ::optimization_guide::proto::PredictionModel* PROTOBUF_NONNULL GetModelsResponse::mutable_models(int index)
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_mutable:optimization_guide.proto.GetModelsResponse.models)
  return _internal_mutable_models()->Mutable(index);
}
inline ::optimization_guide::proto::PredictionModel* PROTOBUF_NONNULL GetModelsResponse::add_models()
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  ::optimization_guide::proto::PredictionModel* _add =
      _internal_mutable_models()->InternalAddWithArena(
          ::google::protobuf::MessageLite::internal_visibility(), GetArena());
  SetHasBit(_impl_._has_bits_[0], 0x00000001U);
  // @@protoc_insertion_point(field_add:optimization_guide.proto.GetModelsResponse.models)
  return _add;
}
inline const ::google::protobuf::RepeatedPtrField<::optimization_guide::proto::PredictionModel>& GetModelsResponse::models() const
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_list:optimization_guide.proto.GetModelsResponse.models)
  return _internal_models();
}
inline ::google::protobuf::RepeatedPtrField<::optimization_guide::proto::PredictionModel>* PROTOBUF_NONNULL
GetModelsResponse::mutable_models() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  SetHasBit(_impl_._has_bits_[0], 0x00000001U);
  // @@protoc_insertion_point(field_mutable_list:optimization_guide.proto.GetModelsResponse.models)
  ::google::protobuf::internal::TSanWrite(&_impl_);
  return _internal_mutable_models();
}
inline const ::google::protobuf::RepeatedPtrField<::optimization_guide::proto::PredictionModel>&
GetModelsResponse::_internal_models() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.models_;
}
inline ::google::protobuf::RepeatedPtrField<::optimization_guide::proto::PredictionModel>* PROTOBUF_NONNULL
GetModelsResponse::_internal_mutable_models() {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return &_impl_.models_;
}

// -------------------------------------------------------------------

// PredictionModel

// optional .optimization_guide.proto.ModelInfo model_info = 1;
inline bool PredictionModel::has_model_info() const {
  bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U);
  PROTOBUF_ASSUME(!value || _impl_.model_info_ != nullptr);
  return value;
}
inline void PredictionModel::clear_model_info() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (_impl_.model_info_ != nullptr) _impl_.model_info_->Clear();
  ClearHasBit(_impl_._has_bits_[0], 0x00000001U);
}
inline const ::optimization_guide::proto::ModelInfo& PredictionModel::_internal_model_info() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  const ::optimization_guide::proto::ModelInfo* p = _impl_.model_info_;
  return p != nullptr ? *p : *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance<::optimization_guide::proto::ModelInfo>(&::optimization_guide::proto::ModelInfo_globals_);
}
inline const ::optimization_guide::proto::ModelInfo& PredictionModel::model_info() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_get:optimization_guide.proto.PredictionModel.model_info)
  return _internal_model_info();
}
inline void PredictionModel::unsafe_arena_set_allocated_model_info(
    ::optimization_guide::proto::ModelInfo* PROTOBUF_NULLABLE value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (GetArena() == nullptr) {
    delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.model_info_);
  }
  _impl_.model_info_ = reinterpret_cast<::optimization_guide::proto::ModelInfo*>(value);
  if (value != nullptr) {
    SetHasBit(_impl_._has_bits_[0], 0x00000001U);
  } else {
    ClearHasBit(_impl_._has_bits_[0], 0x00000001U);
  }
  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:optimization_guide.proto.PredictionModel.model_info)
}
inline ::optimization_guide::proto::ModelInfo* PROTOBUF_NULLABLE PredictionModel::release_model_info() {
  ::google::protobuf::internal::TSanWrite(&_impl_);

  ClearHasBit(_impl_._has_bits_[0], 0x00000001U);
  ::optimization_guide::proto::ModelInfo* released = _impl_.model_info_;
  _impl_.model_info_ = nullptr;
  if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) {
    auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released);
    released = ::google::protobuf::internal::DuplicateIfNonNull(released);
    if (GetArena() == nullptr) {
      delete old;
    }
  } else {
    if (GetArena() != nullptr) {
      released = ::google::protobuf::internal::DuplicateIfNonNull(released);
    }
  }
  return released;
}
inline ::optimization_guide::proto::ModelInfo* PROTOBUF_NULLABLE PredictionModel::unsafe_arena_release_model_info() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  // @@protoc_insertion_point(field_release:optimization_guide.proto.PredictionModel.model_info)

  ClearHasBit(_impl_._has_bits_[0], 0x00000001U);
  ::optimization_guide::proto::ModelInfo* temp = _impl_.model_info_;
  _impl_.model_info_ = nullptr;
  return temp;
}
inline ::optimization_guide::proto::ModelInfo* PROTOBUF_NONNULL PredictionModel::_internal_mutable_model_info() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (_impl_.model_info_ == nullptr) {
    auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::optimization_guide::proto::ModelInfo>(GetArena());
    _impl_.model_info_ = reinterpret_cast<::optimization_guide::proto::ModelInfo*>(p);
  }
  return _impl_.model_info_;
}
inline ::optimization_guide::proto::ModelInfo* PROTOBUF_NONNULL PredictionModel::mutable_model_info()
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  SetHasBit(_impl_._has_bits_[0], 0x00000001U);
  ::optimization_guide::proto::ModelInfo* _msg = _internal_mutable_model_info();
  // @@protoc_insertion_point(field_mutable:optimization_guide.proto.PredictionModel.model_info)
  return _msg;
}
inline void PredictionModel::set_allocated_model_info(::optimization_guide::proto::ModelInfo* PROTOBUF_NULLABLE value) {
  ::google::protobuf::Arena* message_arena = GetArena();
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (message_arena == nullptr) {
    delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.model_info_);
  }

  if (value != nullptr) {
    ::google::protobuf::Arena* submessage_arena = value->GetArena();
    if (message_arena != submessage_arena) {
      value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena);
    }
    SetHasBit(_impl_._has_bits_[0], 0x00000001U);
  } else {
    ClearHasBit(_impl_._has_bits_[0], 0x00000001U);
  }

  _impl_.model_info_ = reinterpret_cast<::optimization_guide::proto::ModelInfo*>(value);
  // @@protoc_insertion_point(field_set_allocated:optimization_guide.proto.PredictionModel.model_info)
}

// optional .optimization_guide.proto.Model model = 2;
inline bool PredictionModel::has_model() const {
  bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U);
  PROTOBUF_ASSUME(!value || _impl_.model_ != nullptr);
  return value;
}
inline void PredictionModel::clear_model() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (_impl_.model_ != nullptr) _impl_.model_->Clear();
  ClearHasBit(_impl_._has_bits_[0], 0x00000002U);
}
inline const ::optimization_guide::proto::Model& PredictionModel::_internal_model() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  const ::optimization_guide::proto::Model* p = _impl_.model_;
  return p != nullptr ? *p : *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance<::optimization_guide::proto::Model>(&::optimization_guide::proto::Model_globals_);
}
inline const ::optimization_guide::proto::Model& PredictionModel::model() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_get:optimization_guide.proto.PredictionModel.model)
  return _internal_model();
}
inline void PredictionModel::unsafe_arena_set_allocated_model(
    ::optimization_guide::proto::Model* PROTOBUF_NULLABLE value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (GetArena() == nullptr) {
    delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.model_);
  }
  _impl_.model_ = reinterpret_cast<::optimization_guide::proto::Model*>(value);
  if (value != nullptr) {
    SetHasBit(_impl_._has_bits_[0], 0x00000002U);
  } else {
    ClearHasBit(_impl_._has_bits_[0], 0x00000002U);
  }
  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:optimization_guide.proto.PredictionModel.model)
}
inline ::optimization_guide::proto::Model* PROTOBUF_NULLABLE PredictionModel::release_model() {
  ::google::protobuf::internal::TSanWrite(&_impl_);

  ClearHasBit(_impl_._has_bits_[0], 0x00000002U);
  ::optimization_guide::proto::Model* released = _impl_.model_;
  _impl_.model_ = nullptr;
  if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) {
    auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released);
    released = ::google::protobuf::internal::DuplicateIfNonNull(released);
    if (GetArena() == nullptr) {
      delete old;
    }
  } else {
    if (GetArena() != nullptr) {
      released = ::google::protobuf::internal::DuplicateIfNonNull(released);
    }
  }
  return released;
}
inline ::optimization_guide::proto::Model* PROTOBUF_NULLABLE PredictionModel::unsafe_arena_release_model() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  // @@protoc_insertion_point(field_release:optimization_guide.proto.PredictionModel.model)

  ClearHasBit(_impl_._has_bits_[0], 0x00000002U);
  ::optimization_guide::proto::Model* temp = _impl_.model_;
  _impl_.model_ = nullptr;
  return temp;
}
inline ::optimization_guide::proto::Model* PROTOBUF_NONNULL PredictionModel::_internal_mutable_model() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (_impl_.model_ == nullptr) {
    auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::optimization_guide::proto::Model>(GetArena());
    _impl_.model_ = reinterpret_cast<::optimization_guide::proto::Model*>(p);
  }
  return _impl_.model_;
}
inline ::optimization_guide::proto::Model* PROTOBUF_NONNULL PredictionModel::mutable_model()
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  SetHasBit(_impl_._has_bits_[0], 0x00000002U);
  ::optimization_guide::proto::Model* _msg = _internal_mutable_model();
  // @@protoc_insertion_point(field_mutable:optimization_guide.proto.PredictionModel.model)
  return _msg;
}
inline void PredictionModel::set_allocated_model(::optimization_guide::proto::Model* PROTOBUF_NULLABLE value) {
  ::google::protobuf::Arena* message_arena = GetArena();
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (message_arena == nullptr) {
    delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.model_);
  }

  if (value != nullptr) {
    ::google::protobuf::Arena* submessage_arena = value->GetArena();
    if (message_arena != submessage_arena) {
      value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena);
    }
    SetHasBit(_impl_._has_bits_[0], 0x00000002U);
  } else {
    ClearHasBit(_impl_._has_bits_[0], 0x00000002U);
  }

  _impl_.model_ = reinterpret_cast<::optimization_guide::proto::Model*>(value);
  // @@protoc_insertion_point(field_set_allocated:optimization_guide.proto.PredictionModel.model)
}

// -------------------------------------------------------------------

// AdditionalModelFile

// optional string file_path = 1;
inline bool AdditionalModelFile::has_file_path() const {
  bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U);
  return value;
}
inline void AdditionalModelFile::clear_file_path() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.file_path_.ClearToEmpty();
  ClearHasBit(_impl_._has_bits_[0], 0x00000001U);
}
inline const ::std::string& AdditionalModelFile::file_path() const
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_get:optimization_guide.proto.AdditionalModelFile.file_path)
  return _internal_file_path();
}
template <typename Arg_, typename... Args_>
PROTOBUF_ALWAYS_INLINE void AdditionalModelFile::set_file_path(Arg_&& arg, Args_... args) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  SetHasBit(_impl_._has_bits_[0], 0x00000001U);
  _impl_.file_path_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
  // @@protoc_insertion_point(field_set:optimization_guide.proto.AdditionalModelFile.file_path)
}
inline ::std::string* PROTOBUF_NONNULL AdditionalModelFile::mutable_file_path()
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  SetHasBit(_impl_._has_bits_[0], 0x00000001U);
  ::std::string* _s = _internal_mutable_file_path();
  // @@protoc_insertion_point(field_mutable:optimization_guide.proto.AdditionalModelFile.file_path)
  return _s;
}
inline const ::std::string& AdditionalModelFile::_internal_file_path() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.file_path_.Get();
}
inline void AdditionalModelFile::_internal_set_file_path(const ::std::string& value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.file_path_.Set(value, GetArena());
}
inline ::std::string* PROTOBUF_NONNULL AdditionalModelFile::_internal_mutable_file_path() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  return _impl_.file_path_.Mutable( GetArena());
}
inline ::std::string* PROTOBUF_NULLABLE AdditionalModelFile::release_file_path() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  // @@protoc_insertion_point(field_release:optimization_guide.proto.AdditionalModelFile.file_path)
  if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) {
    return nullptr;
  }
  ClearHasBit(_impl_._has_bits_[0], 0x00000001U);
  auto* released = _impl_.file_path_.Release();
  if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) {
    _impl_.file_path_.Set("", GetArena());
  }
  return released;
}
inline void AdditionalModelFile::set_allocated_file_path(::std::string* PROTOBUF_NULLABLE value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (value != nullptr) {
    SetHasBit(_impl_._has_bits_[0], 0x00000001U);
  } else {
    ClearHasBit(_impl_._has_bits_[0], 0x00000001U);
  }
  _impl_.file_path_.SetAllocated(value, GetArena());
  if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.file_path_.IsDefault()) {
    _impl_.file_path_.Set("", GetArena());
  }
  // @@protoc_insertion_point(field_set_allocated:optimization_guide.proto.AdditionalModelFile.file_path)
}

// -------------------------------------------------------------------

// ModelInfo

// optional .optimization_guide.proto.OptimizationTarget optimization_target = 1;
inline bool ModelInfo::has_optimization_target() const {
  bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000080U);
  return value;
}
inline void ModelInfo::clear_optimization_target() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.optimization_target_ = 0;
  ClearHasBit(_impl_._has_bits_[0], 0x00000080U);
}
inline ::optimization_guide::proto::OptimizationTarget ModelInfo::optimization_target() const {
  // @@protoc_insertion_point(field_get:optimization_guide.proto.ModelInfo.optimization_target)
  return _internal_optimization_target();
}
inline void ModelInfo::set_optimization_target(::optimization_guide::proto::OptimizationTarget value) {
  _internal_set_optimization_target(value);
  SetHasBit(_impl_._has_bits_[0], 0x00000080U);
  // @@protoc_insertion_point(field_set:optimization_guide.proto.ModelInfo.optimization_target)
}
inline ::optimization_guide::proto::OptimizationTarget ModelInfo::_internal_optimization_target() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return static_cast<::optimization_guide::proto::OptimizationTarget>(_impl_.optimization_target_);
}
inline void ModelInfo::_internal_set_optimization_target(::optimization_guide::proto::OptimizationTarget value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);

                                          assert(::google::protobuf::internal::ValidateEnum(
                                              value, ::optimization_guide::proto::OptimizationTarget_internal_data_));
                                          _impl_.optimization_target_ = value;
}

// optional int64 version = 2;
inline bool ModelInfo::has_version() const {
  bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000040U);
  return value;
}
inline void ModelInfo::clear_version() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.version_ = ::int64_t{0};
  ClearHasBit(_impl_._has_bits_[0], 0x00000040U);
}
inline ::int64_t ModelInfo::version() const {
  // @@protoc_insertion_point(field_get:optimization_guide.proto.ModelInfo.version)
  return _internal_version();
}
inline void ModelInfo::set_version(::int64_t value) {
  _internal_set_version(value);
  SetHasBit(_impl_._has_bits_[0], 0x00000040U);
  // @@protoc_insertion_point(field_set:optimization_guide.proto.ModelInfo.version)
}
inline ::int64_t ModelInfo::_internal_version() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.version_;
}
inline void ModelInfo::_internal_set_version(::int64_t value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.version_ = value;
}

// repeated .optimization_guide.proto.ModelEngineVersion supported_model_engine_versions = 4;
inline int ModelInfo::_internal_supported_model_engine_versions_size() const {
  return _internal_supported_model_engine_versions().size();
}
inline int ModelInfo::supported_model_engine_versions_size() const {
  return _internal_supported_model_engine_versions_size();
}
inline void ModelInfo::clear_supported_model_engine_versions() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.supported_model_engine_versions_.Clear();
  ClearHasBit(_impl_._has_bits_[0], 0x00000001U);
}
inline ::optimization_guide::proto::ModelEngineVersion ModelInfo::supported_model_engine_versions(int index) const {
  // @@protoc_insertion_point(field_get:optimization_guide.proto.ModelInfo.supported_model_engine_versions)
  return static_cast<::optimization_guide::proto::ModelEngineVersion>(_internal_supported_model_engine_versions().Get(index));
}
inline void ModelInfo::set_supported_model_engine_versions(int index, ::optimization_guide::proto::ModelEngineVersion value) {

                                          assert(::google::protobuf::internal::ValidateEnum(
                                              value, ::optimization_guide::proto::ModelEngineVersion_internal_data_));
                                          _internal_mutable_supported_model_engine_versions()->Set(index, value);
  // @@protoc_insertion_point(field_set:optimization_guide.proto.ModelInfo.supported_model_engine_versions)
}
inline void ModelInfo::add_supported_model_engine_versions(::optimization_guide::proto::ModelEngineVersion value) {

                                          assert(::google::protobuf::internal::ValidateEnum(
                                              value, ::optimization_guide::proto::ModelEngineVersion_internal_data_));
                                          ::google::protobuf::internal::TSanWrite(&_impl_);
  _internal_mutable_supported_model_engine_versions()
      ->InternalAddWithArena<const ::google::protobuf::MessageLite*>(
          internal_visibility(), this, value);
  SetHasBit(_impl_._has_bits_[0], 0x00000001U);
  // @@protoc_insertion_point(field_add:optimization_guide.proto.ModelInfo.supported_model_engine_versions)
}
inline const ::google::protobuf::RepeatedField<int>& ModelInfo::supported_model_engine_versions() const
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_list:optimization_guide.proto.ModelInfo.supported_model_engine_versions)
  return _internal_supported_model_engine_versions();
}
inline ::google::protobuf::RepeatedField<int>* PROTOBUF_NONNULL ModelInfo::mutable_supported_model_engine_versions()
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  SetHasBit(_impl_._has_bits_[0], 0x00000001U);
  // @@protoc_insertion_point(field_mutable_list:optimization_guide.proto.ModelInfo.supported_model_engine_versions)
  ::google::protobuf::internal::TSanWrite(&_impl_);
  return _internal_mutable_supported_model_engine_versions();
}
inline const ::google::protobuf::RepeatedField<int>& ModelInfo::_internal_supported_model_engine_versions()
    const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.supported_model_engine_versions_;
}
inline ::google::protobuf::RepeatedField<int>* PROTOBUF_NONNULL
ModelInfo::_internal_mutable_supported_model_engine_versions() {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return &_impl_.supported_model_engine_versions_;
}

// repeated string supported_host_model_features = 5;
inline int ModelInfo::_internal_supported_host_model_features_size() const {
  return _internal_supported_host_model_features().size();
}
inline int ModelInfo::supported_host_model_features_size() const {
  return _internal_supported_host_model_features_size();
}
inline void ModelInfo::clear_supported_host_model_features() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.supported_host_model_features_.Clear();
  ClearHasBit(_impl_._has_bits_[0], 0x00000002U);
}
inline ::std::string* PROTOBUF_NONNULL ModelInfo::add_supported_host_model_features()
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  ::std::string* _s =
      _internal_mutable_supported_host_model_features()->InternalAddWithArena(
          ::google::protobuf::MessageLite::internal_visibility(), GetArena());
  SetHasBit(_impl_._has_bits_[0], 0x00000002U);
  // @@protoc_insertion_point(field_add_mutable:optimization_guide.proto.ModelInfo.supported_host_model_features)
  return _s;
}
inline const ::std::string& ModelInfo::supported_host_model_features(int index) const
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_get:optimization_guide.proto.ModelInfo.supported_host_model_features)
  return _internal_supported_host_model_features().Get(index);
}
inline ::std::string* PROTOBUF_NONNULL ModelInfo::mutable_supported_host_model_features(int index)
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_mutable:optimization_guide.proto.ModelInfo.supported_host_model_features)
  return _internal_mutable_supported_host_model_features()->Mutable(index);
}
template <typename Arg_, typename... Args_>
inline void ModelInfo::set_supported_host_model_features(int index, Arg_&& value, Args_... args) {
  ::google::protobuf::internal::AssignToString(
      *_internal_mutable_supported_host_model_features()->Mutable(index),
      ::std::forward<Arg_>(value), args... );
  // @@protoc_insertion_point(field_set:optimization_guide.proto.ModelInfo.supported_host_model_features)
}
template <typename Arg_, typename... Args_>
inline void ModelInfo::add_supported_host_model_features(Arg_&& value, Args_... args) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  ::google::protobuf::internal::AddToRepeatedPtrField(
      ::google::protobuf::MessageLite::internal_visibility(), GetArena(),
      *_internal_mutable_supported_host_model_features(), ::std::forward<Arg_>(value),
      args... );
  SetHasBit(_impl_._has_bits_[0], 0x00000002U);
  // @@protoc_insertion_point(field_add:optimization_guide.proto.ModelInfo.supported_host_model_features)
}
inline const ::google::protobuf::RepeatedPtrField<::std::string>& ModelInfo::supported_host_model_features()
    const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_list:optimization_guide.proto.ModelInfo.supported_host_model_features)
  return _internal_supported_host_model_features();
}
inline ::google::protobuf::RepeatedPtrField<::std::string>* PROTOBUF_NONNULL
ModelInfo::mutable_supported_host_model_features() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  SetHasBit(_impl_._has_bits_[0], 0x00000002U);
  // @@protoc_insertion_point(field_mutable_list:optimization_guide.proto.ModelInfo.supported_host_model_features)
  ::google::protobuf::internal::TSanWrite(&_impl_);
  return _internal_mutable_supported_host_model_features();
}
inline const ::google::protobuf::RepeatedPtrField<::std::string>&
ModelInfo::_internal_supported_host_model_features() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.supported_host_model_features_;
}
inline ::google::protobuf::RepeatedPtrField<::std::string>* PROTOBUF_NONNULL
ModelInfo::_internal_mutable_supported_host_model_features() {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return &_impl_.supported_host_model_features_;
}

// repeated .optimization_guide.proto.AdditionalModelFile additional_files = 7;
inline int ModelInfo::_internal_additional_files_size() const {
  return _internal_additional_files().size();
}
inline int ModelInfo::additional_files_size() const {
  return _internal_additional_files_size();
}
inline void ModelInfo::clear_additional_files() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.additional_files_.Clear();
  ClearHasBit(_impl_._has_bits_[0], 0x00000004U);
}
inline const ::optimization_guide::proto::AdditionalModelFile& ModelInfo::additional_files(int index) const
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_get:optimization_guide.proto.ModelInfo.additional_files)
  return _internal_additional_files().Get(index);
}
inline ::optimization_guide::proto::AdditionalModelFile* PROTOBUF_NONNULL ModelInfo::mutable_additional_files(int index)
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_mutable:optimization_guide.proto.ModelInfo.additional_files)
  return _internal_mutable_additional_files()->Mutable(index);
}
inline ::optimization_guide::proto::AdditionalModelFile* PROTOBUF_NONNULL ModelInfo::add_additional_files()
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  ::optimization_guide::proto::AdditionalModelFile* _add =
      _internal_mutable_additional_files()->InternalAddWithArena(
          ::google::protobuf::MessageLite::internal_visibility(), GetArena());
  SetHasBit(_impl_._has_bits_[0], 0x00000004U);
  // @@protoc_insertion_point(field_add:optimization_guide.proto.ModelInfo.additional_files)
  return _add;
}
inline const ::google::protobuf::RepeatedPtrField<::optimization_guide::proto::AdditionalModelFile>& ModelInfo::additional_files() const
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_list:optimization_guide.proto.ModelInfo.additional_files)
  return _internal_additional_files();
}
inline ::google::protobuf::RepeatedPtrField<::optimization_guide::proto::AdditionalModelFile>* PROTOBUF_NONNULL
ModelInfo::mutable_additional_files() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  SetHasBit(_impl_._has_bits_[0], 0x00000004U);
  // @@protoc_insertion_point(field_mutable_list:optimization_guide.proto.ModelInfo.additional_files)
  ::google::protobuf::internal::TSanWrite(&_impl_);
  return _internal_mutable_additional_files();
}
inline const ::google::protobuf::RepeatedPtrField<::optimization_guide::proto::AdditionalModelFile>&
ModelInfo::_internal_additional_files() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.additional_files_;
}
inline ::google::protobuf::RepeatedPtrField<::optimization_guide::proto::AdditionalModelFile>* PROTOBUF_NONNULL
ModelInfo::_internal_mutable_additional_files() {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return &_impl_.additional_files_;
}

// optional .optimization_guide.proto.Duration valid_duration = 8;
inline bool ModelInfo::has_valid_duration() const {
  bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000010U);
  PROTOBUF_ASSUME(!value || _impl_.valid_duration_ != nullptr);
  return value;
}
inline const ::optimization_guide::proto::Duration& ModelInfo::_internal_valid_duration() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  const ::optimization_guide::proto::Duration* p = _impl_.valid_duration_;
  return p != nullptr ? *p : *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance<::optimization_guide::proto::Duration>(&::optimization_guide::proto::Duration_globals_);
}
inline const ::optimization_guide::proto::Duration& ModelInfo::valid_duration() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_get:optimization_guide.proto.ModelInfo.valid_duration)
  return _internal_valid_duration();
}
inline void ModelInfo::unsafe_arena_set_allocated_valid_duration(
    ::optimization_guide::proto::Duration* PROTOBUF_NULLABLE value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (GetArena() == nullptr) {
    delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.valid_duration_);
  }
  _impl_.valid_duration_ = reinterpret_cast<::optimization_guide::proto::Duration*>(value);
  if (value != nullptr) {
    SetHasBit(_impl_._has_bits_[0], 0x00000010U);
  } else {
    ClearHasBit(_impl_._has_bits_[0], 0x00000010U);
  }
  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:optimization_guide.proto.ModelInfo.valid_duration)
}
inline ::optimization_guide::proto::Duration* PROTOBUF_NULLABLE ModelInfo::release_valid_duration() {
  ::google::protobuf::internal::TSanWrite(&_impl_);

  ClearHasBit(_impl_._has_bits_[0], 0x00000010U);
  ::optimization_guide::proto::Duration* released = _impl_.valid_duration_;
  _impl_.valid_duration_ = nullptr;
  if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) {
    auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released);
    released = ::google::protobuf::internal::DuplicateIfNonNull(released);
    if (GetArena() == nullptr) {
      delete old;
    }
  } else {
    if (GetArena() != nullptr) {
      released = ::google::protobuf::internal::DuplicateIfNonNull(released);
    }
  }
  return released;
}
inline ::optimization_guide::proto::Duration* PROTOBUF_NULLABLE ModelInfo::unsafe_arena_release_valid_duration() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  // @@protoc_insertion_point(field_release:optimization_guide.proto.ModelInfo.valid_duration)

  ClearHasBit(_impl_._has_bits_[0], 0x00000010U);
  ::optimization_guide::proto::Duration* temp = _impl_.valid_duration_;
  _impl_.valid_duration_ = nullptr;
  return temp;
}
inline ::optimization_guide::proto::Duration* PROTOBUF_NONNULL ModelInfo::_internal_mutable_valid_duration() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (_impl_.valid_duration_ == nullptr) {
    auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::optimization_guide::proto::Duration>(GetArena());
    _impl_.valid_duration_ = reinterpret_cast<::optimization_guide::proto::Duration*>(p);
  }
  return _impl_.valid_duration_;
}
inline ::optimization_guide::proto::Duration* PROTOBUF_NONNULL ModelInfo::mutable_valid_duration()
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  SetHasBit(_impl_._has_bits_[0], 0x00000010U);
  ::optimization_guide::proto::Duration* _msg = _internal_mutable_valid_duration();
  // @@protoc_insertion_point(field_mutable:optimization_guide.proto.ModelInfo.valid_duration)
  return _msg;
}
inline void ModelInfo::set_allocated_valid_duration(::optimization_guide::proto::Duration* PROTOBUF_NULLABLE value) {
  ::google::protobuf::Arena* message_arena = GetArena();
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (message_arena == nullptr) {
    delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.valid_duration_);
  }

  if (value != nullptr) {
    ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena();
    if (message_arena != submessage_arena) {
      value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena);
    }
    SetHasBit(_impl_._has_bits_[0], 0x00000010U);
  } else {
    ClearHasBit(_impl_._has_bits_[0], 0x00000010U);
  }

  _impl_.valid_duration_ = reinterpret_cast<::optimization_guide::proto::Duration*>(value);
  // @@protoc_insertion_point(field_set_allocated:optimization_guide.proto.ModelInfo.valid_duration)
}

// optional bool keep_beyond_valid_duration = 9;
inline bool ModelInfo::has_keep_beyond_valid_duration() const {
  bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000100U);
  return value;
}
inline void ModelInfo::clear_keep_beyond_valid_duration() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.keep_beyond_valid_duration_ = false;
  ClearHasBit(_impl_._has_bits_[0], 0x00000100U);
}
inline bool ModelInfo::keep_beyond_valid_duration() const {
  // @@protoc_insertion_point(field_get:optimization_guide.proto.ModelInfo.keep_beyond_valid_duration)
  return _internal_keep_beyond_valid_duration();
}
inline void ModelInfo::set_keep_beyond_valid_duration(bool value) {
  _internal_set_keep_beyond_valid_duration(value);
  SetHasBit(_impl_._has_bits_[0], 0x00000100U);
  // @@protoc_insertion_point(field_set:optimization_guide.proto.ModelInfo.keep_beyond_valid_duration)
}
inline bool ModelInfo::_internal_keep_beyond_valid_duration() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.keep_beyond_valid_duration_;
}
inline void ModelInfo::_internal_set_keep_beyond_valid_duration(bool value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.keep_beyond_valid_duration_ = value;
}

// optional .optimization_guide.proto.Any model_metadata = 6;
inline bool ModelInfo::has_model_metadata() const {
  bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000008U);
  PROTOBUF_ASSUME(!value || _impl_.model_metadata_ != nullptr);
  return value;
}
inline const ::optimization_guide::proto::Any& ModelInfo::_internal_model_metadata() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  const ::optimization_guide::proto::Any* p = _impl_.model_metadata_;
  return p != nullptr ? *p : *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance<::optimization_guide::proto::Any>(&::optimization_guide::proto::Any_globals_);
}
inline const ::optimization_guide::proto::Any& ModelInfo::model_metadata() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_get:optimization_guide.proto.ModelInfo.model_metadata)
  return _internal_model_metadata();
}
inline void ModelInfo::unsafe_arena_set_allocated_model_metadata(
    ::optimization_guide::proto::Any* PROTOBUF_NULLABLE value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (GetArena() == nullptr) {
    delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.model_metadata_);
  }
  _impl_.model_metadata_ = reinterpret_cast<::optimization_guide::proto::Any*>(value);
  if (value != nullptr) {
    SetHasBit(_impl_._has_bits_[0], 0x00000008U);
  } else {
    ClearHasBit(_impl_._has_bits_[0], 0x00000008U);
  }
  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:optimization_guide.proto.ModelInfo.model_metadata)
}
inline ::optimization_guide::proto::Any* PROTOBUF_NULLABLE ModelInfo::release_model_metadata() {
  ::google::protobuf::internal::TSanWrite(&_impl_);

  ClearHasBit(_impl_._has_bits_[0], 0x00000008U);
  ::optimization_guide::proto::Any* released = _impl_.model_metadata_;
  _impl_.model_metadata_ = nullptr;
  if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) {
    auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released);
    released = ::google::protobuf::internal::DuplicateIfNonNull(released);
    if (GetArena() == nullptr) {
      delete old;
    }
  } else {
    if (GetArena() != nullptr) {
      released = ::google::protobuf::internal::DuplicateIfNonNull(released);
    }
  }
  return released;
}
inline ::optimization_guide::proto::Any* PROTOBUF_NULLABLE ModelInfo::unsafe_arena_release_model_metadata() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  // @@protoc_insertion_point(field_release:optimization_guide.proto.ModelInfo.model_metadata)

  ClearHasBit(_impl_._has_bits_[0], 0x00000008U);
  ::optimization_guide::proto::Any* temp = _impl_.model_metadata_;
  _impl_.model_metadata_ = nullptr;
  return temp;
}
inline ::optimization_guide::proto::Any* PROTOBUF_NONNULL ModelInfo::_internal_mutable_model_metadata() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (_impl_.model_metadata_ == nullptr) {
    auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::optimization_guide::proto::Any>(GetArena());
    _impl_.model_metadata_ = reinterpret_cast<::optimization_guide::proto::Any*>(p);
  }
  return _impl_.model_metadata_;
}
inline ::optimization_guide::proto::Any* PROTOBUF_NONNULL ModelInfo::mutable_model_metadata()
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  SetHasBit(_impl_._has_bits_[0], 0x00000008U);
  ::optimization_guide::proto::Any* _msg = _internal_mutable_model_metadata();
  // @@protoc_insertion_point(field_mutable:optimization_guide.proto.ModelInfo.model_metadata)
  return _msg;
}
inline void ModelInfo::set_allocated_model_metadata(::optimization_guide::proto::Any* PROTOBUF_NULLABLE value) {
  ::google::protobuf::Arena* message_arena = GetArena();
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (message_arena == nullptr) {
    delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.model_metadata_);
  }

  if (value != nullptr) {
    ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena();
    if (message_arena != submessage_arena) {
      value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena);
    }
    SetHasBit(_impl_._has_bits_[0], 0x00000008U);
  } else {
    ClearHasBit(_impl_._has_bits_[0], 0x00000008U);
  }

  _impl_.model_metadata_ = reinterpret_cast<::optimization_guide::proto::Any*>(value);
  // @@protoc_insertion_point(field_set_allocated:optimization_guide.proto.ModelInfo.model_metadata)
}

// optional .optimization_guide.proto.ModelCacheKey model_cache_key = 10;
inline bool ModelInfo::has_model_cache_key() const {
  bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000020U);
  PROTOBUF_ASSUME(!value || _impl_.model_cache_key_ != nullptr);
  return value;
}
inline void ModelInfo::clear_model_cache_key() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (_impl_.model_cache_key_ != nullptr) _impl_.model_cache_key_->Clear();
  ClearHasBit(_impl_._has_bits_[0], 0x00000020U);
}
inline const ::optimization_guide::proto::ModelCacheKey& ModelInfo::_internal_model_cache_key() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  const ::optimization_guide::proto::ModelCacheKey* p = _impl_.model_cache_key_;
  return p != nullptr ? *p : *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance<::optimization_guide::proto::ModelCacheKey>(&::optimization_guide::proto::ModelCacheKey_globals_);
}
inline const ::optimization_guide::proto::ModelCacheKey& ModelInfo::model_cache_key() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_get:optimization_guide.proto.ModelInfo.model_cache_key)
  return _internal_model_cache_key();
}
inline void ModelInfo::unsafe_arena_set_allocated_model_cache_key(
    ::optimization_guide::proto::ModelCacheKey* PROTOBUF_NULLABLE value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (GetArena() == nullptr) {
    delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.model_cache_key_);
  }
  _impl_.model_cache_key_ = reinterpret_cast<::optimization_guide::proto::ModelCacheKey*>(value);
  if (value != nullptr) {
    SetHasBit(_impl_._has_bits_[0], 0x00000020U);
  } else {
    ClearHasBit(_impl_._has_bits_[0], 0x00000020U);
  }
  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:optimization_guide.proto.ModelInfo.model_cache_key)
}
inline ::optimization_guide::proto::ModelCacheKey* PROTOBUF_NULLABLE ModelInfo::release_model_cache_key() {
  ::google::protobuf::internal::TSanWrite(&_impl_);

  ClearHasBit(_impl_._has_bits_[0], 0x00000020U);
  ::optimization_guide::proto::ModelCacheKey* released = _impl_.model_cache_key_;
  _impl_.model_cache_key_ = nullptr;
  if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) {
    auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released);
    released = ::google::protobuf::internal::DuplicateIfNonNull(released);
    if (GetArena() == nullptr) {
      delete old;
    }
  } else {
    if (GetArena() != nullptr) {
      released = ::google::protobuf::internal::DuplicateIfNonNull(released);
    }
  }
  return released;
}
inline ::optimization_guide::proto::ModelCacheKey* PROTOBUF_NULLABLE ModelInfo::unsafe_arena_release_model_cache_key() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  // @@protoc_insertion_point(field_release:optimization_guide.proto.ModelInfo.model_cache_key)

  ClearHasBit(_impl_._has_bits_[0], 0x00000020U);
  ::optimization_guide::proto::ModelCacheKey* temp = _impl_.model_cache_key_;
  _impl_.model_cache_key_ = nullptr;
  return temp;
}
inline ::optimization_guide::proto::ModelCacheKey* PROTOBUF_NONNULL ModelInfo::_internal_mutable_model_cache_key() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (_impl_.model_cache_key_ == nullptr) {
    auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::optimization_guide::proto::ModelCacheKey>(GetArena());
    _impl_.model_cache_key_ = reinterpret_cast<::optimization_guide::proto::ModelCacheKey*>(p);
  }
  return _impl_.model_cache_key_;
}
inline ::optimization_guide::proto::ModelCacheKey* PROTOBUF_NONNULL ModelInfo::mutable_model_cache_key()
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  SetHasBit(_impl_._has_bits_[0], 0x00000020U);
  ::optimization_guide::proto::ModelCacheKey* _msg = _internal_mutable_model_cache_key();
  // @@protoc_insertion_point(field_mutable:optimization_guide.proto.ModelInfo.model_cache_key)
  return _msg;
}
inline void ModelInfo::set_allocated_model_cache_key(::optimization_guide::proto::ModelCacheKey* PROTOBUF_NULLABLE value) {
  ::google::protobuf::Arena* message_arena = GetArena();
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (message_arena == nullptr) {
    delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.model_cache_key_);
  }

  if (value != nullptr) {
    ::google::protobuf::Arena* submessage_arena = value->GetArena();
    if (message_arena != submessage_arena) {
      value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena);
    }
    SetHasBit(_impl_._has_bits_[0], 0x00000020U);
  } else {
    ClearHasBit(_impl_._has_bits_[0], 0x00000020U);
  }

  _impl_.model_cache_key_ = reinterpret_cast<::optimization_guide::proto::ModelCacheKey*>(value);
  // @@protoc_insertion_point(field_set_allocated:optimization_guide.proto.ModelInfo.model_cache_key)
}

// -------------------------------------------------------------------

// ModelCacheKey

// optional string locale = 1;
inline bool ModelCacheKey::has_locale() const {
  bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U);
  return value;
}
inline void ModelCacheKey::clear_locale() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.locale_.ClearToEmpty();
  ClearHasBit(_impl_._has_bits_[0], 0x00000001U);
}
inline const ::std::string& ModelCacheKey::locale() const
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_get:optimization_guide.proto.ModelCacheKey.locale)
  return _internal_locale();
}
template <typename Arg_, typename... Args_>
PROTOBUF_ALWAYS_INLINE void ModelCacheKey::set_locale(Arg_&& arg, Args_... args) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  SetHasBit(_impl_._has_bits_[0], 0x00000001U);
  _impl_.locale_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
  // @@protoc_insertion_point(field_set:optimization_guide.proto.ModelCacheKey.locale)
}
inline ::std::string* PROTOBUF_NONNULL ModelCacheKey::mutable_locale()
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  SetHasBit(_impl_._has_bits_[0], 0x00000001U);
  ::std::string* _s = _internal_mutable_locale();
  // @@protoc_insertion_point(field_mutable:optimization_guide.proto.ModelCacheKey.locale)
  return _s;
}
inline const ::std::string& ModelCacheKey::_internal_locale() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.locale_.Get();
}
inline void ModelCacheKey::_internal_set_locale(const ::std::string& value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.locale_.Set(value, GetArena());
}
inline ::std::string* PROTOBUF_NONNULL ModelCacheKey::_internal_mutable_locale() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  return _impl_.locale_.Mutable( GetArena());
}
inline ::std::string* PROTOBUF_NULLABLE ModelCacheKey::release_locale() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  // @@protoc_insertion_point(field_release:optimization_guide.proto.ModelCacheKey.locale)
  if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) {
    return nullptr;
  }
  ClearHasBit(_impl_._has_bits_[0], 0x00000001U);
  auto* released = _impl_.locale_.Release();
  if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) {
    _impl_.locale_.Set("", GetArena());
  }
  return released;
}
inline void ModelCacheKey::set_allocated_locale(::std::string* PROTOBUF_NULLABLE value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (value != nullptr) {
    SetHasBit(_impl_._has_bits_[0], 0x00000001U);
  } else {
    ClearHasBit(_impl_._has_bits_[0], 0x00000001U);
  }
  _impl_.locale_.SetAllocated(value, GetArena());
  if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.locale_.IsDefault()) {
    _impl_.locale_.Set("", GetArena());
  }
  // @@protoc_insertion_point(field_set_allocated:optimization_guide.proto.ModelCacheKey.locale)
}

#ifdef __GNUC__
#pragma GCC diagnostic pop
#endif  // __GNUC__

// @@protoc_insertion_point(namespace_scope)
}  // namespace proto
}  // namespace optimization_guide


namespace google {
namespace protobuf {

template <>
struct is_proto_enum<::optimization_guide::proto::OptimizationTarget> : std::true_type {};
template <>
struct internal::LiteEnumFuncs<::optimization_guide::proto::OptimizationTarget> {
  static constexpr bool kIsDefined = true;
  static constexpr auto kParseFunc = ::optimization_guide::proto::OptimizationTarget_Parse;
  static constexpr auto kNameFunc = ::optimization_guide::proto::OptimizationTarget_Name<int>;
};
template <>
struct is_proto_enum<::optimization_guide::proto::ModelEngineVersion> : std::true_type {};
template <>
struct internal::LiteEnumFuncs<::optimization_guide::proto::ModelEngineVersion> {
  static constexpr bool kIsDefined = true;
  static constexpr auto kParseFunc = ::optimization_guide::proto::ModelEngineVersion_Parse;
  static constexpr auto kNameFunc = ::optimization_guide::proto::ModelEngineVersion_Name<int>;
};

}  // namespace protobuf
}  // namespace google

// @@protoc_insertion_point(global_scope)

#include "google/protobuf/port_undef.inc"
// clang-format on

#endif  // components_2foptimization_5fguide_2fproto_2fmodels_2eproto_2epb_2eh
