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

#ifndef xla_2fpjrt_2fproto_2fexecutable_5fmetadata_2eproto_2epb_2eh
#define xla_2fpjrt_2fproto_2fexecutable_5fmetadata_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/unknown_field_set.h"
#include "google/protobuf/any.pb.h"
// @@protoc_insertion_point(includes)

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

#define PROTOBUF_INTERNAL_EXPORT_xla_2fpjrt_2fproto_2fexecutable_5fmetadata_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_2fpjrt_2fproto_2fexecutable_5fmetadata_2eproto {
  static const ::uint32_t offsets[];
};
extern "C" {
PROTOBUF_EXPORT extern const ::google::protobuf::internal::DescriptorTable descriptor_table_xla_2fpjrt_2fproto_2fexecutable_5fmetadata_2eproto;
}  // extern "C"
namespace xla {
class CompiledMemoryStatsProto;
struct CompiledMemoryStatsProtoDefaultTypeInternal;
PROTOBUF_EXPORT extern CompiledMemoryStatsProtoDefaultTypeInternal _CompiledMemoryStatsProto_default_instance_;
PROTOBUF_EXPORT extern const ::google::protobuf::internal::ClassDataFull CompiledMemoryStatsProto_class_data_;
class PjRtExecutableMetadata;
struct PjRtExecutableMetadataDefaultTypeInternal;
PROTOBUF_EXPORT extern PjRtExecutableMetadataDefaultTypeInternal _PjRtExecutableMetadata_default_instance_;
PROTOBUF_EXPORT extern const ::google::protobuf::internal::ClassDataFull PjRtExecutableMetadata_class_data_;
}  // namespace xla
namespace google {
namespace protobuf {
}  // namespace protobuf
}  // namespace google

namespace xla {

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


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

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

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

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

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

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

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

 protected:
  explicit CompiledMemoryStatsProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
  CompiledMemoryStatsProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const CompiledMemoryStatsProto& from);
  CompiledMemoryStatsProto(
      ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, CompiledMemoryStatsProto&& from) noexcept
      : CompiledMemoryStatsProto(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 {
    kSerializedBufferAssignmentFieldNumber = 13,
    kGeneratedCodeSizeInBytesFieldNumber = 1,
    kArgumentSizeInBytesFieldNumber = 2,
    kOutputSizeInBytesFieldNumber = 3,
    kAliasSizeInBytesFieldNumber = 4,
    kTempSizeInBytesFieldNumber = 5,
    kHostGeneratedCodeSizeInBytesFieldNumber = 7,
    kHostArgumentSizeInBytesFieldNumber = 8,
    kHostOutputSizeInBytesFieldNumber = 9,
    kHostAliasSizeInBytesFieldNumber = 10,
    kHostTempSizeInBytesFieldNumber = 11,
    kPeakMemoryInBytesFieldNumber = 14,
    kTotalSizeInBytesFieldNumber = 15,
  };
  // bytes serialized_buffer_assignment = 13;
  void clear_serialized_buffer_assignment() ;
  const ::std::string& serialized_buffer_assignment() const;
  template <typename Arg_ = const ::std::string&, typename... Args_>
  void set_serialized_buffer_assignment(Arg_&& arg, Args_... args);
  ::std::string* PROTOBUF_NONNULL mutable_serialized_buffer_assignment();
  [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_serialized_buffer_assignment();
  void set_allocated_serialized_buffer_assignment(::std::string* PROTOBUF_NULLABLE value);

  private:
  const ::std::string& _internal_serialized_buffer_assignment() const;
  PROTOBUF_ALWAYS_INLINE void _internal_set_serialized_buffer_assignment(const ::std::string& value);
  ::std::string* PROTOBUF_NONNULL _internal_mutable_serialized_buffer_assignment();

  public:
  // int64 generated_code_size_in_bytes = 1;
  void clear_generated_code_size_in_bytes() ;
  ::int64_t generated_code_size_in_bytes() const;
  void set_generated_code_size_in_bytes(::int64_t value);

  private:
  ::int64_t _internal_generated_code_size_in_bytes() const;
  void _internal_set_generated_code_size_in_bytes(::int64_t value);

  public:
  // int64 argument_size_in_bytes = 2;
  void clear_argument_size_in_bytes() ;
  ::int64_t argument_size_in_bytes() const;
  void set_argument_size_in_bytes(::int64_t value);

  private:
  ::int64_t _internal_argument_size_in_bytes() const;
  void _internal_set_argument_size_in_bytes(::int64_t value);

  public:
  // int64 output_size_in_bytes = 3;
  void clear_output_size_in_bytes() ;
  ::int64_t output_size_in_bytes() const;
  void set_output_size_in_bytes(::int64_t value);

  private:
  ::int64_t _internal_output_size_in_bytes() const;
  void _internal_set_output_size_in_bytes(::int64_t value);

  public:
  // int64 alias_size_in_bytes = 4;
  void clear_alias_size_in_bytes() ;
  ::int64_t alias_size_in_bytes() const;
  void set_alias_size_in_bytes(::int64_t value);

  private:
  ::int64_t _internal_alias_size_in_bytes() const;
  void _internal_set_alias_size_in_bytes(::int64_t value);

  public:
  // int64 temp_size_in_bytes = 5;
  void clear_temp_size_in_bytes() ;
  ::int64_t temp_size_in_bytes() const;
  void set_temp_size_in_bytes(::int64_t value);

  private:
  ::int64_t _internal_temp_size_in_bytes() const;
  void _internal_set_temp_size_in_bytes(::int64_t value);

  public:
  // int64 host_generated_code_size_in_bytes = 7;
  void clear_host_generated_code_size_in_bytes() ;
  ::int64_t host_generated_code_size_in_bytes() const;
  void set_host_generated_code_size_in_bytes(::int64_t value);

  private:
  ::int64_t _internal_host_generated_code_size_in_bytes() const;
  void _internal_set_host_generated_code_size_in_bytes(::int64_t value);

  public:
  // int64 host_argument_size_in_bytes = 8;
  void clear_host_argument_size_in_bytes() ;
  ::int64_t host_argument_size_in_bytes() const;
  void set_host_argument_size_in_bytes(::int64_t value);

  private:
  ::int64_t _internal_host_argument_size_in_bytes() const;
  void _internal_set_host_argument_size_in_bytes(::int64_t value);

  public:
  // int64 host_output_size_in_bytes = 9;
  void clear_host_output_size_in_bytes() ;
  ::int64_t host_output_size_in_bytes() const;
  void set_host_output_size_in_bytes(::int64_t value);

  private:
  ::int64_t _internal_host_output_size_in_bytes() const;
  void _internal_set_host_output_size_in_bytes(::int64_t value);

  public:
  // int64 host_alias_size_in_bytes = 10;
  void clear_host_alias_size_in_bytes() ;
  ::int64_t host_alias_size_in_bytes() const;
  void set_host_alias_size_in_bytes(::int64_t value);

  private:
  ::int64_t _internal_host_alias_size_in_bytes() const;
  void _internal_set_host_alias_size_in_bytes(::int64_t value);

  public:
  // int64 host_temp_size_in_bytes = 11;
  void clear_host_temp_size_in_bytes() ;
  ::int64_t host_temp_size_in_bytes() const;
  void set_host_temp_size_in_bytes(::int64_t value);

  private:
  ::int64_t _internal_host_temp_size_in_bytes() const;
  void _internal_set_host_temp_size_in_bytes(::int64_t value);

  public:
  // int64 peak_memory_in_bytes = 14;
  void clear_peak_memory_in_bytes() ;
  ::int64_t peak_memory_in_bytes() const;
  void set_peak_memory_in_bytes(::int64_t value);

  private:
  ::int64_t _internal_peak_memory_in_bytes() const;
  void _internal_set_peak_memory_in_bytes(::int64_t value);

  public:
  // int64 total_size_in_bytes = 15;
  void clear_total_size_in_bytes() ;
  ::int64_t total_size_in_bytes() const;
  void set_total_size_in_bytes(::int64_t value);

  private:
  ::int64_t _internal_total_size_in_bytes() const;
  void _internal_set_total_size_in_bytes(::int64_t value);

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

  friend class ::google::protobuf::MessageLite;
  friend class ::google::protobuf::Arena;
  template <typename T>
  friend class ::google::protobuf::Arena::InternalHelper;
  using InternalArenaConstructable_ = void;
  using DestructorSkippable_ = void;
  struct Impl_ {
    inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept;
    inline explicit Impl_(
        ::google::protobuf::internal::InternalVisibility visibility,
        ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
    inline explicit Impl_(
        ::google::protobuf::internal::InternalVisibility visibility,
        ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
        const CompiledMemoryStatsProto& from_msg);
    ::google::protobuf::internal::HasBits<1> _has_bits_;
    ::google::protobuf::internal::CachedSize _cached_size_;
    ::google::protobuf::internal::ArenaStringPtr serialized_buffer_assignment_;
    ::int64_t generated_code_size_in_bytes_;
    ::int64_t argument_size_in_bytes_;
    ::int64_t output_size_in_bytes_;
    ::int64_t alias_size_in_bytes_;
    ::int64_t temp_size_in_bytes_;
    ::int64_t host_generated_code_size_in_bytes_;
    ::int64_t host_argument_size_in_bytes_;
    ::int64_t host_output_size_in_bytes_;
    ::int64_t host_alias_size_in_bytes_;
    ::int64_t host_temp_size_in_bytes_;
    ::int64_t peak_memory_in_bytes_;
    ::int64_t total_size_in_bytes_;
    PROTOBUF_TSAN_DECLARE_MEMBER
  };
  union { Impl_ _impl_; };
  friend struct ::TableStruct_xla_2fpjrt_2fproto_2fexecutable_5fmetadata_2eproto;
};

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

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

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

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

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

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

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

 protected:
  explicit PjRtExecutableMetadata(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
  PjRtExecutableMetadata(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const PjRtExecutableMetadata& from);
  PjRtExecutableMetadata(
      ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, PjRtExecutableMetadata&& from) noexcept
      : PjRtExecutableMetadata(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 {
    kCompiledMemoryStatsFieldNumber = 1,
    kPlatformSpecificMetadataFieldNumber = 2,
  };
  // optional .xla.CompiledMemoryStatsProto compiled_memory_stats = 1;
  bool has_compiled_memory_stats() const;
  void clear_compiled_memory_stats() ;
  const ::xla::CompiledMemoryStatsProto& compiled_memory_stats() const;
  [[nodiscard]] ::xla::CompiledMemoryStatsProto* PROTOBUF_NULLABLE release_compiled_memory_stats();
  ::xla::CompiledMemoryStatsProto* PROTOBUF_NONNULL mutable_compiled_memory_stats();
  void set_allocated_compiled_memory_stats(::xla::CompiledMemoryStatsProto* PROTOBUF_NULLABLE value);
  void unsafe_arena_set_allocated_compiled_memory_stats(::xla::CompiledMemoryStatsProto* PROTOBUF_NULLABLE value);
  ::xla::CompiledMemoryStatsProto* PROTOBUF_NULLABLE unsafe_arena_release_compiled_memory_stats();

  private:
  const ::xla::CompiledMemoryStatsProto& _internal_compiled_memory_stats() const;
  ::xla::CompiledMemoryStatsProto* PROTOBUF_NONNULL _internal_mutable_compiled_memory_stats();

  public:
  // optional .google.protobuf.Any platform_specific_metadata = 2;
  bool has_platform_specific_metadata() const;
  void clear_platform_specific_metadata() ;
  const ::google::protobuf::Any& platform_specific_metadata() const;
  [[nodiscard]] ::google::protobuf::Any* PROTOBUF_NULLABLE release_platform_specific_metadata();
  ::google::protobuf::Any* PROTOBUF_NONNULL mutable_platform_specific_metadata();
  void set_allocated_platform_specific_metadata(::google::protobuf::Any* PROTOBUF_NULLABLE value);
  void unsafe_arena_set_allocated_platform_specific_metadata(::google::protobuf::Any* PROTOBUF_NULLABLE value);
  ::google::protobuf::Any* PROTOBUF_NULLABLE unsafe_arena_release_platform_specific_metadata();

  private:
  const ::google::protobuf::Any& _internal_platform_specific_metadata() const;
  ::google::protobuf::Any* PROTOBUF_NONNULL _internal_mutable_platform_specific_metadata();

  public:
  // @@protoc_insertion_point(class_scope:xla.PjRtExecutableMetadata)
 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 PjRtExecutableMetadata& from_msg);
    ::google::protobuf::internal::HasBits<1> _has_bits_;
    ::google::protobuf::internal::CachedSize _cached_size_;
    ::xla::CompiledMemoryStatsProto* PROTOBUF_NULLABLE compiled_memory_stats_;
    ::google::protobuf::Any* PROTOBUF_NULLABLE platform_specific_metadata_;
    PROTOBUF_TSAN_DECLARE_MEMBER
  };
  union { Impl_ _impl_; };
  friend struct ::TableStruct_xla_2fpjrt_2fproto_2fexecutable_5fmetadata_2eproto;
};

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

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




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


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

// CompiledMemoryStatsProto

// int64 generated_code_size_in_bytes = 1;
inline void CompiledMemoryStatsProto::clear_generated_code_size_in_bytes() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.generated_code_size_in_bytes_ = ::int64_t{0};
  _impl_._has_bits_[0] &= ~0x00000002u;
}
inline ::int64_t CompiledMemoryStatsProto::generated_code_size_in_bytes() const {
  // @@protoc_insertion_point(field_get:xla.CompiledMemoryStatsProto.generated_code_size_in_bytes)
  return _internal_generated_code_size_in_bytes();
}
inline void CompiledMemoryStatsProto::set_generated_code_size_in_bytes(::int64_t value) {
  _internal_set_generated_code_size_in_bytes(value);
  _impl_._has_bits_[0] |= 0x00000002u;
  // @@protoc_insertion_point(field_set:xla.CompiledMemoryStatsProto.generated_code_size_in_bytes)
}
inline ::int64_t CompiledMemoryStatsProto::_internal_generated_code_size_in_bytes() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.generated_code_size_in_bytes_;
}
inline void CompiledMemoryStatsProto::_internal_set_generated_code_size_in_bytes(::int64_t value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.generated_code_size_in_bytes_ = value;
}

// int64 argument_size_in_bytes = 2;
inline void CompiledMemoryStatsProto::clear_argument_size_in_bytes() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.argument_size_in_bytes_ = ::int64_t{0};
  _impl_._has_bits_[0] &= ~0x00000004u;
}
inline ::int64_t CompiledMemoryStatsProto::argument_size_in_bytes() const {
  // @@protoc_insertion_point(field_get:xla.CompiledMemoryStatsProto.argument_size_in_bytes)
  return _internal_argument_size_in_bytes();
}
inline void CompiledMemoryStatsProto::set_argument_size_in_bytes(::int64_t value) {
  _internal_set_argument_size_in_bytes(value);
  _impl_._has_bits_[0] |= 0x00000004u;
  // @@protoc_insertion_point(field_set:xla.CompiledMemoryStatsProto.argument_size_in_bytes)
}
inline ::int64_t CompiledMemoryStatsProto::_internal_argument_size_in_bytes() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.argument_size_in_bytes_;
}
inline void CompiledMemoryStatsProto::_internal_set_argument_size_in_bytes(::int64_t value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.argument_size_in_bytes_ = value;
}

// int64 output_size_in_bytes = 3;
inline void CompiledMemoryStatsProto::clear_output_size_in_bytes() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.output_size_in_bytes_ = ::int64_t{0};
  _impl_._has_bits_[0] &= ~0x00000008u;
}
inline ::int64_t CompiledMemoryStatsProto::output_size_in_bytes() const {
  // @@protoc_insertion_point(field_get:xla.CompiledMemoryStatsProto.output_size_in_bytes)
  return _internal_output_size_in_bytes();
}
inline void CompiledMemoryStatsProto::set_output_size_in_bytes(::int64_t value) {
  _internal_set_output_size_in_bytes(value);
  _impl_._has_bits_[0] |= 0x00000008u;
  // @@protoc_insertion_point(field_set:xla.CompiledMemoryStatsProto.output_size_in_bytes)
}
inline ::int64_t CompiledMemoryStatsProto::_internal_output_size_in_bytes() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.output_size_in_bytes_;
}
inline void CompiledMemoryStatsProto::_internal_set_output_size_in_bytes(::int64_t value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.output_size_in_bytes_ = value;
}

// int64 alias_size_in_bytes = 4;
inline void CompiledMemoryStatsProto::clear_alias_size_in_bytes() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.alias_size_in_bytes_ = ::int64_t{0};
  _impl_._has_bits_[0] &= ~0x00000010u;
}
inline ::int64_t CompiledMemoryStatsProto::alias_size_in_bytes() const {
  // @@protoc_insertion_point(field_get:xla.CompiledMemoryStatsProto.alias_size_in_bytes)
  return _internal_alias_size_in_bytes();
}
inline void CompiledMemoryStatsProto::set_alias_size_in_bytes(::int64_t value) {
  _internal_set_alias_size_in_bytes(value);
  _impl_._has_bits_[0] |= 0x00000010u;
  // @@protoc_insertion_point(field_set:xla.CompiledMemoryStatsProto.alias_size_in_bytes)
}
inline ::int64_t CompiledMemoryStatsProto::_internal_alias_size_in_bytes() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.alias_size_in_bytes_;
}
inline void CompiledMemoryStatsProto::_internal_set_alias_size_in_bytes(::int64_t value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.alias_size_in_bytes_ = value;
}

// int64 temp_size_in_bytes = 5;
inline void CompiledMemoryStatsProto::clear_temp_size_in_bytes() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.temp_size_in_bytes_ = ::int64_t{0};
  _impl_._has_bits_[0] &= ~0x00000020u;
}
inline ::int64_t CompiledMemoryStatsProto::temp_size_in_bytes() const {
  // @@protoc_insertion_point(field_get:xla.CompiledMemoryStatsProto.temp_size_in_bytes)
  return _internal_temp_size_in_bytes();
}
inline void CompiledMemoryStatsProto::set_temp_size_in_bytes(::int64_t value) {
  _internal_set_temp_size_in_bytes(value);
  _impl_._has_bits_[0] |= 0x00000020u;
  // @@protoc_insertion_point(field_set:xla.CompiledMemoryStatsProto.temp_size_in_bytes)
}
inline ::int64_t CompiledMemoryStatsProto::_internal_temp_size_in_bytes() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.temp_size_in_bytes_;
}
inline void CompiledMemoryStatsProto::_internal_set_temp_size_in_bytes(::int64_t value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.temp_size_in_bytes_ = value;
}

// int64 peak_memory_in_bytes = 14;
inline void CompiledMemoryStatsProto::clear_peak_memory_in_bytes() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.peak_memory_in_bytes_ = ::int64_t{0};
  _impl_._has_bits_[0] &= ~0x00000800u;
}
inline ::int64_t CompiledMemoryStatsProto::peak_memory_in_bytes() const {
  // @@protoc_insertion_point(field_get:xla.CompiledMemoryStatsProto.peak_memory_in_bytes)
  return _internal_peak_memory_in_bytes();
}
inline void CompiledMemoryStatsProto::set_peak_memory_in_bytes(::int64_t value) {
  _internal_set_peak_memory_in_bytes(value);
  _impl_._has_bits_[0] |= 0x00000800u;
  // @@protoc_insertion_point(field_set:xla.CompiledMemoryStatsProto.peak_memory_in_bytes)
}
inline ::int64_t CompiledMemoryStatsProto::_internal_peak_memory_in_bytes() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.peak_memory_in_bytes_;
}
inline void CompiledMemoryStatsProto::_internal_set_peak_memory_in_bytes(::int64_t value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.peak_memory_in_bytes_ = value;
}

// int64 total_size_in_bytes = 15;
inline void CompiledMemoryStatsProto::clear_total_size_in_bytes() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.total_size_in_bytes_ = ::int64_t{0};
  _impl_._has_bits_[0] &= ~0x00001000u;
}
inline ::int64_t CompiledMemoryStatsProto::total_size_in_bytes() const {
  // @@protoc_insertion_point(field_get:xla.CompiledMemoryStatsProto.total_size_in_bytes)
  return _internal_total_size_in_bytes();
}
inline void CompiledMemoryStatsProto::set_total_size_in_bytes(::int64_t value) {
  _internal_set_total_size_in_bytes(value);
  _impl_._has_bits_[0] |= 0x00001000u;
  // @@protoc_insertion_point(field_set:xla.CompiledMemoryStatsProto.total_size_in_bytes)
}
inline ::int64_t CompiledMemoryStatsProto::_internal_total_size_in_bytes() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.total_size_in_bytes_;
}
inline void CompiledMemoryStatsProto::_internal_set_total_size_in_bytes(::int64_t value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.total_size_in_bytes_ = value;
}

// int64 host_generated_code_size_in_bytes = 7;
inline void CompiledMemoryStatsProto::clear_host_generated_code_size_in_bytes() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.host_generated_code_size_in_bytes_ = ::int64_t{0};
  _impl_._has_bits_[0] &= ~0x00000040u;
}
inline ::int64_t CompiledMemoryStatsProto::host_generated_code_size_in_bytes() const {
  // @@protoc_insertion_point(field_get:xla.CompiledMemoryStatsProto.host_generated_code_size_in_bytes)
  return _internal_host_generated_code_size_in_bytes();
}
inline void CompiledMemoryStatsProto::set_host_generated_code_size_in_bytes(::int64_t value) {
  _internal_set_host_generated_code_size_in_bytes(value);
  _impl_._has_bits_[0] |= 0x00000040u;
  // @@protoc_insertion_point(field_set:xla.CompiledMemoryStatsProto.host_generated_code_size_in_bytes)
}
inline ::int64_t CompiledMemoryStatsProto::_internal_host_generated_code_size_in_bytes() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.host_generated_code_size_in_bytes_;
}
inline void CompiledMemoryStatsProto::_internal_set_host_generated_code_size_in_bytes(::int64_t value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.host_generated_code_size_in_bytes_ = value;
}

// int64 host_argument_size_in_bytes = 8;
inline void CompiledMemoryStatsProto::clear_host_argument_size_in_bytes() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.host_argument_size_in_bytes_ = ::int64_t{0};
  _impl_._has_bits_[0] &= ~0x00000080u;
}
inline ::int64_t CompiledMemoryStatsProto::host_argument_size_in_bytes() const {
  // @@protoc_insertion_point(field_get:xla.CompiledMemoryStatsProto.host_argument_size_in_bytes)
  return _internal_host_argument_size_in_bytes();
}
inline void CompiledMemoryStatsProto::set_host_argument_size_in_bytes(::int64_t value) {
  _internal_set_host_argument_size_in_bytes(value);
  _impl_._has_bits_[0] |= 0x00000080u;
  // @@protoc_insertion_point(field_set:xla.CompiledMemoryStatsProto.host_argument_size_in_bytes)
}
inline ::int64_t CompiledMemoryStatsProto::_internal_host_argument_size_in_bytes() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.host_argument_size_in_bytes_;
}
inline void CompiledMemoryStatsProto::_internal_set_host_argument_size_in_bytes(::int64_t value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.host_argument_size_in_bytes_ = value;
}

// int64 host_output_size_in_bytes = 9;
inline void CompiledMemoryStatsProto::clear_host_output_size_in_bytes() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.host_output_size_in_bytes_ = ::int64_t{0};
  _impl_._has_bits_[0] &= ~0x00000100u;
}
inline ::int64_t CompiledMemoryStatsProto::host_output_size_in_bytes() const {
  // @@protoc_insertion_point(field_get:xla.CompiledMemoryStatsProto.host_output_size_in_bytes)
  return _internal_host_output_size_in_bytes();
}
inline void CompiledMemoryStatsProto::set_host_output_size_in_bytes(::int64_t value) {
  _internal_set_host_output_size_in_bytes(value);
  _impl_._has_bits_[0] |= 0x00000100u;
  // @@protoc_insertion_point(field_set:xla.CompiledMemoryStatsProto.host_output_size_in_bytes)
}
inline ::int64_t CompiledMemoryStatsProto::_internal_host_output_size_in_bytes() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.host_output_size_in_bytes_;
}
inline void CompiledMemoryStatsProto::_internal_set_host_output_size_in_bytes(::int64_t value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.host_output_size_in_bytes_ = value;
}

// int64 host_alias_size_in_bytes = 10;
inline void CompiledMemoryStatsProto::clear_host_alias_size_in_bytes() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.host_alias_size_in_bytes_ = ::int64_t{0};
  _impl_._has_bits_[0] &= ~0x00000200u;
}
inline ::int64_t CompiledMemoryStatsProto::host_alias_size_in_bytes() const {
  // @@protoc_insertion_point(field_get:xla.CompiledMemoryStatsProto.host_alias_size_in_bytes)
  return _internal_host_alias_size_in_bytes();
}
inline void CompiledMemoryStatsProto::set_host_alias_size_in_bytes(::int64_t value) {
  _internal_set_host_alias_size_in_bytes(value);
  _impl_._has_bits_[0] |= 0x00000200u;
  // @@protoc_insertion_point(field_set:xla.CompiledMemoryStatsProto.host_alias_size_in_bytes)
}
inline ::int64_t CompiledMemoryStatsProto::_internal_host_alias_size_in_bytes() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.host_alias_size_in_bytes_;
}
inline void CompiledMemoryStatsProto::_internal_set_host_alias_size_in_bytes(::int64_t value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.host_alias_size_in_bytes_ = value;
}

// int64 host_temp_size_in_bytes = 11;
inline void CompiledMemoryStatsProto::clear_host_temp_size_in_bytes() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.host_temp_size_in_bytes_ = ::int64_t{0};
  _impl_._has_bits_[0] &= ~0x00000400u;
}
inline ::int64_t CompiledMemoryStatsProto::host_temp_size_in_bytes() const {
  // @@protoc_insertion_point(field_get:xla.CompiledMemoryStatsProto.host_temp_size_in_bytes)
  return _internal_host_temp_size_in_bytes();
}
inline void CompiledMemoryStatsProto::set_host_temp_size_in_bytes(::int64_t value) {
  _internal_set_host_temp_size_in_bytes(value);
  _impl_._has_bits_[0] |= 0x00000400u;
  // @@protoc_insertion_point(field_set:xla.CompiledMemoryStatsProto.host_temp_size_in_bytes)
}
inline ::int64_t CompiledMemoryStatsProto::_internal_host_temp_size_in_bytes() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.host_temp_size_in_bytes_;
}
inline void CompiledMemoryStatsProto::_internal_set_host_temp_size_in_bytes(::int64_t value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.host_temp_size_in_bytes_ = value;
}

// bytes serialized_buffer_assignment = 13;
inline void CompiledMemoryStatsProto::clear_serialized_buffer_assignment() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.serialized_buffer_assignment_.ClearToEmpty();
  _impl_._has_bits_[0] &= ~0x00000001u;
}
inline const ::std::string& CompiledMemoryStatsProto::serialized_buffer_assignment() const
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_get:xla.CompiledMemoryStatsProto.serialized_buffer_assignment)
  return _internal_serialized_buffer_assignment();
}
template <typename Arg_, typename... Args_>
PROTOBUF_ALWAYS_INLINE void CompiledMemoryStatsProto::set_serialized_buffer_assignment(Arg_&& arg, Args_... args) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_._has_bits_[0] |= 0x00000001u;
  _impl_.serialized_buffer_assignment_.SetBytes(static_cast<Arg_&&>(arg), args..., GetArena());
  // @@protoc_insertion_point(field_set:xla.CompiledMemoryStatsProto.serialized_buffer_assignment)
}
inline ::std::string* PROTOBUF_NONNULL CompiledMemoryStatsProto::mutable_serialized_buffer_assignment()
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  ::std::string* _s = _internal_mutable_serialized_buffer_assignment();
  // @@protoc_insertion_point(field_mutable:xla.CompiledMemoryStatsProto.serialized_buffer_assignment)
  return _s;
}
inline const ::std::string& CompiledMemoryStatsProto::_internal_serialized_buffer_assignment() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.serialized_buffer_assignment_.Get();
}
inline void CompiledMemoryStatsProto::_internal_set_serialized_buffer_assignment(const ::std::string& value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_._has_bits_[0] |= 0x00000001u;
  _impl_.serialized_buffer_assignment_.Set(value, GetArena());
}
inline ::std::string* PROTOBUF_NONNULL CompiledMemoryStatsProto::_internal_mutable_serialized_buffer_assignment() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_._has_bits_[0] |= 0x00000001u;
  return _impl_.serialized_buffer_assignment_.Mutable( GetArena());
}
inline ::std::string* PROTOBUF_NULLABLE CompiledMemoryStatsProto::release_serialized_buffer_assignment() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  // @@protoc_insertion_point(field_release:xla.CompiledMemoryStatsProto.serialized_buffer_assignment)
  if ((_impl_._has_bits_[0] & 0x00000001u) == 0) {
    return nullptr;
  }
  _impl_._has_bits_[0] &= ~0x00000001u;
  auto* released = _impl_.serialized_buffer_assignment_.Release();
  if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) {
    _impl_.serialized_buffer_assignment_.Set("", GetArena());
  }
  return released;
}
inline void CompiledMemoryStatsProto::set_allocated_serialized_buffer_assignment(::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_.serialized_buffer_assignment_.SetAllocated(value, GetArena());
  if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.serialized_buffer_assignment_.IsDefault()) {
    _impl_.serialized_buffer_assignment_.Set("", GetArena());
  }
  // @@protoc_insertion_point(field_set_allocated:xla.CompiledMemoryStatsProto.serialized_buffer_assignment)
}

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

// PjRtExecutableMetadata

// optional .xla.CompiledMemoryStatsProto compiled_memory_stats = 1;
inline bool PjRtExecutableMetadata::has_compiled_memory_stats() const {
  bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
  PROTOBUF_ASSUME(!value || _impl_.compiled_memory_stats_ != nullptr);
  return value;
}
inline void PjRtExecutableMetadata::clear_compiled_memory_stats() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (_impl_.compiled_memory_stats_ != nullptr) _impl_.compiled_memory_stats_->Clear();
  _impl_._has_bits_[0] &= ~0x00000001u;
}
inline const ::xla::CompiledMemoryStatsProto& PjRtExecutableMetadata::_internal_compiled_memory_stats() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  const ::xla::CompiledMemoryStatsProto* p = _impl_.compiled_memory_stats_;
  return p != nullptr ? *p : reinterpret_cast<const ::xla::CompiledMemoryStatsProto&>(::xla::_CompiledMemoryStatsProto_default_instance_);
}
inline const ::xla::CompiledMemoryStatsProto& PjRtExecutableMetadata::compiled_memory_stats() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_get:xla.PjRtExecutableMetadata.compiled_memory_stats)
  return _internal_compiled_memory_stats();
}
inline void PjRtExecutableMetadata::unsafe_arena_set_allocated_compiled_memory_stats(
    ::xla::CompiledMemoryStatsProto* PROTOBUF_NULLABLE value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (GetArena() == nullptr) {
    delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.compiled_memory_stats_);
  }
  _impl_.compiled_memory_stats_ = reinterpret_cast<::xla::CompiledMemoryStatsProto*>(value);
  if (value != nullptr) {
    _impl_._has_bits_[0] |= 0x00000001u;
  } else {
    _impl_._has_bits_[0] &= ~0x00000001u;
  }
  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:xla.PjRtExecutableMetadata.compiled_memory_stats)
}
inline ::xla::CompiledMemoryStatsProto* PROTOBUF_NULLABLE PjRtExecutableMetadata::release_compiled_memory_stats() {
  ::google::protobuf::internal::TSanWrite(&_impl_);

  _impl_._has_bits_[0] &= ~0x00000001u;
  ::xla::CompiledMemoryStatsProto* released = _impl_.compiled_memory_stats_;
  _impl_.compiled_memory_stats_ = 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::CompiledMemoryStatsProto* PROTOBUF_NULLABLE PjRtExecutableMetadata::unsafe_arena_release_compiled_memory_stats() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  // @@protoc_insertion_point(field_release:xla.PjRtExecutableMetadata.compiled_memory_stats)

  _impl_._has_bits_[0] &= ~0x00000001u;
  ::xla::CompiledMemoryStatsProto* temp = _impl_.compiled_memory_stats_;
  _impl_.compiled_memory_stats_ = nullptr;
  return temp;
}
inline ::xla::CompiledMemoryStatsProto* PROTOBUF_NONNULL PjRtExecutableMetadata::_internal_mutable_compiled_memory_stats() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (_impl_.compiled_memory_stats_ == nullptr) {
    auto* p = ::google::protobuf::Message::DefaultConstruct<::xla::CompiledMemoryStatsProto>(GetArena());
    _impl_.compiled_memory_stats_ = reinterpret_cast<::xla::CompiledMemoryStatsProto*>(p);
  }
  return _impl_.compiled_memory_stats_;
}
inline ::xla::CompiledMemoryStatsProto* PROTOBUF_NONNULL PjRtExecutableMetadata::mutable_compiled_memory_stats()
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  _impl_._has_bits_[0] |= 0x00000001u;
  ::xla::CompiledMemoryStatsProto* _msg = _internal_mutable_compiled_memory_stats();
  // @@protoc_insertion_point(field_mutable:xla.PjRtExecutableMetadata.compiled_memory_stats)
  return _msg;
}
inline void PjRtExecutableMetadata::set_allocated_compiled_memory_stats(::xla::CompiledMemoryStatsProto* 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_.compiled_memory_stats_);
  }

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

  _impl_.compiled_memory_stats_ = reinterpret_cast<::xla::CompiledMemoryStatsProto*>(value);
  // @@protoc_insertion_point(field_set_allocated:xla.PjRtExecutableMetadata.compiled_memory_stats)
}

// optional .google.protobuf.Any platform_specific_metadata = 2;
inline bool PjRtExecutableMetadata::has_platform_specific_metadata() const {
  bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
  PROTOBUF_ASSUME(!value || _impl_.platform_specific_metadata_ != nullptr);
  return value;
}
inline const ::google::protobuf::Any& PjRtExecutableMetadata::_internal_platform_specific_metadata() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  const ::google::protobuf::Any* p = _impl_.platform_specific_metadata_;
  return p != nullptr ? *p : reinterpret_cast<const ::google::protobuf::Any&>(::google::protobuf::_Any_default_instance_);
}
inline const ::google::protobuf::Any& PjRtExecutableMetadata::platform_specific_metadata() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_get:xla.PjRtExecutableMetadata.platform_specific_metadata)
  return _internal_platform_specific_metadata();
}
inline void PjRtExecutableMetadata::unsafe_arena_set_allocated_platform_specific_metadata(
    ::google::protobuf::Any* PROTOBUF_NULLABLE value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (GetArena() == nullptr) {
    delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.platform_specific_metadata_);
  }
  _impl_.platform_specific_metadata_ = reinterpret_cast<::google::protobuf::Any*>(value);
  if (value != nullptr) {
    _impl_._has_bits_[0] |= 0x00000002u;
  } else {
    _impl_._has_bits_[0] &= ~0x00000002u;
  }
  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:xla.PjRtExecutableMetadata.platform_specific_metadata)
}
inline ::google::protobuf::Any* PROTOBUF_NULLABLE PjRtExecutableMetadata::release_platform_specific_metadata() {
  ::google::protobuf::internal::TSanWrite(&_impl_);

  _impl_._has_bits_[0] &= ~0x00000002u;
  ::google::protobuf::Any* released = _impl_.platform_specific_metadata_;
  _impl_.platform_specific_metadata_ = nullptr;
  if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) {
    auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released);
    released = ::google::protobuf::internal::DuplicateIfNonNull(released);
    if (GetArena() == nullptr) {
      delete old;
    }
  } else {
    if (GetArena() != nullptr) {
      released = ::google::protobuf::internal::DuplicateIfNonNull(released);
    }
  }
  return released;
}
inline ::google::protobuf::Any* PROTOBUF_NULLABLE PjRtExecutableMetadata::unsafe_arena_release_platform_specific_metadata() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  // @@protoc_insertion_point(field_release:xla.PjRtExecutableMetadata.platform_specific_metadata)

  _impl_._has_bits_[0] &= ~0x00000002u;
  ::google::protobuf::Any* temp = _impl_.platform_specific_metadata_;
  _impl_.platform_specific_metadata_ = nullptr;
  return temp;
}
inline ::google::protobuf::Any* PROTOBUF_NONNULL PjRtExecutableMetadata::_internal_mutable_platform_specific_metadata() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (_impl_.platform_specific_metadata_ == nullptr) {
    auto* p = ::google::protobuf::Message::DefaultConstruct<::google::protobuf::Any>(GetArena());
    _impl_.platform_specific_metadata_ = reinterpret_cast<::google::protobuf::Any*>(p);
  }
  return _impl_.platform_specific_metadata_;
}
inline ::google::protobuf::Any* PROTOBUF_NONNULL PjRtExecutableMetadata::mutable_platform_specific_metadata()
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  _impl_._has_bits_[0] |= 0x00000002u;
  ::google::protobuf::Any* _msg = _internal_mutable_platform_specific_metadata();
  // @@protoc_insertion_point(field_mutable:xla.PjRtExecutableMetadata.platform_specific_metadata)
  return _msg;
}
inline void PjRtExecutableMetadata::set_allocated_platform_specific_metadata(::google::protobuf::Any* 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_.platform_specific_metadata_);
  }

  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_.platform_specific_metadata_ = reinterpret_cast<::google::protobuf::Any*>(value);
  // @@protoc_insertion_point(field_set_allocated:xla.PjRtExecutableMetadata.platform_specific_metadata)
}

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

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


// @@protoc_insertion_point(global_scope)

#include "google/protobuf/port_undef.inc"

#endif  // xla_2fpjrt_2fproto_2fexecutable_5fmetadata_2eproto_2epb_2eh
