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

#ifndef components_2fsegmentation_5fplatform_2finternal_2fproto_2fmodel_5fprediction_2eproto_2epb_2eh
#define components_2fsegmentation_5fplatform_2finternal_2fproto_2fmodel_5fprediction_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 "components/segmentation_platform/public/proto/model_metadata.pb.h"
#include "components/segmentation_platform/public/proto/prediction_result.pb.h"
#include "components/segmentation_platform/public/proto/segmentation_platform.pb.h"
// @@protoc_insertion_point(includes)

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

#define PROTOBUF_INTERNAL_EXPORT_components_2fsegmentation_5fplatform_2finternal_2fproto_2fmodel_5fprediction_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_2fsegmentation_5fplatform_2finternal_2fproto_2fmodel_5fprediction_2eproto {
  static const ::uint32_t offsets[];
};
namespace segmentation_platform {
namespace proto {
class LegacyPredictionResultForTesting;
struct LegacyPredictionResultForTestingGlobalsTypeInternal;
#ifndef PROTOBUF_MESSAGE_GLOBALS
extern LegacyPredictionResultForTestingGlobalsTypeInternal LegacyPredictionResultForTesting_globals_;
extern const ::google::protobuf::internal::ClassDataLite LegacyPredictionResultForTesting_class_data_;
#else
extern const LegacyPredictionResultForTestingGlobalsTypeInternal LegacyPredictionResultForTesting_globals_;
#endif  // PROTOBUF_MESSAGE_GLOBALS
class SegmentInfo;
struct SegmentInfoGlobalsTypeInternal;
#ifndef PROTOBUF_MESSAGE_GLOBALS
extern SegmentInfoGlobalsTypeInternal SegmentInfo_globals_;
extern const ::google::protobuf::internal::ClassDataLite SegmentInfo_class_data_;
#else
extern const SegmentInfoGlobalsTypeInternal SegmentInfo_globals_;
#endif  // PROTOBUF_MESSAGE_GLOBALS
class TrainingData;
struct TrainingDataGlobalsTypeInternal;
#ifndef PROTOBUF_MESSAGE_GLOBALS
extern TrainingDataGlobalsTypeInternal TrainingData_globals_;
extern const ::google::protobuf::internal::ClassDataLite TrainingData_class_data_;
#else
extern const TrainingDataGlobalsTypeInternal TrainingData_globals_;
#endif  // PROTOBUF_MESSAGE_GLOBALS
}  // namespace proto
}  // namespace segmentation_platform
namespace google {
namespace protobuf {
}  // namespace protobuf
}  // namespace google

namespace segmentation_platform {
namespace proto {

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


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

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

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

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

  inline TrainingData(const TrainingData& from) : TrainingData(nullptr, from) {}
  inline TrainingData(TrainingData&& from) noexcept : TrainingData(nullptr, ::std::move(from)) {}
  inline TrainingData& operator=(const TrainingData& from) {
    CopyFrom(from);
    return *this;
  }
  inline TrainingData& operator=(TrainingData&& 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 TrainingData& default_instance() {
    return *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance<TrainingData>(&TrainingData_globals_);
  }
  static constexpr int kIndexInFileMessages = 0;
  friend void swap(TrainingData& a, TrainingData& b) { a.Swap(&b); }
  PROTOBUF_NOINLINE void Swap(TrainingData* 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(TrainingData* PROTOBUF_NONNULL other) {
    if (other == this) return;
    ABSL_DCHECK(GetArena() == other->GetArena());
    InternalSwap(other);
  }

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

  TrainingData* PROTOBUF_NONNULL
  New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const {
    return ::google::protobuf::MessageLite::DefaultConstruct<TrainingData>(arena);
  }
  void CopyFrom(const TrainingData& from);
  void MergeFrom(const TrainingData& from) { TrainingData::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(TrainingData* PROTOBUF_NONNULL other);
 private:
  template <typename T>
  friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)();
  static ::absl::string_view FullMessageName() { return "segmentation_platform.proto.TrainingData"; }

  explicit TrainingData(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
  TrainingData(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const TrainingData& from);
  TrainingData(
      ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, TrainingData&& from) noexcept
      : TrainingData(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 {
    kInputsFieldNumber = 1,
    kDecisionTimestampFieldNumber = 2,
    kRequestIdFieldNumber = 3,
    kObservationTriggerTimestampFieldNumber = 4,
  };
  // repeated float inputs = 1;
  int inputs_size()
      const;
  private:
  int _internal_inputs_size() const;

  public:
  void clear_inputs() ;
  float inputs(int index) const;
  void set_inputs(int index, float value);
  void add_inputs(float value);
  const ::google::protobuf::RepeatedField<float>& inputs()
      const;
  ::google::protobuf::RepeatedField<float>* PROTOBUF_NONNULL mutable_inputs();

  private:
  const ::google::protobuf::RepeatedField<float>& _internal_inputs() const;
  ::google::protobuf::RepeatedField<float>* PROTOBUF_NONNULL _internal_mutable_inputs();

  public:
  // optional int64 decision_timestamp = 2;
  bool has_decision_timestamp()
      const;
  void clear_decision_timestamp() ;
  ::int64_t decision_timestamp() const;
  void set_decision_timestamp(::int64_t value);

  private:
  ::int64_t _internal_decision_timestamp() const;
  void _internal_set_decision_timestamp(::int64_t value);

  public:
  // optional int64 request_id = 3;
  bool has_request_id()
      const;
  void clear_request_id() ;
  ::int64_t request_id() const;
  void set_request_id(::int64_t value);

  private:
  ::int64_t _internal_request_id() const;
  void _internal_set_request_id(::int64_t value);

  public:
  // optional int64 observation_trigger_timestamp = 4;
  bool has_observation_trigger_timestamp()
      const;
  void clear_observation_trigger_timestamp() ;
  ::int64_t observation_trigger_timestamp() const;
  void set_observation_trigger_timestamp(::int64_t value);

  private:
  ::int64_t _internal_observation_trigger_timestamp() const;
  void _internal_set_observation_trigger_timestamp(::int64_t value);

  public:
  // @@protoc_insertion_point(class_scope:segmentation_platform.proto.TrainingData)
 private:
  class _Internal;
  using ParseTableT_ =
      ::google::protobuf::internal::TcParseTable<2, 4,
                          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 TrainingData& from_msg);
    ::google::protobuf::internal::HasBits<1> _has_bits_;
    ::google::protobuf::internal::CachedSize _cached_size_;
    ::google::protobuf::RepeatedField<float> inputs_;
    ::int64_t decision_timestamp_;
    ::int64_t request_id_;
    ::int64_t observation_trigger_timestamp_;
    PROTOBUF_TSAN_DECLARE_MEMBER
  };
  union { Impl_ _impl_; };
  friend struct ::TableStruct_components_2fsegmentation_5fplatform_2finternal_2fproto_2fmodel_5fprediction_2eproto;
};
// -------------------------------------------------------------------

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

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

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

  inline LegacyPredictionResultForTesting(const LegacyPredictionResultForTesting& from) : LegacyPredictionResultForTesting(nullptr, from) {}
  inline LegacyPredictionResultForTesting(LegacyPredictionResultForTesting&& from) noexcept : LegacyPredictionResultForTesting(nullptr, ::std::move(from)) {}
  inline LegacyPredictionResultForTesting& operator=(const LegacyPredictionResultForTesting& from) {
    CopyFrom(from);
    return *this;
  }
  inline LegacyPredictionResultForTesting& operator=(LegacyPredictionResultForTesting&& 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 LegacyPredictionResultForTesting& default_instance() {
    return *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance<LegacyPredictionResultForTesting>(&LegacyPredictionResultForTesting_globals_);
  }
  static constexpr int kIndexInFileMessages = 2;
  friend void swap(LegacyPredictionResultForTesting& a, LegacyPredictionResultForTesting& b) { a.Swap(&b); }
  PROTOBUF_NOINLINE void Swap(LegacyPredictionResultForTesting* 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(LegacyPredictionResultForTesting* PROTOBUF_NONNULL other) {
    if (other == this) return;
    ABSL_DCHECK(GetArena() == other->GetArena());
    InternalSwap(other);
  }

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

  LegacyPredictionResultForTesting* PROTOBUF_NONNULL
  New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const {
    return ::google::protobuf::MessageLite::DefaultConstruct<LegacyPredictionResultForTesting>(arena);
  }
  void CopyFrom(const LegacyPredictionResultForTesting& from);
  void MergeFrom(const LegacyPredictionResultForTesting& from) { LegacyPredictionResultForTesting::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(LegacyPredictionResultForTesting* PROTOBUF_NONNULL other);
 private:
  template <typename T>
  friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)();
  static ::absl::string_view FullMessageName() { return "segmentation_platform.proto.LegacyPredictionResultForTesting"; }

  explicit LegacyPredictionResultForTesting(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
  LegacyPredictionResultForTesting(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const LegacyPredictionResultForTesting& from);
  LegacyPredictionResultForTesting(
      ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, LegacyPredictionResultForTesting&& from) noexcept
      : LegacyPredictionResultForTesting(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 {
    kTimestampUsFieldNumber = 2,
    kResultFieldNumber = 1,
  };
  // optional int64 timestamp_us = 2;
  bool has_timestamp_us()
      const;
  void clear_timestamp_us() ;
  ::int64_t timestamp_us() const;
  void set_timestamp_us(::int64_t value);

  private:
  ::int64_t _internal_timestamp_us() const;
  void _internal_set_timestamp_us(::int64_t value);

  public:
  // optional float result = 1;
  bool has_result()
      const;
  void clear_result() ;
  float result() const;
  void set_result(float value);

  private:
  float _internal_result() const;
  void _internal_set_result(float value);

  public:
  // @@protoc_insertion_point(class_scope:segmentation_platform.proto.LegacyPredictionResultForTesting)
 private:
  class _Internal;
  using ParseTableT_ =
      ::google::protobuf::internal::TcParseTable<1, 2,
                          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 LegacyPredictionResultForTesting& from_msg);
    ::google::protobuf::internal::HasBits<1> _has_bits_;
    ::google::protobuf::internal::CachedSize _cached_size_;
    ::int64_t timestamp_us_;
    float result_;
    PROTOBUF_TSAN_DECLARE_MEMBER
  };
  union { Impl_ _impl_; };
  friend struct ::TableStruct_components_2fsegmentation_5fplatform_2finternal_2fproto_2fmodel_5fprediction_2eproto;
};
// -------------------------------------------------------------------

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

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

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

  inline SegmentInfo(const SegmentInfo& from) : SegmentInfo(nullptr, from) {}
  inline SegmentInfo(SegmentInfo&& from) noexcept : SegmentInfo(nullptr, ::std::move(from)) {}
  inline SegmentInfo& operator=(const SegmentInfo& from) {
    CopyFrom(from);
    return *this;
  }
  inline SegmentInfo& operator=(SegmentInfo&& 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 SegmentInfo& default_instance() {
    return *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance<SegmentInfo>(&SegmentInfo_globals_);
  }
  static constexpr int kIndexInFileMessages = 1;
  friend void swap(SegmentInfo& a, SegmentInfo& b) { a.Swap(&b); }
  PROTOBUF_NOINLINE void Swap(SegmentInfo* 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(SegmentInfo* PROTOBUF_NONNULL other) {
    if (other == this) return;
    ABSL_DCHECK(GetArena() == other->GetArena());
    InternalSwap(other);
  }

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

  SegmentInfo* PROTOBUF_NONNULL
  New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const {
    return ::google::protobuf::MessageLite::DefaultConstruct<SegmentInfo>(arena);
  }
  void CopyFrom(const SegmentInfo& from);
  void MergeFrom(const SegmentInfo& from) { SegmentInfo::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(SegmentInfo* PROTOBUF_NONNULL other);
 private:
  template <typename T>
  friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)();
  static ::absl::string_view FullMessageName() { return "segmentation_platform.proto.SegmentInfo"; }

  explicit SegmentInfo(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
  SegmentInfo(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SegmentInfo& from);
  SegmentInfo(
      ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SegmentInfo&& from) noexcept
      : SegmentInfo(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 {
    kTrainingDataFieldNumber = 7,
    kModelMetadataFieldNumber = 2,
    kPredictionResultFieldNumber = 3,
    kSegmentIdFieldNumber = 1,
    kModelSourceFieldNumber = 6,
    kModelVersionFieldNumber = 4,
    kModelUpdateTimeSFieldNumber = 5,
  };
  // repeated .segmentation_platform.proto.TrainingData training_data = 7;
  int training_data_size()
      const;
  private:
  int _internal_training_data_size() const;

  public:
  void clear_training_data() ;
  const ::segmentation_platform::proto::TrainingData& training_data(int index) const;
  ::segmentation_platform::proto::TrainingData* PROTOBUF_NONNULL mutable_training_data(int index);
  ::segmentation_platform::proto::TrainingData* PROTOBUF_NONNULL add_training_data();
  const ::google::protobuf::RepeatedPtrField<::segmentation_platform::proto::TrainingData>&
  training_data() const;
  ::google::protobuf::RepeatedPtrField<::segmentation_platform::proto::TrainingData>* PROTOBUF_NONNULL
  mutable_training_data();

  private:
  const ::google::protobuf::RepeatedPtrField<::segmentation_platform::proto::TrainingData>& _internal_training_data() const;
  ::google::protobuf::RepeatedPtrField<::segmentation_platform::proto::TrainingData>* PROTOBUF_NONNULL _internal_mutable_training_data();

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

  private:
  const ::segmentation_platform::proto::SegmentationModelMetadata& _internal_model_metadata() const;
  ::segmentation_platform::proto::SegmentationModelMetadata* PROTOBUF_NONNULL _internal_mutable_model_metadata();

  public:
  // optional .segmentation_platform.proto.PredictionResult prediction_result = 3;
  bool has_prediction_result()
      const;
  void clear_prediction_result() ;
  const ::segmentation_platform::proto::PredictionResult& prediction_result() const;
  ::segmentation_platform::proto::PredictionResult* PROTOBUF_NULLABLE release_prediction_result();
  ::segmentation_platform::proto::PredictionResult* PROTOBUF_NONNULL mutable_prediction_result();
  void set_allocated_prediction_result(::segmentation_platform::proto::PredictionResult* PROTOBUF_NULLABLE value);
  void unsafe_arena_set_allocated_prediction_result(::segmentation_platform::proto::PredictionResult* PROTOBUF_NULLABLE value);
  ::segmentation_platform::proto::PredictionResult* PROTOBUF_NULLABLE unsafe_arena_release_prediction_result();

  private:
  const ::segmentation_platform::proto::PredictionResult& _internal_prediction_result() const;
  ::segmentation_platform::proto::PredictionResult* PROTOBUF_NONNULL _internal_mutable_prediction_result();

  public:
  // optional .segmentation_platform.proto.SegmentId segment_id = 1;
  bool has_segment_id()
      const;
  void clear_segment_id() ;
  ::segmentation_platform::proto::SegmentId segment_id() const;
  void set_segment_id(::segmentation_platform::proto::SegmentId value);

  private:
  ::segmentation_platform::proto::SegmentId _internal_segment_id() const;
  void _internal_set_segment_id(::segmentation_platform::proto::SegmentId value);

  public:
  // optional .segmentation_platform.proto.ModelSource model_source = 6;
  bool has_model_source()
      const;
  void clear_model_source() ;
  ::segmentation_platform::proto::ModelSource model_source() const;
  void set_model_source(::segmentation_platform::proto::ModelSource value);

  private:
  ::segmentation_platform::proto::ModelSource _internal_model_source() const;
  void _internal_set_model_source(::segmentation_platform::proto::ModelSource value);

  public:
  // optional int64 model_version = 4;
  bool has_model_version()
      const;
  void clear_model_version() ;
  ::int64_t model_version() const;
  void set_model_version(::int64_t value);

  private:
  ::int64_t _internal_model_version() const;
  void _internal_set_model_version(::int64_t value);

  public:
  // optional int64 model_update_time_s = 5;
  bool has_model_update_time_s()
      const;
  void clear_model_update_time_s() ;
  ::int64_t model_update_time_s() const;
  void set_model_update_time_s(::int64_t value);

  private:
  ::int64_t _internal_model_update_time_s() const;
  void _internal_set_model_update_time_s(::int64_t value);

  public:
  // @@protoc_insertion_point(class_scope:segmentation_platform.proto.SegmentInfo)
 private:
  class _Internal;
  using ParseTableT_ =
      ::google::protobuf::internal::TcParseTable<3, 7,
                          5, 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 SegmentInfo& from_msg);
    ::google::protobuf::internal::HasBits<1> _has_bits_;
    ::google::protobuf::internal::CachedSize _cached_size_;
    ::google::protobuf::RepeatedPtrField< ::segmentation_platform::proto::TrainingData > training_data_;
    ::segmentation_platform::proto::SegmentationModelMetadata* PROTOBUF_NULLABLE model_metadata_;
    ::segmentation_platform::proto::PredictionResult* PROTOBUF_NULLABLE prediction_result_;
    int segment_id_;
    int model_source_;
    ::int64_t model_version_;
    ::int64_t model_update_time_s_;
    PROTOBUF_TSAN_DECLARE_MEMBER
  };
  union { Impl_ _impl_; };
  friend struct ::TableStruct_components_2fsegmentation_5fplatform_2finternal_2fproto_2fmodel_5fprediction_2eproto;
};

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




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


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

// TrainingData

// repeated float inputs = 1;
inline int TrainingData::_internal_inputs_size() const {
  return _internal_inputs().size();
}
inline int TrainingData::inputs_size() const {
  return _internal_inputs_size();
}
inline void TrainingData::clear_inputs() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.inputs_.Clear();
  ClearHasBit(_impl_._has_bits_[0], 0x00000001U);
}
inline float TrainingData::inputs(int index) const {
  // @@protoc_insertion_point(field_get:segmentation_platform.proto.TrainingData.inputs)
  return _internal_inputs().Get(index);
}
inline void TrainingData::set_inputs(int index, float value) {
  _internal_mutable_inputs()->Set(index, value);
  // @@protoc_insertion_point(field_set:segmentation_platform.proto.TrainingData.inputs)
}
inline void TrainingData::add_inputs(float value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _internal_mutable_inputs()
      ->InternalAddWithArena<const ::google::protobuf::MessageLite*>(
          internal_visibility(), this, value);
  SetHasBit(_impl_._has_bits_[0], 0x00000001U);
  // @@protoc_insertion_point(field_add:segmentation_platform.proto.TrainingData.inputs)
}
inline const ::google::protobuf::RepeatedField<float>& TrainingData::inputs() const
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_list:segmentation_platform.proto.TrainingData.inputs)
  return _internal_inputs();
}
inline ::google::protobuf::RepeatedField<float>* PROTOBUF_NONNULL TrainingData::mutable_inputs()
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  SetHasBit(_impl_._has_bits_[0], 0x00000001U);
  // @@protoc_insertion_point(field_mutable_list:segmentation_platform.proto.TrainingData.inputs)
  ::google::protobuf::internal::TSanWrite(&_impl_);
  return _internal_mutable_inputs();
}
inline const ::google::protobuf::RepeatedField<float>&
TrainingData::_internal_inputs() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.inputs_;
}
inline ::google::protobuf::RepeatedField<float>* PROTOBUF_NONNULL
TrainingData::_internal_mutable_inputs() {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return &_impl_.inputs_;
}

// optional int64 decision_timestamp = 2;
inline bool TrainingData::has_decision_timestamp() const {
  bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U);
  return value;
}
inline void TrainingData::clear_decision_timestamp() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.decision_timestamp_ = ::int64_t{0};
  ClearHasBit(_impl_._has_bits_[0], 0x00000002U);
}
inline ::int64_t TrainingData::decision_timestamp() const {
  // @@protoc_insertion_point(field_get:segmentation_platform.proto.TrainingData.decision_timestamp)
  return _internal_decision_timestamp();
}
inline void TrainingData::set_decision_timestamp(::int64_t value) {
  _internal_set_decision_timestamp(value);
  SetHasBit(_impl_._has_bits_[0], 0x00000002U);
  // @@protoc_insertion_point(field_set:segmentation_platform.proto.TrainingData.decision_timestamp)
}
inline ::int64_t TrainingData::_internal_decision_timestamp() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.decision_timestamp_;
}
inline void TrainingData::_internal_set_decision_timestamp(::int64_t value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.decision_timestamp_ = value;
}

// optional int64 request_id = 3;
inline bool TrainingData::has_request_id() const {
  bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U);
  return value;
}
inline void TrainingData::clear_request_id() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.request_id_ = ::int64_t{0};
  ClearHasBit(_impl_._has_bits_[0], 0x00000004U);
}
inline ::int64_t TrainingData::request_id() const {
  // @@protoc_insertion_point(field_get:segmentation_platform.proto.TrainingData.request_id)
  return _internal_request_id();
}
inline void TrainingData::set_request_id(::int64_t value) {
  _internal_set_request_id(value);
  SetHasBit(_impl_._has_bits_[0], 0x00000004U);
  // @@protoc_insertion_point(field_set:segmentation_platform.proto.TrainingData.request_id)
}
inline ::int64_t TrainingData::_internal_request_id() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.request_id_;
}
inline void TrainingData::_internal_set_request_id(::int64_t value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.request_id_ = value;
}

// optional int64 observation_trigger_timestamp = 4;
inline bool TrainingData::has_observation_trigger_timestamp() const {
  bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000008U);
  return value;
}
inline void TrainingData::clear_observation_trigger_timestamp() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.observation_trigger_timestamp_ = ::int64_t{0};
  ClearHasBit(_impl_._has_bits_[0], 0x00000008U);
}
inline ::int64_t TrainingData::observation_trigger_timestamp() const {
  // @@protoc_insertion_point(field_get:segmentation_platform.proto.TrainingData.observation_trigger_timestamp)
  return _internal_observation_trigger_timestamp();
}
inline void TrainingData::set_observation_trigger_timestamp(::int64_t value) {
  _internal_set_observation_trigger_timestamp(value);
  SetHasBit(_impl_._has_bits_[0], 0x00000008U);
  // @@protoc_insertion_point(field_set:segmentation_platform.proto.TrainingData.observation_trigger_timestamp)
}
inline ::int64_t TrainingData::_internal_observation_trigger_timestamp() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.observation_trigger_timestamp_;
}
inline void TrainingData::_internal_set_observation_trigger_timestamp(::int64_t value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.observation_trigger_timestamp_ = value;
}

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

// SegmentInfo

// optional .segmentation_platform.proto.SegmentId segment_id = 1;
inline bool SegmentInfo::has_segment_id() const {
  bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000008U);
  return value;
}
inline void SegmentInfo::clear_segment_id() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.segment_id_ = 0;
  ClearHasBit(_impl_._has_bits_[0], 0x00000008U);
}
inline ::segmentation_platform::proto::SegmentId SegmentInfo::segment_id() const {
  // @@protoc_insertion_point(field_get:segmentation_platform.proto.SegmentInfo.segment_id)
  return _internal_segment_id();
}
inline void SegmentInfo::set_segment_id(::segmentation_platform::proto::SegmentId value) {
  _internal_set_segment_id(value);
  SetHasBit(_impl_._has_bits_[0], 0x00000008U);
  // @@protoc_insertion_point(field_set:segmentation_platform.proto.SegmentInfo.segment_id)
}
inline ::segmentation_platform::proto::SegmentId SegmentInfo::_internal_segment_id() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return static_cast<::segmentation_platform::proto::SegmentId>(_impl_.segment_id_);
}
inline void SegmentInfo::_internal_set_segment_id(::segmentation_platform::proto::SegmentId value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);

                                          assert(::google::protobuf::internal::ValidateEnum(
                                              value, ::segmentation_platform::proto::SegmentId_internal_data_));
                                          _impl_.segment_id_ = value;
}

// optional .segmentation_platform.proto.SegmentationModelMetadata model_metadata = 2;
inline bool SegmentInfo::has_model_metadata() const {
  bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U);
  PROTOBUF_ASSUME(!value || _impl_.model_metadata_ != nullptr);
  return value;
}
inline const ::segmentation_platform::proto::SegmentationModelMetadata& SegmentInfo::_internal_model_metadata() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  const ::segmentation_platform::proto::SegmentationModelMetadata* p = _impl_.model_metadata_;
  return p != nullptr ? *p : *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance<::segmentation_platform::proto::SegmentationModelMetadata>(&::segmentation_platform::proto::SegmentationModelMetadata_globals_);
}
inline const ::segmentation_platform::proto::SegmentationModelMetadata& SegmentInfo::model_metadata() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_get:segmentation_platform.proto.SegmentInfo.model_metadata)
  return _internal_model_metadata();
}
inline void SegmentInfo::unsafe_arena_set_allocated_model_metadata(
    ::segmentation_platform::proto::SegmentationModelMetadata* 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<::segmentation_platform::proto::SegmentationModelMetadata*>(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:segmentation_platform.proto.SegmentInfo.model_metadata)
}
inline ::segmentation_platform::proto::SegmentationModelMetadata* PROTOBUF_NULLABLE SegmentInfo::release_model_metadata() {
  ::google::protobuf::internal::TSanWrite(&_impl_);

  ClearHasBit(_impl_._has_bits_[0], 0x00000002U);
  ::segmentation_platform::proto::SegmentationModelMetadata* 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 ::segmentation_platform::proto::SegmentationModelMetadata* PROTOBUF_NULLABLE SegmentInfo::unsafe_arena_release_model_metadata() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  // @@protoc_insertion_point(field_release:segmentation_platform.proto.SegmentInfo.model_metadata)

  ClearHasBit(_impl_._has_bits_[0], 0x00000002U);
  ::segmentation_platform::proto::SegmentationModelMetadata* temp = _impl_.model_metadata_;
  _impl_.model_metadata_ = nullptr;
  return temp;
}
inline ::segmentation_platform::proto::SegmentationModelMetadata* PROTOBUF_NONNULL SegmentInfo::_internal_mutable_model_metadata() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (_impl_.model_metadata_ == nullptr) {
    auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::segmentation_platform::proto::SegmentationModelMetadata>(GetArena());
    _impl_.model_metadata_ = reinterpret_cast<::segmentation_platform::proto::SegmentationModelMetadata*>(p);
  }
  return _impl_.model_metadata_;
}
inline ::segmentation_platform::proto::SegmentationModelMetadata* PROTOBUF_NONNULL SegmentInfo::mutable_model_metadata()
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  SetHasBit(_impl_._has_bits_[0], 0x00000002U);
  ::segmentation_platform::proto::SegmentationModelMetadata* _msg = _internal_mutable_model_metadata();
  // @@protoc_insertion_point(field_mutable:segmentation_platform.proto.SegmentInfo.model_metadata)
  return _msg;
}
inline void SegmentInfo::set_allocated_model_metadata(::segmentation_platform::proto::SegmentationModelMetadata* 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], 0x00000002U);
  } else {
    ClearHasBit(_impl_._has_bits_[0], 0x00000002U);
  }

  _impl_.model_metadata_ = reinterpret_cast<::segmentation_platform::proto::SegmentationModelMetadata*>(value);
  // @@protoc_insertion_point(field_set_allocated:segmentation_platform.proto.SegmentInfo.model_metadata)
}

// optional .segmentation_platform.proto.PredictionResult prediction_result = 3;
inline bool SegmentInfo::has_prediction_result() const {
  bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U);
  PROTOBUF_ASSUME(!value || _impl_.prediction_result_ != nullptr);
  return value;
}
inline const ::segmentation_platform::proto::PredictionResult& SegmentInfo::_internal_prediction_result() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  const ::segmentation_platform::proto::PredictionResult* p = _impl_.prediction_result_;
  return p != nullptr ? *p : *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance<::segmentation_platform::proto::PredictionResult>(&::segmentation_platform::proto::PredictionResult_globals_);
}
inline const ::segmentation_platform::proto::PredictionResult& SegmentInfo::prediction_result() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_get:segmentation_platform.proto.SegmentInfo.prediction_result)
  return _internal_prediction_result();
}
inline void SegmentInfo::unsafe_arena_set_allocated_prediction_result(
    ::segmentation_platform::proto::PredictionResult* PROTOBUF_NULLABLE value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (GetArena() == nullptr) {
    delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.prediction_result_);
  }
  _impl_.prediction_result_ = reinterpret_cast<::segmentation_platform::proto::PredictionResult*>(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:segmentation_platform.proto.SegmentInfo.prediction_result)
}
inline ::segmentation_platform::proto::PredictionResult* PROTOBUF_NULLABLE SegmentInfo::release_prediction_result() {
  ::google::protobuf::internal::TSanWrite(&_impl_);

  ClearHasBit(_impl_._has_bits_[0], 0x00000004U);
  ::segmentation_platform::proto::PredictionResult* released = _impl_.prediction_result_;
  _impl_.prediction_result_ = 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 ::segmentation_platform::proto::PredictionResult* PROTOBUF_NULLABLE SegmentInfo::unsafe_arena_release_prediction_result() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  // @@protoc_insertion_point(field_release:segmentation_platform.proto.SegmentInfo.prediction_result)

  ClearHasBit(_impl_._has_bits_[0], 0x00000004U);
  ::segmentation_platform::proto::PredictionResult* temp = _impl_.prediction_result_;
  _impl_.prediction_result_ = nullptr;
  return temp;
}
inline ::segmentation_platform::proto::PredictionResult* PROTOBUF_NONNULL SegmentInfo::_internal_mutable_prediction_result() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (_impl_.prediction_result_ == nullptr) {
    auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::segmentation_platform::proto::PredictionResult>(GetArena());
    _impl_.prediction_result_ = reinterpret_cast<::segmentation_platform::proto::PredictionResult*>(p);
  }
  return _impl_.prediction_result_;
}
inline ::segmentation_platform::proto::PredictionResult* PROTOBUF_NONNULL SegmentInfo::mutable_prediction_result()
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  SetHasBit(_impl_._has_bits_[0], 0x00000004U);
  ::segmentation_platform::proto::PredictionResult* _msg = _internal_mutable_prediction_result();
  // @@protoc_insertion_point(field_mutable:segmentation_platform.proto.SegmentInfo.prediction_result)
  return _msg;
}
inline void SegmentInfo::set_allocated_prediction_result(::segmentation_platform::proto::PredictionResult* 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_.prediction_result_);
  }

  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_.prediction_result_ = reinterpret_cast<::segmentation_platform::proto::PredictionResult*>(value);
  // @@protoc_insertion_point(field_set_allocated:segmentation_platform.proto.SegmentInfo.prediction_result)
}

// optional int64 model_version = 4;
inline bool SegmentInfo::has_model_version() const {
  bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000020U);
  return value;
}
inline void SegmentInfo::clear_model_version() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.model_version_ = ::int64_t{0};
  ClearHasBit(_impl_._has_bits_[0], 0x00000020U);
}
inline ::int64_t SegmentInfo::model_version() const {
  // @@protoc_insertion_point(field_get:segmentation_platform.proto.SegmentInfo.model_version)
  return _internal_model_version();
}
inline void SegmentInfo::set_model_version(::int64_t value) {
  _internal_set_model_version(value);
  SetHasBit(_impl_._has_bits_[0], 0x00000020U);
  // @@protoc_insertion_point(field_set:segmentation_platform.proto.SegmentInfo.model_version)
}
inline ::int64_t SegmentInfo::_internal_model_version() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.model_version_;
}
inline void SegmentInfo::_internal_set_model_version(::int64_t value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.model_version_ = value;
}

// optional int64 model_update_time_s = 5;
inline bool SegmentInfo::has_model_update_time_s() const {
  bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000040U);
  return value;
}
inline void SegmentInfo::clear_model_update_time_s() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.model_update_time_s_ = ::int64_t{0};
  ClearHasBit(_impl_._has_bits_[0], 0x00000040U);
}
inline ::int64_t SegmentInfo::model_update_time_s() const {
  // @@protoc_insertion_point(field_get:segmentation_platform.proto.SegmentInfo.model_update_time_s)
  return _internal_model_update_time_s();
}
inline void SegmentInfo::set_model_update_time_s(::int64_t value) {
  _internal_set_model_update_time_s(value);
  SetHasBit(_impl_._has_bits_[0], 0x00000040U);
  // @@protoc_insertion_point(field_set:segmentation_platform.proto.SegmentInfo.model_update_time_s)
}
inline ::int64_t SegmentInfo::_internal_model_update_time_s() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.model_update_time_s_;
}
inline void SegmentInfo::_internal_set_model_update_time_s(::int64_t value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.model_update_time_s_ = value;
}

// optional .segmentation_platform.proto.ModelSource model_source = 6;
inline bool SegmentInfo::has_model_source() const {
  bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000010U);
  return value;
}
inline void SegmentInfo::clear_model_source() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.model_source_ = 0;
  ClearHasBit(_impl_._has_bits_[0], 0x00000010U);
}
inline ::segmentation_platform::proto::ModelSource SegmentInfo::model_source() const {
  // @@protoc_insertion_point(field_get:segmentation_platform.proto.SegmentInfo.model_source)
  return _internal_model_source();
}
inline void SegmentInfo::set_model_source(::segmentation_platform::proto::ModelSource value) {
  _internal_set_model_source(value);
  SetHasBit(_impl_._has_bits_[0], 0x00000010U);
  // @@protoc_insertion_point(field_set:segmentation_platform.proto.SegmentInfo.model_source)
}
inline ::segmentation_platform::proto::ModelSource SegmentInfo::_internal_model_source() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return static_cast<::segmentation_platform::proto::ModelSource>(_impl_.model_source_);
}
inline void SegmentInfo::_internal_set_model_source(::segmentation_platform::proto::ModelSource value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);

                                          assert(::google::protobuf::internal::ValidateEnum(
                                              value, ::segmentation_platform::proto::ModelSource_internal_data_));
                                          _impl_.model_source_ = value;
}

// repeated .segmentation_platform.proto.TrainingData training_data = 7;
inline int SegmentInfo::_internal_training_data_size() const {
  return _internal_training_data().size();
}
inline int SegmentInfo::training_data_size() const {
  return _internal_training_data_size();
}
inline void SegmentInfo::clear_training_data() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.training_data_.Clear();
  ClearHasBit(_impl_._has_bits_[0], 0x00000001U);
}
inline const ::segmentation_platform::proto::TrainingData& SegmentInfo::training_data(int index) const
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_get:segmentation_platform.proto.SegmentInfo.training_data)
  return _internal_training_data().Get(index);
}
inline ::segmentation_platform::proto::TrainingData* PROTOBUF_NONNULL SegmentInfo::mutable_training_data(int index)
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_mutable:segmentation_platform.proto.SegmentInfo.training_data)
  return _internal_mutable_training_data()->Mutable(index);
}
inline ::segmentation_platform::proto::TrainingData* PROTOBUF_NONNULL SegmentInfo::add_training_data()
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  ::segmentation_platform::proto::TrainingData* _add =
      _internal_mutable_training_data()->InternalAddWithArena(
          ::google::protobuf::MessageLite::internal_visibility(), GetArena());
  SetHasBit(_impl_._has_bits_[0], 0x00000001U);
  // @@protoc_insertion_point(field_add:segmentation_platform.proto.SegmentInfo.training_data)
  return _add;
}
inline const ::google::protobuf::RepeatedPtrField<::segmentation_platform::proto::TrainingData>& SegmentInfo::training_data() const
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_list:segmentation_platform.proto.SegmentInfo.training_data)
  return _internal_training_data();
}
inline ::google::protobuf::RepeatedPtrField<::segmentation_platform::proto::TrainingData>* PROTOBUF_NONNULL
SegmentInfo::mutable_training_data() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  SetHasBit(_impl_._has_bits_[0], 0x00000001U);
  // @@protoc_insertion_point(field_mutable_list:segmentation_platform.proto.SegmentInfo.training_data)
  ::google::protobuf::internal::TSanWrite(&_impl_);
  return _internal_mutable_training_data();
}
inline const ::google::protobuf::RepeatedPtrField<::segmentation_platform::proto::TrainingData>&
SegmentInfo::_internal_training_data() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.training_data_;
}
inline ::google::protobuf::RepeatedPtrField<::segmentation_platform::proto::TrainingData>* PROTOBUF_NONNULL
SegmentInfo::_internal_mutable_training_data() {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return &_impl_.training_data_;
}

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

// LegacyPredictionResultForTesting

// optional float result = 1;
inline bool LegacyPredictionResultForTesting::has_result() const {
  bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U);
  return value;
}
inline void LegacyPredictionResultForTesting::clear_result() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.result_ = 0;
  ClearHasBit(_impl_._has_bits_[0], 0x00000002U);
}
inline float LegacyPredictionResultForTesting::result() const {
  // @@protoc_insertion_point(field_get:segmentation_platform.proto.LegacyPredictionResultForTesting.result)
  return _internal_result();
}
inline void LegacyPredictionResultForTesting::set_result(float value) {
  _internal_set_result(value);
  SetHasBit(_impl_._has_bits_[0], 0x00000002U);
  // @@protoc_insertion_point(field_set:segmentation_platform.proto.LegacyPredictionResultForTesting.result)
}
inline float LegacyPredictionResultForTesting::_internal_result() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.result_;
}
inline void LegacyPredictionResultForTesting::_internal_set_result(float value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.result_ = value;
}

// optional int64 timestamp_us = 2;
inline bool LegacyPredictionResultForTesting::has_timestamp_us() const {
  bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U);
  return value;
}
inline void LegacyPredictionResultForTesting::clear_timestamp_us() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.timestamp_us_ = ::int64_t{0};
  ClearHasBit(_impl_._has_bits_[0], 0x00000001U);
}
inline ::int64_t LegacyPredictionResultForTesting::timestamp_us() const {
  // @@protoc_insertion_point(field_get:segmentation_platform.proto.LegacyPredictionResultForTesting.timestamp_us)
  return _internal_timestamp_us();
}
inline void LegacyPredictionResultForTesting::set_timestamp_us(::int64_t value) {
  _internal_set_timestamp_us(value);
  SetHasBit(_impl_._has_bits_[0], 0x00000001U);
  // @@protoc_insertion_point(field_set:segmentation_platform.proto.LegacyPredictionResultForTesting.timestamp_us)
}
inline ::int64_t LegacyPredictionResultForTesting::_internal_timestamp_us() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.timestamp_us_;
}
inline void LegacyPredictionResultForTesting::_internal_set_timestamp_us(::int64_t value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.timestamp_us_ = value;
}

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

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


// @@protoc_insertion_point(global_scope)

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

#endif  // components_2fsegmentation_5fplatform_2finternal_2fproto_2fmodel_5fprediction_2eproto_2epb_2eh
