// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: second/protos/similarity.proto

#ifndef GOOGLE_PROTOBUF_INCLUDED_second_2fprotos_2fsimilarity_2eproto
#define GOOGLE_PROTOBUF_INCLUDED_second_2fprotos_2fsimilarity_2eproto

#include <limits>
#include <string>

#include <google/protobuf/port_def.inc>
#if PROTOBUF_VERSION < 3009000
#error This file was generated by a newer version of protoc which is
#error incompatible with your Protocol Buffer headers. Please update
#error your headers.
#endif
#if 3009002 < PROTOBUF_MIN_PROTOC_VERSION
#error This file was generated by an older version of protoc which is
#error incompatible with your Protocol Buffer headers. Please
#error regenerate this file with a newer version of protoc.
#endif

#include <google/protobuf/port_undef.inc>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/arena.h>
#include <google/protobuf/arenastring.h>
#include <google/protobuf/generated_message_table_driven.h>
#include <google/protobuf/generated_message_util.h>
#include <google/protobuf/inlined_string_field.h>
#include <google/protobuf/metadata.h>
#include <google/protobuf/generated_message_reflection.h>
#include <google/protobuf/message.h>
#include <google/protobuf/repeated_field.h>  // IWYU pragma: export
#include <google/protobuf/extension_set.h>  // IWYU pragma: export
#include <google/protobuf/unknown_field_set.h>
// @@protoc_insertion_point(includes)
#include <google/protobuf/port_def.inc>
#define PROTOBUF_INTERNAL_EXPORT_second_2fprotos_2fsimilarity_2eproto
PROTOBUF_NAMESPACE_OPEN
namespace internal {
class AnyMetadata;
}  // namespace internal
PROTOBUF_NAMESPACE_CLOSE

// Internal implementation detail -- do not use these members.
struct TableStruct_second_2fprotos_2fsimilarity_2eproto {
  static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
    PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[]
    PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[4]
    PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
  static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
  static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[];
};
extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_second_2fprotos_2fsimilarity_2eproto;
namespace second {
namespace protos {
class DistanceSimilarity;
class DistanceSimilarityDefaultTypeInternal;
extern DistanceSimilarityDefaultTypeInternal _DistanceSimilarity_default_instance_;
class NearestIouSimilarity;
class NearestIouSimilarityDefaultTypeInternal;
extern NearestIouSimilarityDefaultTypeInternal _NearestIouSimilarity_default_instance_;
class RegionSimilarityCalculator;
class RegionSimilarityCalculatorDefaultTypeInternal;
extern RegionSimilarityCalculatorDefaultTypeInternal _RegionSimilarityCalculator_default_instance_;
class RotateIouSimilarity;
class RotateIouSimilarityDefaultTypeInternal;
extern RotateIouSimilarityDefaultTypeInternal _RotateIouSimilarity_default_instance_;
}  // namespace protos
}  // namespace second
PROTOBUF_NAMESPACE_OPEN
template<> ::second::protos::DistanceSimilarity* Arena::CreateMaybeMessage<::second::protos::DistanceSimilarity>(Arena*);
template<> ::second::protos::NearestIouSimilarity* Arena::CreateMaybeMessage<::second::protos::NearestIouSimilarity>(Arena*);
template<> ::second::protos::RegionSimilarityCalculator* Arena::CreateMaybeMessage<::second::protos::RegionSimilarityCalculator>(Arena*);
template<> ::second::protos::RotateIouSimilarity* Arena::CreateMaybeMessage<::second::protos::RotateIouSimilarity>(Arena*);
PROTOBUF_NAMESPACE_CLOSE
namespace second {
namespace protos {

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

class RegionSimilarityCalculator :
    public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:second.protos.RegionSimilarityCalculator) */ {
 public:
  RegionSimilarityCalculator();
  virtual ~RegionSimilarityCalculator();

  RegionSimilarityCalculator(const RegionSimilarityCalculator& from);
  RegionSimilarityCalculator(RegionSimilarityCalculator&& from) noexcept
    : RegionSimilarityCalculator() {
    *this = ::std::move(from);
  }

  inline RegionSimilarityCalculator& operator=(const RegionSimilarityCalculator& from) {
    CopyFrom(from);
    return *this;
  }
  inline RegionSimilarityCalculator& operator=(RegionSimilarityCalculator&& from) noexcept {
    if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
      if (this != &from) InternalSwap(&from);
    } else {
      CopyFrom(from);
    }
    return *this;
  }

  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
    return GetDescriptor();
  }
  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
    return GetMetadataStatic().descriptor;
  }
  static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
    return GetMetadataStatic().reflection;
  }
  static const RegionSimilarityCalculator& default_instance();

  enum RegionSimilarityCase {
    kRotateIouSimilarity = 1,
    kNearestIouSimilarity = 2,
    kDistanceSimilarity = 3,
    REGION_SIMILARITY_NOT_SET = 0,
  };

  static void InitAsDefaultInstance();  // FOR INTERNAL USE ONLY
  static inline const RegionSimilarityCalculator* internal_default_instance() {
    return reinterpret_cast<const RegionSimilarityCalculator*>(
               &_RegionSimilarityCalculator_default_instance_);
  }
  static constexpr int kIndexInFileMessages =
    0;

  friend void swap(RegionSimilarityCalculator& a, RegionSimilarityCalculator& b) {
    a.Swap(&b);
  }
  inline void Swap(RegionSimilarityCalculator* other) {
    if (other == this) return;
    InternalSwap(other);
  }

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

  inline RegionSimilarityCalculator* New() const final {
    return CreateMaybeMessage<RegionSimilarityCalculator>(nullptr);
  }

  RegionSimilarityCalculator* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
    return CreateMaybeMessage<RegionSimilarityCalculator>(arena);
  }
  void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  void CopyFrom(const RegionSimilarityCalculator& from);
  void MergeFrom(const RegionSimilarityCalculator& from);
  PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  bool IsInitialized() const final;

  size_t ByteSizeLong() const final;
  #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
  const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  #else
  bool MergePartialFromCodedStream(
      ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final;
  #endif  // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
  void SerializeWithCachedSizes(
      ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final;
  ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
      ::PROTOBUF_NAMESPACE_ID::uint8* target) const final;
  int GetCachedSize() const final { return _cached_size_.Get(); }

  private:
  inline void SharedCtor();
  inline void SharedDtor();
  void SetCachedSize(int size) const final;
  void InternalSwap(RegionSimilarityCalculator* other);
  friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
    return "second.protos.RegionSimilarityCalculator";
  }
  private:
  inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
    return nullptr;
  }
  inline void* MaybeArenaPtr() const {
    return nullptr;
  }
  public:

  ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  private:
  static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
    ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_second_2fprotos_2fsimilarity_2eproto);
    return ::descriptor_table_second_2fprotos_2fsimilarity_2eproto.file_level_metadata[kIndexInFileMessages];
  }

  public:

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

  // accessors -------------------------------------------------------

  enum : int {
    kRotateIouSimilarityFieldNumber = 1,
    kNearestIouSimilarityFieldNumber = 2,
    kDistanceSimilarityFieldNumber = 3,
  };
  // .second.protos.RotateIouSimilarity rotate_iou_similarity = 1;
  bool has_rotate_iou_similarity() const;
  void clear_rotate_iou_similarity();
  const ::second::protos::RotateIouSimilarity& rotate_iou_similarity() const;
  ::second::protos::RotateIouSimilarity* release_rotate_iou_similarity();
  ::second::protos::RotateIouSimilarity* mutable_rotate_iou_similarity();
  void set_allocated_rotate_iou_similarity(::second::protos::RotateIouSimilarity* rotate_iou_similarity);

  // .second.protos.NearestIouSimilarity nearest_iou_similarity = 2;
  bool has_nearest_iou_similarity() const;
  void clear_nearest_iou_similarity();
  const ::second::protos::NearestIouSimilarity& nearest_iou_similarity() const;
  ::second::protos::NearestIouSimilarity* release_nearest_iou_similarity();
  ::second::protos::NearestIouSimilarity* mutable_nearest_iou_similarity();
  void set_allocated_nearest_iou_similarity(::second::protos::NearestIouSimilarity* nearest_iou_similarity);

  // .second.protos.DistanceSimilarity distance_similarity = 3;
  bool has_distance_similarity() const;
  void clear_distance_similarity();
  const ::second::protos::DistanceSimilarity& distance_similarity() const;
  ::second::protos::DistanceSimilarity* release_distance_similarity();
  ::second::protos::DistanceSimilarity* mutable_distance_similarity();
  void set_allocated_distance_similarity(::second::protos::DistanceSimilarity* distance_similarity);

  void clear_region_similarity();
  RegionSimilarityCase region_similarity_case() const;
  // @@protoc_insertion_point(class_scope:second.protos.RegionSimilarityCalculator)
 private:
  class _Internal;
  void set_has_rotate_iou_similarity();
  void set_has_nearest_iou_similarity();
  void set_has_distance_similarity();

  inline bool has_region_similarity() const;
  inline void clear_has_region_similarity();

  ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  union RegionSimilarityUnion {
    RegionSimilarityUnion() {}
    ::second::protos::RotateIouSimilarity* rotate_iou_similarity_;
    ::second::protos::NearestIouSimilarity* nearest_iou_similarity_;
    ::second::protos::DistanceSimilarity* distance_similarity_;
  } region_similarity_;
  mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1];

  friend struct ::TableStruct_second_2fprotos_2fsimilarity_2eproto;
};
// -------------------------------------------------------------------

class RotateIouSimilarity :
    public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:second.protos.RotateIouSimilarity) */ {
 public:
  RotateIouSimilarity();
  virtual ~RotateIouSimilarity();

  RotateIouSimilarity(const RotateIouSimilarity& from);
  RotateIouSimilarity(RotateIouSimilarity&& from) noexcept
    : RotateIouSimilarity() {
    *this = ::std::move(from);
  }

  inline RotateIouSimilarity& operator=(const RotateIouSimilarity& from) {
    CopyFrom(from);
    return *this;
  }
  inline RotateIouSimilarity& operator=(RotateIouSimilarity&& from) noexcept {
    if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
      if (this != &from) InternalSwap(&from);
    } else {
      CopyFrom(from);
    }
    return *this;
  }

  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
    return GetDescriptor();
  }
  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
    return GetMetadataStatic().descriptor;
  }
  static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
    return GetMetadataStatic().reflection;
  }
  static const RotateIouSimilarity& default_instance();

  static void InitAsDefaultInstance();  // FOR INTERNAL USE ONLY
  static inline const RotateIouSimilarity* internal_default_instance() {
    return reinterpret_cast<const RotateIouSimilarity*>(
               &_RotateIouSimilarity_default_instance_);
  }
  static constexpr int kIndexInFileMessages =
    1;

  friend void swap(RotateIouSimilarity& a, RotateIouSimilarity& b) {
    a.Swap(&b);
  }
  inline void Swap(RotateIouSimilarity* other) {
    if (other == this) return;
    InternalSwap(other);
  }

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

  inline RotateIouSimilarity* New() const final {
    return CreateMaybeMessage<RotateIouSimilarity>(nullptr);
  }

  RotateIouSimilarity* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
    return CreateMaybeMessage<RotateIouSimilarity>(arena);
  }
  void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  void CopyFrom(const RotateIouSimilarity& from);
  void MergeFrom(const RotateIouSimilarity& from);
  PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  bool IsInitialized() const final;

  size_t ByteSizeLong() const final;
  #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
  const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  #else
  bool MergePartialFromCodedStream(
      ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final;
  #endif  // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
  void SerializeWithCachedSizes(
      ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final;
  ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
      ::PROTOBUF_NAMESPACE_ID::uint8* target) const final;
  int GetCachedSize() const final { return _cached_size_.Get(); }

  private:
  inline void SharedCtor();
  inline void SharedDtor();
  void SetCachedSize(int size) const final;
  void InternalSwap(RotateIouSimilarity* other);
  friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
    return "second.protos.RotateIouSimilarity";
  }
  private:
  inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
    return nullptr;
  }
  inline void* MaybeArenaPtr() const {
    return nullptr;
  }
  public:

  ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  private:
  static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
    ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_second_2fprotos_2fsimilarity_2eproto);
    return ::descriptor_table_second_2fprotos_2fsimilarity_2eproto.file_level_metadata[kIndexInFileMessages];
  }

  public:

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

  // accessors -------------------------------------------------------

  // @@protoc_insertion_point(class_scope:second.protos.RotateIouSimilarity)
 private:
  class _Internal;

  ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  friend struct ::TableStruct_second_2fprotos_2fsimilarity_2eproto;
};
// -------------------------------------------------------------------

class NearestIouSimilarity :
    public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:second.protos.NearestIouSimilarity) */ {
 public:
  NearestIouSimilarity();
  virtual ~NearestIouSimilarity();

  NearestIouSimilarity(const NearestIouSimilarity& from);
  NearestIouSimilarity(NearestIouSimilarity&& from) noexcept
    : NearestIouSimilarity() {
    *this = ::std::move(from);
  }

  inline NearestIouSimilarity& operator=(const NearestIouSimilarity& from) {
    CopyFrom(from);
    return *this;
  }
  inline NearestIouSimilarity& operator=(NearestIouSimilarity&& from) noexcept {
    if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
      if (this != &from) InternalSwap(&from);
    } else {
      CopyFrom(from);
    }
    return *this;
  }

  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
    return GetDescriptor();
  }
  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
    return GetMetadataStatic().descriptor;
  }
  static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
    return GetMetadataStatic().reflection;
  }
  static const NearestIouSimilarity& default_instance();

  static void InitAsDefaultInstance();  // FOR INTERNAL USE ONLY
  static inline const NearestIouSimilarity* internal_default_instance() {
    return reinterpret_cast<const NearestIouSimilarity*>(
               &_NearestIouSimilarity_default_instance_);
  }
  static constexpr int kIndexInFileMessages =
    2;

  friend void swap(NearestIouSimilarity& a, NearestIouSimilarity& b) {
    a.Swap(&b);
  }
  inline void Swap(NearestIouSimilarity* other) {
    if (other == this) return;
    InternalSwap(other);
  }

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

  inline NearestIouSimilarity* New() const final {
    return CreateMaybeMessage<NearestIouSimilarity>(nullptr);
  }

  NearestIouSimilarity* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
    return CreateMaybeMessage<NearestIouSimilarity>(arena);
  }
  void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  void CopyFrom(const NearestIouSimilarity& from);
  void MergeFrom(const NearestIouSimilarity& from);
  PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  bool IsInitialized() const final;

  size_t ByteSizeLong() const final;
  #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
  const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  #else
  bool MergePartialFromCodedStream(
      ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final;
  #endif  // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
  void SerializeWithCachedSizes(
      ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final;
  ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
      ::PROTOBUF_NAMESPACE_ID::uint8* target) const final;
  int GetCachedSize() const final { return _cached_size_.Get(); }

  private:
  inline void SharedCtor();
  inline void SharedDtor();
  void SetCachedSize(int size) const final;
  void InternalSwap(NearestIouSimilarity* other);
  friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
    return "second.protos.NearestIouSimilarity";
  }
  private:
  inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
    return nullptr;
  }
  inline void* MaybeArenaPtr() const {
    return nullptr;
  }
  public:

  ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  private:
  static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
    ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_second_2fprotos_2fsimilarity_2eproto);
    return ::descriptor_table_second_2fprotos_2fsimilarity_2eproto.file_level_metadata[kIndexInFileMessages];
  }

  public:

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

  // accessors -------------------------------------------------------

  // @@protoc_insertion_point(class_scope:second.protos.NearestIouSimilarity)
 private:
  class _Internal;

  ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  friend struct ::TableStruct_second_2fprotos_2fsimilarity_2eproto;
};
// -------------------------------------------------------------------

class DistanceSimilarity :
    public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:second.protos.DistanceSimilarity) */ {
 public:
  DistanceSimilarity();
  virtual ~DistanceSimilarity();

  DistanceSimilarity(const DistanceSimilarity& from);
  DistanceSimilarity(DistanceSimilarity&& from) noexcept
    : DistanceSimilarity() {
    *this = ::std::move(from);
  }

  inline DistanceSimilarity& operator=(const DistanceSimilarity& from) {
    CopyFrom(from);
    return *this;
  }
  inline DistanceSimilarity& operator=(DistanceSimilarity&& from) noexcept {
    if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
      if (this != &from) InternalSwap(&from);
    } else {
      CopyFrom(from);
    }
    return *this;
  }

  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
    return GetDescriptor();
  }
  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
    return GetMetadataStatic().descriptor;
  }
  static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
    return GetMetadataStatic().reflection;
  }
  static const DistanceSimilarity& default_instance();

  static void InitAsDefaultInstance();  // FOR INTERNAL USE ONLY
  static inline const DistanceSimilarity* internal_default_instance() {
    return reinterpret_cast<const DistanceSimilarity*>(
               &_DistanceSimilarity_default_instance_);
  }
  static constexpr int kIndexInFileMessages =
    3;

  friend void swap(DistanceSimilarity& a, DistanceSimilarity& b) {
    a.Swap(&b);
  }
  inline void Swap(DistanceSimilarity* other) {
    if (other == this) return;
    InternalSwap(other);
  }

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

  inline DistanceSimilarity* New() const final {
    return CreateMaybeMessage<DistanceSimilarity>(nullptr);
  }

  DistanceSimilarity* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
    return CreateMaybeMessage<DistanceSimilarity>(arena);
  }
  void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  void CopyFrom(const DistanceSimilarity& from);
  void MergeFrom(const DistanceSimilarity& from);
  PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  bool IsInitialized() const final;

  size_t ByteSizeLong() const final;
  #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
  const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  #else
  bool MergePartialFromCodedStream(
      ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final;
  #endif  // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
  void SerializeWithCachedSizes(
      ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final;
  ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
      ::PROTOBUF_NAMESPACE_ID::uint8* target) const final;
  int GetCachedSize() const final { return _cached_size_.Get(); }

  private:
  inline void SharedCtor();
  inline void SharedDtor();
  void SetCachedSize(int size) const final;
  void InternalSwap(DistanceSimilarity* other);
  friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
    return "second.protos.DistanceSimilarity";
  }
  private:
  inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
    return nullptr;
  }
  inline void* MaybeArenaPtr() const {
    return nullptr;
  }
  public:

  ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  private:
  static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
    ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_second_2fprotos_2fsimilarity_2eproto);
    return ::descriptor_table_second_2fprotos_2fsimilarity_2eproto.file_level_metadata[kIndexInFileMessages];
  }

  public:

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

  // accessors -------------------------------------------------------

  enum : int {
    kDistanceNormFieldNumber = 1,
    kWithRotationFieldNumber = 2,
    kRotationAlphaFieldNumber = 3,
  };
  // float distance_norm = 1;
  void clear_distance_norm();
  float distance_norm() const;
  void set_distance_norm(float value);

  // bool with_rotation = 2;
  void clear_with_rotation();
  bool with_rotation() const;
  void set_with_rotation(bool value);

  // float rotation_alpha = 3;
  void clear_rotation_alpha();
  float rotation_alpha() const;
  void set_rotation_alpha(float value);

  // @@protoc_insertion_point(class_scope:second.protos.DistanceSimilarity)
 private:
  class _Internal;

  ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  float distance_norm_;
  bool with_rotation_;
  float rotation_alpha_;
  mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  friend struct ::TableStruct_second_2fprotos_2fsimilarity_2eproto;
};
// ===================================================================


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

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

// .second.protos.RotateIouSimilarity rotate_iou_similarity = 1;
inline bool RegionSimilarityCalculator::has_rotate_iou_similarity() const {
  return region_similarity_case() == kRotateIouSimilarity;
}
inline void RegionSimilarityCalculator::set_has_rotate_iou_similarity() {
  _oneof_case_[0] = kRotateIouSimilarity;
}
inline void RegionSimilarityCalculator::clear_rotate_iou_similarity() {
  if (has_rotate_iou_similarity()) {
    delete region_similarity_.rotate_iou_similarity_;
    clear_has_region_similarity();
  }
}
inline ::second::protos::RotateIouSimilarity* RegionSimilarityCalculator::release_rotate_iou_similarity() {
  // @@protoc_insertion_point(field_release:second.protos.RegionSimilarityCalculator.rotate_iou_similarity)
  if (has_rotate_iou_similarity()) {
    clear_has_region_similarity();
      ::second::protos::RotateIouSimilarity* temp = region_similarity_.rotate_iou_similarity_;
    region_similarity_.rotate_iou_similarity_ = nullptr;
    return temp;
  } else {
    return nullptr;
  }
}
inline const ::second::protos::RotateIouSimilarity& RegionSimilarityCalculator::rotate_iou_similarity() const {
  // @@protoc_insertion_point(field_get:second.protos.RegionSimilarityCalculator.rotate_iou_similarity)
  return has_rotate_iou_similarity()
      ? *region_similarity_.rotate_iou_similarity_
      : *reinterpret_cast< ::second::protos::RotateIouSimilarity*>(&::second::protos::_RotateIouSimilarity_default_instance_);
}
inline ::second::protos::RotateIouSimilarity* RegionSimilarityCalculator::mutable_rotate_iou_similarity() {
  if (!has_rotate_iou_similarity()) {
    clear_region_similarity();
    set_has_rotate_iou_similarity();
    region_similarity_.rotate_iou_similarity_ = CreateMaybeMessage< ::second::protos::RotateIouSimilarity >(
        GetArenaNoVirtual());
  }
  // @@protoc_insertion_point(field_mutable:second.protos.RegionSimilarityCalculator.rotate_iou_similarity)
  return region_similarity_.rotate_iou_similarity_;
}

// .second.protos.NearestIouSimilarity nearest_iou_similarity = 2;
inline bool RegionSimilarityCalculator::has_nearest_iou_similarity() const {
  return region_similarity_case() == kNearestIouSimilarity;
}
inline void RegionSimilarityCalculator::set_has_nearest_iou_similarity() {
  _oneof_case_[0] = kNearestIouSimilarity;
}
inline void RegionSimilarityCalculator::clear_nearest_iou_similarity() {
  if (has_nearest_iou_similarity()) {
    delete region_similarity_.nearest_iou_similarity_;
    clear_has_region_similarity();
  }
}
inline ::second::protos::NearestIouSimilarity* RegionSimilarityCalculator::release_nearest_iou_similarity() {
  // @@protoc_insertion_point(field_release:second.protos.RegionSimilarityCalculator.nearest_iou_similarity)
  if (has_nearest_iou_similarity()) {
    clear_has_region_similarity();
      ::second::protos::NearestIouSimilarity* temp = region_similarity_.nearest_iou_similarity_;
    region_similarity_.nearest_iou_similarity_ = nullptr;
    return temp;
  } else {
    return nullptr;
  }
}
inline const ::second::protos::NearestIouSimilarity& RegionSimilarityCalculator::nearest_iou_similarity() const {
  // @@protoc_insertion_point(field_get:second.protos.RegionSimilarityCalculator.nearest_iou_similarity)
  return has_nearest_iou_similarity()
      ? *region_similarity_.nearest_iou_similarity_
      : *reinterpret_cast< ::second::protos::NearestIouSimilarity*>(&::second::protos::_NearestIouSimilarity_default_instance_);
}
inline ::second::protos::NearestIouSimilarity* RegionSimilarityCalculator::mutable_nearest_iou_similarity() {
  if (!has_nearest_iou_similarity()) {
    clear_region_similarity();
    set_has_nearest_iou_similarity();
    region_similarity_.nearest_iou_similarity_ = CreateMaybeMessage< ::second::protos::NearestIouSimilarity >(
        GetArenaNoVirtual());
  }
  // @@protoc_insertion_point(field_mutable:second.protos.RegionSimilarityCalculator.nearest_iou_similarity)
  return region_similarity_.nearest_iou_similarity_;
}

// .second.protos.DistanceSimilarity distance_similarity = 3;
inline bool RegionSimilarityCalculator::has_distance_similarity() const {
  return region_similarity_case() == kDistanceSimilarity;
}
inline void RegionSimilarityCalculator::set_has_distance_similarity() {
  _oneof_case_[0] = kDistanceSimilarity;
}
inline void RegionSimilarityCalculator::clear_distance_similarity() {
  if (has_distance_similarity()) {
    delete region_similarity_.distance_similarity_;
    clear_has_region_similarity();
  }
}
inline ::second::protos::DistanceSimilarity* RegionSimilarityCalculator::release_distance_similarity() {
  // @@protoc_insertion_point(field_release:second.protos.RegionSimilarityCalculator.distance_similarity)
  if (has_distance_similarity()) {
    clear_has_region_similarity();
      ::second::protos::DistanceSimilarity* temp = region_similarity_.distance_similarity_;
    region_similarity_.distance_similarity_ = nullptr;
    return temp;
  } else {
    return nullptr;
  }
}
inline const ::second::protos::DistanceSimilarity& RegionSimilarityCalculator::distance_similarity() const {
  // @@protoc_insertion_point(field_get:second.protos.RegionSimilarityCalculator.distance_similarity)
  return has_distance_similarity()
      ? *region_similarity_.distance_similarity_
      : *reinterpret_cast< ::second::protos::DistanceSimilarity*>(&::second::protos::_DistanceSimilarity_default_instance_);
}
inline ::second::protos::DistanceSimilarity* RegionSimilarityCalculator::mutable_distance_similarity() {
  if (!has_distance_similarity()) {
    clear_region_similarity();
    set_has_distance_similarity();
    region_similarity_.distance_similarity_ = CreateMaybeMessage< ::second::protos::DistanceSimilarity >(
        GetArenaNoVirtual());
  }
  // @@protoc_insertion_point(field_mutable:second.protos.RegionSimilarityCalculator.distance_similarity)
  return region_similarity_.distance_similarity_;
}

inline bool RegionSimilarityCalculator::has_region_similarity() const {
  return region_similarity_case() != REGION_SIMILARITY_NOT_SET;
}
inline void RegionSimilarityCalculator::clear_has_region_similarity() {
  _oneof_case_[0] = REGION_SIMILARITY_NOT_SET;
}
inline RegionSimilarityCalculator::RegionSimilarityCase RegionSimilarityCalculator::region_similarity_case() const {
  return RegionSimilarityCalculator::RegionSimilarityCase(_oneof_case_[0]);
}
// -------------------------------------------------------------------

// RotateIouSimilarity

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

// NearestIouSimilarity

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

// DistanceSimilarity

// float distance_norm = 1;
inline void DistanceSimilarity::clear_distance_norm() {
  distance_norm_ = 0;
}
inline float DistanceSimilarity::distance_norm() const {
  // @@protoc_insertion_point(field_get:second.protos.DistanceSimilarity.distance_norm)
  return distance_norm_;
}
inline void DistanceSimilarity::set_distance_norm(float value) {
  
  distance_norm_ = value;
  // @@protoc_insertion_point(field_set:second.protos.DistanceSimilarity.distance_norm)
}

// bool with_rotation = 2;
inline void DistanceSimilarity::clear_with_rotation() {
  with_rotation_ = false;
}
inline bool DistanceSimilarity::with_rotation() const {
  // @@protoc_insertion_point(field_get:second.protos.DistanceSimilarity.with_rotation)
  return with_rotation_;
}
inline void DistanceSimilarity::set_with_rotation(bool value) {
  
  with_rotation_ = value;
  // @@protoc_insertion_point(field_set:second.protos.DistanceSimilarity.with_rotation)
}

// float rotation_alpha = 3;
inline void DistanceSimilarity::clear_rotation_alpha() {
  rotation_alpha_ = 0;
}
inline float DistanceSimilarity::rotation_alpha() const {
  // @@protoc_insertion_point(field_get:second.protos.DistanceSimilarity.rotation_alpha)
  return rotation_alpha_;
}
inline void DistanceSimilarity::set_rotation_alpha(float value) {
  
  rotation_alpha_ = value;
  // @@protoc_insertion_point(field_set:second.protos.DistanceSimilarity.rotation_alpha)
}

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

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

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


// @@protoc_insertion_point(namespace_scope)

}  // namespace protos
}  // namespace second

// @@protoc_insertion_point(global_scope)

#include <google/protobuf/port_undef.inc>
#endif  // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_second_2fprotos_2fsimilarity_2eproto
