// Generated by the protocol buffer compiler.  DO NOT EDIT!
// NO CHECKED-IN PROTOBUF GENCODE
// source: xla/service/gpu/executable.proto
// Protobuf C++ Version: 5.28.3

#ifndef GOOGLE_PROTOBUF_INCLUDED_xla_2fservice_2fgpu_2fexecutable_2eproto_2epb_2eh
#define GOOGLE_PROTOBUF_INCLUDED_xla_2fservice_2fgpu_2fexecutable_2eproto_2epb_2eh

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

#include "google/protobuf/runtime_version.h"
#if PROTOBUF_VERSION != 5028003
#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/repeated_field.h"  // IWYU pragma: export
#include "google/protobuf/extension_set.h"  // IWYU pragma: export
#include "google/protobuf/map.h"  // IWYU pragma: export
#include "google/protobuf/map_entry.h"
#include "google/protobuf/map_field_inl.h"
#include "google/protobuf/unknown_field_set.h"
#include "xla/service/hlo.pb.h"
#include "xla/xla.pb.h"
// @@protoc_insertion_point(includes)

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

#define PROTOBUF_INTERNAL_EXPORT_xla_2fservice_2fgpu_2fexecutable_2eproto PROTOBUF_EXPORT

namespace google {
namespace protobuf {
namespace internal {
class AnyMetadata;
}  // namespace internal
}  // namespace protobuf
}  // namespace google

// Internal implementation detail -- do not use these members.
struct PROTOBUF_EXPORT TableStruct_xla_2fservice_2fgpu_2fexecutable_2eproto {
  static const ::uint32_t offsets[];
};
PROTOBUF_EXPORT extern const ::google::protobuf::internal::DescriptorTable
    descriptor_table_xla_2fservice_2fgpu_2fexecutable_2eproto;
namespace xla {
namespace gpu {
class CompilationCacheEntryProto;
struct CompilationCacheEntryProtoDefaultTypeInternal;
PROTOBUF_EXPORT extern CompilationCacheEntryProtoDefaultTypeInternal _CompilationCacheEntryProto_default_instance_;
class CompilationCacheEntryProto_ClusterDimProto;
struct CompilationCacheEntryProto_ClusterDimProtoDefaultTypeInternal;
PROTOBUF_EXPORT extern CompilationCacheEntryProto_ClusterDimProtoDefaultTypeInternal _CompilationCacheEntryProto_ClusterDimProto_default_instance_;
class CompilationCacheEntryProto_LaunchDimensionsProto;
struct CompilationCacheEntryProto_LaunchDimensionsProtoDefaultTypeInternal;
PROTOBUF_EXPORT extern CompilationCacheEntryProto_LaunchDimensionsProtoDefaultTypeInternal _CompilationCacheEntryProto_LaunchDimensionsProto_default_instance_;
class CompilationCacheProto;
struct CompilationCacheProtoDefaultTypeInternal;
PROTOBUF_EXPORT extern CompilationCacheProtoDefaultTypeInternal _CompilationCacheProto_default_instance_;
class CompilationCacheProto_EntriesEntry_DoNotUse;
struct CompilationCacheProto_EntriesEntry_DoNotUseDefaultTypeInternal;
PROTOBUF_EXPORT extern CompilationCacheProto_EntriesEntry_DoNotUseDefaultTypeInternal _CompilationCacheProto_EntriesEntry_DoNotUse_default_instance_;
class CompilationResultProto;
struct CompilationResultProtoDefaultTypeInternal;
PROTOBUF_EXPORT extern CompilationResultProtoDefaultTypeInternal _CompilationResultProto_default_instance_;
class CompilationResultProto_DnnCompiledGraphsEntry_DoNotUse;
struct CompilationResultProto_DnnCompiledGraphsEntry_DoNotUseDefaultTypeInternal;
PROTOBUF_EXPORT extern CompilationResultProto_DnnCompiledGraphsEntry_DoNotUseDefaultTypeInternal _CompilationResultProto_DnnCompiledGraphsEntry_DoNotUse_default_instance_;
}  // namespace gpu
}  // namespace xla
namespace google {
namespace protobuf {
}  // namespace protobuf
}  // namespace google

namespace xla {
namespace gpu {

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


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

class CompilationResultProto_DnnCompiledGraphsEntry_DoNotUse final
    : public ::google::protobuf::internal::MapEntry<
          CompilationResultProto_DnnCompiledGraphsEntry_DoNotUse, std::string, std::string,
          ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
          ::google::protobuf::internal::WireFormatLite::TYPE_BYTES> {
 public:
  using SuperType = ::google::protobuf::internal::MapEntry<
      CompilationResultProto_DnnCompiledGraphsEntry_DoNotUse, std::string, std::string,
      ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
      ::google::protobuf::internal::WireFormatLite::TYPE_BYTES>;
  CompilationResultProto_DnnCompiledGraphsEntry_DoNotUse();
  template <typename = void>
  explicit PROTOBUF_CONSTEXPR CompilationResultProto_DnnCompiledGraphsEntry_DoNotUse(
      ::google::protobuf::internal::ConstantInitialized);
  explicit CompilationResultProto_DnnCompiledGraphsEntry_DoNotUse(::google::protobuf::Arena* arena);
  static const CompilationResultProto_DnnCompiledGraphsEntry_DoNotUse* internal_default_instance() {
    return reinterpret_cast<const CompilationResultProto_DnnCompiledGraphsEntry_DoNotUse*>(
        &_CompilationResultProto_DnnCompiledGraphsEntry_DoNotUse_default_instance_);
  }


 private:
  friend class ::google::protobuf::internal::TcParser;
  static const ::google::protobuf::internal::TcParseTable<
      1, 2, 0,
      65, 2>
      _table_;

  const ::google::protobuf::Message::ClassData* GetClassData() const PROTOBUF_FINAL;
  static const ::google::protobuf::Message::ClassDataFull _class_data_;
  friend struct ::TableStruct_xla_2fservice_2fgpu_2fexecutable_2eproto;
};
// -------------------------------------------------------------------

class PROTOBUF_EXPORT CompilationCacheEntryProto_LaunchDimensionsProto final : public ::google::protobuf::Message
/* @@protoc_insertion_point(class_definition:xla.gpu.CompilationCacheEntryProto.LaunchDimensionsProto) */ {
 public:
  inline CompilationCacheEntryProto_LaunchDimensionsProto() : CompilationCacheEntryProto_LaunchDimensionsProto(nullptr) {}
  ~CompilationCacheEntryProto_LaunchDimensionsProto() PROTOBUF_FINAL;
  template <typename = void>
  explicit PROTOBUF_CONSTEXPR CompilationCacheEntryProto_LaunchDimensionsProto(
      ::google::protobuf::internal::ConstantInitialized);

  inline CompilationCacheEntryProto_LaunchDimensionsProto(const CompilationCacheEntryProto_LaunchDimensionsProto& from) : CompilationCacheEntryProto_LaunchDimensionsProto(nullptr, from) {}
  inline CompilationCacheEntryProto_LaunchDimensionsProto(CompilationCacheEntryProto_LaunchDimensionsProto&& from) noexcept
      : CompilationCacheEntryProto_LaunchDimensionsProto(nullptr, std::move(from)) {}
  inline CompilationCacheEntryProto_LaunchDimensionsProto& operator=(const CompilationCacheEntryProto_LaunchDimensionsProto& from) {
    CopyFrom(from);
    return *this;
  }
  inline CompilationCacheEntryProto_LaunchDimensionsProto& operator=(CompilationCacheEntryProto_LaunchDimensionsProto&& from) noexcept {
    if (this == &from) return *this;
    if (GetArena() == from.GetArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
        && GetArena() != nullptr
#endif  // !PROTOBUF_FORCE_COPY_IN_MOVE
    ) {
      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* mutable_unknown_fields()
      ABSL_ATTRIBUTE_LIFETIME_BOUND {
    return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
  }

  static const ::google::protobuf::Descriptor* descriptor() {
    return GetDescriptor();
  }
  static const ::google::protobuf::Descriptor* GetDescriptor() {
    return default_instance().GetMetadata().descriptor;
  }
  static const ::google::protobuf::Reflection* GetReflection() {
    return default_instance().GetMetadata().reflection;
  }
  static const CompilationCacheEntryProto_LaunchDimensionsProto& default_instance() {
    return *internal_default_instance();
  }
  static inline const CompilationCacheEntryProto_LaunchDimensionsProto* internal_default_instance() {
    return reinterpret_cast<const CompilationCacheEntryProto_LaunchDimensionsProto*>(
        &_CompilationCacheEntryProto_LaunchDimensionsProto_default_instance_);
  }
  static constexpr int kIndexInFileMessages = 2;
  friend void swap(CompilationCacheEntryProto_LaunchDimensionsProto& a, CompilationCacheEntryProto_LaunchDimensionsProto& b) { a.Swap(&b); }
  inline void Swap(CompilationCacheEntryProto_LaunchDimensionsProto* other) {
    if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
    if (GetArena() != nullptr && GetArena() == other->GetArena()) {
#else   // PROTOBUF_FORCE_COPY_IN_SWAP
    if (GetArena() == other->GetArena()) {
#endif  // !PROTOBUF_FORCE_COPY_IN_SWAP
      InternalSwap(other);
    } else {
      ::google::protobuf::internal::GenericSwap(this, other);
    }
  }
  void UnsafeArenaSwap(CompilationCacheEntryProto_LaunchDimensionsProto* other) {
    if (other == this) return;
    ABSL_DCHECK(GetArena() == other->GetArena());
    InternalSwap(other);
  }

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

  CompilationCacheEntryProto_LaunchDimensionsProto* New(::google::protobuf::Arena* arena = nullptr) const PROTOBUF_FINAL {
    return ::google::protobuf::Message::DefaultConstruct<CompilationCacheEntryProto_LaunchDimensionsProto>(arena);
  }
  using ::google::protobuf::Message::CopyFrom;
  void CopyFrom(const CompilationCacheEntryProto_LaunchDimensionsProto& from);
  using ::google::protobuf::Message::MergeFrom;
  void MergeFrom(const CompilationCacheEntryProto_LaunchDimensionsProto& from) { CompilationCacheEntryProto_LaunchDimensionsProto::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* _InternalSerialize(
      const MessageLite& msg, ::uint8_t* target,
      ::google::protobuf::io::EpsCopyOutputStream* stream);

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

  private:
  void SharedCtor(::google::protobuf::Arena* arena);
  void SharedDtor();
  void InternalSwap(CompilationCacheEntryProto_LaunchDimensionsProto* other);
 private:
  friend class ::google::protobuf::internal::AnyMetadata;
  static ::absl::string_view FullMessageName() { return "xla.gpu.CompilationCacheEntryProto.LaunchDimensionsProto"; }

 protected:
  explicit CompilationCacheEntryProto_LaunchDimensionsProto(::google::protobuf::Arena* arena);
  CompilationCacheEntryProto_LaunchDimensionsProto(::google::protobuf::Arena* arena, const CompilationCacheEntryProto_LaunchDimensionsProto& from);
  CompilationCacheEntryProto_LaunchDimensionsProto(::google::protobuf::Arena* arena, CompilationCacheEntryProto_LaunchDimensionsProto&& from) noexcept
      : CompilationCacheEntryProto_LaunchDimensionsProto(arena) {
    *this = ::std::move(from);
  }
  const ::google::protobuf::Message::ClassData* GetClassData() const PROTOBUF_FINAL;
  static const ::google::protobuf::Message::ClassDataFull _class_data_;

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

  // accessors -------------------------------------------------------
  enum : int {
    kNumBlocksFieldNumber = 1,
    kNumThreadsPerBlockFieldNumber = 2,
  };
  // uint64 num_blocks = 1;
  void clear_num_blocks() ;
  ::uint64_t num_blocks() const;
  void set_num_blocks(::uint64_t value);

  private:
  ::uint64_t _internal_num_blocks() const;
  void _internal_set_num_blocks(::uint64_t value);

  public:
  // uint64 num_threads_per_block = 2;
  void clear_num_threads_per_block() ;
  ::uint64_t num_threads_per_block() const;
  void set_num_threads_per_block(::uint64_t value);

  private:
  ::uint64_t _internal_num_threads_per_block() const;
  void _internal_set_num_threads_per_block(::uint64_t value);

  public:
  // @@protoc_insertion_point(class_scope:xla.gpu.CompilationCacheEntryProto.LaunchDimensionsProto)
 private:
  class _Internal;
  friend class ::google::protobuf::internal::TcParser;
  static const ::google::protobuf::internal::TcParseTable<
      1, 2, 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* arena);
    inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
                          ::google::protobuf::Arena* arena, const Impl_& from,
                          const CompilationCacheEntryProto_LaunchDimensionsProto& from_msg);
    ::uint64_t num_blocks_;
    ::uint64_t num_threads_per_block_;
    mutable ::google::protobuf::internal::CachedSize _cached_size_;
    PROTOBUF_TSAN_DECLARE_MEMBER
  };
  union { Impl_ _impl_; };
  friend struct ::TableStruct_xla_2fservice_2fgpu_2fexecutable_2eproto;
};
// -------------------------------------------------------------------

class PROTOBUF_EXPORT CompilationCacheEntryProto_ClusterDimProto final : public ::google::protobuf::Message
/* @@protoc_insertion_point(class_definition:xla.gpu.CompilationCacheEntryProto.ClusterDimProto) */ {
 public:
  inline CompilationCacheEntryProto_ClusterDimProto() : CompilationCacheEntryProto_ClusterDimProto(nullptr) {}
  ~CompilationCacheEntryProto_ClusterDimProto() PROTOBUF_FINAL;
  template <typename = void>
  explicit PROTOBUF_CONSTEXPR CompilationCacheEntryProto_ClusterDimProto(
      ::google::protobuf::internal::ConstantInitialized);

  inline CompilationCacheEntryProto_ClusterDimProto(const CompilationCacheEntryProto_ClusterDimProto& from) : CompilationCacheEntryProto_ClusterDimProto(nullptr, from) {}
  inline CompilationCacheEntryProto_ClusterDimProto(CompilationCacheEntryProto_ClusterDimProto&& from) noexcept
      : CompilationCacheEntryProto_ClusterDimProto(nullptr, std::move(from)) {}
  inline CompilationCacheEntryProto_ClusterDimProto& operator=(const CompilationCacheEntryProto_ClusterDimProto& from) {
    CopyFrom(from);
    return *this;
  }
  inline CompilationCacheEntryProto_ClusterDimProto& operator=(CompilationCacheEntryProto_ClusterDimProto&& from) noexcept {
    if (this == &from) return *this;
    if (GetArena() == from.GetArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
        && GetArena() != nullptr
#endif  // !PROTOBUF_FORCE_COPY_IN_MOVE
    ) {
      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* mutable_unknown_fields()
      ABSL_ATTRIBUTE_LIFETIME_BOUND {
    return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
  }

  static const ::google::protobuf::Descriptor* descriptor() {
    return GetDescriptor();
  }
  static const ::google::protobuf::Descriptor* GetDescriptor() {
    return default_instance().GetMetadata().descriptor;
  }
  static const ::google::protobuf::Reflection* GetReflection() {
    return default_instance().GetMetadata().reflection;
  }
  static const CompilationCacheEntryProto_ClusterDimProto& default_instance() {
    return *internal_default_instance();
  }
  static inline const CompilationCacheEntryProto_ClusterDimProto* internal_default_instance() {
    return reinterpret_cast<const CompilationCacheEntryProto_ClusterDimProto*>(
        &_CompilationCacheEntryProto_ClusterDimProto_default_instance_);
  }
  static constexpr int kIndexInFileMessages = 3;
  friend void swap(CompilationCacheEntryProto_ClusterDimProto& a, CompilationCacheEntryProto_ClusterDimProto& b) { a.Swap(&b); }
  inline void Swap(CompilationCacheEntryProto_ClusterDimProto* other) {
    if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
    if (GetArena() != nullptr && GetArena() == other->GetArena()) {
#else   // PROTOBUF_FORCE_COPY_IN_SWAP
    if (GetArena() == other->GetArena()) {
#endif  // !PROTOBUF_FORCE_COPY_IN_SWAP
      InternalSwap(other);
    } else {
      ::google::protobuf::internal::GenericSwap(this, other);
    }
  }
  void UnsafeArenaSwap(CompilationCacheEntryProto_ClusterDimProto* other) {
    if (other == this) return;
    ABSL_DCHECK(GetArena() == other->GetArena());
    InternalSwap(other);
  }

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

  CompilationCacheEntryProto_ClusterDimProto* New(::google::protobuf::Arena* arena = nullptr) const PROTOBUF_FINAL {
    return ::google::protobuf::Message::DefaultConstruct<CompilationCacheEntryProto_ClusterDimProto>(arena);
  }
  using ::google::protobuf::Message::CopyFrom;
  void CopyFrom(const CompilationCacheEntryProto_ClusterDimProto& from);
  using ::google::protobuf::Message::MergeFrom;
  void MergeFrom(const CompilationCacheEntryProto_ClusterDimProto& from) { CompilationCacheEntryProto_ClusterDimProto::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* _InternalSerialize(
      const MessageLite& msg, ::uint8_t* target,
      ::google::protobuf::io::EpsCopyOutputStream* stream);

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

  private:
  void SharedCtor(::google::protobuf::Arena* arena);
  void SharedDtor();
  void InternalSwap(CompilationCacheEntryProto_ClusterDimProto* other);
 private:
  friend class ::google::protobuf::internal::AnyMetadata;
  static ::absl::string_view FullMessageName() { return "xla.gpu.CompilationCacheEntryProto.ClusterDimProto"; }

 protected:
  explicit CompilationCacheEntryProto_ClusterDimProto(::google::protobuf::Arena* arena);
  CompilationCacheEntryProto_ClusterDimProto(::google::protobuf::Arena* arena, const CompilationCacheEntryProto_ClusterDimProto& from);
  CompilationCacheEntryProto_ClusterDimProto(::google::protobuf::Arena* arena, CompilationCacheEntryProto_ClusterDimProto&& from) noexcept
      : CompilationCacheEntryProto_ClusterDimProto(arena) {
    *this = ::std::move(from);
  }
  const ::google::protobuf::Message::ClassData* GetClassData() const PROTOBUF_FINAL;
  static const ::google::protobuf::Message::ClassDataFull _class_data_;

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

  // accessors -------------------------------------------------------
  enum : int {
    kXFieldNumber = 1,
    kYFieldNumber = 2,
    kZFieldNumber = 3,
  };
  // uint64 x = 1;
  void clear_x() ;
  ::uint64_t x() const;
  void set_x(::uint64_t value);

  private:
  ::uint64_t _internal_x() const;
  void _internal_set_x(::uint64_t value);

  public:
  // uint64 y = 2;
  void clear_y() ;
  ::uint64_t y() const;
  void set_y(::uint64_t value);

  private:
  ::uint64_t _internal_y() const;
  void _internal_set_y(::uint64_t value);

  public:
  // uint64 z = 3;
  void clear_z() ;
  ::uint64_t z() const;
  void set_z(::uint64_t value);

  private:
  ::uint64_t _internal_z() const;
  void _internal_set_z(::uint64_t value);

  public:
  // @@protoc_insertion_point(class_scope:xla.gpu.CompilationCacheEntryProto.ClusterDimProto)
 private:
  class _Internal;
  friend class ::google::protobuf::internal::TcParser;
  static const ::google::protobuf::internal::TcParseTable<
      2, 3, 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* arena);
    inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
                          ::google::protobuf::Arena* arena, const Impl_& from,
                          const CompilationCacheEntryProto_ClusterDimProto& from_msg);
    ::uint64_t x_;
    ::uint64_t y_;
    ::uint64_t z_;
    mutable ::google::protobuf::internal::CachedSize _cached_size_;
    PROTOBUF_TSAN_DECLARE_MEMBER
  };
  union { Impl_ _impl_; };
  friend struct ::TableStruct_xla_2fservice_2fgpu_2fexecutable_2eproto;
};
// -------------------------------------------------------------------

class PROTOBUF_EXPORT CompilationCacheEntryProto final : public ::google::protobuf::Message
/* @@protoc_insertion_point(class_definition:xla.gpu.CompilationCacheEntryProto) */ {
 public:
  inline CompilationCacheEntryProto() : CompilationCacheEntryProto(nullptr) {}
  ~CompilationCacheEntryProto() PROTOBUF_FINAL;
  template <typename = void>
  explicit PROTOBUF_CONSTEXPR CompilationCacheEntryProto(
      ::google::protobuf::internal::ConstantInitialized);

  inline CompilationCacheEntryProto(const CompilationCacheEntryProto& from) : CompilationCacheEntryProto(nullptr, from) {}
  inline CompilationCacheEntryProto(CompilationCacheEntryProto&& from) noexcept
      : CompilationCacheEntryProto(nullptr, std::move(from)) {}
  inline CompilationCacheEntryProto& operator=(const CompilationCacheEntryProto& from) {
    CopyFrom(from);
    return *this;
  }
  inline CompilationCacheEntryProto& operator=(CompilationCacheEntryProto&& from) noexcept {
    if (this == &from) return *this;
    if (GetArena() == from.GetArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
        && GetArena() != nullptr
#endif  // !PROTOBUF_FORCE_COPY_IN_MOVE
    ) {
      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* mutable_unknown_fields()
      ABSL_ATTRIBUTE_LIFETIME_BOUND {
    return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
  }

  static const ::google::protobuf::Descriptor* descriptor() {
    return GetDescriptor();
  }
  static const ::google::protobuf::Descriptor* GetDescriptor() {
    return default_instance().GetMetadata().descriptor;
  }
  static const ::google::protobuf::Reflection* GetReflection() {
    return default_instance().GetMetadata().reflection;
  }
  static const CompilationCacheEntryProto& default_instance() {
    return *internal_default_instance();
  }
  static inline const CompilationCacheEntryProto* internal_default_instance() {
    return reinterpret_cast<const CompilationCacheEntryProto*>(
        &_CompilationCacheEntryProto_default_instance_);
  }
  static constexpr int kIndexInFileMessages = 4;
  friend void swap(CompilationCacheEntryProto& a, CompilationCacheEntryProto& b) { a.Swap(&b); }
  inline void Swap(CompilationCacheEntryProto* other) {
    if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
    if (GetArena() != nullptr && GetArena() == other->GetArena()) {
#else   // PROTOBUF_FORCE_COPY_IN_SWAP
    if (GetArena() == other->GetArena()) {
#endif  // !PROTOBUF_FORCE_COPY_IN_SWAP
      InternalSwap(other);
    } else {
      ::google::protobuf::internal::GenericSwap(this, other);
    }
  }
  void UnsafeArenaSwap(CompilationCacheEntryProto* other) {
    if (other == this) return;
    ABSL_DCHECK(GetArena() == other->GetArena());
    InternalSwap(other);
  }

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

  CompilationCacheEntryProto* New(::google::protobuf::Arena* arena = nullptr) const PROTOBUF_FINAL {
    return ::google::protobuf::Message::DefaultConstruct<CompilationCacheEntryProto>(arena);
  }
  using ::google::protobuf::Message::CopyFrom;
  void CopyFrom(const CompilationCacheEntryProto& from);
  using ::google::protobuf::Message::MergeFrom;
  void MergeFrom(const CompilationCacheEntryProto& from) { CompilationCacheEntryProto::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* _InternalSerialize(
      const MessageLite& msg, ::uint8_t* target,
      ::google::protobuf::io::EpsCopyOutputStream* stream);

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

  private:
  void SharedCtor(::google::protobuf::Arena* arena);
  void SharedDtor();
  void InternalSwap(CompilationCacheEntryProto* other);
 private:
  friend class ::google::protobuf::internal::AnyMetadata;
  static ::absl::string_view FullMessageName() { return "xla.gpu.CompilationCacheEntryProto"; }

 protected:
  explicit CompilationCacheEntryProto(::google::protobuf::Arena* arena);
  CompilationCacheEntryProto(::google::protobuf::Arena* arena, const CompilationCacheEntryProto& from);
  CompilationCacheEntryProto(::google::protobuf::Arena* arena, CompilationCacheEntryProto&& from) noexcept
      : CompilationCacheEntryProto(arena) {
    *this = ::std::move(from);
  }
  const ::google::protobuf::Message::ClassData* GetClassData() const PROTOBUF_FINAL;
  static const ::google::protobuf::Message::ClassDataFull _class_data_;

 public:
  ::google::protobuf::Metadata GetMetadata() const;
  // nested types ----------------------------------------------------
  using LaunchDimensionsProto = CompilationCacheEntryProto_LaunchDimensionsProto;
  using ClusterDimProto = CompilationCacheEntryProto_ClusterDimProto;

  // accessors -------------------------------------------------------
  enum : int {
    kFingerprintFieldNumber = 1,
    kBinaryFieldNumber = 5,
    kLaunchDimensionsFieldNumber = 2,
    kClusterDimFieldNumber = 3,
    kShmemBytesFieldNumber = 4,
  };
  // string fingerprint = 1;
  void clear_fingerprint() ;
  const std::string& fingerprint() const;
  template <typename Arg_ = const std::string&, typename... Args_>
  void set_fingerprint(Arg_&& arg, Args_... args);
  std::string* mutable_fingerprint();
  PROTOBUF_NODISCARD std::string* release_fingerprint();
  void set_allocated_fingerprint(std::string* value);

  private:
  const std::string& _internal_fingerprint() const;
  inline PROTOBUF_ALWAYS_INLINE void _internal_set_fingerprint(
      const std::string& value);
  std::string* _internal_mutable_fingerprint();

  public:
  // bytes binary = 5;
  void clear_binary() ;
  const std::string& binary() const;
  template <typename Arg_ = const std::string&, typename... Args_>
  void set_binary(Arg_&& arg, Args_... args);
  std::string* mutable_binary();
  PROTOBUF_NODISCARD std::string* release_binary();
  void set_allocated_binary(std::string* value);

  private:
  const std::string& _internal_binary() const;
  inline PROTOBUF_ALWAYS_INLINE void _internal_set_binary(
      const std::string& value);
  std::string* _internal_mutable_binary();

  public:
  // .xla.gpu.CompilationCacheEntryProto.LaunchDimensionsProto launch_dimensions = 2;
  bool has_launch_dimensions() const;
  void clear_launch_dimensions() ;
  const ::xla::gpu::CompilationCacheEntryProto_LaunchDimensionsProto& launch_dimensions() const;
  PROTOBUF_NODISCARD ::xla::gpu::CompilationCacheEntryProto_LaunchDimensionsProto* release_launch_dimensions();
  ::xla::gpu::CompilationCacheEntryProto_LaunchDimensionsProto* mutable_launch_dimensions();
  void set_allocated_launch_dimensions(::xla::gpu::CompilationCacheEntryProto_LaunchDimensionsProto* value);
  void unsafe_arena_set_allocated_launch_dimensions(::xla::gpu::CompilationCacheEntryProto_LaunchDimensionsProto* value);
  ::xla::gpu::CompilationCacheEntryProto_LaunchDimensionsProto* unsafe_arena_release_launch_dimensions();

  private:
  const ::xla::gpu::CompilationCacheEntryProto_LaunchDimensionsProto& _internal_launch_dimensions() const;
  ::xla::gpu::CompilationCacheEntryProto_LaunchDimensionsProto* _internal_mutable_launch_dimensions();

  public:
  // optional .xla.gpu.CompilationCacheEntryProto.ClusterDimProto cluster_dim = 3;
  bool has_cluster_dim() const;
  void clear_cluster_dim() ;
  const ::xla::gpu::CompilationCacheEntryProto_ClusterDimProto& cluster_dim() const;
  PROTOBUF_NODISCARD ::xla::gpu::CompilationCacheEntryProto_ClusterDimProto* release_cluster_dim();
  ::xla::gpu::CompilationCacheEntryProto_ClusterDimProto* mutable_cluster_dim();
  void set_allocated_cluster_dim(::xla::gpu::CompilationCacheEntryProto_ClusterDimProto* value);
  void unsafe_arena_set_allocated_cluster_dim(::xla::gpu::CompilationCacheEntryProto_ClusterDimProto* value);
  ::xla::gpu::CompilationCacheEntryProto_ClusterDimProto* unsafe_arena_release_cluster_dim();

  private:
  const ::xla::gpu::CompilationCacheEntryProto_ClusterDimProto& _internal_cluster_dim() const;
  ::xla::gpu::CompilationCacheEntryProto_ClusterDimProto* _internal_mutable_cluster_dim();

  public:
  // int64 shmem_bytes = 4;
  void clear_shmem_bytes() ;
  ::int64_t shmem_bytes() const;
  void set_shmem_bytes(::int64_t value);

  private:
  ::int64_t _internal_shmem_bytes() const;
  void _internal_set_shmem_bytes(::int64_t value);

  public:
  // @@protoc_insertion_point(class_scope:xla.gpu.CompilationCacheEntryProto)
 private:
  class _Internal;
  friend class ::google::protobuf::internal::TcParser;
  static const ::google::protobuf::internal::TcParseTable<
      3, 5, 2,
      54, 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* arena);
    inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
                          ::google::protobuf::Arena* arena, const Impl_& from,
                          const CompilationCacheEntryProto& from_msg);
    ::google::protobuf::internal::HasBits<1> _has_bits_;
    mutable ::google::protobuf::internal::CachedSize _cached_size_;
    ::google::protobuf::internal::ArenaStringPtr fingerprint_;
    ::google::protobuf::internal::ArenaStringPtr binary_;
    ::xla::gpu::CompilationCacheEntryProto_LaunchDimensionsProto* launch_dimensions_;
    ::xla::gpu::CompilationCacheEntryProto_ClusterDimProto* cluster_dim_;
    ::int64_t shmem_bytes_;
    PROTOBUF_TSAN_DECLARE_MEMBER
  };
  union { Impl_ _impl_; };
  friend struct ::TableStruct_xla_2fservice_2fgpu_2fexecutable_2eproto;
};
// -------------------------------------------------------------------

class CompilationCacheProto_EntriesEntry_DoNotUse final
    : public ::google::protobuf::internal::MapEntry<
          CompilationCacheProto_EntriesEntry_DoNotUse, std::string, ::xla::gpu::CompilationCacheEntryProto,
          ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
          ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE> {
 public:
  using SuperType = ::google::protobuf::internal::MapEntry<
      CompilationCacheProto_EntriesEntry_DoNotUse, std::string, ::xla::gpu::CompilationCacheEntryProto,
      ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
      ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE>;
  CompilationCacheProto_EntriesEntry_DoNotUse();
  template <typename = void>
  explicit PROTOBUF_CONSTEXPR CompilationCacheProto_EntriesEntry_DoNotUse(
      ::google::protobuf::internal::ConstantInitialized);
  explicit CompilationCacheProto_EntriesEntry_DoNotUse(::google::protobuf::Arena* arena);
  static const CompilationCacheProto_EntriesEntry_DoNotUse* internal_default_instance() {
    return reinterpret_cast<const CompilationCacheProto_EntriesEntry_DoNotUse*>(
        &_CompilationCacheProto_EntriesEntry_DoNotUse_default_instance_);
  }


 private:
  friend class ::google::protobuf::internal::TcParser;
  static const ::google::protobuf::internal::TcParseTable<
      1, 2, 1,
      54, 2>
      _table_;

  const ::google::protobuf::Message::ClassData* GetClassData() const PROTOBUF_FINAL;
  static const ::google::protobuf::Message::ClassDataFull _class_data_;
  friend struct ::TableStruct_xla_2fservice_2fgpu_2fexecutable_2eproto;
};
// -------------------------------------------------------------------

class PROTOBUF_EXPORT CompilationCacheProto final : public ::google::protobuf::Message
/* @@protoc_insertion_point(class_definition:xla.gpu.CompilationCacheProto) */ {
 public:
  inline CompilationCacheProto() : CompilationCacheProto(nullptr) {}
  ~CompilationCacheProto() PROTOBUF_FINAL;
  template <typename = void>
  explicit PROTOBUF_CONSTEXPR CompilationCacheProto(
      ::google::protobuf::internal::ConstantInitialized);

  inline CompilationCacheProto(const CompilationCacheProto& from) : CompilationCacheProto(nullptr, from) {}
  inline CompilationCacheProto(CompilationCacheProto&& from) noexcept
      : CompilationCacheProto(nullptr, std::move(from)) {}
  inline CompilationCacheProto& operator=(const CompilationCacheProto& from) {
    CopyFrom(from);
    return *this;
  }
  inline CompilationCacheProto& operator=(CompilationCacheProto&& from) noexcept {
    if (this == &from) return *this;
    if (GetArena() == from.GetArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
        && GetArena() != nullptr
#endif  // !PROTOBUF_FORCE_COPY_IN_MOVE
    ) {
      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* mutable_unknown_fields()
      ABSL_ATTRIBUTE_LIFETIME_BOUND {
    return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
  }

  static const ::google::protobuf::Descriptor* descriptor() {
    return GetDescriptor();
  }
  static const ::google::protobuf::Descriptor* GetDescriptor() {
    return default_instance().GetMetadata().descriptor;
  }
  static const ::google::protobuf::Reflection* GetReflection() {
    return default_instance().GetMetadata().reflection;
  }
  static const CompilationCacheProto& default_instance() {
    return *internal_default_instance();
  }
  static inline const CompilationCacheProto* internal_default_instance() {
    return reinterpret_cast<const CompilationCacheProto*>(
        &_CompilationCacheProto_default_instance_);
  }
  static constexpr int kIndexInFileMessages = 6;
  friend void swap(CompilationCacheProto& a, CompilationCacheProto& b) { a.Swap(&b); }
  inline void Swap(CompilationCacheProto* other) {
    if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
    if (GetArena() != nullptr && GetArena() == other->GetArena()) {
#else   // PROTOBUF_FORCE_COPY_IN_SWAP
    if (GetArena() == other->GetArena()) {
#endif  // !PROTOBUF_FORCE_COPY_IN_SWAP
      InternalSwap(other);
    } else {
      ::google::protobuf::internal::GenericSwap(this, other);
    }
  }
  void UnsafeArenaSwap(CompilationCacheProto* other) {
    if (other == this) return;
    ABSL_DCHECK(GetArena() == other->GetArena());
    InternalSwap(other);
  }

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

  CompilationCacheProto* New(::google::protobuf::Arena* arena = nullptr) const PROTOBUF_FINAL {
    return ::google::protobuf::Message::DefaultConstruct<CompilationCacheProto>(arena);
  }
  using ::google::protobuf::Message::CopyFrom;
  void CopyFrom(const CompilationCacheProto& from);
  using ::google::protobuf::Message::MergeFrom;
  void MergeFrom(const CompilationCacheProto& from) { CompilationCacheProto::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* _InternalSerialize(
      const MessageLite& msg, ::uint8_t* target,
      ::google::protobuf::io::EpsCopyOutputStream* stream);

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

  private:
  void SharedCtor(::google::protobuf::Arena* arena);
  void SharedDtor();
  void InternalSwap(CompilationCacheProto* other);
 private:
  friend class ::google::protobuf::internal::AnyMetadata;
  static ::absl::string_view FullMessageName() { return "xla.gpu.CompilationCacheProto"; }

 protected:
  explicit CompilationCacheProto(::google::protobuf::Arena* arena);
  CompilationCacheProto(::google::protobuf::Arena* arena, const CompilationCacheProto& from);
  CompilationCacheProto(::google::protobuf::Arena* arena, CompilationCacheProto&& from) noexcept
      : CompilationCacheProto(arena) {
    *this = ::std::move(from);
  }
  const ::google::protobuf::Message::ClassData* GetClassData() const PROTOBUF_FINAL;
  static const ::google::protobuf::Message::ClassDataFull _class_data_;

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

  // accessors -------------------------------------------------------
  enum : int {
    kEntriesFieldNumber = 1,
  };
  // map<string, .xla.gpu.CompilationCacheEntryProto> entries = 1;
  int entries_size() const;
  private:
  int _internal_entries_size() const;

  public:
  void clear_entries() ;
  const ::google::protobuf::Map<std::string, ::xla::gpu::CompilationCacheEntryProto>& entries() const;
  ::google::protobuf::Map<std::string, ::xla::gpu::CompilationCacheEntryProto>* mutable_entries();

  private:
  const ::google::protobuf::Map<std::string, ::xla::gpu::CompilationCacheEntryProto>& _internal_entries() const;
  ::google::protobuf::Map<std::string, ::xla::gpu::CompilationCacheEntryProto>* _internal_mutable_entries();

  public:
  // @@protoc_insertion_point(class_scope:xla.gpu.CompilationCacheProto)
 private:
  class _Internal;
  friend class ::google::protobuf::internal::TcParser;
  static const ::google::protobuf::internal::TcParseTable<
      0, 1, 2,
      45, 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* arena);
    inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
                          ::google::protobuf::Arena* arena, const Impl_& from,
                          const CompilationCacheProto& from_msg);
    ::google::protobuf::internal::MapField<CompilationCacheProto_EntriesEntry_DoNotUse, std::string, ::xla::gpu::CompilationCacheEntryProto,
                      ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
                      ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE>
        entries_;
    mutable ::google::protobuf::internal::CachedSize _cached_size_;
    PROTOBUF_TSAN_DECLARE_MEMBER
  };
  union { Impl_ _impl_; };
  friend struct ::TableStruct_xla_2fservice_2fgpu_2fexecutable_2eproto;
};
// -------------------------------------------------------------------

class PROTOBUF_EXPORT CompilationResultProto final : public ::google::protobuf::Message
/* @@protoc_insertion_point(class_definition:xla.gpu.CompilationResultProto) */ {
 public:
  inline CompilationResultProto() : CompilationResultProto(nullptr) {}
  ~CompilationResultProto() PROTOBUF_FINAL;
  template <typename = void>
  explicit PROTOBUF_CONSTEXPR CompilationResultProto(
      ::google::protobuf::internal::ConstantInitialized);

  inline CompilationResultProto(const CompilationResultProto& from) : CompilationResultProto(nullptr, from) {}
  inline CompilationResultProto(CompilationResultProto&& from) noexcept
      : CompilationResultProto(nullptr, std::move(from)) {}
  inline CompilationResultProto& operator=(const CompilationResultProto& from) {
    CopyFrom(from);
    return *this;
  }
  inline CompilationResultProto& operator=(CompilationResultProto&& from) noexcept {
    if (this == &from) return *this;
    if (GetArena() == from.GetArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
        && GetArena() != nullptr
#endif  // !PROTOBUF_FORCE_COPY_IN_MOVE
    ) {
      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* mutable_unknown_fields()
      ABSL_ATTRIBUTE_LIFETIME_BOUND {
    return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
  }

  static const ::google::protobuf::Descriptor* descriptor() {
    return GetDescriptor();
  }
  static const ::google::protobuf::Descriptor* GetDescriptor() {
    return default_instance().GetMetadata().descriptor;
  }
  static const ::google::protobuf::Reflection* GetReflection() {
    return default_instance().GetMetadata().reflection;
  }
  static const CompilationResultProto& default_instance() {
    return *internal_default_instance();
  }
  static inline const CompilationResultProto* internal_default_instance() {
    return reinterpret_cast<const CompilationResultProto*>(
        &_CompilationResultProto_default_instance_);
  }
  static constexpr int kIndexInFileMessages = 1;
  friend void swap(CompilationResultProto& a, CompilationResultProto& b) { a.Swap(&b); }
  inline void Swap(CompilationResultProto* other) {
    if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
    if (GetArena() != nullptr && GetArena() == other->GetArena()) {
#else   // PROTOBUF_FORCE_COPY_IN_SWAP
    if (GetArena() == other->GetArena()) {
#endif  // !PROTOBUF_FORCE_COPY_IN_SWAP
      InternalSwap(other);
    } else {
      ::google::protobuf::internal::GenericSwap(this, other);
    }
  }
  void UnsafeArenaSwap(CompilationResultProto* other) {
    if (other == this) return;
    ABSL_DCHECK(GetArena() == other->GetArena());
    InternalSwap(other);
  }

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

  CompilationResultProto* New(::google::protobuf::Arena* arena = nullptr) const PROTOBUF_FINAL {
    return ::google::protobuf::Message::DefaultConstruct<CompilationResultProto>(arena);
  }
  using ::google::protobuf::Message::CopyFrom;
  void CopyFrom(const CompilationResultProto& from);
  using ::google::protobuf::Message::MergeFrom;
  void MergeFrom(const CompilationResultProto& from) { CompilationResultProto::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* _InternalSerialize(
      const MessageLite& msg, ::uint8_t* target,
      ::google::protobuf::io::EpsCopyOutputStream* stream);

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

  private:
  void SharedCtor(::google::protobuf::Arena* arena);
  void SharedDtor();
  void InternalSwap(CompilationResultProto* other);
 private:
  friend class ::google::protobuf::internal::AnyMetadata;
  static ::absl::string_view FullMessageName() { return "xla.gpu.CompilationResultProto"; }

 protected:
  explicit CompilationResultProto(::google::protobuf::Arena* arena);
  CompilationResultProto(::google::protobuf::Arena* arena, const CompilationResultProto& from);
  CompilationResultProto(::google::protobuf::Arena* arena, CompilationResultProto&& from) noexcept
      : CompilationResultProto(arena) {
    *this = ::std::move(from);
  }
  const ::google::protobuf::Message::ClassData* GetClassData() const PROTOBUF_FINAL;
  static const ::google::protobuf::Message::ClassDataFull _class_data_;

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

  // accessors -------------------------------------------------------
  enum : int {
    kDnnCompiledGraphsFieldNumber = 5,
    kAsmTextFieldNumber = 3,
    kBinaryFieldNumber = 4,
    kHloModuleWithConfigFieldNumber = 1,
    kBufferAssignmentFieldNumber = 2,
  };
  // map<string, bytes> dnn_compiled_graphs = 5;
  int dnn_compiled_graphs_size() const;
  private:
  int _internal_dnn_compiled_graphs_size() const;

  public:
  void clear_dnn_compiled_graphs() ;
  const ::google::protobuf::Map<std::string, std::string>& dnn_compiled_graphs() const;
  ::google::protobuf::Map<std::string, std::string>* mutable_dnn_compiled_graphs();

  private:
  const ::google::protobuf::Map<std::string, std::string>& _internal_dnn_compiled_graphs() const;
  ::google::protobuf::Map<std::string, std::string>* _internal_mutable_dnn_compiled_graphs();

  public:
  // string asm_text = 3;
  void clear_asm_text() ;
  const std::string& asm_text() const;
  template <typename Arg_ = const std::string&, typename... Args_>
  void set_asm_text(Arg_&& arg, Args_... args);
  std::string* mutable_asm_text();
  PROTOBUF_NODISCARD std::string* release_asm_text();
  void set_allocated_asm_text(std::string* value);

  private:
  const std::string& _internal_asm_text() const;
  inline PROTOBUF_ALWAYS_INLINE void _internal_set_asm_text(
      const std::string& value);
  std::string* _internal_mutable_asm_text();

  public:
  // bytes binary = 4;
  void clear_binary() ;
  const std::string& binary() const;
  template <typename Arg_ = const std::string&, typename... Args_>
  void set_binary(Arg_&& arg, Args_... args);
  std::string* mutable_binary();
  PROTOBUF_NODISCARD std::string* release_binary();
  void set_allocated_binary(std::string* value);

  private:
  const std::string& _internal_binary() const;
  inline PROTOBUF_ALWAYS_INLINE void _internal_set_binary(
      const std::string& value);
  std::string* _internal_mutable_binary();

  public:
  // .xla.HloModuleProtoWithConfig hlo_module_with_config = 1;
  bool has_hlo_module_with_config() const;
  void clear_hlo_module_with_config() ;
  const ::xla::HloModuleProtoWithConfig& hlo_module_with_config() const;
  PROTOBUF_NODISCARD ::xla::HloModuleProtoWithConfig* release_hlo_module_with_config();
  ::xla::HloModuleProtoWithConfig* mutable_hlo_module_with_config();
  void set_allocated_hlo_module_with_config(::xla::HloModuleProtoWithConfig* value);
  void unsafe_arena_set_allocated_hlo_module_with_config(::xla::HloModuleProtoWithConfig* value);
  ::xla::HloModuleProtoWithConfig* unsafe_arena_release_hlo_module_with_config();

  private:
  const ::xla::HloModuleProtoWithConfig& _internal_hlo_module_with_config() const;
  ::xla::HloModuleProtoWithConfig* _internal_mutable_hlo_module_with_config();

  public:
  // .xla.BufferAssignmentProto buffer_assignment = 2;
  bool has_buffer_assignment() const;
  void clear_buffer_assignment() ;
  const ::xla::BufferAssignmentProto& buffer_assignment() const;
  PROTOBUF_NODISCARD ::xla::BufferAssignmentProto* release_buffer_assignment();
  ::xla::BufferAssignmentProto* mutable_buffer_assignment();
  void set_allocated_buffer_assignment(::xla::BufferAssignmentProto* value);
  void unsafe_arena_set_allocated_buffer_assignment(::xla::BufferAssignmentProto* value);
  ::xla::BufferAssignmentProto* unsafe_arena_release_buffer_assignment();

  private:
  const ::xla::BufferAssignmentProto& _internal_buffer_assignment() const;
  ::xla::BufferAssignmentProto* _internal_mutable_buffer_assignment();

  public:
  // @@protoc_insertion_point(class_scope:xla.gpu.CompilationResultProto)
 private:
  class _Internal;
  friend class ::google::protobuf::internal::TcParser;
  static const ::google::protobuf::internal::TcParseTable<
      2, 5, 3,
      66, 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* arena);
    inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
                          ::google::protobuf::Arena* arena, const Impl_& from,
                          const CompilationResultProto& from_msg);
    ::google::protobuf::internal::HasBits<1> _has_bits_;
    mutable ::google::protobuf::internal::CachedSize _cached_size_;
    ::google::protobuf::internal::MapField<CompilationResultProto_DnnCompiledGraphsEntry_DoNotUse, std::string, std::string,
                      ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
                      ::google::protobuf::internal::WireFormatLite::TYPE_BYTES>
        dnn_compiled_graphs_;
    ::google::protobuf::internal::ArenaStringPtr asm_text_;
    ::google::protobuf::internal::ArenaStringPtr binary_;
    ::xla::HloModuleProtoWithConfig* hlo_module_with_config_;
    ::xla::BufferAssignmentProto* buffer_assignment_;
    PROTOBUF_TSAN_DECLARE_MEMBER
  };
  union { Impl_ _impl_; };
  friend struct ::TableStruct_xla_2fservice_2fgpu_2fexecutable_2eproto;
};

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




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


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

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

// CompilationResultProto

// .xla.HloModuleProtoWithConfig hlo_module_with_config = 1;
inline bool CompilationResultProto::has_hlo_module_with_config() const {
  bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
  PROTOBUF_ASSUME(!value || _impl_.hlo_module_with_config_ != nullptr);
  return value;
}
inline const ::xla::HloModuleProtoWithConfig& CompilationResultProto::_internal_hlo_module_with_config() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  const ::xla::HloModuleProtoWithConfig* p = _impl_.hlo_module_with_config_;
  return p != nullptr ? *p : reinterpret_cast<const ::xla::HloModuleProtoWithConfig&>(::xla::_HloModuleProtoWithConfig_default_instance_);
}
inline const ::xla::HloModuleProtoWithConfig& CompilationResultProto::hlo_module_with_config() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_get:xla.gpu.CompilationResultProto.hlo_module_with_config)
  return _internal_hlo_module_with_config();
}
inline void CompilationResultProto::unsafe_arena_set_allocated_hlo_module_with_config(::xla::HloModuleProtoWithConfig* value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (GetArena() == nullptr) {
    delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.hlo_module_with_config_);
  }
  _impl_.hlo_module_with_config_ = reinterpret_cast<::xla::HloModuleProtoWithConfig*>(value);
  if (value != nullptr) {
    _impl_._has_bits_[0] |= 0x00000001u;
  } else {
    _impl_._has_bits_[0] &= ~0x00000001u;
  }
  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:xla.gpu.CompilationResultProto.hlo_module_with_config)
}
inline ::xla::HloModuleProtoWithConfig* CompilationResultProto::release_hlo_module_with_config() {
  ::google::protobuf::internal::TSanWrite(&_impl_);

  _impl_._has_bits_[0] &= ~0x00000001u;
  ::xla::HloModuleProtoWithConfig* released = _impl_.hlo_module_with_config_;
  _impl_.hlo_module_with_config_ = nullptr;
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
  auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released);
  released = ::google::protobuf::internal::DuplicateIfNonNull(released);
  if (GetArena() == nullptr) {
    delete old;
  }
#else   // PROTOBUF_FORCE_COPY_IN_RELEASE
  if (GetArena() != nullptr) {
    released = ::google::protobuf::internal::DuplicateIfNonNull(released);
  }
#endif  // !PROTOBUF_FORCE_COPY_IN_RELEASE
  return released;
}
inline ::xla::HloModuleProtoWithConfig* CompilationResultProto::unsafe_arena_release_hlo_module_with_config() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  // @@protoc_insertion_point(field_release:xla.gpu.CompilationResultProto.hlo_module_with_config)

  _impl_._has_bits_[0] &= ~0x00000001u;
  ::xla::HloModuleProtoWithConfig* temp = _impl_.hlo_module_with_config_;
  _impl_.hlo_module_with_config_ = nullptr;
  return temp;
}
inline ::xla::HloModuleProtoWithConfig* CompilationResultProto::_internal_mutable_hlo_module_with_config() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (_impl_.hlo_module_with_config_ == nullptr) {
    auto* p = ::google::protobuf::Message::DefaultConstruct<::xla::HloModuleProtoWithConfig>(GetArena());
    _impl_.hlo_module_with_config_ = reinterpret_cast<::xla::HloModuleProtoWithConfig*>(p);
  }
  return _impl_.hlo_module_with_config_;
}
inline ::xla::HloModuleProtoWithConfig* CompilationResultProto::mutable_hlo_module_with_config() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  _impl_._has_bits_[0] |= 0x00000001u;
  ::xla::HloModuleProtoWithConfig* _msg = _internal_mutable_hlo_module_with_config();
  // @@protoc_insertion_point(field_mutable:xla.gpu.CompilationResultProto.hlo_module_with_config)
  return _msg;
}
inline void CompilationResultProto::set_allocated_hlo_module_with_config(::xla::HloModuleProtoWithConfig* value) {
  ::google::protobuf::Arena* message_arena = GetArena();
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (message_arena == nullptr) {
    delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.hlo_module_with_config_);
  }

  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);
    }
    _impl_._has_bits_[0] |= 0x00000001u;
  } else {
    _impl_._has_bits_[0] &= ~0x00000001u;
  }

  _impl_.hlo_module_with_config_ = reinterpret_cast<::xla::HloModuleProtoWithConfig*>(value);
  // @@protoc_insertion_point(field_set_allocated:xla.gpu.CompilationResultProto.hlo_module_with_config)
}

// .xla.BufferAssignmentProto buffer_assignment = 2;
inline bool CompilationResultProto::has_buffer_assignment() const {
  bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
  PROTOBUF_ASSUME(!value || _impl_.buffer_assignment_ != nullptr);
  return value;
}
inline const ::xla::BufferAssignmentProto& CompilationResultProto::_internal_buffer_assignment() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  const ::xla::BufferAssignmentProto* p = _impl_.buffer_assignment_;
  return p != nullptr ? *p : reinterpret_cast<const ::xla::BufferAssignmentProto&>(::xla::_BufferAssignmentProto_default_instance_);
}
inline const ::xla::BufferAssignmentProto& CompilationResultProto::buffer_assignment() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_get:xla.gpu.CompilationResultProto.buffer_assignment)
  return _internal_buffer_assignment();
}
inline void CompilationResultProto::unsafe_arena_set_allocated_buffer_assignment(::xla::BufferAssignmentProto* value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (GetArena() == nullptr) {
    delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.buffer_assignment_);
  }
  _impl_.buffer_assignment_ = reinterpret_cast<::xla::BufferAssignmentProto*>(value);
  if (value != nullptr) {
    _impl_._has_bits_[0] |= 0x00000002u;
  } else {
    _impl_._has_bits_[0] &= ~0x00000002u;
  }
  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:xla.gpu.CompilationResultProto.buffer_assignment)
}
inline ::xla::BufferAssignmentProto* CompilationResultProto::release_buffer_assignment() {
  ::google::protobuf::internal::TSanWrite(&_impl_);

  _impl_._has_bits_[0] &= ~0x00000002u;
  ::xla::BufferAssignmentProto* released = _impl_.buffer_assignment_;
  _impl_.buffer_assignment_ = nullptr;
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
  auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released);
  released = ::google::protobuf::internal::DuplicateIfNonNull(released);
  if (GetArena() == nullptr) {
    delete old;
  }
#else   // PROTOBUF_FORCE_COPY_IN_RELEASE
  if (GetArena() != nullptr) {
    released = ::google::protobuf::internal::DuplicateIfNonNull(released);
  }
#endif  // !PROTOBUF_FORCE_COPY_IN_RELEASE
  return released;
}
inline ::xla::BufferAssignmentProto* CompilationResultProto::unsafe_arena_release_buffer_assignment() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  // @@protoc_insertion_point(field_release:xla.gpu.CompilationResultProto.buffer_assignment)

  _impl_._has_bits_[0] &= ~0x00000002u;
  ::xla::BufferAssignmentProto* temp = _impl_.buffer_assignment_;
  _impl_.buffer_assignment_ = nullptr;
  return temp;
}
inline ::xla::BufferAssignmentProto* CompilationResultProto::_internal_mutable_buffer_assignment() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (_impl_.buffer_assignment_ == nullptr) {
    auto* p = ::google::protobuf::Message::DefaultConstruct<::xla::BufferAssignmentProto>(GetArena());
    _impl_.buffer_assignment_ = reinterpret_cast<::xla::BufferAssignmentProto*>(p);
  }
  return _impl_.buffer_assignment_;
}
inline ::xla::BufferAssignmentProto* CompilationResultProto::mutable_buffer_assignment() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  _impl_._has_bits_[0] |= 0x00000002u;
  ::xla::BufferAssignmentProto* _msg = _internal_mutable_buffer_assignment();
  // @@protoc_insertion_point(field_mutable:xla.gpu.CompilationResultProto.buffer_assignment)
  return _msg;
}
inline void CompilationResultProto::set_allocated_buffer_assignment(::xla::BufferAssignmentProto* value) {
  ::google::protobuf::Arena* message_arena = GetArena();
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (message_arena == nullptr) {
    delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.buffer_assignment_);
  }

  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);
    }
    _impl_._has_bits_[0] |= 0x00000002u;
  } else {
    _impl_._has_bits_[0] &= ~0x00000002u;
  }

  _impl_.buffer_assignment_ = reinterpret_cast<::xla::BufferAssignmentProto*>(value);
  // @@protoc_insertion_point(field_set_allocated:xla.gpu.CompilationResultProto.buffer_assignment)
}

// string asm_text = 3;
inline void CompilationResultProto::clear_asm_text() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.asm_text_.ClearToEmpty();
}
inline const std::string& CompilationResultProto::asm_text() const
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_get:xla.gpu.CompilationResultProto.asm_text)
  return _internal_asm_text();
}
template <typename Arg_, typename... Args_>
inline PROTOBUF_ALWAYS_INLINE void CompilationResultProto::set_asm_text(Arg_&& arg,
                                                     Args_... args) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.asm_text_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
  // @@protoc_insertion_point(field_set:xla.gpu.CompilationResultProto.asm_text)
}
inline std::string* CompilationResultProto::mutable_asm_text() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  std::string* _s = _internal_mutable_asm_text();
  // @@protoc_insertion_point(field_mutable:xla.gpu.CompilationResultProto.asm_text)
  return _s;
}
inline const std::string& CompilationResultProto::_internal_asm_text() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.asm_text_.Get();
}
inline void CompilationResultProto::_internal_set_asm_text(const std::string& value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.asm_text_.Set(value, GetArena());
}
inline std::string* CompilationResultProto::_internal_mutable_asm_text() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  return _impl_.asm_text_.Mutable( GetArena());
}
inline std::string* CompilationResultProto::release_asm_text() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  // @@protoc_insertion_point(field_release:xla.gpu.CompilationResultProto.asm_text)
  return _impl_.asm_text_.Release();
}
inline void CompilationResultProto::set_allocated_asm_text(std::string* value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.asm_text_.SetAllocated(value, GetArena());
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
        if (_impl_.asm_text_.IsDefault()) {
          _impl_.asm_text_.Set("", GetArena());
        }
  #endif  // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  // @@protoc_insertion_point(field_set_allocated:xla.gpu.CompilationResultProto.asm_text)
}

// bytes binary = 4;
inline void CompilationResultProto::clear_binary() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.binary_.ClearToEmpty();
}
inline const std::string& CompilationResultProto::binary() const
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_get:xla.gpu.CompilationResultProto.binary)
  return _internal_binary();
}
template <typename Arg_, typename... Args_>
inline PROTOBUF_ALWAYS_INLINE void CompilationResultProto::set_binary(Arg_&& arg,
                                                     Args_... args) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.binary_.SetBytes(static_cast<Arg_&&>(arg), args..., GetArena());
  // @@protoc_insertion_point(field_set:xla.gpu.CompilationResultProto.binary)
}
inline std::string* CompilationResultProto::mutable_binary() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  std::string* _s = _internal_mutable_binary();
  // @@protoc_insertion_point(field_mutable:xla.gpu.CompilationResultProto.binary)
  return _s;
}
inline const std::string& CompilationResultProto::_internal_binary() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.binary_.Get();
}
inline void CompilationResultProto::_internal_set_binary(const std::string& value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.binary_.Set(value, GetArena());
}
inline std::string* CompilationResultProto::_internal_mutable_binary() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  return _impl_.binary_.Mutable( GetArena());
}
inline std::string* CompilationResultProto::release_binary() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  // @@protoc_insertion_point(field_release:xla.gpu.CompilationResultProto.binary)
  return _impl_.binary_.Release();
}
inline void CompilationResultProto::set_allocated_binary(std::string* value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.binary_.SetAllocated(value, GetArena());
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
        if (_impl_.binary_.IsDefault()) {
          _impl_.binary_.Set("", GetArena());
        }
  #endif  // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  // @@protoc_insertion_point(field_set_allocated:xla.gpu.CompilationResultProto.binary)
}

// map<string, bytes> dnn_compiled_graphs = 5;
inline int CompilationResultProto::_internal_dnn_compiled_graphs_size() const {
  return _internal_dnn_compiled_graphs().size();
}
inline int CompilationResultProto::dnn_compiled_graphs_size() const {
  return _internal_dnn_compiled_graphs_size();
}
inline void CompilationResultProto::clear_dnn_compiled_graphs() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.dnn_compiled_graphs_.Clear();
}
inline const ::google::protobuf::Map<std::string, std::string>& CompilationResultProto::_internal_dnn_compiled_graphs() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.dnn_compiled_graphs_.GetMap();
}
inline const ::google::protobuf::Map<std::string, std::string>& CompilationResultProto::dnn_compiled_graphs() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_map:xla.gpu.CompilationResultProto.dnn_compiled_graphs)
  return _internal_dnn_compiled_graphs();
}
inline ::google::protobuf::Map<std::string, std::string>* CompilationResultProto::_internal_mutable_dnn_compiled_graphs() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  return _impl_.dnn_compiled_graphs_.MutableMap();
}
inline ::google::protobuf::Map<std::string, std::string>* CompilationResultProto::mutable_dnn_compiled_graphs() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_mutable_map:xla.gpu.CompilationResultProto.dnn_compiled_graphs)
  return _internal_mutable_dnn_compiled_graphs();
}

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

// CompilationCacheEntryProto_LaunchDimensionsProto

// uint64 num_blocks = 1;
inline void CompilationCacheEntryProto_LaunchDimensionsProto::clear_num_blocks() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.num_blocks_ = ::uint64_t{0u};
}
inline ::uint64_t CompilationCacheEntryProto_LaunchDimensionsProto::num_blocks() const {
  // @@protoc_insertion_point(field_get:xla.gpu.CompilationCacheEntryProto.LaunchDimensionsProto.num_blocks)
  return _internal_num_blocks();
}
inline void CompilationCacheEntryProto_LaunchDimensionsProto::set_num_blocks(::uint64_t value) {
  _internal_set_num_blocks(value);
  // @@protoc_insertion_point(field_set:xla.gpu.CompilationCacheEntryProto.LaunchDimensionsProto.num_blocks)
}
inline ::uint64_t CompilationCacheEntryProto_LaunchDimensionsProto::_internal_num_blocks() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.num_blocks_;
}
inline void CompilationCacheEntryProto_LaunchDimensionsProto::_internal_set_num_blocks(::uint64_t value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.num_blocks_ = value;
}

// uint64 num_threads_per_block = 2;
inline void CompilationCacheEntryProto_LaunchDimensionsProto::clear_num_threads_per_block() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.num_threads_per_block_ = ::uint64_t{0u};
}
inline ::uint64_t CompilationCacheEntryProto_LaunchDimensionsProto::num_threads_per_block() const {
  // @@protoc_insertion_point(field_get:xla.gpu.CompilationCacheEntryProto.LaunchDimensionsProto.num_threads_per_block)
  return _internal_num_threads_per_block();
}
inline void CompilationCacheEntryProto_LaunchDimensionsProto::set_num_threads_per_block(::uint64_t value) {
  _internal_set_num_threads_per_block(value);
  // @@protoc_insertion_point(field_set:xla.gpu.CompilationCacheEntryProto.LaunchDimensionsProto.num_threads_per_block)
}
inline ::uint64_t CompilationCacheEntryProto_LaunchDimensionsProto::_internal_num_threads_per_block() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.num_threads_per_block_;
}
inline void CompilationCacheEntryProto_LaunchDimensionsProto::_internal_set_num_threads_per_block(::uint64_t value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.num_threads_per_block_ = value;
}

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

// CompilationCacheEntryProto_ClusterDimProto

// uint64 x = 1;
inline void CompilationCacheEntryProto_ClusterDimProto::clear_x() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.x_ = ::uint64_t{0u};
}
inline ::uint64_t CompilationCacheEntryProto_ClusterDimProto::x() const {
  // @@protoc_insertion_point(field_get:xla.gpu.CompilationCacheEntryProto.ClusterDimProto.x)
  return _internal_x();
}
inline void CompilationCacheEntryProto_ClusterDimProto::set_x(::uint64_t value) {
  _internal_set_x(value);
  // @@protoc_insertion_point(field_set:xla.gpu.CompilationCacheEntryProto.ClusterDimProto.x)
}
inline ::uint64_t CompilationCacheEntryProto_ClusterDimProto::_internal_x() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.x_;
}
inline void CompilationCacheEntryProto_ClusterDimProto::_internal_set_x(::uint64_t value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.x_ = value;
}

// uint64 y = 2;
inline void CompilationCacheEntryProto_ClusterDimProto::clear_y() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.y_ = ::uint64_t{0u};
}
inline ::uint64_t CompilationCacheEntryProto_ClusterDimProto::y() const {
  // @@protoc_insertion_point(field_get:xla.gpu.CompilationCacheEntryProto.ClusterDimProto.y)
  return _internal_y();
}
inline void CompilationCacheEntryProto_ClusterDimProto::set_y(::uint64_t value) {
  _internal_set_y(value);
  // @@protoc_insertion_point(field_set:xla.gpu.CompilationCacheEntryProto.ClusterDimProto.y)
}
inline ::uint64_t CompilationCacheEntryProto_ClusterDimProto::_internal_y() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.y_;
}
inline void CompilationCacheEntryProto_ClusterDimProto::_internal_set_y(::uint64_t value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.y_ = value;
}

// uint64 z = 3;
inline void CompilationCacheEntryProto_ClusterDimProto::clear_z() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.z_ = ::uint64_t{0u};
}
inline ::uint64_t CompilationCacheEntryProto_ClusterDimProto::z() const {
  // @@protoc_insertion_point(field_get:xla.gpu.CompilationCacheEntryProto.ClusterDimProto.z)
  return _internal_z();
}
inline void CompilationCacheEntryProto_ClusterDimProto::set_z(::uint64_t value) {
  _internal_set_z(value);
  // @@protoc_insertion_point(field_set:xla.gpu.CompilationCacheEntryProto.ClusterDimProto.z)
}
inline ::uint64_t CompilationCacheEntryProto_ClusterDimProto::_internal_z() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.z_;
}
inline void CompilationCacheEntryProto_ClusterDimProto::_internal_set_z(::uint64_t value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.z_ = value;
}

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

// CompilationCacheEntryProto

// string fingerprint = 1;
inline void CompilationCacheEntryProto::clear_fingerprint() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.fingerprint_.ClearToEmpty();
}
inline const std::string& CompilationCacheEntryProto::fingerprint() const
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_get:xla.gpu.CompilationCacheEntryProto.fingerprint)
  return _internal_fingerprint();
}
template <typename Arg_, typename... Args_>
inline PROTOBUF_ALWAYS_INLINE void CompilationCacheEntryProto::set_fingerprint(Arg_&& arg,
                                                     Args_... args) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.fingerprint_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
  // @@protoc_insertion_point(field_set:xla.gpu.CompilationCacheEntryProto.fingerprint)
}
inline std::string* CompilationCacheEntryProto::mutable_fingerprint() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  std::string* _s = _internal_mutable_fingerprint();
  // @@protoc_insertion_point(field_mutable:xla.gpu.CompilationCacheEntryProto.fingerprint)
  return _s;
}
inline const std::string& CompilationCacheEntryProto::_internal_fingerprint() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.fingerprint_.Get();
}
inline void CompilationCacheEntryProto::_internal_set_fingerprint(const std::string& value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.fingerprint_.Set(value, GetArena());
}
inline std::string* CompilationCacheEntryProto::_internal_mutable_fingerprint() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  return _impl_.fingerprint_.Mutable( GetArena());
}
inline std::string* CompilationCacheEntryProto::release_fingerprint() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  // @@protoc_insertion_point(field_release:xla.gpu.CompilationCacheEntryProto.fingerprint)
  return _impl_.fingerprint_.Release();
}
inline void CompilationCacheEntryProto::set_allocated_fingerprint(std::string* value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.fingerprint_.SetAllocated(value, GetArena());
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
        if (_impl_.fingerprint_.IsDefault()) {
          _impl_.fingerprint_.Set("", GetArena());
        }
  #endif  // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  // @@protoc_insertion_point(field_set_allocated:xla.gpu.CompilationCacheEntryProto.fingerprint)
}

// .xla.gpu.CompilationCacheEntryProto.LaunchDimensionsProto launch_dimensions = 2;
inline bool CompilationCacheEntryProto::has_launch_dimensions() const {
  bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
  PROTOBUF_ASSUME(!value || _impl_.launch_dimensions_ != nullptr);
  return value;
}
inline void CompilationCacheEntryProto::clear_launch_dimensions() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (_impl_.launch_dimensions_ != nullptr) _impl_.launch_dimensions_->Clear();
  _impl_._has_bits_[0] &= ~0x00000001u;
}
inline const ::xla::gpu::CompilationCacheEntryProto_LaunchDimensionsProto& CompilationCacheEntryProto::_internal_launch_dimensions() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  const ::xla::gpu::CompilationCacheEntryProto_LaunchDimensionsProto* p = _impl_.launch_dimensions_;
  return p != nullptr ? *p : reinterpret_cast<const ::xla::gpu::CompilationCacheEntryProto_LaunchDimensionsProto&>(::xla::gpu::_CompilationCacheEntryProto_LaunchDimensionsProto_default_instance_);
}
inline const ::xla::gpu::CompilationCacheEntryProto_LaunchDimensionsProto& CompilationCacheEntryProto::launch_dimensions() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_get:xla.gpu.CompilationCacheEntryProto.launch_dimensions)
  return _internal_launch_dimensions();
}
inline void CompilationCacheEntryProto::unsafe_arena_set_allocated_launch_dimensions(::xla::gpu::CompilationCacheEntryProto_LaunchDimensionsProto* value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (GetArena() == nullptr) {
    delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.launch_dimensions_);
  }
  _impl_.launch_dimensions_ = reinterpret_cast<::xla::gpu::CompilationCacheEntryProto_LaunchDimensionsProto*>(value);
  if (value != nullptr) {
    _impl_._has_bits_[0] |= 0x00000001u;
  } else {
    _impl_._has_bits_[0] &= ~0x00000001u;
  }
  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:xla.gpu.CompilationCacheEntryProto.launch_dimensions)
}
inline ::xla::gpu::CompilationCacheEntryProto_LaunchDimensionsProto* CompilationCacheEntryProto::release_launch_dimensions() {
  ::google::protobuf::internal::TSanWrite(&_impl_);

  _impl_._has_bits_[0] &= ~0x00000001u;
  ::xla::gpu::CompilationCacheEntryProto_LaunchDimensionsProto* released = _impl_.launch_dimensions_;
  _impl_.launch_dimensions_ = nullptr;
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
  auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released);
  released = ::google::protobuf::internal::DuplicateIfNonNull(released);
  if (GetArena() == nullptr) {
    delete old;
  }
#else   // PROTOBUF_FORCE_COPY_IN_RELEASE
  if (GetArena() != nullptr) {
    released = ::google::protobuf::internal::DuplicateIfNonNull(released);
  }
#endif  // !PROTOBUF_FORCE_COPY_IN_RELEASE
  return released;
}
inline ::xla::gpu::CompilationCacheEntryProto_LaunchDimensionsProto* CompilationCacheEntryProto::unsafe_arena_release_launch_dimensions() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  // @@protoc_insertion_point(field_release:xla.gpu.CompilationCacheEntryProto.launch_dimensions)

  _impl_._has_bits_[0] &= ~0x00000001u;
  ::xla::gpu::CompilationCacheEntryProto_LaunchDimensionsProto* temp = _impl_.launch_dimensions_;
  _impl_.launch_dimensions_ = nullptr;
  return temp;
}
inline ::xla::gpu::CompilationCacheEntryProto_LaunchDimensionsProto* CompilationCacheEntryProto::_internal_mutable_launch_dimensions() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (_impl_.launch_dimensions_ == nullptr) {
    auto* p = ::google::protobuf::Message::DefaultConstruct<::xla::gpu::CompilationCacheEntryProto_LaunchDimensionsProto>(GetArena());
    _impl_.launch_dimensions_ = reinterpret_cast<::xla::gpu::CompilationCacheEntryProto_LaunchDimensionsProto*>(p);
  }
  return _impl_.launch_dimensions_;
}
inline ::xla::gpu::CompilationCacheEntryProto_LaunchDimensionsProto* CompilationCacheEntryProto::mutable_launch_dimensions() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  _impl_._has_bits_[0] |= 0x00000001u;
  ::xla::gpu::CompilationCacheEntryProto_LaunchDimensionsProto* _msg = _internal_mutable_launch_dimensions();
  // @@protoc_insertion_point(field_mutable:xla.gpu.CompilationCacheEntryProto.launch_dimensions)
  return _msg;
}
inline void CompilationCacheEntryProto::set_allocated_launch_dimensions(::xla::gpu::CompilationCacheEntryProto_LaunchDimensionsProto* value) {
  ::google::protobuf::Arena* message_arena = GetArena();
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (message_arena == nullptr) {
    delete (_impl_.launch_dimensions_);
  }

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

  _impl_.launch_dimensions_ = reinterpret_cast<::xla::gpu::CompilationCacheEntryProto_LaunchDimensionsProto*>(value);
  // @@protoc_insertion_point(field_set_allocated:xla.gpu.CompilationCacheEntryProto.launch_dimensions)
}

// optional .xla.gpu.CompilationCacheEntryProto.ClusterDimProto cluster_dim = 3;
inline bool CompilationCacheEntryProto::has_cluster_dim() const {
  bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
  PROTOBUF_ASSUME(!value || _impl_.cluster_dim_ != nullptr);
  return value;
}
inline void CompilationCacheEntryProto::clear_cluster_dim() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (_impl_.cluster_dim_ != nullptr) _impl_.cluster_dim_->Clear();
  _impl_._has_bits_[0] &= ~0x00000002u;
}
inline const ::xla::gpu::CompilationCacheEntryProto_ClusterDimProto& CompilationCacheEntryProto::_internal_cluster_dim() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  const ::xla::gpu::CompilationCacheEntryProto_ClusterDimProto* p = _impl_.cluster_dim_;
  return p != nullptr ? *p : reinterpret_cast<const ::xla::gpu::CompilationCacheEntryProto_ClusterDimProto&>(::xla::gpu::_CompilationCacheEntryProto_ClusterDimProto_default_instance_);
}
inline const ::xla::gpu::CompilationCacheEntryProto_ClusterDimProto& CompilationCacheEntryProto::cluster_dim() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_get:xla.gpu.CompilationCacheEntryProto.cluster_dim)
  return _internal_cluster_dim();
}
inline void CompilationCacheEntryProto::unsafe_arena_set_allocated_cluster_dim(::xla::gpu::CompilationCacheEntryProto_ClusterDimProto* value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (GetArena() == nullptr) {
    delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.cluster_dim_);
  }
  _impl_.cluster_dim_ = reinterpret_cast<::xla::gpu::CompilationCacheEntryProto_ClusterDimProto*>(value);
  if (value != nullptr) {
    _impl_._has_bits_[0] |= 0x00000002u;
  } else {
    _impl_._has_bits_[0] &= ~0x00000002u;
  }
  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:xla.gpu.CompilationCacheEntryProto.cluster_dim)
}
inline ::xla::gpu::CompilationCacheEntryProto_ClusterDimProto* CompilationCacheEntryProto::release_cluster_dim() {
  ::google::protobuf::internal::TSanWrite(&_impl_);

  _impl_._has_bits_[0] &= ~0x00000002u;
  ::xla::gpu::CompilationCacheEntryProto_ClusterDimProto* released = _impl_.cluster_dim_;
  _impl_.cluster_dim_ = nullptr;
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
  auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released);
  released = ::google::protobuf::internal::DuplicateIfNonNull(released);
  if (GetArena() == nullptr) {
    delete old;
  }
#else   // PROTOBUF_FORCE_COPY_IN_RELEASE
  if (GetArena() != nullptr) {
    released = ::google::protobuf::internal::DuplicateIfNonNull(released);
  }
#endif  // !PROTOBUF_FORCE_COPY_IN_RELEASE
  return released;
}
inline ::xla::gpu::CompilationCacheEntryProto_ClusterDimProto* CompilationCacheEntryProto::unsafe_arena_release_cluster_dim() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  // @@protoc_insertion_point(field_release:xla.gpu.CompilationCacheEntryProto.cluster_dim)

  _impl_._has_bits_[0] &= ~0x00000002u;
  ::xla::gpu::CompilationCacheEntryProto_ClusterDimProto* temp = _impl_.cluster_dim_;
  _impl_.cluster_dim_ = nullptr;
  return temp;
}
inline ::xla::gpu::CompilationCacheEntryProto_ClusterDimProto* CompilationCacheEntryProto::_internal_mutable_cluster_dim() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (_impl_.cluster_dim_ == nullptr) {
    auto* p = ::google::protobuf::Message::DefaultConstruct<::xla::gpu::CompilationCacheEntryProto_ClusterDimProto>(GetArena());
    _impl_.cluster_dim_ = reinterpret_cast<::xla::gpu::CompilationCacheEntryProto_ClusterDimProto*>(p);
  }
  return _impl_.cluster_dim_;
}
inline ::xla::gpu::CompilationCacheEntryProto_ClusterDimProto* CompilationCacheEntryProto::mutable_cluster_dim() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  _impl_._has_bits_[0] |= 0x00000002u;
  ::xla::gpu::CompilationCacheEntryProto_ClusterDimProto* _msg = _internal_mutable_cluster_dim();
  // @@protoc_insertion_point(field_mutable:xla.gpu.CompilationCacheEntryProto.cluster_dim)
  return _msg;
}
inline void CompilationCacheEntryProto::set_allocated_cluster_dim(::xla::gpu::CompilationCacheEntryProto_ClusterDimProto* value) {
  ::google::protobuf::Arena* message_arena = GetArena();
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (message_arena == nullptr) {
    delete (_impl_.cluster_dim_);
  }

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

  _impl_.cluster_dim_ = reinterpret_cast<::xla::gpu::CompilationCacheEntryProto_ClusterDimProto*>(value);
  // @@protoc_insertion_point(field_set_allocated:xla.gpu.CompilationCacheEntryProto.cluster_dim)
}

// int64 shmem_bytes = 4;
inline void CompilationCacheEntryProto::clear_shmem_bytes() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.shmem_bytes_ = ::int64_t{0};
}
inline ::int64_t CompilationCacheEntryProto::shmem_bytes() const {
  // @@protoc_insertion_point(field_get:xla.gpu.CompilationCacheEntryProto.shmem_bytes)
  return _internal_shmem_bytes();
}
inline void CompilationCacheEntryProto::set_shmem_bytes(::int64_t value) {
  _internal_set_shmem_bytes(value);
  // @@protoc_insertion_point(field_set:xla.gpu.CompilationCacheEntryProto.shmem_bytes)
}
inline ::int64_t CompilationCacheEntryProto::_internal_shmem_bytes() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.shmem_bytes_;
}
inline void CompilationCacheEntryProto::_internal_set_shmem_bytes(::int64_t value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.shmem_bytes_ = value;
}

// bytes binary = 5;
inline void CompilationCacheEntryProto::clear_binary() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.binary_.ClearToEmpty();
}
inline const std::string& CompilationCacheEntryProto::binary() const
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_get:xla.gpu.CompilationCacheEntryProto.binary)
  return _internal_binary();
}
template <typename Arg_, typename... Args_>
inline PROTOBUF_ALWAYS_INLINE void CompilationCacheEntryProto::set_binary(Arg_&& arg,
                                                     Args_... args) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.binary_.SetBytes(static_cast<Arg_&&>(arg), args..., GetArena());
  // @@protoc_insertion_point(field_set:xla.gpu.CompilationCacheEntryProto.binary)
}
inline std::string* CompilationCacheEntryProto::mutable_binary() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  std::string* _s = _internal_mutable_binary();
  // @@protoc_insertion_point(field_mutable:xla.gpu.CompilationCacheEntryProto.binary)
  return _s;
}
inline const std::string& CompilationCacheEntryProto::_internal_binary() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.binary_.Get();
}
inline void CompilationCacheEntryProto::_internal_set_binary(const std::string& value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.binary_.Set(value, GetArena());
}
inline std::string* CompilationCacheEntryProto::_internal_mutable_binary() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  return _impl_.binary_.Mutable( GetArena());
}
inline std::string* CompilationCacheEntryProto::release_binary() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  // @@protoc_insertion_point(field_release:xla.gpu.CompilationCacheEntryProto.binary)
  return _impl_.binary_.Release();
}
inline void CompilationCacheEntryProto::set_allocated_binary(std::string* value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.binary_.SetAllocated(value, GetArena());
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
        if (_impl_.binary_.IsDefault()) {
          _impl_.binary_.Set("", GetArena());
        }
  #endif  // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  // @@protoc_insertion_point(field_set_allocated:xla.gpu.CompilationCacheEntryProto.binary)
}

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

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

// CompilationCacheProto

// map<string, .xla.gpu.CompilationCacheEntryProto> entries = 1;
inline int CompilationCacheProto::_internal_entries_size() const {
  return _internal_entries().size();
}
inline int CompilationCacheProto::entries_size() const {
  return _internal_entries_size();
}
inline void CompilationCacheProto::clear_entries() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.entries_.Clear();
}
inline const ::google::protobuf::Map<std::string, ::xla::gpu::CompilationCacheEntryProto>& CompilationCacheProto::_internal_entries() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.entries_.GetMap();
}
inline const ::google::protobuf::Map<std::string, ::xla::gpu::CompilationCacheEntryProto>& CompilationCacheProto::entries() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_map:xla.gpu.CompilationCacheProto.entries)
  return _internal_entries();
}
inline ::google::protobuf::Map<std::string, ::xla::gpu::CompilationCacheEntryProto>* CompilationCacheProto::_internal_mutable_entries() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  return _impl_.entries_.MutableMap();
}
inline ::google::protobuf::Map<std::string, ::xla::gpu::CompilationCacheEntryProto>* CompilationCacheProto::mutable_entries() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_mutable_map:xla.gpu.CompilationCacheProto.entries)
  return _internal_mutable_entries();
}

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

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


// @@protoc_insertion_point(global_scope)

#include "google/protobuf/port_undef.inc"

#endif  // GOOGLE_PROTOBUF_INCLUDED_xla_2fservice_2fgpu_2fexecutable_2eproto_2epb_2eh
