|
// <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
{
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpExportLogsPartialSuccessJson>? _OtlpExportLogsPartialSuccessJson;
/// <summary>
/// Defines the source generated JSON serialization contract metadata for a given type.
/// </summary>
#nullable disable annotations // Marking the property type as nullable-oblivious.
public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpExportLogsPartialSuccessJson> OtlpExportLogsPartialSuccessJson
#nullable enable annotations
{
get => _OtlpExportLogsPartialSuccessJson ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpExportLogsPartialSuccessJson>)Options.GetTypeInfo(typeof(global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpExportLogsPartialSuccessJson));
}
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpExportLogsPartialSuccessJson> Create_OtlpExportLogsPartialSuccessJson(global::System.Text.Json.JsonSerializerOptions options)
{
if (!TryGetTypeInfoForRuntimeCustomConverter<global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpExportLogsPartialSuccessJson>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpExportLogsPartialSuccessJson> jsonTypeInfo))
{
var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpExportLogsPartialSuccessJson>
{
ObjectCreator = () => new global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpExportLogsPartialSuccessJson(),
ObjectWithParameterizedConstructorCreator = null,
PropertyMetadataInitializer = _ => OtlpExportLogsPartialSuccessJsonPropInit(options),
ConstructorParameterMetadataInitializer = null,
ConstructorAttributeProviderFactory = static () => typeof(global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpExportLogsPartialSuccessJson).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null),
SerializeHandler = null,
};
jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpExportLogsPartialSuccessJson>(options, objectInfo);
jsonTypeInfo.NumberHandling = null;
}
jsonTypeInfo.OriginatingResolver = this;
return jsonTypeInfo;
}
private static global::System.Text.Json.Serialization.Metadata.JsonPropertyInfo[] OtlpExportLogsPartialSuccessJsonPropInit(global::System.Text.Json.JsonSerializerOptions options)
{
var properties = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfo[2];
var info0 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<long>
{
IsProperty = true,
IsPublic = true,
IsVirtual = false,
DeclaringType = typeof(global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpExportLogsPartialSuccessJson),
Converter = null,
Getter = static obj => ((global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpExportLogsPartialSuccessJson)obj).RejectedLogRecords,
Setter = static (obj, value) => ((global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpExportLogsPartialSuccessJson)obj).RejectedLogRecords = value!,
IgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingDefault,
HasJsonInclude = false,
IsExtensionData = false,
NumberHandling = global::System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString | global::System.Text.Json.Serialization.JsonNumberHandling.WriteAsString,
PropertyName = "RejectedLogRecords",
JsonPropertyName = "rejectedLogRecords",
AttributeProviderFactory = static () => typeof(global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpExportLogsPartialSuccessJson).GetProperty("RejectedLogRecords", InstanceMemberBindingFlags, null, typeof(long), global::System.Array.Empty<global::System.Type>(), null),
};
properties[0] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<long>(options, info0);
var info1 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<string>
{
IsProperty = true,
IsPublic = true,
IsVirtual = false,
DeclaringType = typeof(global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpExportLogsPartialSuccessJson),
Converter = null,
Getter = static obj => ((global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpExportLogsPartialSuccessJson)obj).ErrorMessage,
Setter = static (obj, value) => ((global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpExportLogsPartialSuccessJson)obj).ErrorMessage = value!,
IgnoreCondition = null,
HasJsonInclude = false,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "ErrorMessage",
JsonPropertyName = "errorMessage",
AttributeProviderFactory = static () => typeof(global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpExportLogsPartialSuccessJson).GetProperty("ErrorMessage", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
};
properties[1] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<string>(options, info1);
return properties;
}
}
}
|