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

#ifndef xla_2fservice_2fgpu_2fgpu_5fexecutable_2eproto_2epb_2eh
#define xla_2fservice_2fgpu_2fgpu_5fexecutable_2eproto_2epb_2eh

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

#include "google/protobuf/runtime_version.h"
#if PROTOBUF_VERSION != 6031001
#error "Protobuf C++ gencode is built with an incompatible version of"
#error "Protobuf C++ headers/runtime. See"
#error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp"
#endif
#include "google/protobuf/io/coded_stream.h"
#include "google/protobuf/arena.h"
#include "google/protobuf/arenastring.h"
#include "google/protobuf/generated_message_tctable_decl.h"
#include "google/protobuf/generated_message_util.h"
#include "google/protobuf/metadata_lite.h"
#include "google/protobuf/generated_message_reflection.h"
#include "google/protobuf/message.h"
#include "google/protobuf/message_lite.h"
#include "google/protobuf/repeated_field.h"  // IWYU pragma: export
#include "google/protobuf/extension_set.h"  // IWYU pragma: export
#include "google/protobuf/map.h"  // IWYU pragma: export
#include "google/protobuf/map_type_handler.h"  // IWYU pragma: export
#include "google/protobuf/map_entry.h"
#include "google/protobuf/map_field.h"
#include "google/protobuf/unknown_field_set.h"
#include "xla/backends/gpu/runtime/thunk.pb.h"
#include "xla/service/gpu/ir_emission_utils.pb.h"
#include "xla/service/hlo.pb.h"
#include "xla/shape_util.pb.h"
#include "xla/stream_executor/device_description.pb.h"
#include "xla/xla.pb.h"
#include "xla/xla_data.pb.h"
// @@protoc_insertion_point(includes)

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

#define PROTOBUF_INTERNAL_EXPORT_xla_2fservice_2fgpu_2fgpu_5fexecutable_2eproto PROTOBUF_EXPORT

namespace google {
namespace protobuf {
namespace internal {
template <typename T>
::absl::string_view GetAnyMessageName();
}  // namespace internal
}  // namespace protobuf
}  // namespace google

// Internal implementation detail -- do not use these members.
struct PROTOBUF_EXPORT TableStruct_xla_2fservice_2fgpu_2fgpu_5fexecutable_2eproto {
  static const ::uint32_t offsets[];
};
extern "C" {
PROTOBUF_EXPORT extern const ::google::protobuf::internal::DescriptorTable descriptor_table_xla_2fservice_2fgpu_2fgpu_5fexecutable_2eproto;
}  // extern "C"
namespace xla {
namespace gpu {
class GpuExecutableProto;
struct GpuExecutableProtoDefaultTypeInternal;
PROTOBUF_EXPORT extern GpuExecutableProtoDefaultTypeInternal _GpuExecutableProto_default_instance_;
PROTOBUF_EXPORT extern const ::google::protobuf::internal::ClassDataFull GpuExecutableProto_class_data_;
class GpuExecutableProto_ConstantInfoProto;
struct GpuExecutableProto_ConstantInfoProtoDefaultTypeInternal;
PROTOBUF_EXPORT extern GpuExecutableProto_ConstantInfoProtoDefaultTypeInternal _GpuExecutableProto_ConstantInfoProto_default_instance_;
PROTOBUF_EXPORT extern const ::google::protobuf::internal::ClassDataFull GpuExecutableProto_ConstantInfoProto_class_data_;
class GpuExecutableProto_DnnCompiledGraphsEntry_DoNotUse;
struct GpuExecutableProto_DnnCompiledGraphsEntry_DoNotUseDefaultTypeInternal;
PROTOBUF_EXPORT extern GpuExecutableProto_DnnCompiledGraphsEntry_DoNotUseDefaultTypeInternal _GpuExecutableProto_DnnCompiledGraphsEntry_DoNotUse_default_instance_;
PROTOBUF_EXPORT extern const ::google::protobuf::internal::ClassDataFull GpuExecutableProto_DnnCompiledGraphsEntry_DoNotUse_class_data_;
class GpuExecutableProto_OutputInfoMapEntry;
struct GpuExecutableProto_OutputInfoMapEntryDefaultTypeInternal;
PROTOBUF_EXPORT extern GpuExecutableProto_OutputInfoMapEntryDefaultTypeInternal _GpuExecutableProto_OutputInfoMapEntry_default_instance_;
PROTOBUF_EXPORT extern const ::google::protobuf::internal::ClassDataFull GpuExecutableProto_OutputInfoMapEntry_class_data_;
class GpuExecutableProto_OutputInfoProto;
struct GpuExecutableProto_OutputInfoProtoDefaultTypeInternal;
PROTOBUF_EXPORT extern GpuExecutableProto_OutputInfoProtoDefaultTypeInternal _GpuExecutableProto_OutputInfoProto_default_instance_;
PROTOBUF_EXPORT extern const ::google::protobuf::internal::ClassDataFull GpuExecutableProto_OutputInfoProto_class_data_;
class GpuExecutableProto_RepeatedBufferAllocations;
struct GpuExecutableProto_RepeatedBufferAllocationsDefaultTypeInternal;
PROTOBUF_EXPORT extern GpuExecutableProto_RepeatedBufferAllocationsDefaultTypeInternal _GpuExecutableProto_RepeatedBufferAllocations_default_instance_;
PROTOBUF_EXPORT extern const ::google::protobuf::internal::ClassDataFull GpuExecutableProto_RepeatedBufferAllocations_class_data_;
}  // namespace gpu
}  // namespace xla
namespace google {
namespace protobuf {
}  // namespace protobuf
}  // namespace google

namespace xla {
namespace gpu {

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


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

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


  static constexpr auto InternalGenerateClassData_();

 private:
  friend class ::google::protobuf::MessageLite;
  friend struct ::TableStruct_xla_2fservice_2fgpu_2fgpu_5fexecutable_2eproto;

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

  const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
  static void* PROTOBUF_NONNULL PlacementNew_(
      const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
      ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
  static constexpr auto InternalNewImpl_();
};
PROTOBUF_EXPORT extern const ::google::protobuf::internal::ClassDataFull GpuExecutableProto_DnnCompiledGraphsEntry_DoNotUse_class_data_;
// -------------------------------------------------------------------

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

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

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

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

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

  static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() {
    return GetDescriptor();
  }
  static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() {
    return default_instance().GetMetadata().descriptor;
  }
  static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() {
    return default_instance().GetMetadata().reflection;
  }
  static const GpuExecutableProto_OutputInfoProto& default_instance() {
    return *reinterpret_cast<const GpuExecutableProto_OutputInfoProto*>(
        &_GpuExecutableProto_OutputInfoProto_default_instance_);
  }
  static constexpr int kIndexInFileMessages = 2;
  friend void swap(GpuExecutableProto_OutputInfoProto& a, GpuExecutableProto_OutputInfoProto& b) { a.Swap(&b); }
  inline void Swap(GpuExecutableProto_OutputInfoProto* PROTOBUF_NONNULL other) {
    if (other == this) return;
    if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
      InternalSwap(other);
    } else {
      ::google::protobuf::internal::GenericSwap(this, other);
    }
  }
  void UnsafeArenaSwap(GpuExecutableProto_OutputInfoProto* PROTOBUF_NONNULL other) {
    if (other == this) return;
    ABSL_DCHECK(GetArena() == other->GetArena());
    InternalSwap(other);
  }

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

  GpuExecutableProto_OutputInfoProto* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const {
    return ::google::protobuf::Message::DefaultConstruct<GpuExecutableProto_OutputInfoProto>(arena);
  }
  using ::google::protobuf::Message::CopyFrom;
  void CopyFrom(const GpuExecutableProto_OutputInfoProto& from);
  using ::google::protobuf::Message::MergeFrom;
  void MergeFrom(const GpuExecutableProto_OutputInfoProto& from) { GpuExecutableProto_OutputInfoProto::MergeImpl(*this, from); }

  private:
  static void MergeImpl(::google::protobuf::MessageLite& to_msg,
                        const ::google::protobuf::MessageLite& from_msg);

  public:
  bool IsInitialized() const {
    return true;
  }
  ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL;
  #if defined(PROTOBUF_CUSTOM_VTABLE)
  private:
  static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
  static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
      const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
      ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);

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

  private:
  void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
  static void SharedDtor(MessageLite& self);
  void InternalSwap(GpuExecutableProto_OutputInfoProto* PROTOBUF_NONNULL other);
 private:
  template <typename T>
  friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)();
  static ::absl::string_view FullMessageName() { return "xla.gpu.GpuExecutableProto.OutputInfoProto"; }

 protected:
  explicit GpuExecutableProto_OutputInfoProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
  GpuExecutableProto_OutputInfoProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GpuExecutableProto_OutputInfoProto& from);
  GpuExecutableProto_OutputInfoProto(
      ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, GpuExecutableProto_OutputInfoProto&& from) noexcept
      : GpuExecutableProto_OutputInfoProto(arena) {
    *this = ::std::move(from);
  }
  const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
  static void* PROTOBUF_NONNULL PlacementNew_(
      const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
      ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
  static constexpr auto InternalNewImpl_();

 public:
  static constexpr auto InternalGenerateClassData_();

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

  // accessors -------------------------------------------------------
  enum : int {
    kAliasConfigFieldNumber = 3,
    kAllocationIndexFieldNumber = 1,
    kPassthroughFieldNumber = 2,
  };
  // optional .xla.HloInputOutputAliasProto.AliasEntryProto alias_config = 3;
  bool has_alias_config() const;
  void clear_alias_config() ;
  const ::xla::HloInputOutputAliasProto_AliasEntryProto& alias_config() const;
  [[nodiscard]] ::xla::HloInputOutputAliasProto_AliasEntryProto* PROTOBUF_NULLABLE release_alias_config();
  ::xla::HloInputOutputAliasProto_AliasEntryProto* PROTOBUF_NONNULL mutable_alias_config();
  void set_allocated_alias_config(::xla::HloInputOutputAliasProto_AliasEntryProto* PROTOBUF_NULLABLE value);
  void unsafe_arena_set_allocated_alias_config(::xla::HloInputOutputAliasProto_AliasEntryProto* PROTOBUF_NULLABLE value);
  ::xla::HloInputOutputAliasProto_AliasEntryProto* PROTOBUF_NULLABLE unsafe_arena_release_alias_config();

  private:
  const ::xla::HloInputOutputAliasProto_AliasEntryProto& _internal_alias_config() const;
  ::xla::HloInputOutputAliasProto_AliasEntryProto* PROTOBUF_NONNULL _internal_mutable_alias_config();

  public:
  // int64 allocation_index = 1;
  void clear_allocation_index() ;
  ::int64_t allocation_index() const;
  void set_allocation_index(::int64_t value);

  private:
  ::int64_t _internal_allocation_index() const;
  void _internal_set_allocation_index(::int64_t value);

  public:
  // bool passthrough = 2;
  void clear_passthrough() ;
  bool passthrough() const;
  void set_passthrough(bool value);

  private:
  bool _internal_passthrough() const;
  void _internal_set_passthrough(bool value);

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

  friend class ::google::protobuf::MessageLite;
  friend class ::google::protobuf::Arena;
  template <typename T>
  friend class ::google::protobuf::Arena::InternalHelper;
  using InternalArenaConstructable_ = void;
  using DestructorSkippable_ = void;
  struct Impl_ {
    inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept;
    inline explicit Impl_(
        ::google::protobuf::internal::InternalVisibility visibility,
        ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
    inline explicit Impl_(
        ::google::protobuf::internal::InternalVisibility visibility,
        ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
        const GpuExecutableProto_OutputInfoProto& from_msg);
    ::google::protobuf::internal::HasBits<1> _has_bits_;
    ::google::protobuf::internal::CachedSize _cached_size_;
    ::xla::HloInputOutputAliasProto_AliasEntryProto* PROTOBUF_NULLABLE alias_config_;
    ::int64_t allocation_index_;
    bool passthrough_;
    PROTOBUF_TSAN_DECLARE_MEMBER
  };
  union { Impl_ _impl_; };
  friend struct ::TableStruct_xla_2fservice_2fgpu_2fgpu_5fexecutable_2eproto;
};

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

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

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

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

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

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

  static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() {
    return GetDescriptor();
  }
  static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() {
    return default_instance().GetMetadata().descriptor;
  }
  static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() {
    return default_instance().GetMetadata().reflection;
  }
  static const GpuExecutableProto_ConstantInfoProto& default_instance() {
    return *reinterpret_cast<const GpuExecutableProto_ConstantInfoProto*>(
        &_GpuExecutableProto_ConstantInfoProto_default_instance_);
  }
  static constexpr int kIndexInFileMessages = 4;
  friend void swap(GpuExecutableProto_ConstantInfoProto& a, GpuExecutableProto_ConstantInfoProto& b) { a.Swap(&b); }
  inline void Swap(GpuExecutableProto_ConstantInfoProto* PROTOBUF_NONNULL other) {
    if (other == this) return;
    if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
      InternalSwap(other);
    } else {
      ::google::protobuf::internal::GenericSwap(this, other);
    }
  }
  void UnsafeArenaSwap(GpuExecutableProto_ConstantInfoProto* PROTOBUF_NONNULL other) {
    if (other == this) return;
    ABSL_DCHECK(GetArena() == other->GetArena());
    InternalSwap(other);
  }

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

  GpuExecutableProto_ConstantInfoProto* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const {
    return ::google::protobuf::Message::DefaultConstruct<GpuExecutableProto_ConstantInfoProto>(arena);
  }
  using ::google::protobuf::Message::CopyFrom;
  void CopyFrom(const GpuExecutableProto_ConstantInfoProto& from);
  using ::google::protobuf::Message::MergeFrom;
  void MergeFrom(const GpuExecutableProto_ConstantInfoProto& from) { GpuExecutableProto_ConstantInfoProto::MergeImpl(*this, from); }

  private:
  static void MergeImpl(::google::protobuf::MessageLite& to_msg,
                        const ::google::protobuf::MessageLite& from_msg);

  public:
  bool IsInitialized() const {
    return true;
  }
  ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL;
  #if defined(PROTOBUF_CUSTOM_VTABLE)
  private:
  static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
  static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
      const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
      ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);

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

  private:
  void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
  static void SharedDtor(MessageLite& self);
  void InternalSwap(GpuExecutableProto_ConstantInfoProto* PROTOBUF_NONNULL other);
 private:
  template <typename T>
  friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)();
  static ::absl::string_view FullMessageName() { return "xla.gpu.GpuExecutableProto.ConstantInfoProto"; }

 protected:
  explicit GpuExecutableProto_ConstantInfoProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
  GpuExecutableProto_ConstantInfoProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GpuExecutableProto_ConstantInfoProto& from);
  GpuExecutableProto_ConstantInfoProto(
      ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, GpuExecutableProto_ConstantInfoProto&& from) noexcept
      : GpuExecutableProto_ConstantInfoProto(arena) {
    *this = ::std::move(from);
  }
  const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
  static void* PROTOBUF_NONNULL PlacementNew_(
      const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
      ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
  static constexpr auto InternalNewImpl_();

 public:
  static constexpr auto InternalGenerateClassData_();

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

  // accessors -------------------------------------------------------
  enum : int {
    kSymbolNameFieldNumber = 1,
    kContentFieldNumber = 2,
    kAllocationIndexFieldNumber = 3,
  };
  // string symbol_name = 1;
  void clear_symbol_name() ;
  const ::std::string& symbol_name() const;
  template <typename Arg_ = const ::std::string&, typename... Args_>
  void set_symbol_name(Arg_&& arg, Args_... args);
  ::std::string* PROTOBUF_NONNULL mutable_symbol_name();
  [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_symbol_name();
  void set_allocated_symbol_name(::std::string* PROTOBUF_NULLABLE value);

  private:
  const ::std::string& _internal_symbol_name() const;
  PROTOBUF_ALWAYS_INLINE void _internal_set_symbol_name(const ::std::string& value);
  ::std::string* PROTOBUF_NONNULL _internal_mutable_symbol_name();

  public:
  // .xla.gpu.DenseDataIntermediateProto content = 2;
  bool has_content() const;
  void clear_content() ;
  const ::xla::gpu::DenseDataIntermediateProto& content() const;
  [[nodiscard]] ::xla::gpu::DenseDataIntermediateProto* PROTOBUF_NULLABLE release_content();
  ::xla::gpu::DenseDataIntermediateProto* PROTOBUF_NONNULL mutable_content();
  void set_allocated_content(::xla::gpu::DenseDataIntermediateProto* PROTOBUF_NULLABLE value);
  void unsafe_arena_set_allocated_content(::xla::gpu::DenseDataIntermediateProto* PROTOBUF_NULLABLE value);
  ::xla::gpu::DenseDataIntermediateProto* PROTOBUF_NULLABLE unsafe_arena_release_content();

  private:
  const ::xla::gpu::DenseDataIntermediateProto& _internal_content() const;
  ::xla::gpu::DenseDataIntermediateProto* PROTOBUF_NONNULL _internal_mutable_content();

  public:
  // int64 allocation_index = 3;
  void clear_allocation_index() ;
  ::int64_t allocation_index() const;
  void set_allocation_index(::int64_t value);

  private:
  ::int64_t _internal_allocation_index() const;
  void _internal_set_allocation_index(::int64_t value);

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

  friend class ::google::protobuf::MessageLite;
  friend class ::google::protobuf::Arena;
  template <typename T>
  friend class ::google::protobuf::Arena::InternalHelper;
  using InternalArenaConstructable_ = void;
  using DestructorSkippable_ = void;
  struct Impl_ {
    inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept;
    inline explicit Impl_(
        ::google::protobuf::internal::InternalVisibility visibility,
        ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
    inline explicit Impl_(
        ::google::protobuf::internal::InternalVisibility visibility,
        ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
        const GpuExecutableProto_ConstantInfoProto& from_msg);
    ::google::protobuf::internal::HasBits<1> _has_bits_;
    ::google::protobuf::internal::CachedSize _cached_size_;
    ::google::protobuf::internal::ArenaStringPtr symbol_name_;
    ::xla::gpu::DenseDataIntermediateProto* PROTOBUF_NULLABLE content_;
    ::int64_t allocation_index_;
    PROTOBUF_TSAN_DECLARE_MEMBER
  };
  union { Impl_ _impl_; };
  friend struct ::TableStruct_xla_2fservice_2fgpu_2fgpu_5fexecutable_2eproto;
};

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

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

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

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

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

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

  static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() {
    return GetDescriptor();
  }
  static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() {
    return default_instance().GetMetadata().descriptor;
  }
  static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() {
    return default_instance().GetMetadata().reflection;
  }
  static const GpuExecutableProto_RepeatedBufferAllocations& default_instance() {
    return *reinterpret_cast<const GpuExecutableProto_RepeatedBufferAllocations*>(
        &_GpuExecutableProto_RepeatedBufferAllocations_default_instance_);
  }
  static constexpr int kIndexInFileMessages = 0;
  friend void swap(GpuExecutableProto_RepeatedBufferAllocations& a, GpuExecutableProto_RepeatedBufferAllocations& b) { a.Swap(&b); }
  inline void Swap(GpuExecutableProto_RepeatedBufferAllocations* PROTOBUF_NONNULL other) {
    if (other == this) return;
    if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
      InternalSwap(other);
    } else {
      ::google::protobuf::internal::GenericSwap(this, other);
    }
  }
  void UnsafeArenaSwap(GpuExecutableProto_RepeatedBufferAllocations* PROTOBUF_NONNULL other) {
    if (other == this) return;
    ABSL_DCHECK(GetArena() == other->GetArena());
    InternalSwap(other);
  }

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

  GpuExecutableProto_RepeatedBufferAllocations* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const {
    return ::google::protobuf::Message::DefaultConstruct<GpuExecutableProto_RepeatedBufferAllocations>(arena);
  }
  using ::google::protobuf::Message::CopyFrom;
  void CopyFrom(const GpuExecutableProto_RepeatedBufferAllocations& from);
  using ::google::protobuf::Message::MergeFrom;
  void MergeFrom(const GpuExecutableProto_RepeatedBufferAllocations& from) { GpuExecutableProto_RepeatedBufferAllocations::MergeImpl(*this, from); }

  private:
  static void MergeImpl(::google::protobuf::MessageLite& to_msg,
                        const ::google::protobuf::MessageLite& from_msg);

  public:
  bool IsInitialized() const {
    return true;
  }
  ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL;
  #if defined(PROTOBUF_CUSTOM_VTABLE)
  private:
  static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
  static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
      const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
      ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);

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

  private:
  void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
  static void SharedDtor(MessageLite& self);
  void InternalSwap(GpuExecutableProto_RepeatedBufferAllocations* PROTOBUF_NONNULL other);
 private:
  template <typename T>
  friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)();
  static ::absl::string_view FullMessageName() { return "xla.gpu.GpuExecutableProto.RepeatedBufferAllocations"; }

 protected:
  explicit GpuExecutableProto_RepeatedBufferAllocations(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
  GpuExecutableProto_RepeatedBufferAllocations(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GpuExecutableProto_RepeatedBufferAllocations& from);
  GpuExecutableProto_RepeatedBufferAllocations(
      ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, GpuExecutableProto_RepeatedBufferAllocations&& from) noexcept
      : GpuExecutableProto_RepeatedBufferAllocations(arena) {
    *this = ::std::move(from);
  }
  const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
  static void* PROTOBUF_NONNULL PlacementNew_(
      const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
      ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
  static constexpr auto InternalNewImpl_();

 public:
  static constexpr auto InternalGenerateClassData_();

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

  // accessors -------------------------------------------------------
  enum : int {
    kValuesFieldNumber = 1,
  };
  // repeated .xla.BufferAllocationProto values = 1;
  int values_size() const;
  private:
  int _internal_values_size() const;

  public:
  void clear_values() ;
  ::xla::BufferAllocationProto* PROTOBUF_NONNULL mutable_values(int index);
  ::google::protobuf::RepeatedPtrField<::xla::BufferAllocationProto>* PROTOBUF_NONNULL mutable_values();

  private:
  const ::google::protobuf::RepeatedPtrField<::xla::BufferAllocationProto>& _internal_values() const;
  ::google::protobuf::RepeatedPtrField<::xla::BufferAllocationProto>* PROTOBUF_NONNULL _internal_mutable_values();
  public:
  const ::xla::BufferAllocationProto& values(int index) const;
  ::xla::BufferAllocationProto* PROTOBUF_NONNULL add_values();
  const ::google::protobuf::RepeatedPtrField<::xla::BufferAllocationProto>& values() const;
  // @@protoc_insertion_point(class_scope:xla.gpu.GpuExecutableProto.RepeatedBufferAllocations)
 private:
  class _Internal;
  friend class ::google::protobuf::internal::TcParser;
  static const ::google::protobuf::internal::TcParseTable<0, 1,
                                   1, 0,
                                   2>
      _table_;

  friend class ::google::protobuf::MessageLite;
  friend class ::google::protobuf::Arena;
  template <typename T>
  friend class ::google::protobuf::Arena::InternalHelper;
  using InternalArenaConstructable_ = void;
  using DestructorSkippable_ = void;
  struct Impl_ {
    inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept;
    inline explicit Impl_(
        ::google::protobuf::internal::InternalVisibility visibility,
        ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
    inline explicit Impl_(
        ::google::protobuf::internal::InternalVisibility visibility,
        ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
        const GpuExecutableProto_RepeatedBufferAllocations& from_msg);
    ::google::protobuf::RepeatedPtrField< ::xla::BufferAllocationProto > values_;
    ::google::protobuf::internal::CachedSize _cached_size_;
    PROTOBUF_TSAN_DECLARE_MEMBER
  };
  union { Impl_ _impl_; };
  friend struct ::TableStruct_xla_2fservice_2fgpu_2fgpu_5fexecutable_2eproto;
};

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

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

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

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

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

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

  static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() {
    return GetDescriptor();
  }
  static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() {
    return default_instance().GetMetadata().descriptor;
  }
  static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() {
    return default_instance().GetMetadata().reflection;
  }
  static const GpuExecutableProto_OutputInfoMapEntry& default_instance() {
    return *reinterpret_cast<const GpuExecutableProto_OutputInfoMapEntry*>(
        &_GpuExecutableProto_OutputInfoMapEntry_default_instance_);
  }
  static constexpr int kIndexInFileMessages = 3;
  friend void swap(GpuExecutableProto_OutputInfoMapEntry& a, GpuExecutableProto_OutputInfoMapEntry& b) { a.Swap(&b); }
  inline void Swap(GpuExecutableProto_OutputInfoMapEntry* PROTOBUF_NONNULL other) {
    if (other == this) return;
    if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
      InternalSwap(other);
    } else {
      ::google::protobuf::internal::GenericSwap(this, other);
    }
  }
  void UnsafeArenaSwap(GpuExecutableProto_OutputInfoMapEntry* PROTOBUF_NONNULL other) {
    if (other == this) return;
    ABSL_DCHECK(GetArena() == other->GetArena());
    InternalSwap(other);
  }

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

  GpuExecutableProto_OutputInfoMapEntry* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const {
    return ::google::protobuf::Message::DefaultConstruct<GpuExecutableProto_OutputInfoMapEntry>(arena);
  }
  using ::google::protobuf::Message::CopyFrom;
  void CopyFrom(const GpuExecutableProto_OutputInfoMapEntry& from);
  using ::google::protobuf::Message::MergeFrom;
  void MergeFrom(const GpuExecutableProto_OutputInfoMapEntry& from) { GpuExecutableProto_OutputInfoMapEntry::MergeImpl(*this, from); }

  private:
  static void MergeImpl(::google::protobuf::MessageLite& to_msg,
                        const ::google::protobuf::MessageLite& from_msg);

  public:
  bool IsInitialized() const {
    return true;
  }
  ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL;
  #if defined(PROTOBUF_CUSTOM_VTABLE)
  private:
  static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
  static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
      const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
      ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);

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

  private:
  void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
  static void SharedDtor(MessageLite& self);
  void InternalSwap(GpuExecutableProto_OutputInfoMapEntry* PROTOBUF_NONNULL other);
 private:
  template <typename T>
  friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)();
  static ::absl::string_view FullMessageName() { return "xla.gpu.GpuExecutableProto.OutputInfoMapEntry"; }

 protected:
  explicit GpuExecutableProto_OutputInfoMapEntry(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
  GpuExecutableProto_OutputInfoMapEntry(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GpuExecutableProto_OutputInfoMapEntry& from);
  GpuExecutableProto_OutputInfoMapEntry(
      ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, GpuExecutableProto_OutputInfoMapEntry&& from) noexcept
      : GpuExecutableProto_OutputInfoMapEntry(arena) {
    *this = ::std::move(from);
  }
  const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
  static void* PROTOBUF_NONNULL PlacementNew_(
      const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
      ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
  static constexpr auto InternalNewImpl_();

 public:
  static constexpr auto InternalGenerateClassData_();

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

  // accessors -------------------------------------------------------
  enum : int {
    kShapeIndexFieldNumber = 1,
    kOutputInfoFieldNumber = 2,
  };
  // .xla.ShapeIndexProto shape_index = 1;
  bool has_shape_index() const;
  void clear_shape_index() ;
  const ::xla::ShapeIndexProto& shape_index() const;
  [[nodiscard]] ::xla::ShapeIndexProto* PROTOBUF_NULLABLE release_shape_index();
  ::xla::ShapeIndexProto* PROTOBUF_NONNULL mutable_shape_index();
  void set_allocated_shape_index(::xla::ShapeIndexProto* PROTOBUF_NULLABLE value);
  void unsafe_arena_set_allocated_shape_index(::xla::ShapeIndexProto* PROTOBUF_NULLABLE value);
  ::xla::ShapeIndexProto* PROTOBUF_NULLABLE unsafe_arena_release_shape_index();

  private:
  const ::xla::ShapeIndexProto& _internal_shape_index() const;
  ::xla::ShapeIndexProto* PROTOBUF_NONNULL _internal_mutable_shape_index();

  public:
  // .xla.gpu.GpuExecutableProto.OutputInfoProto output_info = 2;
  bool has_output_info() const;
  void clear_output_info() ;
  const ::xla::gpu::GpuExecutableProto_OutputInfoProto& output_info() const;
  [[nodiscard]] ::xla::gpu::GpuExecutableProto_OutputInfoProto* PROTOBUF_NULLABLE release_output_info();
  ::xla::gpu::GpuExecutableProto_OutputInfoProto* PROTOBUF_NONNULL mutable_output_info();
  void set_allocated_output_info(::xla::gpu::GpuExecutableProto_OutputInfoProto* PROTOBUF_NULLABLE value);
  void unsafe_arena_set_allocated_output_info(::xla::gpu::GpuExecutableProto_OutputInfoProto* PROTOBUF_NULLABLE value);
  ::xla::gpu::GpuExecutableProto_OutputInfoProto* PROTOBUF_NULLABLE unsafe_arena_release_output_info();

  private:
  const ::xla::gpu::GpuExecutableProto_OutputInfoProto& _internal_output_info() const;
  ::xla::gpu::GpuExecutableProto_OutputInfoProto* PROTOBUF_NONNULL _internal_mutable_output_info();

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

  friend class ::google::protobuf::MessageLite;
  friend class ::google::protobuf::Arena;
  template <typename T>
  friend class ::google::protobuf::Arena::InternalHelper;
  using InternalArenaConstructable_ = void;
  using DestructorSkippable_ = void;
  struct Impl_ {
    inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept;
    inline explicit Impl_(
        ::google::protobuf::internal::InternalVisibility visibility,
        ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
    inline explicit Impl_(
        ::google::protobuf::internal::InternalVisibility visibility,
        ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
        const GpuExecutableProto_OutputInfoMapEntry& from_msg);
    ::google::protobuf::internal::HasBits<1> _has_bits_;
    ::google::protobuf::internal::CachedSize _cached_size_;
    ::xla::ShapeIndexProto* PROTOBUF_NULLABLE shape_index_;
    ::xla::gpu::GpuExecutableProto_OutputInfoProto* PROTOBUF_NULLABLE output_info_;
    PROTOBUF_TSAN_DECLARE_MEMBER
  };
  union { Impl_ _impl_; };
  friend struct ::TableStruct_xla_2fservice_2fgpu_2fgpu_5fexecutable_2eproto;
};

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

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

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

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

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

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

  static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() {
    return GetDescriptor();
  }
  static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() {
    return default_instance().GetMetadata().descriptor;
  }
  static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() {
    return default_instance().GetMetadata().reflection;
  }
  static const GpuExecutableProto& default_instance() {
    return *reinterpret_cast<const GpuExecutableProto*>(
        &_GpuExecutableProto_default_instance_);
  }
  static constexpr int kIndexInFileMessages = 5;
  friend void swap(GpuExecutableProto& a, GpuExecutableProto& b) { a.Swap(&b); }
  inline void Swap(GpuExecutableProto* PROTOBUF_NONNULL other) {
    if (other == this) return;
    if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
      InternalSwap(other);
    } else {
      ::google::protobuf::internal::GenericSwap(this, other);
    }
  }
  void UnsafeArenaSwap(GpuExecutableProto* PROTOBUF_NONNULL other) {
    if (other == this) return;
    ABSL_DCHECK(GetArena() == other->GetArena());
    InternalSwap(other);
  }

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

  GpuExecutableProto* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const {
    return ::google::protobuf::Message::DefaultConstruct<GpuExecutableProto>(arena);
  }
  using ::google::protobuf::Message::CopyFrom;
  void CopyFrom(const GpuExecutableProto& from);
  using ::google::protobuf::Message::MergeFrom;
  void MergeFrom(const GpuExecutableProto& from) { GpuExecutableProto::MergeImpl(*this, from); }

  private:
  static void MergeImpl(::google::protobuf::MessageLite& to_msg,
                        const ::google::protobuf::MessageLite& from_msg);

  public:
  bool IsInitialized() const {
    return true;
  }
  ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL;
  #if defined(PROTOBUF_CUSTOM_VTABLE)
  private:
  static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
  static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
      const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
      ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);

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

  private:
  void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
  static void SharedDtor(MessageLite& self);
  void InternalSwap(GpuExecutableProto* PROTOBUF_NONNULL other);
 private:
  template <typename T>
  friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)();
  static ::absl::string_view FullMessageName() { return "xla.gpu.GpuExecutableProto"; }

 protected:
  explicit GpuExecutableProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
  GpuExecutableProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GpuExecutableProto& from);
  GpuExecutableProto(
      ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, GpuExecutableProto&& from) noexcept
      : GpuExecutableProto(arena) {
    *this = ::std::move(from);
  }
  const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
  static void* PROTOBUF_NONNULL PlacementNew_(
      const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
      ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
  static constexpr auto InternalNewImpl_();

 public:
  static constexpr auto InternalGenerateClassData_();

  ::google::protobuf::Metadata GetMetadata() const;
  // nested types ----------------------------------------------------
  using RepeatedBufferAllocations = GpuExecutableProto_RepeatedBufferAllocations;
  using OutputInfoProto = GpuExecutableProto_OutputInfoProto;
  using OutputInfoMapEntry = GpuExecutableProto_OutputInfoMapEntry;
  using ConstantInfoProto = GpuExecutableProto_ConstantInfoProto;

  // accessors -------------------------------------------------------
  enum : int {
    kDnnCompiledGraphsFieldNumber = 5,
    kOutputInfoMapFieldNumber = 11,
    kConstantsFieldNumber = 12,
    kAsmTextFieldNumber = 3,
    kBinaryFieldNumber = 4,
    kModuleNameFieldNumber = 8,
    kHloModuleWithConfigFieldNumber = 1,
    kBufferAssignmentFieldNumber = 2,
    kGpuComputeCapabilityFieldNumber = 6,
    kThunkFieldNumber = 7,
    kProgramShapeFieldNumber = 9,
    kBufferAllocationsFieldNumber = 10,
  };
  // 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>* PROTOBUF_NONNULL 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>* PROTOBUF_NONNULL _internal_mutable_dnn_compiled_graphs();

  public:
  // repeated .xla.gpu.GpuExecutableProto.OutputInfoMapEntry output_info_map = 11;
  int output_info_map_size() const;
  private:
  int _internal_output_info_map_size() const;

  public:
  void clear_output_info_map() ;
  ::xla::gpu::GpuExecutableProto_OutputInfoMapEntry* PROTOBUF_NONNULL mutable_output_info_map(int index);
  ::google::protobuf::RepeatedPtrField<::xla::gpu::GpuExecutableProto_OutputInfoMapEntry>* PROTOBUF_NONNULL mutable_output_info_map();

  private:
  const ::google::protobuf::RepeatedPtrField<::xla::gpu::GpuExecutableProto_OutputInfoMapEntry>& _internal_output_info_map() const;
  ::google::protobuf::RepeatedPtrField<::xla::gpu::GpuExecutableProto_OutputInfoMapEntry>* PROTOBUF_NONNULL _internal_mutable_output_info_map();
  public:
  const ::xla::gpu::GpuExecutableProto_OutputInfoMapEntry& output_info_map(int index) const;
  ::xla::gpu::GpuExecutableProto_OutputInfoMapEntry* PROTOBUF_NONNULL add_output_info_map();
  const ::google::protobuf::RepeatedPtrField<::xla::gpu::GpuExecutableProto_OutputInfoMapEntry>& output_info_map() const;
  // repeated .xla.gpu.GpuExecutableProto.ConstantInfoProto constants = 12;
  int constants_size() const;
  private:
  int _internal_constants_size() const;

  public:
  void clear_constants() ;
  ::xla::gpu::GpuExecutableProto_ConstantInfoProto* PROTOBUF_NONNULL mutable_constants(int index);
  ::google::protobuf::RepeatedPtrField<::xla::gpu::GpuExecutableProto_ConstantInfoProto>* PROTOBUF_NONNULL mutable_constants();

  private:
  const ::google::protobuf::RepeatedPtrField<::xla::gpu::GpuExecutableProto_ConstantInfoProto>& _internal_constants() const;
  ::google::protobuf::RepeatedPtrField<::xla::gpu::GpuExecutableProto_ConstantInfoProto>* PROTOBUF_NONNULL _internal_mutable_constants();
  public:
  const ::xla::gpu::GpuExecutableProto_ConstantInfoProto& constants(int index) const;
  ::xla::gpu::GpuExecutableProto_ConstantInfoProto* PROTOBUF_NONNULL add_constants();
  const ::google::protobuf::RepeatedPtrField<::xla::gpu::GpuExecutableProto_ConstantInfoProto>& constants() const;
  // 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* PROTOBUF_NONNULL mutable_asm_text();
  [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_asm_text();
  void set_allocated_asm_text(::std::string* PROTOBUF_NULLABLE value);

  private:
  const ::std::string& _internal_asm_text() const;
  PROTOBUF_ALWAYS_INLINE void _internal_set_asm_text(const ::std::string& value);
  ::std::string* PROTOBUF_NONNULL _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* PROTOBUF_NONNULL mutable_binary();
  [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_binary();
  void set_allocated_binary(::std::string* PROTOBUF_NULLABLE value);

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

  public:
  // string module_name = 8;
  void clear_module_name() ;
  const ::std::string& module_name() const;
  template <typename Arg_ = const ::std::string&, typename... Args_>
  void set_module_name(Arg_&& arg, Args_... args);
  ::std::string* PROTOBUF_NONNULL mutable_module_name();
  [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_module_name();
  void set_allocated_module_name(::std::string* PROTOBUF_NULLABLE value);

  private:
  const ::std::string& _internal_module_name() const;
  PROTOBUF_ALWAYS_INLINE void _internal_set_module_name(const ::std::string& value);
  ::std::string* PROTOBUF_NONNULL _internal_mutable_module_name();

  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;
  [[nodiscard]] ::xla::HloModuleProtoWithConfig* PROTOBUF_NULLABLE release_hlo_module_with_config();
  ::xla::HloModuleProtoWithConfig* PROTOBUF_NONNULL mutable_hlo_module_with_config();
  void set_allocated_hlo_module_with_config(::xla::HloModuleProtoWithConfig* PROTOBUF_NULLABLE value);
  void unsafe_arena_set_allocated_hlo_module_with_config(::xla::HloModuleProtoWithConfig* PROTOBUF_NULLABLE value);
  ::xla::HloModuleProtoWithConfig* PROTOBUF_NULLABLE unsafe_arena_release_hlo_module_with_config();

  private:
  const ::xla::HloModuleProtoWithConfig& _internal_hlo_module_with_config() const;
  ::xla::HloModuleProtoWithConfig* PROTOBUF_NONNULL _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;
  [[nodiscard]] ::xla::BufferAssignmentProto* PROTOBUF_NULLABLE release_buffer_assignment();
  ::xla::BufferAssignmentProto* PROTOBUF_NONNULL mutable_buffer_assignment();
  void set_allocated_buffer_assignment(::xla::BufferAssignmentProto* PROTOBUF_NULLABLE value);
  void unsafe_arena_set_allocated_buffer_assignment(::xla::BufferAssignmentProto* PROTOBUF_NULLABLE value);
  ::xla::BufferAssignmentProto* PROTOBUF_NULLABLE unsafe_arena_release_buffer_assignment();

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

  public:
  // .stream_executor.GpuComputeCapabilityProto gpu_compute_capability = 6;
  bool has_gpu_compute_capability() const;
  void clear_gpu_compute_capability() ;
  const ::stream_executor::GpuComputeCapabilityProto& gpu_compute_capability() const;
  [[nodiscard]] ::stream_executor::GpuComputeCapabilityProto* PROTOBUF_NULLABLE release_gpu_compute_capability();
  ::stream_executor::GpuComputeCapabilityProto* PROTOBUF_NONNULL mutable_gpu_compute_capability();
  void set_allocated_gpu_compute_capability(::stream_executor::GpuComputeCapabilityProto* PROTOBUF_NULLABLE value);
  void unsafe_arena_set_allocated_gpu_compute_capability(::stream_executor::GpuComputeCapabilityProto* PROTOBUF_NULLABLE value);
  ::stream_executor::GpuComputeCapabilityProto* PROTOBUF_NULLABLE unsafe_arena_release_gpu_compute_capability();

  private:
  const ::stream_executor::GpuComputeCapabilityProto& _internal_gpu_compute_capability() const;
  ::stream_executor::GpuComputeCapabilityProto* PROTOBUF_NONNULL _internal_mutable_gpu_compute_capability();

  public:
  // optional .xla.gpu.ThunkProto thunk = 7;
  bool has_thunk() const;
  void clear_thunk() ;
  const ::xla::gpu::ThunkProto& thunk() const;
  [[nodiscard]] ::xla::gpu::ThunkProto* PROTOBUF_NULLABLE release_thunk();
  ::xla::gpu::ThunkProto* PROTOBUF_NONNULL mutable_thunk();
  void set_allocated_thunk(::xla::gpu::ThunkProto* PROTOBUF_NULLABLE value);
  void unsafe_arena_set_allocated_thunk(::xla::gpu::ThunkProto* PROTOBUF_NULLABLE value);
  ::xla::gpu::ThunkProto* PROTOBUF_NULLABLE unsafe_arena_release_thunk();

  private:
  const ::xla::gpu::ThunkProto& _internal_thunk() const;
  ::xla::gpu::ThunkProto* PROTOBUF_NONNULL _internal_mutable_thunk();

  public:
  // .xla.ProgramShapeProto program_shape = 9;
  bool has_program_shape() const;
  void clear_program_shape() ;
  const ::xla::ProgramShapeProto& program_shape() const;
  [[nodiscard]] ::xla::ProgramShapeProto* PROTOBUF_NULLABLE release_program_shape();
  ::xla::ProgramShapeProto* PROTOBUF_NONNULL mutable_program_shape();
  void set_allocated_program_shape(::xla::ProgramShapeProto* PROTOBUF_NULLABLE value);
  void unsafe_arena_set_allocated_program_shape(::xla::ProgramShapeProto* PROTOBUF_NULLABLE value);
  ::xla::ProgramShapeProto* PROTOBUF_NULLABLE unsafe_arena_release_program_shape();

  private:
  const ::xla::ProgramShapeProto& _internal_program_shape() const;
  ::xla::ProgramShapeProto* PROTOBUF_NONNULL _internal_mutable_program_shape();

  public:
  // .xla.gpu.GpuExecutableProto.RepeatedBufferAllocations buffer_allocations = 10;
  bool has_buffer_allocations() const;
  void clear_buffer_allocations() ;
  const ::xla::gpu::GpuExecutableProto_RepeatedBufferAllocations& buffer_allocations() const;
  [[nodiscard]] ::xla::gpu::GpuExecutableProto_RepeatedBufferAllocations* PROTOBUF_NULLABLE release_buffer_allocations();
  ::xla::gpu::GpuExecutableProto_RepeatedBufferAllocations* PROTOBUF_NONNULL mutable_buffer_allocations();
  void set_allocated_buffer_allocations(::xla::gpu::GpuExecutableProto_RepeatedBufferAllocations* PROTOBUF_NULLABLE value);
  void unsafe_arena_set_allocated_buffer_allocations(::xla::gpu::GpuExecutableProto_RepeatedBufferAllocations* PROTOBUF_NULLABLE value);
  ::xla::gpu::GpuExecutableProto_RepeatedBufferAllocations* PROTOBUF_NULLABLE unsafe_arena_release_buffer_allocations();

  private:
  const ::xla::gpu::GpuExecutableProto_RepeatedBufferAllocations& _internal_buffer_allocations() const;
  ::xla::gpu::GpuExecutableProto_RepeatedBufferAllocations* PROTOBUF_NONNULL _internal_mutable_buffer_allocations();

  public:
  // @@protoc_insertion_point(class_scope:xla.gpu.GpuExecutableProto)
 private:
  class _Internal;
  friend class ::google::protobuf::internal::TcParser;
  static const ::google::protobuf::internal::TcParseTable<4, 12,
                                   9, 81,
                                   2>
      _table_;

  friend class ::google::protobuf::MessageLite;
  friend class ::google::protobuf::Arena;
  template <typename T>
  friend class ::google::protobuf::Arena::InternalHelper;
  using InternalArenaConstructable_ = void;
  using DestructorSkippable_ = void;
  struct Impl_ {
    inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept;
    inline explicit Impl_(
        ::google::protobuf::internal::InternalVisibility visibility,
        ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
    inline explicit Impl_(
        ::google::protobuf::internal::InternalVisibility visibility,
        ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
        const GpuExecutableProto& from_msg);
    ::google::protobuf::internal::HasBits<1> _has_bits_;
    ::google::protobuf::internal::CachedSize _cached_size_;
    ::google::protobuf::internal::MapField<GpuExecutableProto_DnnCompiledGraphsEntry_DoNotUse, std::string, std::string,
                      ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
                      ::google::protobuf::internal::WireFormatLite::TYPE_BYTES>
        dnn_compiled_graphs_;
    ::google::protobuf::RepeatedPtrField< ::xla::gpu::GpuExecutableProto_OutputInfoMapEntry > output_info_map_;
    ::google::protobuf::RepeatedPtrField< ::xla::gpu::GpuExecutableProto_ConstantInfoProto > constants_;
    ::google::protobuf::internal::ArenaStringPtr asm_text_;
    ::google::protobuf::internal::ArenaStringPtr binary_;
    ::google::protobuf::internal::ArenaStringPtr module_name_;
    ::xla::HloModuleProtoWithConfig* PROTOBUF_NULLABLE hlo_module_with_config_;
    ::xla::BufferAssignmentProto* PROTOBUF_NULLABLE buffer_assignment_;
    ::stream_executor::GpuComputeCapabilityProto* PROTOBUF_NULLABLE gpu_compute_capability_;
    ::xla::gpu::ThunkProto* PROTOBUF_NULLABLE thunk_;
    ::xla::ProgramShapeProto* PROTOBUF_NULLABLE program_shape_;
    ::xla::gpu::GpuExecutableProto_RepeatedBufferAllocations* PROTOBUF_NULLABLE buffer_allocations_;
    PROTOBUF_TSAN_DECLARE_MEMBER
  };
  union { Impl_ _impl_; };
  friend struct ::TableStruct_xla_2fservice_2fgpu_2fgpu_5fexecutable_2eproto;
};

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

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




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


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

// GpuExecutableProto_RepeatedBufferAllocations

// repeated .xla.BufferAllocationProto values = 1;
inline int GpuExecutableProto_RepeatedBufferAllocations::_internal_values_size() const {
  return _internal_values().size();
}
inline int GpuExecutableProto_RepeatedBufferAllocations::values_size() const {
  return _internal_values_size();
}
inline ::xla::BufferAllocationProto* PROTOBUF_NONNULL GpuExecutableProto_RepeatedBufferAllocations::mutable_values(int index)
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_mutable:xla.gpu.GpuExecutableProto.RepeatedBufferAllocations.values)
  return _internal_mutable_values()->Mutable(index);
}
inline ::google::protobuf::RepeatedPtrField<::xla::BufferAllocationProto>* PROTOBUF_NONNULL GpuExecutableProto_RepeatedBufferAllocations::mutable_values()
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_mutable_list:xla.gpu.GpuExecutableProto.RepeatedBufferAllocations.values)
  ::google::protobuf::internal::TSanWrite(&_impl_);
  return _internal_mutable_values();
}
inline const ::xla::BufferAllocationProto& GpuExecutableProto_RepeatedBufferAllocations::values(int index) const
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_get:xla.gpu.GpuExecutableProto.RepeatedBufferAllocations.values)
  return _internal_values().Get(index);
}
inline ::xla::BufferAllocationProto* PROTOBUF_NONNULL GpuExecutableProto_RepeatedBufferAllocations::add_values()
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  ::xla::BufferAllocationProto* _add = _internal_mutable_values()->Add();
  // @@protoc_insertion_point(field_add:xla.gpu.GpuExecutableProto.RepeatedBufferAllocations.values)
  return _add;
}
inline const ::google::protobuf::RepeatedPtrField<::xla::BufferAllocationProto>& GpuExecutableProto_RepeatedBufferAllocations::values() const
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_list:xla.gpu.GpuExecutableProto.RepeatedBufferAllocations.values)
  return _internal_values();
}
inline const ::google::protobuf::RepeatedPtrField<::xla::BufferAllocationProto>&
GpuExecutableProto_RepeatedBufferAllocations::_internal_values() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.values_;
}
inline ::google::protobuf::RepeatedPtrField<::xla::BufferAllocationProto>* PROTOBUF_NONNULL
GpuExecutableProto_RepeatedBufferAllocations::_internal_mutable_values() {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return &_impl_.values_;
}

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

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

// GpuExecutableProto_OutputInfoProto

// int64 allocation_index = 1;
inline void GpuExecutableProto_OutputInfoProto::clear_allocation_index() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.allocation_index_ = ::int64_t{0};
  _impl_._has_bits_[0] &= ~0x00000002u;
}
inline ::int64_t GpuExecutableProto_OutputInfoProto::allocation_index() const {
  // @@protoc_insertion_point(field_get:xla.gpu.GpuExecutableProto.OutputInfoProto.allocation_index)
  return _internal_allocation_index();
}
inline void GpuExecutableProto_OutputInfoProto::set_allocation_index(::int64_t value) {
  _internal_set_allocation_index(value);
  _impl_._has_bits_[0] |= 0x00000002u;
  // @@protoc_insertion_point(field_set:xla.gpu.GpuExecutableProto.OutputInfoProto.allocation_index)
}
inline ::int64_t GpuExecutableProto_OutputInfoProto::_internal_allocation_index() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.allocation_index_;
}
inline void GpuExecutableProto_OutputInfoProto::_internal_set_allocation_index(::int64_t value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.allocation_index_ = value;
}

// bool passthrough = 2;
inline void GpuExecutableProto_OutputInfoProto::clear_passthrough() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.passthrough_ = false;
  _impl_._has_bits_[0] &= ~0x00000004u;
}
inline bool GpuExecutableProto_OutputInfoProto::passthrough() const {
  // @@protoc_insertion_point(field_get:xla.gpu.GpuExecutableProto.OutputInfoProto.passthrough)
  return _internal_passthrough();
}
inline void GpuExecutableProto_OutputInfoProto::set_passthrough(bool value) {
  _internal_set_passthrough(value);
  _impl_._has_bits_[0] |= 0x00000004u;
  // @@protoc_insertion_point(field_set:xla.gpu.GpuExecutableProto.OutputInfoProto.passthrough)
}
inline bool GpuExecutableProto_OutputInfoProto::_internal_passthrough() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.passthrough_;
}
inline void GpuExecutableProto_OutputInfoProto::_internal_set_passthrough(bool value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.passthrough_ = value;
}

// optional .xla.HloInputOutputAliasProto.AliasEntryProto alias_config = 3;
inline bool GpuExecutableProto_OutputInfoProto::has_alias_config() const {
  bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
  PROTOBUF_ASSUME(!value || _impl_.alias_config_ != nullptr);
  return value;
}
inline const ::xla::HloInputOutputAliasProto_AliasEntryProto& GpuExecutableProto_OutputInfoProto::_internal_alias_config() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  const ::xla::HloInputOutputAliasProto_AliasEntryProto* p = _impl_.alias_config_;
  return p != nullptr ? *p : reinterpret_cast<const ::xla::HloInputOutputAliasProto_AliasEntryProto&>(::xla::_HloInputOutputAliasProto_AliasEntryProto_default_instance_);
}
inline const ::xla::HloInputOutputAliasProto_AliasEntryProto& GpuExecutableProto_OutputInfoProto::alias_config() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_get:xla.gpu.GpuExecutableProto.OutputInfoProto.alias_config)
  return _internal_alias_config();
}
inline void GpuExecutableProto_OutputInfoProto::unsafe_arena_set_allocated_alias_config(
    ::xla::HloInputOutputAliasProto_AliasEntryProto* PROTOBUF_NULLABLE value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (GetArena() == nullptr) {
    delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.alias_config_);
  }
  _impl_.alias_config_ = reinterpret_cast<::xla::HloInputOutputAliasProto_AliasEntryProto*>(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.GpuExecutableProto.OutputInfoProto.alias_config)
}
inline ::xla::HloInputOutputAliasProto_AliasEntryProto* PROTOBUF_NULLABLE GpuExecutableProto_OutputInfoProto::release_alias_config() {
  ::google::protobuf::internal::TSanWrite(&_impl_);

  _impl_._has_bits_[0] &= ~0x00000001u;
  ::xla::HloInputOutputAliasProto_AliasEntryProto* released = _impl_.alias_config_;
  _impl_.alias_config_ = nullptr;
  if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) {
    auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released);
    released = ::google::protobuf::internal::DuplicateIfNonNull(released);
    if (GetArena() == nullptr) {
      delete old;
    }
  } else {
    if (GetArena() != nullptr) {
      released = ::google::protobuf::internal::DuplicateIfNonNull(released);
    }
  }
  return released;
}
inline ::xla::HloInputOutputAliasProto_AliasEntryProto* PROTOBUF_NULLABLE GpuExecutableProto_OutputInfoProto::unsafe_arena_release_alias_config() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  // @@protoc_insertion_point(field_release:xla.gpu.GpuExecutableProto.OutputInfoProto.alias_config)

  _impl_._has_bits_[0] &= ~0x00000001u;
  ::xla::HloInputOutputAliasProto_AliasEntryProto* temp = _impl_.alias_config_;
  _impl_.alias_config_ = nullptr;
  return temp;
}
inline ::xla::HloInputOutputAliasProto_AliasEntryProto* PROTOBUF_NONNULL GpuExecutableProto_OutputInfoProto::_internal_mutable_alias_config() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (_impl_.alias_config_ == nullptr) {
    auto* p = ::google::protobuf::Message::DefaultConstruct<::xla::HloInputOutputAliasProto_AliasEntryProto>(GetArena());
    _impl_.alias_config_ = reinterpret_cast<::xla::HloInputOutputAliasProto_AliasEntryProto*>(p);
  }
  return _impl_.alias_config_;
}
inline ::xla::HloInputOutputAliasProto_AliasEntryProto* PROTOBUF_NONNULL GpuExecutableProto_OutputInfoProto::mutable_alias_config()
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  _impl_._has_bits_[0] |= 0x00000001u;
  ::xla::HloInputOutputAliasProto_AliasEntryProto* _msg = _internal_mutable_alias_config();
  // @@protoc_insertion_point(field_mutable:xla.gpu.GpuExecutableProto.OutputInfoProto.alias_config)
  return _msg;
}
inline void GpuExecutableProto_OutputInfoProto::set_allocated_alias_config(::xla::HloInputOutputAliasProto_AliasEntryProto* PROTOBUF_NULLABLE value) {
  ::google::protobuf::Arena* message_arena = GetArena();
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (message_arena == nullptr) {
    delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.alias_config_);
  }

  if (value != nullptr) {
    ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::Message*>(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_.alias_config_ = reinterpret_cast<::xla::HloInputOutputAliasProto_AliasEntryProto*>(value);
  // @@protoc_insertion_point(field_set_allocated:xla.gpu.GpuExecutableProto.OutputInfoProto.alias_config)
}

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

// GpuExecutableProto_OutputInfoMapEntry

// .xla.ShapeIndexProto shape_index = 1;
inline bool GpuExecutableProto_OutputInfoMapEntry::has_shape_index() const {
  bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
  PROTOBUF_ASSUME(!value || _impl_.shape_index_ != nullptr);
  return value;
}
inline const ::xla::ShapeIndexProto& GpuExecutableProto_OutputInfoMapEntry::_internal_shape_index() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  const ::xla::ShapeIndexProto* p = _impl_.shape_index_;
  return p != nullptr ? *p : reinterpret_cast<const ::xla::ShapeIndexProto&>(::xla::_ShapeIndexProto_default_instance_);
}
inline const ::xla::ShapeIndexProto& GpuExecutableProto_OutputInfoMapEntry::shape_index() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_get:xla.gpu.GpuExecutableProto.OutputInfoMapEntry.shape_index)
  return _internal_shape_index();
}
inline void GpuExecutableProto_OutputInfoMapEntry::unsafe_arena_set_allocated_shape_index(
    ::xla::ShapeIndexProto* PROTOBUF_NULLABLE value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (GetArena() == nullptr) {
    delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.shape_index_);
  }
  _impl_.shape_index_ = reinterpret_cast<::xla::ShapeIndexProto*>(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.GpuExecutableProto.OutputInfoMapEntry.shape_index)
}
inline ::xla::ShapeIndexProto* PROTOBUF_NULLABLE GpuExecutableProto_OutputInfoMapEntry::release_shape_index() {
  ::google::protobuf::internal::TSanWrite(&_impl_);

  _impl_._has_bits_[0] &= ~0x00000001u;
  ::xla::ShapeIndexProto* released = _impl_.shape_index_;
  _impl_.shape_index_ = nullptr;
  if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) {
    auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released);
    released = ::google::protobuf::internal::DuplicateIfNonNull(released);
    if (GetArena() == nullptr) {
      delete old;
    }
  } else {
    if (GetArena() != nullptr) {
      released = ::google::protobuf::internal::DuplicateIfNonNull(released);
    }
  }
  return released;
}
inline ::xla::ShapeIndexProto* PROTOBUF_NULLABLE GpuExecutableProto_OutputInfoMapEntry::unsafe_arena_release_shape_index() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  // @@protoc_insertion_point(field_release:xla.gpu.GpuExecutableProto.OutputInfoMapEntry.shape_index)

  _impl_._has_bits_[0] &= ~0x00000001u;
  ::xla::ShapeIndexProto* temp = _impl_.shape_index_;
  _impl_.shape_index_ = nullptr;
  return temp;
}
inline ::xla::ShapeIndexProto* PROTOBUF_NONNULL GpuExecutableProto_OutputInfoMapEntry::_internal_mutable_shape_index() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (_impl_.shape_index_ == nullptr) {
    auto* p = ::google::protobuf::Message::DefaultConstruct<::xla::ShapeIndexProto>(GetArena());
    _impl_.shape_index_ = reinterpret_cast<::xla::ShapeIndexProto*>(p);
  }
  return _impl_.shape_index_;
}
inline ::xla::ShapeIndexProto* PROTOBUF_NONNULL GpuExecutableProto_OutputInfoMapEntry::mutable_shape_index()
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  _impl_._has_bits_[0] |= 0x00000001u;
  ::xla::ShapeIndexProto* _msg = _internal_mutable_shape_index();
  // @@protoc_insertion_point(field_mutable:xla.gpu.GpuExecutableProto.OutputInfoMapEntry.shape_index)
  return _msg;
}
inline void GpuExecutableProto_OutputInfoMapEntry::set_allocated_shape_index(::xla::ShapeIndexProto* PROTOBUF_NULLABLE value) {
  ::google::protobuf::Arena* message_arena = GetArena();
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (message_arena == nullptr) {
    delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.shape_index_);
  }

  if (value != nullptr) {
    ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::Message*>(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_.shape_index_ = reinterpret_cast<::xla::ShapeIndexProto*>(value);
  // @@protoc_insertion_point(field_set_allocated:xla.gpu.GpuExecutableProto.OutputInfoMapEntry.shape_index)
}

// .xla.gpu.GpuExecutableProto.OutputInfoProto output_info = 2;
inline bool GpuExecutableProto_OutputInfoMapEntry::has_output_info() const {
  bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
  PROTOBUF_ASSUME(!value || _impl_.output_info_ != nullptr);
  return value;
}
inline void GpuExecutableProto_OutputInfoMapEntry::clear_output_info() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (_impl_.output_info_ != nullptr) _impl_.output_info_->Clear();
  _impl_._has_bits_[0] &= ~0x00000002u;
}
inline const ::xla::gpu::GpuExecutableProto_OutputInfoProto& GpuExecutableProto_OutputInfoMapEntry::_internal_output_info() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  const ::xla::gpu::GpuExecutableProto_OutputInfoProto* p = _impl_.output_info_;
  return p != nullptr ? *p : reinterpret_cast<const ::xla::gpu::GpuExecutableProto_OutputInfoProto&>(::xla::gpu::_GpuExecutableProto_OutputInfoProto_default_instance_);
}
inline const ::xla::gpu::GpuExecutableProto_OutputInfoProto& GpuExecutableProto_OutputInfoMapEntry::output_info() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_get:xla.gpu.GpuExecutableProto.OutputInfoMapEntry.output_info)
  return _internal_output_info();
}
inline void GpuExecutableProto_OutputInfoMapEntry::unsafe_arena_set_allocated_output_info(
    ::xla::gpu::GpuExecutableProto_OutputInfoProto* PROTOBUF_NULLABLE value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (GetArena() == nullptr) {
    delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.output_info_);
  }
  _impl_.output_info_ = reinterpret_cast<::xla::gpu::GpuExecutableProto_OutputInfoProto*>(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.GpuExecutableProto.OutputInfoMapEntry.output_info)
}
inline ::xla::gpu::GpuExecutableProto_OutputInfoProto* PROTOBUF_NULLABLE GpuExecutableProto_OutputInfoMapEntry::release_output_info() {
  ::google::protobuf::internal::TSanWrite(&_impl_);

  _impl_._has_bits_[0] &= ~0x00000002u;
  ::xla::gpu::GpuExecutableProto_OutputInfoProto* released = _impl_.output_info_;
  _impl_.output_info_ = nullptr;
  if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) {
    auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released);
    released = ::google::protobuf::internal::DuplicateIfNonNull(released);
    if (GetArena() == nullptr) {
      delete old;
    }
  } else {
    if (GetArena() != nullptr) {
      released = ::google::protobuf::internal::DuplicateIfNonNull(released);
    }
  }
  return released;
}
inline ::xla::gpu::GpuExecutableProto_OutputInfoProto* PROTOBUF_NULLABLE GpuExecutableProto_OutputInfoMapEntry::unsafe_arena_release_output_info() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  // @@protoc_insertion_point(field_release:xla.gpu.GpuExecutableProto.OutputInfoMapEntry.output_info)

  _impl_._has_bits_[0] &= ~0x00000002u;
  ::xla::gpu::GpuExecutableProto_OutputInfoProto* temp = _impl_.output_info_;
  _impl_.output_info_ = nullptr;
  return temp;
}
inline ::xla::gpu::GpuExecutableProto_OutputInfoProto* PROTOBUF_NONNULL GpuExecutableProto_OutputInfoMapEntry::_internal_mutable_output_info() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (_impl_.output_info_ == nullptr) {
    auto* p = ::google::protobuf::Message::DefaultConstruct<::xla::gpu::GpuExecutableProto_OutputInfoProto>(GetArena());
    _impl_.output_info_ = reinterpret_cast<::xla::gpu::GpuExecutableProto_OutputInfoProto*>(p);
  }
  return _impl_.output_info_;
}
inline ::xla::gpu::GpuExecutableProto_OutputInfoProto* PROTOBUF_NONNULL GpuExecutableProto_OutputInfoMapEntry::mutable_output_info()
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  _impl_._has_bits_[0] |= 0x00000002u;
  ::xla::gpu::GpuExecutableProto_OutputInfoProto* _msg = _internal_mutable_output_info();
  // @@protoc_insertion_point(field_mutable:xla.gpu.GpuExecutableProto.OutputInfoMapEntry.output_info)
  return _msg;
}
inline void GpuExecutableProto_OutputInfoMapEntry::set_allocated_output_info(::xla::gpu::GpuExecutableProto_OutputInfoProto* PROTOBUF_NULLABLE value) {
  ::google::protobuf::Arena* message_arena = GetArena();
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (message_arena == nullptr) {
    delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.output_info_);
  }

  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_.output_info_ = reinterpret_cast<::xla::gpu::GpuExecutableProto_OutputInfoProto*>(value);
  // @@protoc_insertion_point(field_set_allocated:xla.gpu.GpuExecutableProto.OutputInfoMapEntry.output_info)
}

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

// GpuExecutableProto_ConstantInfoProto

// string symbol_name = 1;
inline void GpuExecutableProto_ConstantInfoProto::clear_symbol_name() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.symbol_name_.ClearToEmpty();
  _impl_._has_bits_[0] &= ~0x00000001u;
}
inline const ::std::string& GpuExecutableProto_ConstantInfoProto::symbol_name() const
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_get:xla.gpu.GpuExecutableProto.ConstantInfoProto.symbol_name)
  return _internal_symbol_name();
}
template <typename Arg_, typename... Args_>
PROTOBUF_ALWAYS_INLINE void GpuExecutableProto_ConstantInfoProto::set_symbol_name(Arg_&& arg, Args_... args) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_._has_bits_[0] |= 0x00000001u;
  _impl_.symbol_name_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
  // @@protoc_insertion_point(field_set:xla.gpu.GpuExecutableProto.ConstantInfoProto.symbol_name)
}
inline ::std::string* PROTOBUF_NONNULL GpuExecutableProto_ConstantInfoProto::mutable_symbol_name()
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  ::std::string* _s = _internal_mutable_symbol_name();
  // @@protoc_insertion_point(field_mutable:xla.gpu.GpuExecutableProto.ConstantInfoProto.symbol_name)
  return _s;
}
inline const ::std::string& GpuExecutableProto_ConstantInfoProto::_internal_symbol_name() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.symbol_name_.Get();
}
inline void GpuExecutableProto_ConstantInfoProto::_internal_set_symbol_name(const ::std::string& value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_._has_bits_[0] |= 0x00000001u;
  _impl_.symbol_name_.Set(value, GetArena());
}
inline ::std::string* PROTOBUF_NONNULL GpuExecutableProto_ConstantInfoProto::_internal_mutable_symbol_name() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_._has_bits_[0] |= 0x00000001u;
  return _impl_.symbol_name_.Mutable( GetArena());
}
inline ::std::string* PROTOBUF_NULLABLE GpuExecutableProto_ConstantInfoProto::release_symbol_name() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  // @@protoc_insertion_point(field_release:xla.gpu.GpuExecutableProto.ConstantInfoProto.symbol_name)
  if ((_impl_._has_bits_[0] & 0x00000001u) == 0) {
    return nullptr;
  }
  _impl_._has_bits_[0] &= ~0x00000001u;
  auto* released = _impl_.symbol_name_.Release();
  if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) {
    _impl_.symbol_name_.Set("", GetArena());
  }
  return released;
}
inline void GpuExecutableProto_ConstantInfoProto::set_allocated_symbol_name(::std::string* PROTOBUF_NULLABLE value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (value != nullptr) {
    _impl_._has_bits_[0] |= 0x00000001u;
  } else {
    _impl_._has_bits_[0] &= ~0x00000001u;
  }
  _impl_.symbol_name_.SetAllocated(value, GetArena());
  if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.symbol_name_.IsDefault()) {
    _impl_.symbol_name_.Set("", GetArena());
  }
  // @@protoc_insertion_point(field_set_allocated:xla.gpu.GpuExecutableProto.ConstantInfoProto.symbol_name)
}

// .xla.gpu.DenseDataIntermediateProto content = 2;
inline bool GpuExecutableProto_ConstantInfoProto::has_content() const {
  bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
  PROTOBUF_ASSUME(!value || _impl_.content_ != nullptr);
  return value;
}
inline const ::xla::gpu::DenseDataIntermediateProto& GpuExecutableProto_ConstantInfoProto::_internal_content() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  const ::xla::gpu::DenseDataIntermediateProto* p = _impl_.content_;
  return p != nullptr ? *p : reinterpret_cast<const ::xla::gpu::DenseDataIntermediateProto&>(::xla::gpu::_DenseDataIntermediateProto_default_instance_);
}
inline const ::xla::gpu::DenseDataIntermediateProto& GpuExecutableProto_ConstantInfoProto::content() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_get:xla.gpu.GpuExecutableProto.ConstantInfoProto.content)
  return _internal_content();
}
inline void GpuExecutableProto_ConstantInfoProto::unsafe_arena_set_allocated_content(
    ::xla::gpu::DenseDataIntermediateProto* PROTOBUF_NULLABLE value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (GetArena() == nullptr) {
    delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.content_);
  }
  _impl_.content_ = reinterpret_cast<::xla::gpu::DenseDataIntermediateProto*>(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.GpuExecutableProto.ConstantInfoProto.content)
}
inline ::xla::gpu::DenseDataIntermediateProto* PROTOBUF_NULLABLE GpuExecutableProto_ConstantInfoProto::release_content() {
  ::google::protobuf::internal::TSanWrite(&_impl_);

  _impl_._has_bits_[0] &= ~0x00000002u;
  ::xla::gpu::DenseDataIntermediateProto* released = _impl_.content_;
  _impl_.content_ = nullptr;
  if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) {
    auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released);
    released = ::google::protobuf::internal::DuplicateIfNonNull(released);
    if (GetArena() == nullptr) {
      delete old;
    }
  } else {
    if (GetArena() != nullptr) {
      released = ::google::protobuf::internal::DuplicateIfNonNull(released);
    }
  }
  return released;
}
inline ::xla::gpu::DenseDataIntermediateProto* PROTOBUF_NULLABLE GpuExecutableProto_ConstantInfoProto::unsafe_arena_release_content() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  // @@protoc_insertion_point(field_release:xla.gpu.GpuExecutableProto.ConstantInfoProto.content)

  _impl_._has_bits_[0] &= ~0x00000002u;
  ::xla::gpu::DenseDataIntermediateProto* temp = _impl_.content_;
  _impl_.content_ = nullptr;
  return temp;
}
inline ::xla::gpu::DenseDataIntermediateProto* PROTOBUF_NONNULL GpuExecutableProto_ConstantInfoProto::_internal_mutable_content() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (_impl_.content_ == nullptr) {
    auto* p = ::google::protobuf::Message::DefaultConstruct<::xla::gpu::DenseDataIntermediateProto>(GetArena());
    _impl_.content_ = reinterpret_cast<::xla::gpu::DenseDataIntermediateProto*>(p);
  }
  return _impl_.content_;
}
inline ::xla::gpu::DenseDataIntermediateProto* PROTOBUF_NONNULL GpuExecutableProto_ConstantInfoProto::mutable_content()
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  _impl_._has_bits_[0] |= 0x00000002u;
  ::xla::gpu::DenseDataIntermediateProto* _msg = _internal_mutable_content();
  // @@protoc_insertion_point(field_mutable:xla.gpu.GpuExecutableProto.ConstantInfoProto.content)
  return _msg;
}
inline void GpuExecutableProto_ConstantInfoProto::set_allocated_content(::xla::gpu::DenseDataIntermediateProto* PROTOBUF_NULLABLE value) {
  ::google::protobuf::Arena* message_arena = GetArena();
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (message_arena == nullptr) {
    delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.content_);
  }

  if (value != nullptr) {
    ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::Message*>(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_.content_ = reinterpret_cast<::xla::gpu::DenseDataIntermediateProto*>(value);
  // @@protoc_insertion_point(field_set_allocated:xla.gpu.GpuExecutableProto.ConstantInfoProto.content)
}

// int64 allocation_index = 3;
inline void GpuExecutableProto_ConstantInfoProto::clear_allocation_index() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.allocation_index_ = ::int64_t{0};
  _impl_._has_bits_[0] &= ~0x00000004u;
}
inline ::int64_t GpuExecutableProto_ConstantInfoProto::allocation_index() const {
  // @@protoc_insertion_point(field_get:xla.gpu.GpuExecutableProto.ConstantInfoProto.allocation_index)
  return _internal_allocation_index();
}
inline void GpuExecutableProto_ConstantInfoProto::set_allocation_index(::int64_t value) {
  _internal_set_allocation_index(value);
  _impl_._has_bits_[0] |= 0x00000004u;
  // @@protoc_insertion_point(field_set:xla.gpu.GpuExecutableProto.ConstantInfoProto.allocation_index)
}
inline ::int64_t GpuExecutableProto_ConstantInfoProto::_internal_allocation_index() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.allocation_index_;
}
inline void GpuExecutableProto_ConstantInfoProto::_internal_set_allocation_index(::int64_t value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.allocation_index_ = value;
}

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

// GpuExecutableProto

// .xla.HloModuleProtoWithConfig hlo_module_with_config = 1;
inline bool GpuExecutableProto::has_hlo_module_with_config() const {
  bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0;
  PROTOBUF_ASSUME(!value || _impl_.hlo_module_with_config_ != nullptr);
  return value;
}
inline const ::xla::HloModuleProtoWithConfig& GpuExecutableProto::_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& GpuExecutableProto::hlo_module_with_config() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_get:xla.gpu.GpuExecutableProto.hlo_module_with_config)
  return _internal_hlo_module_with_config();
}
inline void GpuExecutableProto::unsafe_arena_set_allocated_hlo_module_with_config(
    ::xla::HloModuleProtoWithConfig* PROTOBUF_NULLABLE 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] |= 0x00000008u;
  } else {
    _impl_._has_bits_[0] &= ~0x00000008u;
  }
  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:xla.gpu.GpuExecutableProto.hlo_module_with_config)
}
inline ::xla::HloModuleProtoWithConfig* PROTOBUF_NULLABLE GpuExecutableProto::release_hlo_module_with_config() {
  ::google::protobuf::internal::TSanWrite(&_impl_);

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

  _impl_._has_bits_[0] &= ~0x00000008u;
  ::xla::HloModuleProtoWithConfig* temp = _impl_.hlo_module_with_config_;
  _impl_.hlo_module_with_config_ = nullptr;
  return temp;
}
inline ::xla::HloModuleProtoWithConfig* PROTOBUF_NONNULL GpuExecutableProto::_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* PROTOBUF_NONNULL GpuExecutableProto::mutable_hlo_module_with_config()
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  _impl_._has_bits_[0] |= 0x00000008u;
  ::xla::HloModuleProtoWithConfig* _msg = _internal_mutable_hlo_module_with_config();
  // @@protoc_insertion_point(field_mutable:xla.gpu.GpuExecutableProto.hlo_module_with_config)
  return _msg;
}
inline void GpuExecutableProto::set_allocated_hlo_module_with_config(::xla::HloModuleProtoWithConfig* PROTOBUF_NULLABLE value) {
  ::google::protobuf::Arena* message_arena = GetArena();
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (message_arena == nullptr) {
    delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.hlo_module_with_config_);
  }

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

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

// .xla.BufferAssignmentProto buffer_assignment = 2;
inline bool GpuExecutableProto::has_buffer_assignment() const {
  bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0;
  PROTOBUF_ASSUME(!value || _impl_.buffer_assignment_ != nullptr);
  return value;
}
inline const ::xla::BufferAssignmentProto& GpuExecutableProto::_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& GpuExecutableProto::buffer_assignment() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_get:xla.gpu.GpuExecutableProto.buffer_assignment)
  return _internal_buffer_assignment();
}
inline void GpuExecutableProto::unsafe_arena_set_allocated_buffer_assignment(
    ::xla::BufferAssignmentProto* PROTOBUF_NULLABLE 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] |= 0x00000010u;
  } else {
    _impl_._has_bits_[0] &= ~0x00000010u;
  }
  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:xla.gpu.GpuExecutableProto.buffer_assignment)
}
inline ::xla::BufferAssignmentProto* PROTOBUF_NULLABLE GpuExecutableProto::release_buffer_assignment() {
  ::google::protobuf::internal::TSanWrite(&_impl_);

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

  _impl_._has_bits_[0] &= ~0x00000010u;
  ::xla::BufferAssignmentProto* temp = _impl_.buffer_assignment_;
  _impl_.buffer_assignment_ = nullptr;
  return temp;
}
inline ::xla::BufferAssignmentProto* PROTOBUF_NONNULL GpuExecutableProto::_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* PROTOBUF_NONNULL GpuExecutableProto::mutable_buffer_assignment()
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  _impl_._has_bits_[0] |= 0x00000010u;
  ::xla::BufferAssignmentProto* _msg = _internal_mutable_buffer_assignment();
  // @@protoc_insertion_point(field_mutable:xla.gpu.GpuExecutableProto.buffer_assignment)
  return _msg;
}
inline void GpuExecutableProto::set_allocated_buffer_assignment(::xla::BufferAssignmentProto* PROTOBUF_NULLABLE value) {
  ::google::protobuf::Arena* message_arena = GetArena();
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (message_arena == nullptr) {
    delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.buffer_assignment_);
  }

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

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

// .xla.gpu.GpuExecutableProto.RepeatedBufferAllocations buffer_allocations = 10;
inline bool GpuExecutableProto::has_buffer_allocations() const {
  bool value = (_impl_._has_bits_[0] & 0x00000100u) != 0;
  PROTOBUF_ASSUME(!value || _impl_.buffer_allocations_ != nullptr);
  return value;
}
inline void GpuExecutableProto::clear_buffer_allocations() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (_impl_.buffer_allocations_ != nullptr) _impl_.buffer_allocations_->Clear();
  _impl_._has_bits_[0] &= ~0x00000100u;
}
inline const ::xla::gpu::GpuExecutableProto_RepeatedBufferAllocations& GpuExecutableProto::_internal_buffer_allocations() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  const ::xla::gpu::GpuExecutableProto_RepeatedBufferAllocations* p = _impl_.buffer_allocations_;
  return p != nullptr ? *p : reinterpret_cast<const ::xla::gpu::GpuExecutableProto_RepeatedBufferAllocations&>(::xla::gpu::_GpuExecutableProto_RepeatedBufferAllocations_default_instance_);
}
inline const ::xla::gpu::GpuExecutableProto_RepeatedBufferAllocations& GpuExecutableProto::buffer_allocations() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_get:xla.gpu.GpuExecutableProto.buffer_allocations)
  return _internal_buffer_allocations();
}
inline void GpuExecutableProto::unsafe_arena_set_allocated_buffer_allocations(
    ::xla::gpu::GpuExecutableProto_RepeatedBufferAllocations* PROTOBUF_NULLABLE value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (GetArena() == nullptr) {
    delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.buffer_allocations_);
  }
  _impl_.buffer_allocations_ = reinterpret_cast<::xla::gpu::GpuExecutableProto_RepeatedBufferAllocations*>(value);
  if (value != nullptr) {
    _impl_._has_bits_[0] |= 0x00000100u;
  } else {
    _impl_._has_bits_[0] &= ~0x00000100u;
  }
  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:xla.gpu.GpuExecutableProto.buffer_allocations)
}
inline ::xla::gpu::GpuExecutableProto_RepeatedBufferAllocations* PROTOBUF_NULLABLE GpuExecutableProto::release_buffer_allocations() {
  ::google::protobuf::internal::TSanWrite(&_impl_);

  _impl_._has_bits_[0] &= ~0x00000100u;
  ::xla::gpu::GpuExecutableProto_RepeatedBufferAllocations* released = _impl_.buffer_allocations_;
  _impl_.buffer_allocations_ = nullptr;
  if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) {
    auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released);
    released = ::google::protobuf::internal::DuplicateIfNonNull(released);
    if (GetArena() == nullptr) {
      delete old;
    }
  } else {
    if (GetArena() != nullptr) {
      released = ::google::protobuf::internal::DuplicateIfNonNull(released);
    }
  }
  return released;
}
inline ::xla::gpu::GpuExecutableProto_RepeatedBufferAllocations* PROTOBUF_NULLABLE GpuExecutableProto::unsafe_arena_release_buffer_allocations() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  // @@protoc_insertion_point(field_release:xla.gpu.GpuExecutableProto.buffer_allocations)

  _impl_._has_bits_[0] &= ~0x00000100u;
  ::xla::gpu::GpuExecutableProto_RepeatedBufferAllocations* temp = _impl_.buffer_allocations_;
  _impl_.buffer_allocations_ = nullptr;
  return temp;
}
inline ::xla::gpu::GpuExecutableProto_RepeatedBufferAllocations* PROTOBUF_NONNULL GpuExecutableProto::_internal_mutable_buffer_allocations() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (_impl_.buffer_allocations_ == nullptr) {
    auto* p = ::google::protobuf::Message::DefaultConstruct<::xla::gpu::GpuExecutableProto_RepeatedBufferAllocations>(GetArena());
    _impl_.buffer_allocations_ = reinterpret_cast<::xla::gpu::GpuExecutableProto_RepeatedBufferAllocations*>(p);
  }
  return _impl_.buffer_allocations_;
}
inline ::xla::gpu::GpuExecutableProto_RepeatedBufferAllocations* PROTOBUF_NONNULL GpuExecutableProto::mutable_buffer_allocations()
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  _impl_._has_bits_[0] |= 0x00000100u;
  ::xla::gpu::GpuExecutableProto_RepeatedBufferAllocations* _msg = _internal_mutable_buffer_allocations();
  // @@protoc_insertion_point(field_mutable:xla.gpu.GpuExecutableProto.buffer_allocations)
  return _msg;
}
inline void GpuExecutableProto::set_allocated_buffer_allocations(::xla::gpu::GpuExecutableProto_RepeatedBufferAllocations* PROTOBUF_NULLABLE value) {
  ::google::protobuf::Arena* message_arena = GetArena();
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (message_arena == nullptr) {
    delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.buffer_allocations_);
  }

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

  _impl_.buffer_allocations_ = reinterpret_cast<::xla::gpu::GpuExecutableProto_RepeatedBufferAllocations*>(value);
  // @@protoc_insertion_point(field_set_allocated:xla.gpu.GpuExecutableProto.buffer_allocations)
}

// string asm_text = 3;
inline void GpuExecutableProto::clear_asm_text() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.asm_text_.ClearToEmpty();
  _impl_._has_bits_[0] &= ~0x00000001u;
}
inline const ::std::string& GpuExecutableProto::asm_text() const
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_get:xla.gpu.GpuExecutableProto.asm_text)
  return _internal_asm_text();
}
template <typename Arg_, typename... Args_>
PROTOBUF_ALWAYS_INLINE void GpuExecutableProto::set_asm_text(Arg_&& arg, Args_... args) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_._has_bits_[0] |= 0x00000001u;
  _impl_.asm_text_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
  // @@protoc_insertion_point(field_set:xla.gpu.GpuExecutableProto.asm_text)
}
inline ::std::string* PROTOBUF_NONNULL GpuExecutableProto::mutable_asm_text()
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  ::std::string* _s = _internal_mutable_asm_text();
  // @@protoc_insertion_point(field_mutable:xla.gpu.GpuExecutableProto.asm_text)
  return _s;
}
inline const ::std::string& GpuExecutableProto::_internal_asm_text() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.asm_text_.Get();
}
inline void GpuExecutableProto::_internal_set_asm_text(const ::std::string& value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_._has_bits_[0] |= 0x00000001u;
  _impl_.asm_text_.Set(value, GetArena());
}
inline ::std::string* PROTOBUF_NONNULL GpuExecutableProto::_internal_mutable_asm_text() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_._has_bits_[0] |= 0x00000001u;
  return _impl_.asm_text_.Mutable( GetArena());
}
inline ::std::string* PROTOBUF_NULLABLE GpuExecutableProto::release_asm_text() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  // @@protoc_insertion_point(field_release:xla.gpu.GpuExecutableProto.asm_text)
  if ((_impl_._has_bits_[0] & 0x00000001u) == 0) {
    return nullptr;
  }
  _impl_._has_bits_[0] &= ~0x00000001u;
  auto* released = _impl_.asm_text_.Release();
  if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) {
    _impl_.asm_text_.Set("", GetArena());
  }
  return released;
}
inline void GpuExecutableProto::set_allocated_asm_text(::std::string* PROTOBUF_NULLABLE value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (value != nullptr) {
    _impl_._has_bits_[0] |= 0x00000001u;
  } else {
    _impl_._has_bits_[0] &= ~0x00000001u;
  }
  _impl_.asm_text_.SetAllocated(value, GetArena());
  if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.asm_text_.IsDefault()) {
    _impl_.asm_text_.Set("", GetArena());
  }
  // @@protoc_insertion_point(field_set_allocated:xla.gpu.GpuExecutableProto.asm_text)
}

// bytes binary = 4;
inline void GpuExecutableProto::clear_binary() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.binary_.ClearToEmpty();
  _impl_._has_bits_[0] &= ~0x00000002u;
}
inline const ::std::string& GpuExecutableProto::binary() const
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_get:xla.gpu.GpuExecutableProto.binary)
  return _internal_binary();
}
template <typename Arg_, typename... Args_>
PROTOBUF_ALWAYS_INLINE void GpuExecutableProto::set_binary(Arg_&& arg, Args_... args) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_._has_bits_[0] |= 0x00000002u;
  _impl_.binary_.SetBytes(static_cast<Arg_&&>(arg), args..., GetArena());
  // @@protoc_insertion_point(field_set:xla.gpu.GpuExecutableProto.binary)
}
inline ::std::string* PROTOBUF_NONNULL GpuExecutableProto::mutable_binary()
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  ::std::string* _s = _internal_mutable_binary();
  // @@protoc_insertion_point(field_mutable:xla.gpu.GpuExecutableProto.binary)
  return _s;
}
inline const ::std::string& GpuExecutableProto::_internal_binary() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.binary_.Get();
}
inline void GpuExecutableProto::_internal_set_binary(const ::std::string& value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_._has_bits_[0] |= 0x00000002u;
  _impl_.binary_.Set(value, GetArena());
}
inline ::std::string* PROTOBUF_NONNULL GpuExecutableProto::_internal_mutable_binary() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_._has_bits_[0] |= 0x00000002u;
  return _impl_.binary_.Mutable( GetArena());
}
inline ::std::string* PROTOBUF_NULLABLE GpuExecutableProto::release_binary() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  // @@protoc_insertion_point(field_release:xla.gpu.GpuExecutableProto.binary)
  if ((_impl_._has_bits_[0] & 0x00000002u) == 0) {
    return nullptr;
  }
  _impl_._has_bits_[0] &= ~0x00000002u;
  auto* released = _impl_.binary_.Release();
  if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) {
    _impl_.binary_.Set("", GetArena());
  }
  return released;
}
inline void GpuExecutableProto::set_allocated_binary(::std::string* PROTOBUF_NULLABLE value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (value != nullptr) {
    _impl_._has_bits_[0] |= 0x00000002u;
  } else {
    _impl_._has_bits_[0] &= ~0x00000002u;
  }
  _impl_.binary_.SetAllocated(value, GetArena());
  if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.binary_.IsDefault()) {
    _impl_.binary_.Set("", GetArena());
  }
  // @@protoc_insertion_point(field_set_allocated:xla.gpu.GpuExecutableProto.binary)
}

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

// .stream_executor.GpuComputeCapabilityProto gpu_compute_capability = 6;
inline bool GpuExecutableProto::has_gpu_compute_capability() const {
  bool value = (_impl_._has_bits_[0] & 0x00000020u) != 0;
  PROTOBUF_ASSUME(!value || _impl_.gpu_compute_capability_ != nullptr);
  return value;
}
inline const ::stream_executor::GpuComputeCapabilityProto& GpuExecutableProto::_internal_gpu_compute_capability() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  const ::stream_executor::GpuComputeCapabilityProto* p = _impl_.gpu_compute_capability_;
  return p != nullptr ? *p : reinterpret_cast<const ::stream_executor::GpuComputeCapabilityProto&>(::stream_executor::_GpuComputeCapabilityProto_default_instance_);
}
inline const ::stream_executor::GpuComputeCapabilityProto& GpuExecutableProto::gpu_compute_capability() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_get:xla.gpu.GpuExecutableProto.gpu_compute_capability)
  return _internal_gpu_compute_capability();
}
inline void GpuExecutableProto::unsafe_arena_set_allocated_gpu_compute_capability(
    ::stream_executor::GpuComputeCapabilityProto* PROTOBUF_NULLABLE value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (GetArena() == nullptr) {
    delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.gpu_compute_capability_);
  }
  _impl_.gpu_compute_capability_ = reinterpret_cast<::stream_executor::GpuComputeCapabilityProto*>(value);
  if (value != nullptr) {
    _impl_._has_bits_[0] |= 0x00000020u;
  } else {
    _impl_._has_bits_[0] &= ~0x00000020u;
  }
  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:xla.gpu.GpuExecutableProto.gpu_compute_capability)
}
inline ::stream_executor::GpuComputeCapabilityProto* PROTOBUF_NULLABLE GpuExecutableProto::release_gpu_compute_capability() {
  ::google::protobuf::internal::TSanWrite(&_impl_);

  _impl_._has_bits_[0] &= ~0x00000020u;
  ::stream_executor::GpuComputeCapabilityProto* released = _impl_.gpu_compute_capability_;
  _impl_.gpu_compute_capability_ = nullptr;
  if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) {
    auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released);
    released = ::google::protobuf::internal::DuplicateIfNonNull(released);
    if (GetArena() == nullptr) {
      delete old;
    }
  } else {
    if (GetArena() != nullptr) {
      released = ::google::protobuf::internal::DuplicateIfNonNull(released);
    }
  }
  return released;
}
inline ::stream_executor::GpuComputeCapabilityProto* PROTOBUF_NULLABLE GpuExecutableProto::unsafe_arena_release_gpu_compute_capability() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  // @@protoc_insertion_point(field_release:xla.gpu.GpuExecutableProto.gpu_compute_capability)

  _impl_._has_bits_[0] &= ~0x00000020u;
  ::stream_executor::GpuComputeCapabilityProto* temp = _impl_.gpu_compute_capability_;
  _impl_.gpu_compute_capability_ = nullptr;
  return temp;
}
inline ::stream_executor::GpuComputeCapabilityProto* PROTOBUF_NONNULL GpuExecutableProto::_internal_mutable_gpu_compute_capability() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (_impl_.gpu_compute_capability_ == nullptr) {
    auto* p = ::google::protobuf::Message::DefaultConstruct<::stream_executor::GpuComputeCapabilityProto>(GetArena());
    _impl_.gpu_compute_capability_ = reinterpret_cast<::stream_executor::GpuComputeCapabilityProto*>(p);
  }
  return _impl_.gpu_compute_capability_;
}
inline ::stream_executor::GpuComputeCapabilityProto* PROTOBUF_NONNULL GpuExecutableProto::mutable_gpu_compute_capability()
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  _impl_._has_bits_[0] |= 0x00000020u;
  ::stream_executor::GpuComputeCapabilityProto* _msg = _internal_mutable_gpu_compute_capability();
  // @@protoc_insertion_point(field_mutable:xla.gpu.GpuExecutableProto.gpu_compute_capability)
  return _msg;
}
inline void GpuExecutableProto::set_allocated_gpu_compute_capability(::stream_executor::GpuComputeCapabilityProto* PROTOBUF_NULLABLE value) {
  ::google::protobuf::Arena* message_arena = GetArena();
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (message_arena == nullptr) {
    delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.gpu_compute_capability_);
  }

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

  _impl_.gpu_compute_capability_ = reinterpret_cast<::stream_executor::GpuComputeCapabilityProto*>(value);
  // @@protoc_insertion_point(field_set_allocated:xla.gpu.GpuExecutableProto.gpu_compute_capability)
}

// optional .xla.gpu.ThunkProto thunk = 7;
inline bool GpuExecutableProto::has_thunk() const {
  bool value = (_impl_._has_bits_[0] & 0x00000040u) != 0;
  PROTOBUF_ASSUME(!value || _impl_.thunk_ != nullptr);
  return value;
}
inline const ::xla::gpu::ThunkProto& GpuExecutableProto::_internal_thunk() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  const ::xla::gpu::ThunkProto* p = _impl_.thunk_;
  return p != nullptr ? *p : reinterpret_cast<const ::xla::gpu::ThunkProto&>(::xla::gpu::_ThunkProto_default_instance_);
}
inline const ::xla::gpu::ThunkProto& GpuExecutableProto::thunk() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_get:xla.gpu.GpuExecutableProto.thunk)
  return _internal_thunk();
}
inline void GpuExecutableProto::unsafe_arena_set_allocated_thunk(
    ::xla::gpu::ThunkProto* PROTOBUF_NULLABLE value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (GetArena() == nullptr) {
    delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.thunk_);
  }
  _impl_.thunk_ = reinterpret_cast<::xla::gpu::ThunkProto*>(value);
  if (value != nullptr) {
    _impl_._has_bits_[0] |= 0x00000040u;
  } else {
    _impl_._has_bits_[0] &= ~0x00000040u;
  }
  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:xla.gpu.GpuExecutableProto.thunk)
}
inline ::xla::gpu::ThunkProto* PROTOBUF_NULLABLE GpuExecutableProto::release_thunk() {
  ::google::protobuf::internal::TSanWrite(&_impl_);

  _impl_._has_bits_[0] &= ~0x00000040u;
  ::xla::gpu::ThunkProto* released = _impl_.thunk_;
  _impl_.thunk_ = nullptr;
  if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) {
    auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released);
    released = ::google::protobuf::internal::DuplicateIfNonNull(released);
    if (GetArena() == nullptr) {
      delete old;
    }
  } else {
    if (GetArena() != nullptr) {
      released = ::google::protobuf::internal::DuplicateIfNonNull(released);
    }
  }
  return released;
}
inline ::xla::gpu::ThunkProto* PROTOBUF_NULLABLE GpuExecutableProto::unsafe_arena_release_thunk() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  // @@protoc_insertion_point(field_release:xla.gpu.GpuExecutableProto.thunk)

  _impl_._has_bits_[0] &= ~0x00000040u;
  ::xla::gpu::ThunkProto* temp = _impl_.thunk_;
  _impl_.thunk_ = nullptr;
  return temp;
}
inline ::xla::gpu::ThunkProto* PROTOBUF_NONNULL GpuExecutableProto::_internal_mutable_thunk() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (_impl_.thunk_ == nullptr) {
    auto* p = ::google::protobuf::Message::DefaultConstruct<::xla::gpu::ThunkProto>(GetArena());
    _impl_.thunk_ = reinterpret_cast<::xla::gpu::ThunkProto*>(p);
  }
  return _impl_.thunk_;
}
inline ::xla::gpu::ThunkProto* PROTOBUF_NONNULL GpuExecutableProto::mutable_thunk()
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  _impl_._has_bits_[0] |= 0x00000040u;
  ::xla::gpu::ThunkProto* _msg = _internal_mutable_thunk();
  // @@protoc_insertion_point(field_mutable:xla.gpu.GpuExecutableProto.thunk)
  return _msg;
}
inline void GpuExecutableProto::set_allocated_thunk(::xla::gpu::ThunkProto* PROTOBUF_NULLABLE value) {
  ::google::protobuf::Arena* message_arena = GetArena();
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (message_arena == nullptr) {
    delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.thunk_);
  }

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

  _impl_.thunk_ = reinterpret_cast<::xla::gpu::ThunkProto*>(value);
  // @@protoc_insertion_point(field_set_allocated:xla.gpu.GpuExecutableProto.thunk)
}

// string module_name = 8;
inline void GpuExecutableProto::clear_module_name() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.module_name_.ClearToEmpty();
  _impl_._has_bits_[0] &= ~0x00000004u;
}
inline const ::std::string& GpuExecutableProto::module_name() const
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_get:xla.gpu.GpuExecutableProto.module_name)
  return _internal_module_name();
}
template <typename Arg_, typename... Args_>
PROTOBUF_ALWAYS_INLINE void GpuExecutableProto::set_module_name(Arg_&& arg, Args_... args) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_._has_bits_[0] |= 0x00000004u;
  _impl_.module_name_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
  // @@protoc_insertion_point(field_set:xla.gpu.GpuExecutableProto.module_name)
}
inline ::std::string* PROTOBUF_NONNULL GpuExecutableProto::mutable_module_name()
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  ::std::string* _s = _internal_mutable_module_name();
  // @@protoc_insertion_point(field_mutable:xla.gpu.GpuExecutableProto.module_name)
  return _s;
}
inline const ::std::string& GpuExecutableProto::_internal_module_name() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.module_name_.Get();
}
inline void GpuExecutableProto::_internal_set_module_name(const ::std::string& value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_._has_bits_[0] |= 0x00000004u;
  _impl_.module_name_.Set(value, GetArena());
}
inline ::std::string* PROTOBUF_NONNULL GpuExecutableProto::_internal_mutable_module_name() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_._has_bits_[0] |= 0x00000004u;
  return _impl_.module_name_.Mutable( GetArena());
}
inline ::std::string* PROTOBUF_NULLABLE GpuExecutableProto::release_module_name() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  // @@protoc_insertion_point(field_release:xla.gpu.GpuExecutableProto.module_name)
  if ((_impl_._has_bits_[0] & 0x00000004u) == 0) {
    return nullptr;
  }
  _impl_._has_bits_[0] &= ~0x00000004u;
  auto* released = _impl_.module_name_.Release();
  if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) {
    _impl_.module_name_.Set("", GetArena());
  }
  return released;
}
inline void GpuExecutableProto::set_allocated_module_name(::std::string* PROTOBUF_NULLABLE value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (value != nullptr) {
    _impl_._has_bits_[0] |= 0x00000004u;
  } else {
    _impl_._has_bits_[0] &= ~0x00000004u;
  }
  _impl_.module_name_.SetAllocated(value, GetArena());
  if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.module_name_.IsDefault()) {
    _impl_.module_name_.Set("", GetArena());
  }
  // @@protoc_insertion_point(field_set_allocated:xla.gpu.GpuExecutableProto.module_name)
}

// .xla.ProgramShapeProto program_shape = 9;
inline bool GpuExecutableProto::has_program_shape() const {
  bool value = (_impl_._has_bits_[0] & 0x00000080u) != 0;
  PROTOBUF_ASSUME(!value || _impl_.program_shape_ != nullptr);
  return value;
}
inline const ::xla::ProgramShapeProto& GpuExecutableProto::_internal_program_shape() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  const ::xla::ProgramShapeProto* p = _impl_.program_shape_;
  return p != nullptr ? *p : reinterpret_cast<const ::xla::ProgramShapeProto&>(::xla::_ProgramShapeProto_default_instance_);
}
inline const ::xla::ProgramShapeProto& GpuExecutableProto::program_shape() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_get:xla.gpu.GpuExecutableProto.program_shape)
  return _internal_program_shape();
}
inline void GpuExecutableProto::unsafe_arena_set_allocated_program_shape(
    ::xla::ProgramShapeProto* PROTOBUF_NULLABLE value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (GetArena() == nullptr) {
    delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.program_shape_);
  }
  _impl_.program_shape_ = reinterpret_cast<::xla::ProgramShapeProto*>(value);
  if (value != nullptr) {
    _impl_._has_bits_[0] |= 0x00000080u;
  } else {
    _impl_._has_bits_[0] &= ~0x00000080u;
  }
  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:xla.gpu.GpuExecutableProto.program_shape)
}
inline ::xla::ProgramShapeProto* PROTOBUF_NULLABLE GpuExecutableProto::release_program_shape() {
  ::google::protobuf::internal::TSanWrite(&_impl_);

  _impl_._has_bits_[0] &= ~0x00000080u;
  ::xla::ProgramShapeProto* released = _impl_.program_shape_;
  _impl_.program_shape_ = nullptr;
  if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) {
    auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released);
    released = ::google::protobuf::internal::DuplicateIfNonNull(released);
    if (GetArena() == nullptr) {
      delete old;
    }
  } else {
    if (GetArena() != nullptr) {
      released = ::google::protobuf::internal::DuplicateIfNonNull(released);
    }
  }
  return released;
}
inline ::xla::ProgramShapeProto* PROTOBUF_NULLABLE GpuExecutableProto::unsafe_arena_release_program_shape() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  // @@protoc_insertion_point(field_release:xla.gpu.GpuExecutableProto.program_shape)

  _impl_._has_bits_[0] &= ~0x00000080u;
  ::xla::ProgramShapeProto* temp = _impl_.program_shape_;
  _impl_.program_shape_ = nullptr;
  return temp;
}
inline ::xla::ProgramShapeProto* PROTOBUF_NONNULL GpuExecutableProto::_internal_mutable_program_shape() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (_impl_.program_shape_ == nullptr) {
    auto* p = ::google::protobuf::Message::DefaultConstruct<::xla::ProgramShapeProto>(GetArena());
    _impl_.program_shape_ = reinterpret_cast<::xla::ProgramShapeProto*>(p);
  }
  return _impl_.program_shape_;
}
inline ::xla::ProgramShapeProto* PROTOBUF_NONNULL GpuExecutableProto::mutable_program_shape()
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  _impl_._has_bits_[0] |= 0x00000080u;
  ::xla::ProgramShapeProto* _msg = _internal_mutable_program_shape();
  // @@protoc_insertion_point(field_mutable:xla.gpu.GpuExecutableProto.program_shape)
  return _msg;
}
inline void GpuExecutableProto::set_allocated_program_shape(::xla::ProgramShapeProto* PROTOBUF_NULLABLE value) {
  ::google::protobuf::Arena* message_arena = GetArena();
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (message_arena == nullptr) {
    delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.program_shape_);
  }

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

  _impl_.program_shape_ = reinterpret_cast<::xla::ProgramShapeProto*>(value);
  // @@protoc_insertion_point(field_set_allocated:xla.gpu.GpuExecutableProto.program_shape)
}

// repeated .xla.gpu.GpuExecutableProto.OutputInfoMapEntry output_info_map = 11;
inline int GpuExecutableProto::_internal_output_info_map_size() const {
  return _internal_output_info_map().size();
}
inline int GpuExecutableProto::output_info_map_size() const {
  return _internal_output_info_map_size();
}
inline void GpuExecutableProto::clear_output_info_map() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.output_info_map_.Clear();
}
inline ::xla::gpu::GpuExecutableProto_OutputInfoMapEntry* PROTOBUF_NONNULL GpuExecutableProto::mutable_output_info_map(int index)
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_mutable:xla.gpu.GpuExecutableProto.output_info_map)
  return _internal_mutable_output_info_map()->Mutable(index);
}
inline ::google::protobuf::RepeatedPtrField<::xla::gpu::GpuExecutableProto_OutputInfoMapEntry>* PROTOBUF_NONNULL GpuExecutableProto::mutable_output_info_map()
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_mutable_list:xla.gpu.GpuExecutableProto.output_info_map)
  ::google::protobuf::internal::TSanWrite(&_impl_);
  return _internal_mutable_output_info_map();
}
inline const ::xla::gpu::GpuExecutableProto_OutputInfoMapEntry& GpuExecutableProto::output_info_map(int index) const
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_get:xla.gpu.GpuExecutableProto.output_info_map)
  return _internal_output_info_map().Get(index);
}
inline ::xla::gpu::GpuExecutableProto_OutputInfoMapEntry* PROTOBUF_NONNULL GpuExecutableProto::add_output_info_map()
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  ::xla::gpu::GpuExecutableProto_OutputInfoMapEntry* _add = _internal_mutable_output_info_map()->Add();
  // @@protoc_insertion_point(field_add:xla.gpu.GpuExecutableProto.output_info_map)
  return _add;
}
inline const ::google::protobuf::RepeatedPtrField<::xla::gpu::GpuExecutableProto_OutputInfoMapEntry>& GpuExecutableProto::output_info_map() const
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_list:xla.gpu.GpuExecutableProto.output_info_map)
  return _internal_output_info_map();
}
inline const ::google::protobuf::RepeatedPtrField<::xla::gpu::GpuExecutableProto_OutputInfoMapEntry>&
GpuExecutableProto::_internal_output_info_map() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.output_info_map_;
}
inline ::google::protobuf::RepeatedPtrField<::xla::gpu::GpuExecutableProto_OutputInfoMapEntry>* PROTOBUF_NONNULL
GpuExecutableProto::_internal_mutable_output_info_map() {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return &_impl_.output_info_map_;
}

// repeated .xla.gpu.GpuExecutableProto.ConstantInfoProto constants = 12;
inline int GpuExecutableProto::_internal_constants_size() const {
  return _internal_constants().size();
}
inline int GpuExecutableProto::constants_size() const {
  return _internal_constants_size();
}
inline void GpuExecutableProto::clear_constants() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.constants_.Clear();
}
inline ::xla::gpu::GpuExecutableProto_ConstantInfoProto* PROTOBUF_NONNULL GpuExecutableProto::mutable_constants(int index)
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_mutable:xla.gpu.GpuExecutableProto.constants)
  return _internal_mutable_constants()->Mutable(index);
}
inline ::google::protobuf::RepeatedPtrField<::xla::gpu::GpuExecutableProto_ConstantInfoProto>* PROTOBUF_NONNULL GpuExecutableProto::mutable_constants()
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_mutable_list:xla.gpu.GpuExecutableProto.constants)
  ::google::protobuf::internal::TSanWrite(&_impl_);
  return _internal_mutable_constants();
}
inline const ::xla::gpu::GpuExecutableProto_ConstantInfoProto& GpuExecutableProto::constants(int index) const
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_get:xla.gpu.GpuExecutableProto.constants)
  return _internal_constants().Get(index);
}
inline ::xla::gpu::GpuExecutableProto_ConstantInfoProto* PROTOBUF_NONNULL GpuExecutableProto::add_constants()
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  ::xla::gpu::GpuExecutableProto_ConstantInfoProto* _add = _internal_mutable_constants()->Add();
  // @@protoc_insertion_point(field_add:xla.gpu.GpuExecutableProto.constants)
  return _add;
}
inline const ::google::protobuf::RepeatedPtrField<::xla::gpu::GpuExecutableProto_ConstantInfoProto>& GpuExecutableProto::constants() const
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_list:xla.gpu.GpuExecutableProto.constants)
  return _internal_constants();
}
inline const ::google::protobuf::RepeatedPtrField<::xla::gpu::GpuExecutableProto_ConstantInfoProto>&
GpuExecutableProto::_internal_constants() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.constants_;
}
inline ::google::protobuf::RepeatedPtrField<::xla::gpu::GpuExecutableProto_ConstantInfoProto>* PROTOBUF_NONNULL
GpuExecutableProto::_internal_mutable_constants() {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return &_impl_.constants_;
}

#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  // xla_2fservice_2fgpu_2fgpu_5fexecutable_2eproto_2epb_2eh
