// device/bluetooth/public/mojom/gatt_service_error_code.mojom-data-view.h is auto generated by mojom_bindings_generator.py, do not edit

// Copyright 2025 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// This file defines XDataView for type traits and can be included in
// _mojom_traits.h definitions but otherwise please use .mojom-forward.h,
// .mojom-shared.h or .mojom.h.

// IWYU pragma: private
// IWYU pragma: friend "traits"

#ifndef DEVICE_BLUETOOTH_PUBLIC_MOJOM_GATT_SERVICE_ERROR_CODE_MOJOM_DATA_VIEW_H_
#define DEVICE_BLUETOOTH_PUBLIC_MOJOM_GATT_SERVICE_ERROR_CODE_MOJOM_DATA_VIEW_H_

#include <stdint.h>

#include <functional>
#include <iosfwd>
#include <type_traits>
#include <utility>

#include "device/bluetooth/public/mojom/gatt_service_error_code.mojom-shared-internal.h"


namespace bluetooth::mojom {


}  // bluetooth::mojom


namespace mojo {
namespace internal {

}  // namespace internal
}  // namespace mojo


namespace bluetooth::mojom {


enum class GattServiceErrorCode : int32_t {
  
  kUnknown = 0,
  
  kFailed = 1,
  
  kInProgress = 2,
  
  kInvalidLength = 3,
  
  kNotPermitted = 4,
  
  kNotAuthorized = 5,
  
  kNotPaired = 6,
  
  kNotSupported = 7,
  kMinValue = 0,
  kMaxValue = 7,
};

 std::ostream& operator<<(std::ostream& os, GattServiceErrorCode value);
inline bool IsKnownEnumValue(GattServiceErrorCode value) {
  return internal::GattServiceErrorCode_Data::IsKnownValue(
      static_cast<int32_t>(value));
}

// Returns true if the enum has an infallible conversion from the mojom enum.
consteval bool HasInfallibleConversion(GattServiceErrorCode) {
  return true;
}


}  // bluetooth::mojom

#endif  // DEVICE_BLUETOOTH_PUBLIC_MOJOM_GATT_SERVICE_ERROR_CODE_MOJOM_DATA_VIEW_H_