mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-15 15:16:12 -04:00
331 lines
12 KiB
C++
331 lines
12 KiB
C++
// WARNING: Please don't edit this file. It was generated by C++/WinRT
|
|
// v2.0.250303.1
|
|
|
|
#pragma once
|
|
#ifndef WINRT_Microsoft_Windows_AI_ContentSafety_0_H
|
|
#define WINRT_Microsoft_Windows_AI_ContentSafety_0_H
|
|
WINRT_EXPORT namespace winrt::Microsoft::Windows::AI::ContentSafety {
|
|
enum class SeverityLevel : int32_t {
|
|
Minimum = 10,
|
|
Low = 11,
|
|
Medium = 12,
|
|
High = 13,
|
|
};
|
|
struct IContentFilterOptions;
|
|
struct IImageContentFilterSeverity;
|
|
struct IImageContentFilterSeverityFactory;
|
|
struct ITextContentFilterSeverity;
|
|
struct ITextContentFilterSeverityFactory;
|
|
struct ContentFilterOptions;
|
|
struct ImageContentFilterSeverity;
|
|
struct TextContentFilterSeverity;
|
|
struct ContentSafetyContract;
|
|
}
|
|
namespace winrt::impl {
|
|
template <>
|
|
struct category<
|
|
winrt::Microsoft::Windows::AI::ContentSafety::IContentFilterOptions> {
|
|
using type = interface_category;
|
|
};
|
|
template <>
|
|
struct category<
|
|
winrt::Microsoft::Windows::AI::ContentSafety::IImageContentFilterSeverity> {
|
|
using type = interface_category;
|
|
};
|
|
template <>
|
|
struct category<winrt::Microsoft::Windows::AI::ContentSafety::
|
|
IImageContentFilterSeverityFactory> {
|
|
using type = interface_category;
|
|
};
|
|
template <>
|
|
struct category<
|
|
winrt::Microsoft::Windows::AI::ContentSafety::ITextContentFilterSeverity> {
|
|
using type = interface_category;
|
|
};
|
|
template <>
|
|
struct category<winrt::Microsoft::Windows::AI::ContentSafety::
|
|
ITextContentFilterSeverityFactory> {
|
|
using type = interface_category;
|
|
};
|
|
template <>
|
|
struct category<
|
|
winrt::Microsoft::Windows::AI::ContentSafety::ContentFilterOptions> {
|
|
using type = class_category;
|
|
};
|
|
template <>
|
|
struct category<
|
|
winrt::Microsoft::Windows::AI::ContentSafety::ImageContentFilterSeverity> {
|
|
using type = class_category;
|
|
};
|
|
template <>
|
|
struct category<
|
|
winrt::Microsoft::Windows::AI::ContentSafety::TextContentFilterSeverity> {
|
|
using type = class_category;
|
|
};
|
|
template <>
|
|
struct category<winrt::Microsoft::Windows::AI::ContentSafety::SeverityLevel> {
|
|
using type = enum_category;
|
|
};
|
|
template <>
|
|
inline constexpr auto&
|
|
name_v<winrt::Microsoft::Windows::AI::ContentSafety::ContentFilterOptions> =
|
|
L"Microsoft.Windows.AI.ContentSafety.ContentFilterOptions";
|
|
template <>
|
|
inline constexpr auto& name_v<
|
|
winrt::Microsoft::Windows::AI::ContentSafety::ImageContentFilterSeverity> =
|
|
L"Microsoft.Windows.AI.ContentSafety.ImageContentFilterSeverity";
|
|
template <>
|
|
inline constexpr auto& name_v<
|
|
winrt::Microsoft::Windows::AI::ContentSafety::TextContentFilterSeverity> =
|
|
L"Microsoft.Windows.AI.ContentSafety.TextContentFilterSeverity";
|
|
template <>
|
|
inline constexpr auto&
|
|
name_v<winrt::Microsoft::Windows::AI::ContentSafety::SeverityLevel> =
|
|
L"Microsoft.Windows.AI.ContentSafety.SeverityLevel";
|
|
template <>
|
|
inline constexpr auto& name_v<
|
|
winrt::Microsoft::Windows::AI::ContentSafety::IContentFilterOptions> =
|
|
L"Microsoft.Windows.AI.ContentSafety.IContentFilterOptions";
|
|
template <>
|
|
inline constexpr auto& name_v<
|
|
winrt::Microsoft::Windows::AI::ContentSafety::IImageContentFilterSeverity> =
|
|
L"Microsoft.Windows.AI.ContentSafety.IImageContentFilterSeverity";
|
|
template <>
|
|
inline constexpr auto& name_v<winrt::Microsoft::Windows::AI::ContentSafety::
|
|
IImageContentFilterSeverityFactory> =
|
|
L"Microsoft.Windows.AI.ContentSafety.IImageContentFilterSeverityFactory";
|
|
template <>
|
|
inline constexpr auto& name_v<
|
|
winrt::Microsoft::Windows::AI::ContentSafety::ITextContentFilterSeverity> =
|
|
L"Microsoft.Windows.AI.ContentSafety.ITextContentFilterSeverity";
|
|
template <>
|
|
inline constexpr auto& name_v<winrt::Microsoft::Windows::AI::ContentSafety::
|
|
ITextContentFilterSeverityFactory> =
|
|
L"Microsoft.Windows.AI.ContentSafety.ITextContentFilterSeverityFactory";
|
|
template <>
|
|
inline constexpr auto& name_v<
|
|
winrt::Microsoft::Windows::AI::ContentSafety::ContentSafetyContract> =
|
|
L"Microsoft.Windows.AI.ContentSafety.ContentSafetyContract";
|
|
template <>
|
|
inline constexpr guid
|
|
guid_v<winrt::Microsoft::Windows::AI::ContentSafety::IContentFilterOptions>{
|
|
0x6808BE9F,
|
|
0x80D2,
|
|
0x5136,
|
|
{0x8A, 0x8A, 0x1F, 0x5C, 0x52, 0xC8, 0x24,
|
|
0xAD}}; // 6808BE9F-80D2-5136-8A8A-1F5C52C824AD
|
|
template <>
|
|
inline constexpr guid guid_v<
|
|
winrt::Microsoft::Windows::AI::ContentSafety::IImageContentFilterSeverity>{
|
|
0xF1563582,
|
|
0xC66A,
|
|
0x5861,
|
|
{0x99, 0x95, 0x14, 0x40, 0xB0, 0x51, 0x91,
|
|
0xAC}}; // F1563582-C66A-5861-9995-1440B05191AC
|
|
template <>
|
|
inline constexpr guid guid_v<winrt::Microsoft::Windows::AI::ContentSafety::
|
|
IImageContentFilterSeverityFactory>{
|
|
0xEAD11457,
|
|
0x81B1,
|
|
0x5B81,
|
|
{0x9C, 0xA3, 0xC5, 0xB0, 0x4B, 0x4D, 0xF0,
|
|
0x43}}; // EAD11457-81B1-5B81-9CA3-C5B04B4DF043
|
|
template <>
|
|
inline constexpr guid guid_v<
|
|
winrt::Microsoft::Windows::AI::ContentSafety::ITextContentFilterSeverity>{
|
|
0x68C1EE47,
|
|
0xC35C,
|
|
0x5F4C,
|
|
{0xA6, 0x47, 0xB0, 0xC0, 0xF6, 0x4A, 0xA0,
|
|
0xD5}}; // 68C1EE47-C35C-5F4C-A647-B0C0F64AA0D5
|
|
template <>
|
|
inline constexpr guid guid_v<winrt::Microsoft::Windows::AI::ContentSafety::
|
|
ITextContentFilterSeverityFactory>{
|
|
0xE0CA501E,
|
|
0x4004,
|
|
0x501E,
|
|
{0x89, 0x84, 0x44, 0x2D, 0x09, 0x16, 0x07,
|
|
0xD4}}; // E0CA501E-4004-501E-8984-442D091607D4
|
|
template <>
|
|
struct default_interface<
|
|
winrt::Microsoft::Windows::AI::ContentSafety::ContentFilterOptions> {
|
|
using type =
|
|
winrt::Microsoft::Windows::AI::ContentSafety::IContentFilterOptions;
|
|
};
|
|
template <>
|
|
struct default_interface<
|
|
winrt::Microsoft::Windows::AI::ContentSafety::ImageContentFilterSeverity> {
|
|
using type =
|
|
winrt::Microsoft::Windows::AI::ContentSafety::IImageContentFilterSeverity;
|
|
};
|
|
template <>
|
|
struct default_interface<
|
|
winrt::Microsoft::Windows::AI::ContentSafety::TextContentFilterSeverity> {
|
|
using type =
|
|
winrt::Microsoft::Windows::AI::ContentSafety::ITextContentFilterSeverity;
|
|
};
|
|
template <>
|
|
struct abi<
|
|
winrt::Microsoft::Windows::AI::ContentSafety::IContentFilterOptions> {
|
|
struct WINRT_IMPL_NOVTABLE type : inspectable_abi {
|
|
virtual int32_t __stdcall get_PromptMaxAllowedSeverityLevel(
|
|
void**) noexcept = 0;
|
|
virtual int32_t __stdcall put_PromptMaxAllowedSeverityLevel(
|
|
void*) noexcept = 0;
|
|
virtual int32_t __stdcall get_ResponseMaxAllowedSeverityLevel(
|
|
void**) noexcept = 0;
|
|
virtual int32_t __stdcall put_ResponseMaxAllowedSeverityLevel(
|
|
void*) noexcept = 0;
|
|
virtual int32_t __stdcall get_ImageMaxAllowedSeverityLevel(
|
|
void**) noexcept = 0;
|
|
virtual int32_t __stdcall put_ImageMaxAllowedSeverityLevel(
|
|
void*) noexcept = 0;
|
|
};
|
|
};
|
|
template <>
|
|
struct abi<
|
|
winrt::Microsoft::Windows::AI::ContentSafety::IImageContentFilterSeverity> {
|
|
struct WINRT_IMPL_NOVTABLE type : inspectable_abi {
|
|
virtual int32_t __stdcall get_AdultContentLevel(int32_t*) noexcept = 0;
|
|
virtual int32_t __stdcall put_AdultContentLevel(int32_t) noexcept = 0;
|
|
virtual int32_t __stdcall get_RacyContentLevel(int32_t*) noexcept = 0;
|
|
virtual int32_t __stdcall put_RacyContentLevel(int32_t) noexcept = 0;
|
|
virtual int32_t __stdcall get_GoryContentLevel(int32_t*) noexcept = 0;
|
|
virtual int32_t __stdcall put_GoryContentLevel(int32_t) noexcept = 0;
|
|
virtual int32_t __stdcall get_ViolentContentLevel(int32_t*) noexcept = 0;
|
|
virtual int32_t __stdcall put_ViolentContentLevel(int32_t) noexcept = 0;
|
|
};
|
|
};
|
|
template <>
|
|
struct abi<winrt::Microsoft::Windows::AI::ContentSafety::
|
|
IImageContentFilterSeverityFactory> {
|
|
struct WINRT_IMPL_NOVTABLE type : inspectable_abi {
|
|
virtual int32_t __stdcall CreateInstance(int32_t, void**) noexcept = 0;
|
|
};
|
|
};
|
|
template <>
|
|
struct abi<
|
|
winrt::Microsoft::Windows::AI::ContentSafety::ITextContentFilterSeverity> {
|
|
struct WINRT_IMPL_NOVTABLE type : inspectable_abi {
|
|
virtual int32_t __stdcall get_Hate(int32_t*) noexcept = 0;
|
|
virtual int32_t __stdcall put_Hate(int32_t) noexcept = 0;
|
|
virtual int32_t __stdcall get_Sexual(int32_t*) noexcept = 0;
|
|
virtual int32_t __stdcall put_Sexual(int32_t) noexcept = 0;
|
|
virtual int32_t __stdcall get_Violent(int32_t*) noexcept = 0;
|
|
virtual int32_t __stdcall put_Violent(int32_t) noexcept = 0;
|
|
virtual int32_t __stdcall get_SelfHarm(int32_t*) noexcept = 0;
|
|
virtual int32_t __stdcall put_SelfHarm(int32_t) noexcept = 0;
|
|
};
|
|
};
|
|
template <>
|
|
struct abi<winrt::Microsoft::Windows::AI::ContentSafety::
|
|
ITextContentFilterSeverityFactory> {
|
|
struct WINRT_IMPL_NOVTABLE type : inspectable_abi {
|
|
virtual int32_t __stdcall CreateInstance(int32_t, void**) noexcept = 0;
|
|
};
|
|
};
|
|
template <typename D>
|
|
struct consume_Microsoft_Windows_AI_ContentSafety_IContentFilterOptions {
|
|
[[nodiscard]] auto PromptMaxAllowedSeverityLevel() const;
|
|
auto PromptMaxAllowedSeverityLevel(
|
|
winrt::Microsoft::Windows::AI::ContentSafety::
|
|
TextContentFilterSeverity const& value) const;
|
|
[[nodiscard]] auto ResponseMaxAllowedSeverityLevel() const;
|
|
auto ResponseMaxAllowedSeverityLevel(
|
|
winrt::Microsoft::Windows::AI::ContentSafety::
|
|
TextContentFilterSeverity const& value) const;
|
|
[[nodiscard]] auto ImageMaxAllowedSeverityLevel() const;
|
|
auto ImageMaxAllowedSeverityLevel(
|
|
winrt::Microsoft::Windows::AI::ContentSafety::
|
|
ImageContentFilterSeverity const& value) const;
|
|
};
|
|
template <>
|
|
struct consume<
|
|
winrt::Microsoft::Windows::AI::ContentSafety::IContentFilterOptions> {
|
|
template <typename D>
|
|
using type =
|
|
consume_Microsoft_Windows_AI_ContentSafety_IContentFilterOptions<D>;
|
|
};
|
|
template <typename D>
|
|
struct consume_Microsoft_Windows_AI_ContentSafety_IImageContentFilterSeverity {
|
|
[[nodiscard]] auto AdultContentLevel() const;
|
|
auto AdultContentLevel(
|
|
winrt::Microsoft::Windows::AI::ContentSafety::SeverityLevel const& value)
|
|
const;
|
|
[[nodiscard]] auto RacyContentLevel() const;
|
|
auto RacyContentLevel(
|
|
winrt::Microsoft::Windows::AI::ContentSafety::SeverityLevel const& value)
|
|
const;
|
|
[[nodiscard]] auto GoryContentLevel() const;
|
|
auto GoryContentLevel(
|
|
winrt::Microsoft::Windows::AI::ContentSafety::SeverityLevel const& value)
|
|
const;
|
|
[[nodiscard]] auto ViolentContentLevel() const;
|
|
auto ViolentContentLevel(
|
|
winrt::Microsoft::Windows::AI::ContentSafety::SeverityLevel const& value)
|
|
const;
|
|
};
|
|
template <>
|
|
struct consume<
|
|
winrt::Microsoft::Windows::AI::ContentSafety::IImageContentFilterSeverity> {
|
|
template <typename D>
|
|
using type =
|
|
consume_Microsoft_Windows_AI_ContentSafety_IImageContentFilterSeverity<D>;
|
|
};
|
|
template <typename D>
|
|
struct
|
|
consume_Microsoft_Windows_AI_ContentSafety_IImageContentFilterSeverityFactory {
|
|
auto CreateInstance(
|
|
winrt::Microsoft::Windows::AI::ContentSafety::SeverityLevel const&
|
|
severityForALlCategories) const;
|
|
};
|
|
template <>
|
|
struct consume<winrt::Microsoft::Windows::AI::ContentSafety::
|
|
IImageContentFilterSeverityFactory> {
|
|
template <typename D>
|
|
using type =
|
|
consume_Microsoft_Windows_AI_ContentSafety_IImageContentFilterSeverityFactory<
|
|
D>;
|
|
};
|
|
template <typename D>
|
|
struct consume_Microsoft_Windows_AI_ContentSafety_ITextContentFilterSeverity {
|
|
[[nodiscard]] auto Hate() const;
|
|
auto Hate(winrt::Microsoft::Windows::AI::ContentSafety::SeverityLevel const&
|
|
value) const;
|
|
[[nodiscard]] auto Sexual() const;
|
|
auto Sexual(winrt::Microsoft::Windows::AI::ContentSafety::SeverityLevel const&
|
|
value) const;
|
|
[[nodiscard]] auto Violent() const;
|
|
auto Violent(
|
|
winrt::Microsoft::Windows::AI::ContentSafety::SeverityLevel const& value)
|
|
const;
|
|
[[nodiscard]] auto SelfHarm() const;
|
|
auto SelfHarm(
|
|
winrt::Microsoft::Windows::AI::ContentSafety::SeverityLevel const& value)
|
|
const;
|
|
};
|
|
template <>
|
|
struct consume<
|
|
winrt::Microsoft::Windows::AI::ContentSafety::ITextContentFilterSeverity> {
|
|
template <typename D>
|
|
using type =
|
|
consume_Microsoft_Windows_AI_ContentSafety_ITextContentFilterSeverity<D>;
|
|
};
|
|
template <typename D>
|
|
struct
|
|
consume_Microsoft_Windows_AI_ContentSafety_ITextContentFilterSeverityFactory {
|
|
auto CreateInstance(
|
|
winrt::Microsoft::Windows::AI::ContentSafety::SeverityLevel const&
|
|
severityForAllCategories) const;
|
|
};
|
|
template <>
|
|
struct consume<winrt::Microsoft::Windows::AI::ContentSafety::
|
|
ITextContentFilterSeverityFactory> {
|
|
template <typename D>
|
|
using type =
|
|
consume_Microsoft_Windows_AI_ContentSafety_ITextContentFilterSeverityFactory<
|
|
D>;
|
|
};
|
|
} // namespace winrt::impl
|
|
#endif
|