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

#ifndef xla_2fservice_2fgpu_2fgpu_5fconv_5frunner_2eproto_2epb_2eh
#define xla_2fservice_2fgpu_2fgpu_5fconv_5frunner_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 "xla/service/gpu/backend_configs.pb.h"
#include "xla/tsl/protobuf/dnn.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_5fconv_5frunner_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_5fconv_5frunner_2eproto {
  static const ::uint32_t offsets[];
};
extern "C" {
PROTOBUF_EXPORT extern const ::google::protobuf::internal::DescriptorTable descriptor_table_xla_2fservice_2fgpu_2fgpu_5fconv_5frunner_2eproto;
}  // extern "C"
namespace xla {
namespace gpu {
class GpuConvDescriptorProto;
struct GpuConvDescriptorProtoDefaultTypeInternal;
PROTOBUF_EXPORT extern GpuConvDescriptorProtoDefaultTypeInternal _GpuConvDescriptorProto_default_instance_;
PROTOBUF_EXPORT extern const ::google::protobuf::internal::ClassDataFull GpuConvDescriptorProto_class_data_;
}  // namespace gpu
}  // namespace xla
namespace google {
namespace protobuf {
}  // namespace protobuf
}  // namespace google

namespace xla {
namespace gpu {

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


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

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

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

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

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

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

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

 protected:
  explicit GpuConvDescriptorProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
  GpuConvDescriptorProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GpuConvDescriptorProto& from);
  GpuConvDescriptorProto(
      ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, GpuConvDescriptorProto&& from) noexcept
      : GpuConvDescriptorProto(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 {
    kBackendConfigFieldNumber = 2,
    kOperand0ShapeFieldNumber = 3,
    kOperand1ShapeFieldNumber = 4,
    kResultShapeFieldNumber = 5,
    kWindowFieldNumber = 7,
    kDnumsFieldNumber = 8,
    kScratchSizeFieldNumber = 6,
    kFeatureGroupCountFieldNumber = 9,
    kKindFieldNumber = 1,
  };
  // .xla.gpu.CudnnConvBackendConfig backend_config = 2;
  bool has_backend_config() const;
  void clear_backend_config() ;
  const ::xla::gpu::CudnnConvBackendConfig& backend_config() const;
  [[nodiscard]] ::xla::gpu::CudnnConvBackendConfig* PROTOBUF_NULLABLE release_backend_config();
  ::xla::gpu::CudnnConvBackendConfig* PROTOBUF_NONNULL mutable_backend_config();
  void set_allocated_backend_config(::xla::gpu::CudnnConvBackendConfig* PROTOBUF_NULLABLE value);
  void unsafe_arena_set_allocated_backend_config(::xla::gpu::CudnnConvBackendConfig* PROTOBUF_NULLABLE value);
  ::xla::gpu::CudnnConvBackendConfig* PROTOBUF_NULLABLE unsafe_arena_release_backend_config();

  private:
  const ::xla::gpu::CudnnConvBackendConfig& _internal_backend_config() const;
  ::xla::gpu::CudnnConvBackendConfig* PROTOBUF_NONNULL _internal_mutable_backend_config();

  public:
  // .xla.ShapeProto operand0_shape = 3;
  bool has_operand0_shape() const;
  void clear_operand0_shape() ;
  const ::xla::ShapeProto& operand0_shape() const;
  [[nodiscard]] ::xla::ShapeProto* PROTOBUF_NULLABLE release_operand0_shape();
  ::xla::ShapeProto* PROTOBUF_NONNULL mutable_operand0_shape();
  void set_allocated_operand0_shape(::xla::ShapeProto* PROTOBUF_NULLABLE value);
  void unsafe_arena_set_allocated_operand0_shape(::xla::ShapeProto* PROTOBUF_NULLABLE value);
  ::xla::ShapeProto* PROTOBUF_NULLABLE unsafe_arena_release_operand0_shape();

  private:
  const ::xla::ShapeProto& _internal_operand0_shape() const;
  ::xla::ShapeProto* PROTOBUF_NONNULL _internal_mutable_operand0_shape();

  public:
  // .xla.ShapeProto operand1_shape = 4;
  bool has_operand1_shape() const;
  void clear_operand1_shape() ;
  const ::xla::ShapeProto& operand1_shape() const;
  [[nodiscard]] ::xla::ShapeProto* PROTOBUF_NULLABLE release_operand1_shape();
  ::xla::ShapeProto* PROTOBUF_NONNULL mutable_operand1_shape();
  void set_allocated_operand1_shape(::xla::ShapeProto* PROTOBUF_NULLABLE value);
  void unsafe_arena_set_allocated_operand1_shape(::xla::ShapeProto* PROTOBUF_NULLABLE value);
  ::xla::ShapeProto* PROTOBUF_NULLABLE unsafe_arena_release_operand1_shape();

  private:
  const ::xla::ShapeProto& _internal_operand1_shape() const;
  ::xla::ShapeProto* PROTOBUF_NONNULL _internal_mutable_operand1_shape();

  public:
  // .xla.ShapeProto result_shape = 5;
  bool has_result_shape() const;
  void clear_result_shape() ;
  const ::xla::ShapeProto& result_shape() const;
  [[nodiscard]] ::xla::ShapeProto* PROTOBUF_NULLABLE release_result_shape();
  ::xla::ShapeProto* PROTOBUF_NONNULL mutable_result_shape();
  void set_allocated_result_shape(::xla::ShapeProto* PROTOBUF_NULLABLE value);
  void unsafe_arena_set_allocated_result_shape(::xla::ShapeProto* PROTOBUF_NULLABLE value);
  ::xla::ShapeProto* PROTOBUF_NULLABLE unsafe_arena_release_result_shape();

  private:
  const ::xla::ShapeProto& _internal_result_shape() const;
  ::xla::ShapeProto* PROTOBUF_NONNULL _internal_mutable_result_shape();

  public:
  // .xla.Window window = 7;
  bool has_window() const;
  void clear_window() ;
  const ::xla::Window& window() const;
  [[nodiscard]] ::xla::Window* PROTOBUF_NULLABLE release_window();
  ::xla::Window* PROTOBUF_NONNULL mutable_window();
  void set_allocated_window(::xla::Window* PROTOBUF_NULLABLE value);
  void unsafe_arena_set_allocated_window(::xla::Window* PROTOBUF_NULLABLE value);
  ::xla::Window* PROTOBUF_NULLABLE unsafe_arena_release_window();

  private:
  const ::xla::Window& _internal_window() const;
  ::xla::Window* PROTOBUF_NONNULL _internal_mutable_window();

  public:
  // .xla.ConvolutionDimensionNumbers dnums = 8;
  bool has_dnums() const;
  void clear_dnums() ;
  const ::xla::ConvolutionDimensionNumbers& dnums() const;
  [[nodiscard]] ::xla::ConvolutionDimensionNumbers* PROTOBUF_NULLABLE release_dnums();
  ::xla::ConvolutionDimensionNumbers* PROTOBUF_NONNULL mutable_dnums();
  void set_allocated_dnums(::xla::ConvolutionDimensionNumbers* PROTOBUF_NULLABLE value);
  void unsafe_arena_set_allocated_dnums(::xla::ConvolutionDimensionNumbers* PROTOBUF_NULLABLE value);
  ::xla::ConvolutionDimensionNumbers* PROTOBUF_NULLABLE unsafe_arena_release_dnums();

  private:
  const ::xla::ConvolutionDimensionNumbers& _internal_dnums() const;
  ::xla::ConvolutionDimensionNumbers* PROTOBUF_NONNULL _internal_mutable_dnums();

  public:
  // int64 scratch_size = 6;
  void clear_scratch_size() ;
  ::int64_t scratch_size() const;
  void set_scratch_size(::int64_t value);

  private:
  ::int64_t _internal_scratch_size() const;
  void _internal_set_scratch_size(::int64_t value);

  public:
  // int64 feature_group_count = 9;
  void clear_feature_group_count() ;
  ::int64_t feature_group_count() const;
  void set_feature_group_count(::int64_t value);

  private:
  ::int64_t _internal_feature_group_count() const;
  void _internal_set_feature_group_count(::int64_t value);

  public:
  // .stream_executor.dnn.ConvolutionKind kind = 1;
  void clear_kind() ;
  ::stream_executor::dnn::ConvolutionKind kind() const;
  void set_kind(::stream_executor::dnn::ConvolutionKind value);

  private:
  ::stream_executor::dnn::ConvolutionKind _internal_kind() const;
  void _internal_set_kind(::stream_executor::dnn::ConvolutionKind value);

  public:
  // @@protoc_insertion_point(class_scope:xla.gpu.GpuConvDescriptorProto)
 private:
  class _Internal;
  friend class ::google::protobuf::internal::TcParser;
  static const ::google::protobuf::internal::TcParseTable<4, 9,
                                   6, 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 GpuConvDescriptorProto& from_msg);
    ::google::protobuf::internal::HasBits<1> _has_bits_;
    ::google::protobuf::internal::CachedSize _cached_size_;
    ::xla::gpu::CudnnConvBackendConfig* PROTOBUF_NULLABLE backend_config_;
    ::xla::ShapeProto* PROTOBUF_NULLABLE operand0_shape_;
    ::xla::ShapeProto* PROTOBUF_NULLABLE operand1_shape_;
    ::xla::ShapeProto* PROTOBUF_NULLABLE result_shape_;
    ::xla::Window* PROTOBUF_NULLABLE window_;
    ::xla::ConvolutionDimensionNumbers* PROTOBUF_NULLABLE dnums_;
    ::int64_t scratch_size_;
    ::int64_t feature_group_count_;
    int kind_;
    PROTOBUF_TSAN_DECLARE_MEMBER
  };
  union { Impl_ _impl_; };
  friend struct ::TableStruct_xla_2fservice_2fgpu_2fgpu_5fconv_5frunner_2eproto;
};

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

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




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


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

// GpuConvDescriptorProto

// .stream_executor.dnn.ConvolutionKind kind = 1;
inline void GpuConvDescriptorProto::clear_kind() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.kind_ = 0;
  _impl_._has_bits_[0] &= ~0x00000100u;
}
inline ::stream_executor::dnn::ConvolutionKind GpuConvDescriptorProto::kind() const {
  // @@protoc_insertion_point(field_get:xla.gpu.GpuConvDescriptorProto.kind)
  return _internal_kind();
}
inline void GpuConvDescriptorProto::set_kind(::stream_executor::dnn::ConvolutionKind value) {
  _internal_set_kind(value);
  _impl_._has_bits_[0] |= 0x00000100u;
  // @@protoc_insertion_point(field_set:xla.gpu.GpuConvDescriptorProto.kind)
}
inline ::stream_executor::dnn::ConvolutionKind GpuConvDescriptorProto::_internal_kind() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return static_cast<::stream_executor::dnn::ConvolutionKind>(_impl_.kind_);
}
inline void GpuConvDescriptorProto::_internal_set_kind(::stream_executor::dnn::ConvolutionKind value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.kind_ = value;
}

// .xla.gpu.CudnnConvBackendConfig backend_config = 2;
inline bool GpuConvDescriptorProto::has_backend_config() const {
  bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
  PROTOBUF_ASSUME(!value || _impl_.backend_config_ != nullptr);
  return value;
}
inline const ::xla::gpu::CudnnConvBackendConfig& GpuConvDescriptorProto::_internal_backend_config() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  const ::xla::gpu::CudnnConvBackendConfig* p = _impl_.backend_config_;
  return p != nullptr ? *p : reinterpret_cast<const ::xla::gpu::CudnnConvBackendConfig&>(::xla::gpu::_CudnnConvBackendConfig_default_instance_);
}
inline const ::xla::gpu::CudnnConvBackendConfig& GpuConvDescriptorProto::backend_config() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_get:xla.gpu.GpuConvDescriptorProto.backend_config)
  return _internal_backend_config();
}
inline void GpuConvDescriptorProto::unsafe_arena_set_allocated_backend_config(
    ::xla::gpu::CudnnConvBackendConfig* PROTOBUF_NULLABLE value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (GetArena() == nullptr) {
    delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.backend_config_);
  }
  _impl_.backend_config_ = reinterpret_cast<::xla::gpu::CudnnConvBackendConfig*>(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.GpuConvDescriptorProto.backend_config)
}
inline ::xla::gpu::CudnnConvBackendConfig* PROTOBUF_NULLABLE GpuConvDescriptorProto::release_backend_config() {
  ::google::protobuf::internal::TSanWrite(&_impl_);

  _impl_._has_bits_[0] &= ~0x00000001u;
  ::xla::gpu::CudnnConvBackendConfig* released = _impl_.backend_config_;
  _impl_.backend_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::gpu::CudnnConvBackendConfig* PROTOBUF_NULLABLE GpuConvDescriptorProto::unsafe_arena_release_backend_config() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  // @@protoc_insertion_point(field_release:xla.gpu.GpuConvDescriptorProto.backend_config)

  _impl_._has_bits_[0] &= ~0x00000001u;
  ::xla::gpu::CudnnConvBackendConfig* temp = _impl_.backend_config_;
  _impl_.backend_config_ = nullptr;
  return temp;
}
inline ::xla::gpu::CudnnConvBackendConfig* PROTOBUF_NONNULL GpuConvDescriptorProto::_internal_mutable_backend_config() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (_impl_.backend_config_ == nullptr) {
    auto* p = ::google::protobuf::Message::DefaultConstruct<::xla::gpu::CudnnConvBackendConfig>(GetArena());
    _impl_.backend_config_ = reinterpret_cast<::xla::gpu::CudnnConvBackendConfig*>(p);
  }
  return _impl_.backend_config_;
}
inline ::xla::gpu::CudnnConvBackendConfig* PROTOBUF_NONNULL GpuConvDescriptorProto::mutable_backend_config()
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  _impl_._has_bits_[0] |= 0x00000001u;
  ::xla::gpu::CudnnConvBackendConfig* _msg = _internal_mutable_backend_config();
  // @@protoc_insertion_point(field_mutable:xla.gpu.GpuConvDescriptorProto.backend_config)
  return _msg;
}
inline void GpuConvDescriptorProto::set_allocated_backend_config(::xla::gpu::CudnnConvBackendConfig* 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_.backend_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_.backend_config_ = reinterpret_cast<::xla::gpu::CudnnConvBackendConfig*>(value);
  // @@protoc_insertion_point(field_set_allocated:xla.gpu.GpuConvDescriptorProto.backend_config)
}

// .xla.ShapeProto operand0_shape = 3;
inline bool GpuConvDescriptorProto::has_operand0_shape() const {
  bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
  PROTOBUF_ASSUME(!value || _impl_.operand0_shape_ != nullptr);
  return value;
}
inline const ::xla::ShapeProto& GpuConvDescriptorProto::_internal_operand0_shape() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  const ::xla::ShapeProto* p = _impl_.operand0_shape_;
  return p != nullptr ? *p : reinterpret_cast<const ::xla::ShapeProto&>(::xla::_ShapeProto_default_instance_);
}
inline const ::xla::ShapeProto& GpuConvDescriptorProto::operand0_shape() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_get:xla.gpu.GpuConvDescriptorProto.operand0_shape)
  return _internal_operand0_shape();
}
inline void GpuConvDescriptorProto::unsafe_arena_set_allocated_operand0_shape(
    ::xla::ShapeProto* PROTOBUF_NULLABLE value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (GetArena() == nullptr) {
    delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.operand0_shape_);
  }
  _impl_.operand0_shape_ = reinterpret_cast<::xla::ShapeProto*>(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.GpuConvDescriptorProto.operand0_shape)
}
inline ::xla::ShapeProto* PROTOBUF_NULLABLE GpuConvDescriptorProto::release_operand0_shape() {
  ::google::protobuf::internal::TSanWrite(&_impl_);

  _impl_._has_bits_[0] &= ~0x00000002u;
  ::xla::ShapeProto* released = _impl_.operand0_shape_;
  _impl_.operand0_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::ShapeProto* PROTOBUF_NULLABLE GpuConvDescriptorProto::unsafe_arena_release_operand0_shape() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  // @@protoc_insertion_point(field_release:xla.gpu.GpuConvDescriptorProto.operand0_shape)

  _impl_._has_bits_[0] &= ~0x00000002u;
  ::xla::ShapeProto* temp = _impl_.operand0_shape_;
  _impl_.operand0_shape_ = nullptr;
  return temp;
}
inline ::xla::ShapeProto* PROTOBUF_NONNULL GpuConvDescriptorProto::_internal_mutable_operand0_shape() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (_impl_.operand0_shape_ == nullptr) {
    auto* p = ::google::protobuf::Message::DefaultConstruct<::xla::ShapeProto>(GetArena());
    _impl_.operand0_shape_ = reinterpret_cast<::xla::ShapeProto*>(p);
  }
  return _impl_.operand0_shape_;
}
inline ::xla::ShapeProto* PROTOBUF_NONNULL GpuConvDescriptorProto::mutable_operand0_shape()
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  _impl_._has_bits_[0] |= 0x00000002u;
  ::xla::ShapeProto* _msg = _internal_mutable_operand0_shape();
  // @@protoc_insertion_point(field_mutable:xla.gpu.GpuConvDescriptorProto.operand0_shape)
  return _msg;
}
inline void GpuConvDescriptorProto::set_allocated_operand0_shape(::xla::ShapeProto* 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_.operand0_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] |= 0x00000002u;
  } else {
    _impl_._has_bits_[0] &= ~0x00000002u;
  }

  _impl_.operand0_shape_ = reinterpret_cast<::xla::ShapeProto*>(value);
  // @@protoc_insertion_point(field_set_allocated:xla.gpu.GpuConvDescriptorProto.operand0_shape)
}

// .xla.ShapeProto operand1_shape = 4;
inline bool GpuConvDescriptorProto::has_operand1_shape() const {
  bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
  PROTOBUF_ASSUME(!value || _impl_.operand1_shape_ != nullptr);
  return value;
}
inline const ::xla::ShapeProto& GpuConvDescriptorProto::_internal_operand1_shape() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  const ::xla::ShapeProto* p = _impl_.operand1_shape_;
  return p != nullptr ? *p : reinterpret_cast<const ::xla::ShapeProto&>(::xla::_ShapeProto_default_instance_);
}
inline const ::xla::ShapeProto& GpuConvDescriptorProto::operand1_shape() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_get:xla.gpu.GpuConvDescriptorProto.operand1_shape)
  return _internal_operand1_shape();
}
inline void GpuConvDescriptorProto::unsafe_arena_set_allocated_operand1_shape(
    ::xla::ShapeProto* PROTOBUF_NULLABLE value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (GetArena() == nullptr) {
    delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.operand1_shape_);
  }
  _impl_.operand1_shape_ = reinterpret_cast<::xla::ShapeProto*>(value);
  if (value != nullptr) {
    _impl_._has_bits_[0] |= 0x00000004u;
  } else {
    _impl_._has_bits_[0] &= ~0x00000004u;
  }
  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:xla.gpu.GpuConvDescriptorProto.operand1_shape)
}
inline ::xla::ShapeProto* PROTOBUF_NULLABLE GpuConvDescriptorProto::release_operand1_shape() {
  ::google::protobuf::internal::TSanWrite(&_impl_);

  _impl_._has_bits_[0] &= ~0x00000004u;
  ::xla::ShapeProto* released = _impl_.operand1_shape_;
  _impl_.operand1_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::ShapeProto* PROTOBUF_NULLABLE GpuConvDescriptorProto::unsafe_arena_release_operand1_shape() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  // @@protoc_insertion_point(field_release:xla.gpu.GpuConvDescriptorProto.operand1_shape)

  _impl_._has_bits_[0] &= ~0x00000004u;
  ::xla::ShapeProto* temp = _impl_.operand1_shape_;
  _impl_.operand1_shape_ = nullptr;
  return temp;
}
inline ::xla::ShapeProto* PROTOBUF_NONNULL GpuConvDescriptorProto::_internal_mutable_operand1_shape() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (_impl_.operand1_shape_ == nullptr) {
    auto* p = ::google::protobuf::Message::DefaultConstruct<::xla::ShapeProto>(GetArena());
    _impl_.operand1_shape_ = reinterpret_cast<::xla::ShapeProto*>(p);
  }
  return _impl_.operand1_shape_;
}
inline ::xla::ShapeProto* PROTOBUF_NONNULL GpuConvDescriptorProto::mutable_operand1_shape()
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  _impl_._has_bits_[0] |= 0x00000004u;
  ::xla::ShapeProto* _msg = _internal_mutable_operand1_shape();
  // @@protoc_insertion_point(field_mutable:xla.gpu.GpuConvDescriptorProto.operand1_shape)
  return _msg;
}
inline void GpuConvDescriptorProto::set_allocated_operand1_shape(::xla::ShapeProto* 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_.operand1_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] |= 0x00000004u;
  } else {
    _impl_._has_bits_[0] &= ~0x00000004u;
  }

  _impl_.operand1_shape_ = reinterpret_cast<::xla::ShapeProto*>(value);
  // @@protoc_insertion_point(field_set_allocated:xla.gpu.GpuConvDescriptorProto.operand1_shape)
}

// .xla.ShapeProto result_shape = 5;
inline bool GpuConvDescriptorProto::has_result_shape() const {
  bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0;
  PROTOBUF_ASSUME(!value || _impl_.result_shape_ != nullptr);
  return value;
}
inline const ::xla::ShapeProto& GpuConvDescriptorProto::_internal_result_shape() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  const ::xla::ShapeProto* p = _impl_.result_shape_;
  return p != nullptr ? *p : reinterpret_cast<const ::xla::ShapeProto&>(::xla::_ShapeProto_default_instance_);
}
inline const ::xla::ShapeProto& GpuConvDescriptorProto::result_shape() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_get:xla.gpu.GpuConvDescriptorProto.result_shape)
  return _internal_result_shape();
}
inline void GpuConvDescriptorProto::unsafe_arena_set_allocated_result_shape(
    ::xla::ShapeProto* PROTOBUF_NULLABLE value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (GetArena() == nullptr) {
    delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.result_shape_);
  }
  _impl_.result_shape_ = reinterpret_cast<::xla::ShapeProto*>(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.GpuConvDescriptorProto.result_shape)
}
inline ::xla::ShapeProto* PROTOBUF_NULLABLE GpuConvDescriptorProto::release_result_shape() {
  ::google::protobuf::internal::TSanWrite(&_impl_);

  _impl_._has_bits_[0] &= ~0x00000008u;
  ::xla::ShapeProto* released = _impl_.result_shape_;
  _impl_.result_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::ShapeProto* PROTOBUF_NULLABLE GpuConvDescriptorProto::unsafe_arena_release_result_shape() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  // @@protoc_insertion_point(field_release:xla.gpu.GpuConvDescriptorProto.result_shape)

  _impl_._has_bits_[0] &= ~0x00000008u;
  ::xla::ShapeProto* temp = _impl_.result_shape_;
  _impl_.result_shape_ = nullptr;
  return temp;
}
inline ::xla::ShapeProto* PROTOBUF_NONNULL GpuConvDescriptorProto::_internal_mutable_result_shape() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (_impl_.result_shape_ == nullptr) {
    auto* p = ::google::protobuf::Message::DefaultConstruct<::xla::ShapeProto>(GetArena());
    _impl_.result_shape_ = reinterpret_cast<::xla::ShapeProto*>(p);
  }
  return _impl_.result_shape_;
}
inline ::xla::ShapeProto* PROTOBUF_NONNULL GpuConvDescriptorProto::mutable_result_shape()
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  _impl_._has_bits_[0] |= 0x00000008u;
  ::xla::ShapeProto* _msg = _internal_mutable_result_shape();
  // @@protoc_insertion_point(field_mutable:xla.gpu.GpuConvDescriptorProto.result_shape)
  return _msg;
}
inline void GpuConvDescriptorProto::set_allocated_result_shape(::xla::ShapeProto* 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_.result_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] |= 0x00000008u;
  } else {
    _impl_._has_bits_[0] &= ~0x00000008u;
  }

  _impl_.result_shape_ = reinterpret_cast<::xla::ShapeProto*>(value);
  // @@protoc_insertion_point(field_set_allocated:xla.gpu.GpuConvDescriptorProto.result_shape)
}

// int64 scratch_size = 6;
inline void GpuConvDescriptorProto::clear_scratch_size() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.scratch_size_ = ::int64_t{0};
  _impl_._has_bits_[0] &= ~0x00000040u;
}
inline ::int64_t GpuConvDescriptorProto::scratch_size() const {
  // @@protoc_insertion_point(field_get:xla.gpu.GpuConvDescriptorProto.scratch_size)
  return _internal_scratch_size();
}
inline void GpuConvDescriptorProto::set_scratch_size(::int64_t value) {
  _internal_set_scratch_size(value);
  _impl_._has_bits_[0] |= 0x00000040u;
  // @@protoc_insertion_point(field_set:xla.gpu.GpuConvDescriptorProto.scratch_size)
}
inline ::int64_t GpuConvDescriptorProto::_internal_scratch_size() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.scratch_size_;
}
inline void GpuConvDescriptorProto::_internal_set_scratch_size(::int64_t value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.scratch_size_ = value;
}

// .xla.Window window = 7;
inline bool GpuConvDescriptorProto::has_window() const {
  bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0;
  PROTOBUF_ASSUME(!value || _impl_.window_ != nullptr);
  return value;
}
inline const ::xla::Window& GpuConvDescriptorProto::_internal_window() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  const ::xla::Window* p = _impl_.window_;
  return p != nullptr ? *p : reinterpret_cast<const ::xla::Window&>(::xla::_Window_default_instance_);
}
inline const ::xla::Window& GpuConvDescriptorProto::window() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_get:xla.gpu.GpuConvDescriptorProto.window)
  return _internal_window();
}
inline void GpuConvDescriptorProto::unsafe_arena_set_allocated_window(
    ::xla::Window* PROTOBUF_NULLABLE value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (GetArena() == nullptr) {
    delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.window_);
  }
  _impl_.window_ = reinterpret_cast<::xla::Window*>(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.GpuConvDescriptorProto.window)
}
inline ::xla::Window* PROTOBUF_NULLABLE GpuConvDescriptorProto::release_window() {
  ::google::protobuf::internal::TSanWrite(&_impl_);

  _impl_._has_bits_[0] &= ~0x00000010u;
  ::xla::Window* released = _impl_.window_;
  _impl_.window_ = 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::Window* PROTOBUF_NULLABLE GpuConvDescriptorProto::unsafe_arena_release_window() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  // @@protoc_insertion_point(field_release:xla.gpu.GpuConvDescriptorProto.window)

  _impl_._has_bits_[0] &= ~0x00000010u;
  ::xla::Window* temp = _impl_.window_;
  _impl_.window_ = nullptr;
  return temp;
}
inline ::xla::Window* PROTOBUF_NONNULL GpuConvDescriptorProto::_internal_mutable_window() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (_impl_.window_ == nullptr) {
    auto* p = ::google::protobuf::Message::DefaultConstruct<::xla::Window>(GetArena());
    _impl_.window_ = reinterpret_cast<::xla::Window*>(p);
  }
  return _impl_.window_;
}
inline ::xla::Window* PROTOBUF_NONNULL GpuConvDescriptorProto::mutable_window()
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  _impl_._has_bits_[0] |= 0x00000010u;
  ::xla::Window* _msg = _internal_mutable_window();
  // @@protoc_insertion_point(field_mutable:xla.gpu.GpuConvDescriptorProto.window)
  return _msg;
}
inline void GpuConvDescriptorProto::set_allocated_window(::xla::Window* 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_.window_);
  }

  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_.window_ = reinterpret_cast<::xla::Window*>(value);
  // @@protoc_insertion_point(field_set_allocated:xla.gpu.GpuConvDescriptorProto.window)
}

// .xla.ConvolutionDimensionNumbers dnums = 8;
inline bool GpuConvDescriptorProto::has_dnums() const {
  bool value = (_impl_._has_bits_[0] & 0x00000020u) != 0;
  PROTOBUF_ASSUME(!value || _impl_.dnums_ != nullptr);
  return value;
}
inline const ::xla::ConvolutionDimensionNumbers& GpuConvDescriptorProto::_internal_dnums() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  const ::xla::ConvolutionDimensionNumbers* p = _impl_.dnums_;
  return p != nullptr ? *p : reinterpret_cast<const ::xla::ConvolutionDimensionNumbers&>(::xla::_ConvolutionDimensionNumbers_default_instance_);
}
inline const ::xla::ConvolutionDimensionNumbers& GpuConvDescriptorProto::dnums() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  // @@protoc_insertion_point(field_get:xla.gpu.GpuConvDescriptorProto.dnums)
  return _internal_dnums();
}
inline void GpuConvDescriptorProto::unsafe_arena_set_allocated_dnums(
    ::xla::ConvolutionDimensionNumbers* PROTOBUF_NULLABLE value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (GetArena() == nullptr) {
    delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.dnums_);
  }
  _impl_.dnums_ = reinterpret_cast<::xla::ConvolutionDimensionNumbers*>(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.GpuConvDescriptorProto.dnums)
}
inline ::xla::ConvolutionDimensionNumbers* PROTOBUF_NULLABLE GpuConvDescriptorProto::release_dnums() {
  ::google::protobuf::internal::TSanWrite(&_impl_);

  _impl_._has_bits_[0] &= ~0x00000020u;
  ::xla::ConvolutionDimensionNumbers* released = _impl_.dnums_;
  _impl_.dnums_ = 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::ConvolutionDimensionNumbers* PROTOBUF_NULLABLE GpuConvDescriptorProto::unsafe_arena_release_dnums() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  // @@protoc_insertion_point(field_release:xla.gpu.GpuConvDescriptorProto.dnums)

  _impl_._has_bits_[0] &= ~0x00000020u;
  ::xla::ConvolutionDimensionNumbers* temp = _impl_.dnums_;
  _impl_.dnums_ = nullptr;
  return temp;
}
inline ::xla::ConvolutionDimensionNumbers* PROTOBUF_NONNULL GpuConvDescriptorProto::_internal_mutable_dnums() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  if (_impl_.dnums_ == nullptr) {
    auto* p = ::google::protobuf::Message::DefaultConstruct<::xla::ConvolutionDimensionNumbers>(GetArena());
    _impl_.dnums_ = reinterpret_cast<::xla::ConvolutionDimensionNumbers*>(p);
  }
  return _impl_.dnums_;
}
inline ::xla::ConvolutionDimensionNumbers* PROTOBUF_NONNULL GpuConvDescriptorProto::mutable_dnums()
    ABSL_ATTRIBUTE_LIFETIME_BOUND {
  _impl_._has_bits_[0] |= 0x00000020u;
  ::xla::ConvolutionDimensionNumbers* _msg = _internal_mutable_dnums();
  // @@protoc_insertion_point(field_mutable:xla.gpu.GpuConvDescriptorProto.dnums)
  return _msg;
}
inline void GpuConvDescriptorProto::set_allocated_dnums(::xla::ConvolutionDimensionNumbers* 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_.dnums_);
  }

  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_.dnums_ = reinterpret_cast<::xla::ConvolutionDimensionNumbers*>(value);
  // @@protoc_insertion_point(field_set_allocated:xla.gpu.GpuConvDescriptorProto.dnums)
}

// int64 feature_group_count = 9;
inline void GpuConvDescriptorProto::clear_feature_group_count() {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.feature_group_count_ = ::int64_t{0};
  _impl_._has_bits_[0] &= ~0x00000080u;
}
inline ::int64_t GpuConvDescriptorProto::feature_group_count() const {
  // @@protoc_insertion_point(field_get:xla.gpu.GpuConvDescriptorProto.feature_group_count)
  return _internal_feature_group_count();
}
inline void GpuConvDescriptorProto::set_feature_group_count(::int64_t value) {
  _internal_set_feature_group_count(value);
  _impl_._has_bits_[0] |= 0x00000080u;
  // @@protoc_insertion_point(field_set:xla.gpu.GpuConvDescriptorProto.feature_group_count)
}
inline ::int64_t GpuConvDescriptorProto::_internal_feature_group_count() const {
  ::google::protobuf::internal::TSanRead(&_impl_);
  return _impl_.feature_group_count_;
}
inline void GpuConvDescriptorProto::_internal_set_feature_group_count(::int64_t value) {
  ::google::protobuf::internal::TSanWrite(&_impl_);
  _impl_.feature_group_count_ = value;
}

#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_5fconv_5frunner_2eproto_2epb_2eh
