// Generated by the proto_extras plugin. DO NOT EDIT!
// source: components/optimization_guide/proto/on_device_base_model_metadata.proto

#include "components/optimization_guide/proto/on_device_base_model_metadata.equal.h"



#include "components/optimization_guide/proto/on_device_base_model_metadata.pb.h"


namespace optimization_guide {
namespace proto {
bool operator==(const OnDeviceBaseModelMetadata& lhs, const OnDeviceBaseModelMetadata& rhs) {
  if (&lhs == &rhs) return true;
  if (lhs.unknown_fields() != rhs.unknown_fields()) return false;
  if (lhs.has_base_model_name() != rhs.has_base_model_name()) return false;
  if (lhs.has_base_model_name() && lhs.base_model_name() != rhs.base_model_name()) return false;
  if (lhs.has_base_model_version() != rhs.has_base_model_version()) return false;
  if (lhs.has_base_model_version() && lhs.base_model_version() != rhs.base_model_version()) return false;
  if (lhs.supported_performance_hints().size() != rhs.supported_performance_hints().size()) return false;
  for (int i = 0; i < lhs.supported_performance_hints().size(); ++i) {
    if (lhs.supported_performance_hints()[i] != rhs.supported_performance_hints()[i]) return false;
  }
  return true;
}

bool operator!=(const OnDeviceBaseModelMetadata& lhs, const OnDeviceBaseModelMetadata& rhs) {
  return !(lhs == rhs);
}
}  // namespace proto
}  // namespace optimization_guide

