// Generated by the protocol buffer compiler.  DO NOT EDIT!
// NO CHECKED-IN PROTOBUF GENCODE
// source: xla/backends/gpu/runtime/buffer_debug_log.proto
// Protobuf C++ Version: 6.31.1

#ifndef xla_2fbackends_2fgpu_2fruntime_2fbuffer_5fdebug_5flog_2eproto_2epb_2eh
#define xla_2fbackends_2fgpu_2fruntime_2fbuffer_5fdebug_5flog_2eproto_2epb_2eh

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

#include "google/protobuf/runtime_version.h"
#if PROTOBUF_VERSION != 6031001
#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/generated_message_reflection.h"
#include "google/protobuf/message.h"
#include "google/protobuf/message_lite.h"
#include "google/protobuf/repeated_field.h"  // IWYU pragma: export
#include "google/protobuf/extension_set.h"  // IWYU pragma: export
#include "google/protobuf/generated_enum_reflection.h"
#include "google/protobuf/unknown_field_set.h"
// @@protoc_insertion_point(includes)

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

#define PROTOBUF_INTERNAL_EXPORT_xla_2fbackends_2fgpu_2fruntime_2fbuffer_5fdebug_5flog_2eproto PROTOBUF_EXPORT

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 PROTOBUF_EXPORT TableStruct_xla_2fbackends_2fgpu_2fruntime_2fbuffer_5fdebug_5flog_2eproto {
  static const ::uint32_t offsets[];
};
extern "C" {
PROTOBUF_EXPORT extern const ::google::protobuf::internal::DescriptorTable descriptor_table_xla_2fbackends_2fgpu_2fruntime_2fbuffer_5fdebug_5flog_2eproto;
}  // extern "C"
namespace xla {
namespace gpu {
enum BufferDebugLogEntryProto_CheckType : int;
PROTOBUF_EXPORT extern const uint32_t BufferDebugLogEntryProto_CheckType_internal_data_[];
class BufferDebugLogEntryProto;
struct BufferDebugLogEntryProtoDefaultTypeInternal;
PROTOBUF_EXPORT extern BufferDebugLogEntryProtoDefaultTypeInternal _BufferDebugLogEntryProto_default_instance_;
PROTOBUF_EXPORT extern const ::google::protobuf::internal::ClassDataFull BufferDebugLogEntryProto_class_data_;
class BufferDebugLogProto;
struct BufferDebugLogProtoDefaultTypeInternal;
PROTOBUF_EXPORT extern BufferDebugLogProtoDefaultTypeInternal _BufferDebugLogProto_default_instance_;
PROTOBUF_EXPORT extern const ::google::protobuf::internal::ClassDataFull BufferDebugLogProto_class_data_;
}  // namespace gpu
}  // namespace xla
namespace google {
namespace protobuf {
template <>
internal::EnumTraitsT<::xla::gpu::BufferDebugLogEntryProto_CheckType_internal_data_>
    internal::EnumTraitsImpl::value<::xla::gpu::BufferDebugLogEntryProto_CheckType>;
}  // namespace protobuf
}  // namespace google

namespace xla {
namespace gpu {
enum BufferDebugLogEntryProto_CheckType : int {
  BufferDebugLogEntryProto_CheckType_CHECK_TYPE_UNSPECIFIED = 0,
  BufferDebugLogEntryProto_CheckType_CHECK_TYPE_CHECKSUM = 1,
  BufferDebugLogEntryProto_CheckType_CHECK_TYPE_FLOAT_CHECKS = 2,
  BufferDebugLogEntryProto_CheckType_BufferDebugLogEntryProto_CheckType_INT_MIN_SENTINEL_DO_NOT_USE_ =
      ::std::numeric_limits<::int32_t>::min(),
  BufferDebugLogEntryProto_CheckType_BufferDebugLogEntryProto_CheckType_INT_MAX_SENTINEL_DO_NOT_USE_ =
      ::std::numeric_limits<::int32_t>::max(),
};

PROTOBUF_EXPORT extern const uint32_t BufferDebugLogEntryProto_CheckType_internal_data_[];
inline constexpr BufferDebugLogEntryProto_CheckType BufferDebugLogEntryProto_CheckType_CheckType_MIN =
    static_cast<BufferDebugLogEntryProto_CheckType>(0);
inline constexpr BufferDebugLogEntryProto_CheckType BufferDebugLogEntryProto_CheckType_CheckType_MAX =
    static_cast<BufferDebugLogEntryProto_CheckType>(2);
inline bool BufferDebugLogEntryProto_CheckType_IsValid(int value) {
  return 0 <= value && value <= 2;
}
inline constexpr int BufferDebugLogEntryProto_CheckType_CheckType_ARRAYSIZE = 2 + 1;
PROTOBUF_EXPORT const ::google::protobuf::EnumDescriptor* PROTOBUF_NONNULL BufferDebugLogEntryProto_CheckType_descriptor();
template <typename T>
const ::std::string& BufferDebugLogEntryProto_CheckType_Name(T value) {
  static_assert(::std::is_same<T, BufferDebugLogEntryProto_CheckType>::value ||
                    ::std::is_integral<T>::value,
                "Incorrect type passed to CheckType_Name().");
  return BufferDebugLogEntryProto_CheckType_Name(static_cast<BufferDebugLogEntryProto_CheckType>(value));
}
template <>
inline const ::std::string& BufferDebugLogEntryProto_CheckType_Name(BufferDebugLogEntryProto_CheckType value) {
  return ::google::protobuf::internal::NameOfDenseEnum<BufferDebugLogEntryProto_CheckType_descriptor, 0, 2>(
      static_cast<int>(value));
}
inline bool BufferDebugLogEntryProto_CheckType_Parse(
    ::absl::string_view name, BufferDebugLogEntryProto_CheckType* PROTOBUF_NONNULL value) {
  return ::google::protobuf::internal::ParseNamedEnum<BufferDebugLogEntryProto_CheckType>(BufferDebugLogEntryProto_CheckType_descriptor(), name,
                                           value);
}

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


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

class PROTOBUF_EXPORT BufferDebugLogEntryProto final : public ::google::protobuf::Message
/* @@protoc_insertion_point(class_definition:xla.gpu.BufferDebugLogEntryProto) */ {
 public:
  inline BufferDebugLogEntryProto() : BufferDebugLogEntryProto(nullptr) {}
  ~BufferDebugLogEntryProto() PROTOBUF_FINAL;

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

  template <typename = void>
  explicit PROTOBUF_CONSTEXPR BufferDebugLogEntryProto(::google::protobuf::internal::ConstantInitialized);

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

  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
      ABSL_ATTRIBUTE_LIFETIME_BOUND {
    return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
  }
  inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields()
      ABSL_ATTRIBUTE_LIFETIME_BOUND {
    return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
  }

  static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() {
    return GetDescriptor();
  }
  static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() {
    return default_instance().GetMetadata().descriptor;
  }
  static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() {
    return default_instance().GetMetadata().reflection;
  }
  static const BufferDebugLogEntryProto& default_instance() {
    return *reinterpret_cast<const BufferDebugLogEntryProto*>(
        &_BufferDebugLogEntryProto_default_instance_);
  }
  static constexpr int kIndexInFileMessages = 0;
  friend void swap(BufferDebugLogEntryProto& a, BufferDebugLogEntryProto& b) { a.Swap(&b); }
  inline void Swap(BufferDebugLogEntryProto* 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(BufferDebugLogEntryProto* PROTOBUF_NONNULL other) {
    if (other == this) return;
    ABSL_DCHECK(GetArena() == other->GetArena());
    InternalSwap(other);
  }

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

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

 protected:
  explicit BufferDebugLogEntryProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
  BufferDebugLogEntryProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const BufferDebugLogEntryProto& from);
  BufferDebugLogEntryProto(
      ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, BufferDebugLogEntryProto&& from) noexcept
      : BufferDebugLogEntryProto(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_();

  ::google::protobuf::Metadata GetMetadata() const;
  // nested types ----------------------------------------------------
  using CheckType = BufferDebugLogEntryProto_CheckType;
  static constexpr CheckType CHECK_TYPE_UNSPECIFIED = BufferDebugLogEntryProto_CheckType_CHECK_TYPE_UNSPECIFIED;
  static constexpr CheckType CHECK_TYPE_CHECKSUM = BufferDebugLogEntryProto_CheckType_CHECK_TYPE_CHECKSUM;
  static constexpr CheckType CHECK_TYPE_FLOAT_CHECKS = BufferDebugLogEntryProto_CheckType_CHECK_TYPE_FLOAT_CHECKS;
  static inline bool CheckType_IsValid(int value) {
    return BufferDebugLogEntryProto_CheckType_IsValid(value);
  }
  static constexpr CheckType CheckType_MIN = BufferDebugLogEntryProto_CheckType_CheckType_MIN;
  static constexpr CheckType CheckType_MAX = BufferDebugLogEntryProto_CheckType_CheckType_MAX;
  static constexpr int CheckType_ARRAYSIZE = BufferDebugLogEntryProto_CheckType_CheckType_ARRAYSIZE;
  static inline const ::google::protobuf::EnumDescriptor* PROTOBUF_NONNULL CheckType_descriptor() {
    return BufferDebugLogEntryProto_CheckType_descriptor();
  }
  template <typename T>
  static inline const ::std::string& CheckType_Name(T value) {
    return BufferDebugLogEntryProto_CheckType_Name(value);
  }
  static inline bool CheckType_Parse(
      ::absl::string_view name, CheckType* PROTOBUF_NONNULL value) {
    return BufferDebugLogEntryProto_CheckType_Parse(name, value);
  }

  // accessors -------------------------------------------------------
  enum : int {
    kThunkIdFieldNumber = 1,
    kBufferIdxFieldNumber = 2,
    kChecksumFieldNumber = 3,
    kIsInputBufferFieldNumber = 4,
    kExecutionIdFieldNumber = 5,
    kCheckTypeFieldNumber = 6,
  };
  // uint64 thunk_id = 1;
  void clear_thunk_id() ;
  ::uint64_t thunk_id() const;
  void set_thunk_id(::uint64_t value);

  private:
  ::uint64_t _internal_thunk_id() const;
  void _internal_set_thunk_id(::uint64_t value);

  public:
  // uint64 buffer_idx = 2;
  void clear_buffer_idx() ;
  ::uint64_t buffer_idx() const;
  void set_buffer_idx(::uint64_t value);

  private:
  ::uint64_t _internal_buffer_idx() const;
  void _internal_set_buffer_idx(::uint64_t value);

  public:
  // uint32 checksum = 3;
  void clear_checksum() ;
  ::uint32_t checksum() const;
  void set_checksum(::uint32_t value);

  private:
  ::uint32_t _internal_checksum() const;
  void _internal_set_checksum(::uint32_t value);

  public:
  // bool is_input_buffer = 4;
  void clear_is_input_buffer() ;
  bool is_input_buffer() const;
  void set_is_input_buffer(bool value);

  private:
  bool _internal_is_input_buffer() const;
  void _internal_set_is_input_buffer(bool value);

  public:
  // uint32 execution_id = 5;
  void clear_execution_id() ;
  ::uint32_t execution_id() const;
  void set_execution_id(::uint32_t value);

  private:
  ::uint32_t _internal_execution_id() const;
  void _internal_set_execution_id(::uint32_t value);

  public:
  // .xla.gpu.BufferDebugLogEntryProto.CheckType check_type = 6;
  void clear_check_type() ;
  ::xla::gpu::BufferDebugLogEntryProto_CheckType check_type() const;
  void set_check_type(::xla::gpu::BufferDebugLogEntryProto_CheckType value);

  private:
  ::xla::gpu::BufferDebugLogEntryProto_CheckType _internal_check_type() const;
  void _internal_set_check_type(::xla::gpu::BufferDebugLogEntryProto_CheckType value);

  public:
  // @@protoc_insertion_point(class_scope:xla.gpu.BufferDebugLogEntryProto)
 private:
  class _Internal;
  friend class ::google::protobuf::internal::TcParser;
  static const ::google::protobuf::internal::TcParseTable<3, 6,
                                   0, 0,
                                   2>
      _table_;

  friend class ::google::protobuf::MessageLite;
  friend class ::google::protobuf::Arena;
  template <typename T>
  friend class ::google::protobuf::Arena::InternalHelper;
  using InternalArenaConstructable_ = void;
  using DestructorSkippable_ = void;
  struct Impl_ {
    inline explicit constexpr Impl_(::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 BufferDebugLogEntryProto& from_msg);
    ::google::protobuf::internal::HasBits<1> _has_bits_;
    ::google::protobuf::internal::CachedSize _cached_size_;
    ::uint64_t thunk_id_;
    ::uint64_t buffer_idx_;
    ::uint32_t checksum_;
    bool is_input_buffer_;
    ::uint32_t execution_id_;
    int check_type_;
    PROTOBUF_TSAN_DECLARE_MEMBER
  };
  union { Impl_ _impl_; };
  friend struct ::TableStruct_xla_2fbackends_2fgpu_2fruntime_2fbuffer_5fdebug_5flog_2eproto;
};

PROTOBUF_EXPORT extern const ::google::protobuf::internal::ClassDataFull BufferDebugLogEntryProto_class_data_;
// -------------------------------------------------------------------

class PROTOBUF_EXPORT BufferDebugLogProto final : public ::google::protobuf::Message
/* @@protoc_insertion_point(class_definition:xla.gpu.BufferDebugLogProto) */ {
 public:
  inline BufferDebugLogProto() : BufferDebugLogProto(nullptr) {}
  ~BufferDebugLogProto() PROTOBUF_FINAL;

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

  template <typename = void>
  explicit PROTOBUF_CONSTEXPR BufferDebugLogProto(::google::protobuf::internal::ConstantInitialized);

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

  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
      ABSL_ATTRIBUTE_LIFETIME_BOUND {
    return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
  }
  inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields()
      ABSL_ATTRIBUTE_LIFETIME_BOUND {
    return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
  }

  static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() {
    return GetDescriptor();
  }
  static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() {
    return default_instance().GetMetadata().descriptor;
  }
  static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() {
    return default_instance().GetMetadata().reflection;
  }
  static const BufferDebugLogProto& default_instance() {
    return *reinterpret_cast<const BufferDebugLogProto*>(
        &_BufferDebugLogProto_default_instance_);
  }
  static constexpr int kIndexInFileMessages = 1;
  friend void swap(BufferDebugLogProto& a, BufferDebugLogProto& b) { a.Swap(&b); }
  inline void Swap(BufferDebugLogProto* 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(BufferDebugLogProto* PROTOBUF_NONNULL other) {
    if (other == this) return;
    ABSL_DCHECK(GetArena() == other->GetArena());
    InternalSwap(other);
  }

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

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

 protected:
  explicit BufferDebugLogProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
  BufferDebugLogProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const BufferDebugLogProto& from);
  BufferDebugLogProto(
      ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, BufferDebugLogProto&& from) noexcept
      : BufferDebugLogProto(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_();

  ::google::protobuf::Metadata GetMetadata() const;
  // nested types ----------------------------------------------------

  // accessors -------------------------------------------------------
  enum : int {
    kEntriesFieldNumber = 1,
  };
  // repeated .xla.gpu.BufferDebugLogEntryProto entries = 1;
  int entries_size() const;
  private:
  int _internal_entries_size() const;

  public:
  void clear_entries() ;
  ::xla::gpu::BufferDebugLogEntryProto* PROTOBUF_NONNULL mutable_entries(int index);
  ::google::protobuf::RepeatedPtrField<::xla::gpu::BufferDebugLogEntryProto>* PROTOBUF_NONNULL mutable_entries();

  private:
  const ::google::protobuf::RepeatedPtrField<::xla::gpu::BufferDebugLogEntryProto>& _internal_entries() const;
  ::google::protobuf::RepeatedPtrField<::xla::gpu::BufferDebugLogEntryProto>* PROTOBUF_NONNULL _internal_mutable_entries();
  public:
  const ::xla::gpu::BufferDebugLogEntryProto& entries(int index) const;
  ::xla::gpu::BufferDebugLogEntryProto* PROTOBUF_NONNULL add_entries();
  const ::google::protobuf::RepeatedPtrField<::xla::gpu::BufferDebugLogEntryProto>& entries() const;
  // @@protoc_insertion_point(class_scope:xla.gpu.BufferDebugLogProto)
 private:
  class _Internal;
  friend class ::google::protobuf::internal::TcParser;
  static const ::google::protobuf::internal::TcParseTable<0, 1,
                                   1, 0,
                                   2>
      _table_;

  friend class ::google::protobuf::MessageLite;
  friend class ::google::protobuf::Arena;
  template <typename T>
  friend class ::google::protobuf::Arena::InternalHelper;
  using InternalArenaConstructable_ = void;
  using DestructorSkippable_ = void;
  struct Impl_ {
    inline explicit constexpr Impl_(::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 BufferDebugLogProto& from_msg);
    ::google::protobuf::RepeatedPtrField< ::xla::gpu::BufferDebugLogEntryProto > entries_;
    ::google::protobuf::internal::CachedSize _cached_size_;
    PROTOBUF_TSAN_DECLARE_MEMBER
  };
  union { Impl_ _impl_; };
  friend struct ::TableStruct_xla_2fbackends_2fgpu_2fruntime_2fbuffer_5fdebug_5flog_2eproto;
};

PROTOBUF_EXPORT extern const ::google::protobuf::internal::ClassDataFull BufferDebugLogProto_class_data_;

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




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


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

// BufferDebugLogEntryProto

// uint64 thunk_id = 1;
inline void BufferDebugLogEntryProto::clear_thunk_id() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.thunk_id_ = ::uint64_t{0u};
  _impl_._has_bits_[0] &= ~0x00000001u;
}
inline ::uint64_t BufferDebugLogEntryProto::thunk_id() const {
  // @@protoc_insertion_point(field_get:xla.gpu.BufferDebugLogEntryProto.thunk_id)
  return _internal_thunk_id();
}
inline void BufferDebugLogEntryProto::set_thunk_id(::uint64_t value) {
  _internal_set_thunk_id(value);
  _impl_._has_bits_[0] |= 0x00000001u;
  // @@protoc_insertion_point(field_set:xla.gpu.BufferDebugLogEntryProto.thunk_id)
}
inline ::uint64_t BufferDebugLogEntryProto::_internal_thunk_id() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.thunk_id_;
}
inline void BufferDebugLogEntryProto::_internal_set_thunk_id(::uint64_t value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.thunk_id_ = value;
}

// uint64 buffer_idx = 2;
inline void BufferDebugLogEntryProto::clear_buffer_idx() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.buffer_idx_ = ::uint64_t{0u};
  _impl_._has_bits_[0] &= ~0x00000002u;
}
inline ::uint64_t BufferDebugLogEntryProto::buffer_idx() const {
  // @@protoc_insertion_point(field_get:xla.gpu.BufferDebugLogEntryProto.buffer_idx)
  return _internal_buffer_idx();
}
inline void BufferDebugLogEntryProto::set_buffer_idx(::uint64_t value) {
  _internal_set_buffer_idx(value);
  _impl_._has_bits_[0] |= 0x00000002u;
  // @@protoc_insertion_point(field_set:xla.gpu.BufferDebugLogEntryProto.buffer_idx)
}
inline ::uint64_t BufferDebugLogEntryProto::_internal_buffer_idx() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.buffer_idx_;
}
inline void BufferDebugLogEntryProto::_internal_set_buffer_idx(::uint64_t value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.buffer_idx_ = value;
}

// uint32 checksum = 3;
inline void BufferDebugLogEntryProto::clear_checksum() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.checksum_ = 0u;
  _impl_._has_bits_[0] &= ~0x00000004u;
}
inline ::uint32_t BufferDebugLogEntryProto::checksum() const {
  // @@protoc_insertion_point(field_get:xla.gpu.BufferDebugLogEntryProto.checksum)
  return _internal_checksum();
}
inline void BufferDebugLogEntryProto::set_checksum(::uint32_t value) {
  _internal_set_checksum(value);
  _impl_._has_bits_[0] |= 0x00000004u;
  // @@protoc_insertion_point(field_set:xla.gpu.BufferDebugLogEntryProto.checksum)
}
inline ::uint32_t BufferDebugLogEntryProto::_internal_checksum() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.checksum_;
}
inline void BufferDebugLogEntryProto::_internal_set_checksum(::uint32_t value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.checksum_ = value;
}

// bool is_input_buffer = 4;
inline void BufferDebugLogEntryProto::clear_is_input_buffer() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.is_input_buffer_ = false;
  _impl_._has_bits_[0] &= ~0x00000008u;
}
inline bool BufferDebugLogEntryProto::is_input_buffer() const {
  // @@protoc_insertion_point(field_get:xla.gpu.BufferDebugLogEntryProto.is_input_buffer)
  return _internal_is_input_buffer();
}
inline void BufferDebugLogEntryProto::set_is_input_buffer(bool value) {
  _internal_set_is_input_buffer(value);
  _impl_._has_bits_[0] |= 0x00000008u;
  // @@protoc_insertion_point(field_set:xla.gpu.BufferDebugLogEntryProto.is_input_buffer)
}
inline bool BufferDebugLogEntryProto::_internal_is_input_buffer() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.is_input_buffer_;
}
inline void BufferDebugLogEntryProto::_internal_set_is_input_buffer(bool value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.is_input_buffer_ = value;
}

// uint32 execution_id = 5;
inline void BufferDebugLogEntryProto::clear_execution_id() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.execution_id_ = 0u;
  _impl_._has_bits_[0] &= ~0x00000010u;
}
inline ::uint32_t BufferDebugLogEntryProto::execution_id() const {
  // @@protoc_insertion_point(field_get:xla.gpu.BufferDebugLogEntryProto.execution_id)
  return _internal_execution_id();
}
inline void BufferDebugLogEntryProto::set_execution_id(::uint32_t value) {
  _internal_set_execution_id(value);
  _impl_._has_bits_[0] |= 0x00000010u;
  // @@protoc_insertion_point(field_set:xla.gpu.BufferDebugLogEntryProto.execution_id)
}
inline ::uint32_t BufferDebugLogEntryProto::_internal_execution_id() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.execution_id_;
}
inline void BufferDebugLogEntryProto::_internal_set_execution_id(::uint32_t value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.execution_id_ = value;
}

// .xla.gpu.BufferDebugLogEntryProto.CheckType check_type = 6;
inline void BufferDebugLogEntryProto::clear_check_type() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.check_type_ = 0;
  _impl_._has_bits_[0] &= ~0x00000020u;
}
inline ::xla::gpu::BufferDebugLogEntryProto_CheckType BufferDebugLogEntryProto::check_type() const {
  // @@protoc_insertion_point(field_get:xla.gpu.BufferDebugLogEntryProto.check_type)
  return _internal_check_type();
}
inline void BufferDebugLogEntryProto::set_check_type(::xla::gpu::BufferDebugLogEntryProto_CheckType value) {
  _internal_set_check_type(value);
  _impl_._has_bits_[0] |= 0x00000020u;
  // @@protoc_insertion_point(field_set:xla.gpu.BufferDebugLogEntryProto.check_type)
}
inline ::xla::gpu::BufferDebugLogEntryProto_CheckType BufferDebugLogEntryProto::_internal_check_type() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return static_cast<::xla::gpu::BufferDebugLogEntryProto_CheckType>(_impl_.check_type_);
}
inline void BufferDebugLogEntryProto::_internal_set_check_type(::xla::gpu::BufferDebugLogEntryProto_CheckType value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.check_type_ = value;
}

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

// BufferDebugLogProto

// repeated .xla.gpu.BufferDebugLogEntryProto entries = 1;
inline int BufferDebugLogProto::_internal_entries_size() const {
  return _internal_entries().size();
}
inline int BufferDebugLogProto::entries_size() const {
  return _internal_entries_size();
}
inline void BufferDebugLogProto::clear_entries() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.entries_.Clear();
}
inline ::xla::gpu::BufferDebugLogEntryProto* PROTOBUF_NONNULL BufferDebugLogProto::mutable_entries(int index)
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_mutable:xla.gpu.BufferDebugLogProto.entries)
  return _internal_mutable_entries()->Mutable(index);
}
inline ::google::protobuf::RepeatedPtrField<::xla::gpu::BufferDebugLogEntryProto>* PROTOBUF_NONNULL BufferDebugLogProto::mutable_entries()
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_mutable_list:xla.gpu.BufferDebugLogProto.entries)
  ::google::protobuf::internal::TSanWrite(&_impl_);
  return _internal_mutable_entries();
}
inline const ::xla::gpu::BufferDebugLogEntryProto& BufferDebugLogProto::entries(int index) const
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_get:xla.gpu.BufferDebugLogProto.entries)
  return _internal_entries().Get(index);
}
inline ::xla::gpu::BufferDebugLogEntryProto* PROTOBUF_NONNULL BufferDebugLogProto::add_entries()
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  ::xla::gpu::BufferDebugLogEntryProto* _add = _internal_mutable_entries()->Add();
  // @@protoc_insertion_point(field_add:xla.gpu.BufferDebugLogProto.entries)
  return _add;
}
inline const ::google::protobuf::RepeatedPtrField<::xla::gpu::BufferDebugLogEntryProto>& BufferDebugLogProto::entries() const
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_list:xla.gpu.BufferDebugLogProto.entries)
  return _internal_entries();
}
inline const ::google::protobuf::RepeatedPtrField<::xla::gpu::BufferDebugLogEntryProto>&
BufferDebugLogProto::_internal_entries() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.entries_;
}
inline ::google::protobuf::RepeatedPtrField<::xla::gpu::BufferDebugLogEntryProto>* PROTOBUF_NONNULL
BufferDebugLogProto::_internal_mutable_entries() {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return &_impl_.entries_;
}

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

// @@protoc_insertion_point(namespace_scope)
}  // namespace gpu
}  // namespace xla


namespace google {
namespace protobuf {

template <>
struct is_proto_enum<::xla::gpu::BufferDebugLogEntryProto_CheckType> : std::true_type {};
template <>
inline const EnumDescriptor* PROTOBUF_NONNULL GetEnumDescriptor<::xla::gpu::BufferDebugLogEntryProto_CheckType>() {
  return ::xla::gpu::BufferDebugLogEntryProto_CheckType_descriptor();
}

}  // namespace protobuf
}  // namespace google

// @@protoc_insertion_point(global_scope)

#include "google/protobuf/port_undef.inc"

#endif  // xla_2fbackends_2fgpu_2fruntime_2fbuffer_5fdebug_5flog_2eproto_2epb_2eh
