Internal change

PiperOrigin-RevId: 380848866
This commit is contained in:
hai007
2021-06-22 11:09:32 -07:00
committed by Copybara-Service
parent 56d519c739
commit 2e853156dc
1362 changed files with 960111 additions and 0 deletions
@@ -0,0 +1,112 @@
// Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.210505.3
#ifndef WINRT_Windows_System_Diagnostics_Telemetry_0_H
#define WINRT_Windows_System_Diagnostics_Telemetry_0_H
WINRT_EXPORT namespace winrt::Windows::System::Diagnostics::Telemetry
{
enum class PlatformTelemetryRegistrationStatus : int32_t
{
Success = 0,
SettingsOutOfRange = 1,
UnknownFailure = 2,
};
struct IPlatformTelemetryClientStatics;
struct IPlatformTelemetryRegistrationResult;
struct IPlatformTelemetryRegistrationSettings;
struct PlatformTelemetryClient;
struct PlatformTelemetryRegistrationResult;
struct PlatformTelemetryRegistrationSettings;
}
namespace winrt::impl
{
template <> struct category<winrt::Windows::System::Diagnostics::Telemetry::IPlatformTelemetryClientStatics>{ using type = interface_category; };
template <> struct category<winrt::Windows::System::Diagnostics::Telemetry::IPlatformTelemetryRegistrationResult>{ using type = interface_category; };
template <> struct category<winrt::Windows::System::Diagnostics::Telemetry::IPlatformTelemetryRegistrationSettings>{ using type = interface_category; };
template <> struct category<winrt::Windows::System::Diagnostics::Telemetry::PlatformTelemetryClient>{ using type = class_category; };
template <> struct category<winrt::Windows::System::Diagnostics::Telemetry::PlatformTelemetryRegistrationResult>{ using type = class_category; };
template <> struct category<winrt::Windows::System::Diagnostics::Telemetry::PlatformTelemetryRegistrationSettings>{ using type = class_category; };
template <> struct category<winrt::Windows::System::Diagnostics::Telemetry::PlatformTelemetryRegistrationStatus>{ using type = enum_category; };
template <> inline constexpr auto& name_v<winrt::Windows::System::Diagnostics::Telemetry::PlatformTelemetryClient> = L"Windows.System.Diagnostics.Telemetry.PlatformTelemetryClient";
template <> inline constexpr auto& name_v<winrt::Windows::System::Diagnostics::Telemetry::PlatformTelemetryRegistrationResult> = L"Windows.System.Diagnostics.Telemetry.PlatformTelemetryRegistrationResult";
template <> inline constexpr auto& name_v<winrt::Windows::System::Diagnostics::Telemetry::PlatformTelemetryRegistrationSettings> = L"Windows.System.Diagnostics.Telemetry.PlatformTelemetryRegistrationSettings";
template <> inline constexpr auto& name_v<winrt::Windows::System::Diagnostics::Telemetry::PlatformTelemetryRegistrationStatus> = L"Windows.System.Diagnostics.Telemetry.PlatformTelemetryRegistrationStatus";
template <> inline constexpr auto& name_v<winrt::Windows::System::Diagnostics::Telemetry::IPlatformTelemetryClientStatics> = L"Windows.System.Diagnostics.Telemetry.IPlatformTelemetryClientStatics";
template <> inline constexpr auto& name_v<winrt::Windows::System::Diagnostics::Telemetry::IPlatformTelemetryRegistrationResult> = L"Windows.System.Diagnostics.Telemetry.IPlatformTelemetryRegistrationResult";
template <> inline constexpr auto& name_v<winrt::Windows::System::Diagnostics::Telemetry::IPlatformTelemetryRegistrationSettings> = L"Windows.System.Diagnostics.Telemetry.IPlatformTelemetryRegistrationSettings";
template <> inline constexpr guid guid_v<winrt::Windows::System::Diagnostics::Telemetry::IPlatformTelemetryClientStatics>{ 0x9BF3F25D,0xD5C3,0x4EEA,{ 0x8D,0xBE,0x9C,0x8D,0xBB,0x0D,0x9D,0x8F } }; // 9BF3F25D-D5C3-4EEA-8DBE-9C8DBB0D9D8F
template <> inline constexpr guid guid_v<winrt::Windows::System::Diagnostics::Telemetry::IPlatformTelemetryRegistrationResult>{ 0x4D8518AB,0x2292,0x49BD,{ 0xA1,0x5A,0x3D,0x71,0xD2,0x14,0x51,0x12 } }; // 4D8518AB-2292-49BD-A15A-3D71D2145112
template <> inline constexpr guid guid_v<winrt::Windows::System::Diagnostics::Telemetry::IPlatformTelemetryRegistrationSettings>{ 0x819A8582,0xCA19,0x415E,{ 0xBB,0x79,0x9C,0x22,0x4B,0xFA,0x3A,0x73 } }; // 819A8582-CA19-415E-BB79-9C224BFA3A73
template <> struct default_interface<winrt::Windows::System::Diagnostics::Telemetry::PlatformTelemetryRegistrationResult>{ using type = winrt::Windows::System::Diagnostics::Telemetry::IPlatformTelemetryRegistrationResult; };
template <> struct default_interface<winrt::Windows::System::Diagnostics::Telemetry::PlatformTelemetryRegistrationSettings>{ using type = winrt::Windows::System::Diagnostics::Telemetry::IPlatformTelemetryRegistrationSettings; };
template <> struct abi<winrt::Windows::System::Diagnostics::Telemetry::IPlatformTelemetryClientStatics>
{
struct __declspec(novtable) type : inspectable_abi
{
virtual int32_t __stdcall Register(void*, void**) noexcept = 0;
virtual int32_t __stdcall RegisterWithSettings(void*, void*, void**) noexcept = 0;
};
};
template <> struct abi<winrt::Windows::System::Diagnostics::Telemetry::IPlatformTelemetryRegistrationResult>
{
struct __declspec(novtable) type : inspectable_abi
{
virtual int32_t __stdcall get_Status(int32_t*) noexcept = 0;
};
};
template <> struct abi<winrt::Windows::System::Diagnostics::Telemetry::IPlatformTelemetryRegistrationSettings>
{
struct __declspec(novtable) type : inspectable_abi
{
virtual int32_t __stdcall get_StorageSize(uint32_t*) noexcept = 0;
virtual int32_t __stdcall put_StorageSize(uint32_t) noexcept = 0;
virtual int32_t __stdcall get_UploadQuotaSize(uint32_t*) noexcept = 0;
virtual int32_t __stdcall put_UploadQuotaSize(uint32_t) noexcept = 0;
};
};
template <typename D>
struct consume_Windows_System_Diagnostics_Telemetry_IPlatformTelemetryClientStatics
{
WINRT_IMPL_AUTO(winrt::Windows::System::Diagnostics::Telemetry::PlatformTelemetryRegistrationResult) Register(param::hstring const& id) const;
WINRT_IMPL_AUTO(winrt::Windows::System::Diagnostics::Telemetry::PlatformTelemetryRegistrationResult) Register(param::hstring const& id, winrt::Windows::System::Diagnostics::Telemetry::PlatformTelemetryRegistrationSettings const& settings) const;
};
template <> struct consume<winrt::Windows::System::Diagnostics::Telemetry::IPlatformTelemetryClientStatics>
{
template <typename D> using type = consume_Windows_System_Diagnostics_Telemetry_IPlatformTelemetryClientStatics<D>;
};
template <typename D>
struct consume_Windows_System_Diagnostics_Telemetry_IPlatformTelemetryRegistrationResult
{
[[nodiscard]] WINRT_IMPL_AUTO(winrt::Windows::System::Diagnostics::Telemetry::PlatformTelemetryRegistrationStatus) Status() const;
};
template <> struct consume<winrt::Windows::System::Diagnostics::Telemetry::IPlatformTelemetryRegistrationResult>
{
template <typename D> using type = consume_Windows_System_Diagnostics_Telemetry_IPlatformTelemetryRegistrationResult<D>;
};
template <typename D>
struct consume_Windows_System_Diagnostics_Telemetry_IPlatformTelemetryRegistrationSettings
{
[[nodiscard]] WINRT_IMPL_AUTO(uint32_t) StorageSize() const;
WINRT_IMPL_AUTO(void) StorageSize(uint32_t value) const;
[[nodiscard]] WINRT_IMPL_AUTO(uint32_t) UploadQuotaSize() const;
WINRT_IMPL_AUTO(void) UploadQuotaSize(uint32_t value) const;
};
template <> struct consume<winrt::Windows::System::Diagnostics::Telemetry::IPlatformTelemetryRegistrationSettings>
{
template <typename D> using type = consume_Windows_System_Diagnostics_Telemetry_IPlatformTelemetryRegistrationSettings<D>;
};
}
#endif