|
// <auto-generated/>
#nullable enable annotations
#nullable disable warnings
// Suppress warnings about [Obsolete] member usage in generated code.
#pragma warning disable CS0612, CS0618
namespace Aspire.Dashboard.Otlp.Model.Serialization
{
internal sealed partial class OtlpJsonSerializerContext : global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver
{
/// <inheritdoc/>
public override global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo(global::System.Type type)
{
Options.TryGetTypeInfo(type, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? typeInfo);
return typeInfo;
}
global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver.GetTypeInfo(global::System.Type type, global::System.Text.Json.JsonSerializerOptions options)
{
if (type == typeof(bool))
{
return Create_Boolean(options);
}
if (type == typeof(bool?))
{
return Create_NullableBoolean(options);
}
if (type == typeof(double))
{
return Create_Double(options);
}
if (type == typeof(double?))
{
return Create_NullableDouble(options);
}
if (type == typeof(double[]))
{
return Create_DoubleArray(options);
}
if (type == typeof(global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpAnyValueJson))
{
return Create_OtlpAnyValueJson(options);
}
if (type == typeof(global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpAnyValueJson[]))
{
return Create_OtlpAnyValueJsonArray(options);
}
if (type == typeof(global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpArrayValueJson))
{
return Create_OtlpArrayValueJson(options);
}
if (type == typeof(global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpEntityRefJson))
{
return Create_OtlpEntityRefJson(options);
}
if (type == typeof(global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpEntityRefJson[]))
{
return Create_OtlpEntityRefJsonArray(options);
}
if (type == typeof(global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpExemplarJson))
{
return Create_OtlpExemplarJson(options);
}
if (type == typeof(global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpExemplarJson[]))
{
return Create_OtlpExemplarJsonArray(options);
}
if (type == typeof(global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpExponentialHistogramBucketsJson))
{
return Create_OtlpExponentialHistogramBucketsJson(options);
}
if (type == typeof(global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpExponentialHistogramDataPointJson))
{
return Create_OtlpExponentialHistogramDataPointJson(options);
}
if (type == typeof(global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpExponentialHistogramDataPointJson[]))
{
return Create_OtlpExponentialHistogramDataPointJsonArray(options);
}
if (type == typeof(global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpExponentialHistogramJson))
{
return Create_OtlpExponentialHistogramJson(options);
}
if (type == typeof(global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpExportLogsPartialSuccessJson))
{
return Create_OtlpExportLogsPartialSuccessJson(options);
}
if (type == typeof(global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpExportLogsServiceRequestJson))
{
return Create_OtlpExportLogsServiceRequestJson(options);
}
if (type == typeof(global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpExportLogsServiceResponseJson))
{
return Create_OtlpExportLogsServiceResponseJson(options);
}
if (type == typeof(global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpExportMetricsPartialSuccessJson))
{
return Create_OtlpExportMetricsPartialSuccessJson(options);
}
if (type == typeof(global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpExportMetricsServiceRequestJson))
{
return Create_OtlpExportMetricsServiceRequestJson(options);
}
if (type == typeof(global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpExportMetricsServiceResponseJson))
{
return Create_OtlpExportMetricsServiceResponseJson(options);
}
if (type == typeof(global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpExportTracePartialSuccessJson))
{
return Create_OtlpExportTracePartialSuccessJson(options);
}
if (type == typeof(global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpExportTraceServiceRequestJson))
{
return Create_OtlpExportTraceServiceRequestJson(options);
}
if (type == typeof(global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpExportTraceServiceResponseJson))
{
return Create_OtlpExportTraceServiceResponseJson(options);
}
if (type == typeof(global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpGaugeJson))
{
return Create_OtlpGaugeJson(options);
}
if (type == typeof(global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpHistogramDataPointJson))
{
return Create_OtlpHistogramDataPointJson(options);
}
if (type == typeof(global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpHistogramDataPointJson[]))
{
return Create_OtlpHistogramDataPointJsonArray(options);
}
if (type == typeof(global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpHistogramJson))
{
return Create_OtlpHistogramJson(options);
}
if (type == typeof(global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpInstrumentationScopeJson))
{
return Create_OtlpInstrumentationScopeJson(options);
}
if (type == typeof(global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpKeyValueJson))
{
return Create_OtlpKeyValueJson(options);
}
if (type == typeof(global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpKeyValueJson[]))
{
return Create_OtlpKeyValueJsonArray(options);
}
if (type == typeof(global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpKeyValueListJson))
{
return Create_OtlpKeyValueListJson(options);
}
if (type == typeof(global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpLogRecordJson))
{
return Create_OtlpLogRecordJson(options);
}
if (type == typeof(global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpLogRecordJson[]))
{
return Create_OtlpLogRecordJsonArray(options);
}
if (type == typeof(global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpLogsDataJson))
{
return Create_OtlpLogsDataJson(options);
}
if (type == typeof(global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpMetricJson))
{
return Create_OtlpMetricJson(options);
}
if (type == typeof(global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpMetricJson[]))
{
return Create_OtlpMetricJsonArray(options);
}
if (type == typeof(global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpMetricsDataJson))
{
return Create_OtlpMetricsDataJson(options);
}
if (type == typeof(global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpNumberDataPointJson))
{
return Create_OtlpNumberDataPointJson(options);
}
if (type == typeof(global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpNumberDataPointJson[]))
{
return Create_OtlpNumberDataPointJsonArray(options);
}
if (type == typeof(global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpResourceJson))
{
return Create_OtlpResourceJson(options);
}
if (type == typeof(global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpResourceLogsJson))
{
return Create_OtlpResourceLogsJson(options);
}
if (type == typeof(global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpResourceLogsJson[]))
{
return Create_OtlpResourceLogsJsonArray(options);
}
if (type == typeof(global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpResourceMetricsJson))
{
return Create_OtlpResourceMetricsJson(options);
}
if (type == typeof(global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpResourceMetricsJson[]))
{
return Create_OtlpResourceMetricsJsonArray(options);
}
if (type == typeof(global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpResourceSpansJson))
{
return Create_OtlpResourceSpansJson(options);
}
if (type == typeof(global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpResourceSpansJson[]))
{
return Create_OtlpResourceSpansJsonArray(options);
}
if (type == typeof(global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpScopeLogsJson))
{
return Create_OtlpScopeLogsJson(options);
}
if (type == typeof(global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpScopeLogsJson[]))
{
return Create_OtlpScopeLogsJsonArray(options);
}
if (type == typeof(global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpScopeMetricsJson))
{
return Create_OtlpScopeMetricsJson(options);
}
if (type == typeof(global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpScopeMetricsJson[]))
{
return Create_OtlpScopeMetricsJsonArray(options);
}
if (type == typeof(global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpScopeSpansJson))
{
return Create_OtlpScopeSpansJson(options);
}
if (type == typeof(global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpScopeSpansJson[]))
{
return Create_OtlpScopeSpansJsonArray(options);
}
if (type == typeof(global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpSpanEventJson))
{
return Create_OtlpSpanEventJson(options);
}
if (type == typeof(global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpSpanEventJson[]))
{
return Create_OtlpSpanEventJsonArray(options);
}
if (type == typeof(global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpSpanJson))
{
return Create_OtlpSpanJson(options);
}
if (type == typeof(global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpSpanJson[]))
{
return Create_OtlpSpanJsonArray(options);
}
if (type == typeof(global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpSpanLinkJson))
{
return Create_OtlpSpanLinkJson(options);
}
if (type == typeof(global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpSpanLinkJson[]))
{
return Create_OtlpSpanLinkJsonArray(options);
}
if (type == typeof(global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpSpanStatusJson))
{
return Create_OtlpSpanStatusJson(options);
}
if (type == typeof(global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpSumJson))
{
return Create_OtlpSumJson(options);
}
if (type == typeof(global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpSummaryDataPointJson))
{
return Create_OtlpSummaryDataPointJson(options);
}
if (type == typeof(global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpSummaryDataPointJson[]))
{
return Create_OtlpSummaryDataPointJsonArray(options);
}
if (type == typeof(global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpSummaryJson))
{
return Create_OtlpSummaryJson(options);
}
if (type == typeof(global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpTracesDataJson))
{
return Create_OtlpTracesDataJson(options);
}
if (type == typeof(global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpValueAtQuantileJson))
{
return Create_OtlpValueAtQuantileJson(options);
}
if (type == typeof(global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpValueAtQuantileJson[]))
{
return Create_OtlpValueAtQuantileJsonArray(options);
}
if (type == typeof(int))
{
return Create_Int32(options);
}
if (type == typeof(int?))
{
return Create_NullableInt32(options);
}
if (type == typeof(long))
{
return Create_Int64(options);
}
if (type == typeof(long?))
{
return Create_NullableInt64(options);
}
if (type == typeof(string))
{
return Create_String(options);
}
if (type == typeof(string[]))
{
return Create_StringArray(options);
}
if (type == typeof(uint))
{
return Create_UInt32(options);
}
if (type == typeof(uint?))
{
return Create_NullableUInt32(options);
}
if (type == typeof(ulong))
{
return Create_UInt64(options);
}
if (type == typeof(ulong?))
{
return Create_NullableUInt64(options);
}
return null;
}
}
}
|