// <auto-generated/>
#nullable enable annotations
#nullable disable warnings
// Suppress warnings about [Obsolete] member usage in generated code.
#pragma warning disable CS0612, CS0618
namespace Microsoft.NET.ProjectData.Tasks
{
internal sealed partial class ProjectDataBuildJsonSerializerContext
{
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.NET.ProjectData.ProjectDataBuildEventContextRecord>? _ProjectDataBuildEventContextRecord;
/// <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::Microsoft.NET.ProjectData.ProjectDataBuildEventContextRecord> ProjectDataBuildEventContextRecord
#nullable enable annotations
{
get => _ProjectDataBuildEventContextRecord ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.NET.ProjectData.ProjectDataBuildEventContextRecord>)Options.GetTypeInfo(typeof(global::Microsoft.NET.ProjectData.ProjectDataBuildEventContextRecord));
}
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.NET.ProjectData.ProjectDataBuildEventContextRecord> Create_ProjectDataBuildEventContextRecord(global::System.Text.Json.JsonSerializerOptions options)
{
if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.NET.ProjectData.ProjectDataBuildEventContextRecord>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.NET.ProjectData.ProjectDataBuildEventContextRecord> jsonTypeInfo))
{
var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.NET.ProjectData.ProjectDataBuildEventContextRecord>
{
ObjectCreator = () => new global::Microsoft.NET.ProjectData.ProjectDataBuildEventContextRecord(),
ObjectWithParameterizedConstructorCreator = null,
PropertyMetadataInitializer = _ => ProjectDataBuildEventContextRecordPropInit(options),
ConstructorParameterMetadataInitializer = null,
ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.NET.ProjectData.ProjectDataBuildEventContextRecord).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null),
SerializeHandler = ProjectDataBuildEventContextRecordSerializeHandler,
PolymorphismOptions = new global::System.Text.Json.Serialization.Metadata.JsonPolymorphismOptions(),
TypeClassifierFactory = null,
};
jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Microsoft.NET.ProjectData.ProjectDataBuildEventContextRecord>(options, objectInfo);
jsonTypeInfo.NumberHandling = null;
}
jsonTypeInfo.OriginatingResolver = this;
return jsonTypeInfo;
}
private static global::System.Text.Json.Serialization.Metadata.JsonPropertyInfo[] ProjectDataBuildEventContextRecordPropInit(global::System.Text.Json.JsonSerializerOptions options)
{
var properties = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfo[8];
var info0 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<int>
{
IsProperty = true,
IsPublic = true,
IsVirtual = false,
DeclaringType = typeof(global::Microsoft.NET.ProjectData.ProjectDataBuildEventContextRecord),
Converter = null,
Getter = static obj => ((global::Microsoft.NET.ProjectData.ProjectDataBuildEventContextRecord)obj).NodeId,
Setter = static (obj, value) => ((global::Microsoft.NET.ProjectData.ProjectDataBuildEventContextRecord)obj).NodeId = value!,
IgnoreCondition = null,
HasJsonInclude = false,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "NodeId",
JsonPropertyName = null,
AttributeProviderFactory = static () => typeof(global::Microsoft.NET.ProjectData.ProjectDataBuildEventContextRecord).GetProperty("NodeId", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null),
};
properties[0] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<int>(options, info0);
var info1 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<int>
{
IsProperty = true,
IsPublic = true,
IsVirtual = false,
DeclaringType = typeof(global::Microsoft.NET.ProjectData.ProjectDataBuildEventContextRecord),
Converter = null,
Getter = static obj => ((global::Microsoft.NET.ProjectData.ProjectDataBuildEventContextRecord)obj).ProjectContextId,
Setter = static (obj, value) => ((global::Microsoft.NET.ProjectData.ProjectDataBuildEventContextRecord)obj).ProjectContextId = value!,
IgnoreCondition = null,
HasJsonInclude = false,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "ProjectContextId",
JsonPropertyName = null,
AttributeProviderFactory = static () => typeof(global::Microsoft.NET.ProjectData.ProjectDataBuildEventContextRecord).GetProperty("ProjectContextId", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null),
};
properties[1] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<int>(options, info1);
var info2 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<int>
{
IsProperty = true,
IsPublic = true,
IsVirtual = false,
DeclaringType = typeof(global::Microsoft.NET.ProjectData.ProjectDataBuildEventContextRecord),
Converter = null,
Getter = static obj => ((global::Microsoft.NET.ProjectData.ProjectDataBuildEventContextRecord)obj).ProjectInstanceId,
Setter = static (obj, value) => ((global::Microsoft.NET.ProjectData.ProjectDataBuildEventContextRecord)obj).ProjectInstanceId = value!,
IgnoreCondition = null,
HasJsonInclude = false,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "ProjectInstanceId",
JsonPropertyName = null,
AttributeProviderFactory = static () => typeof(global::Microsoft.NET.ProjectData.ProjectDataBuildEventContextRecord).GetProperty("ProjectInstanceId", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null),
};
properties[2] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<int>(options, info2);
var info3 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<int>
{
IsProperty = true,
IsPublic = true,
IsVirtual = false,
DeclaringType = typeof(global::Microsoft.NET.ProjectData.ProjectDataBuildEventContextRecord),
Converter = null,
Getter = static obj => ((global::Microsoft.NET.ProjectData.ProjectDataBuildEventContextRecord)obj).TargetId,
Setter = static (obj, value) => ((global::Microsoft.NET.ProjectData.ProjectDataBuildEventContextRecord)obj).TargetId = value!,
IgnoreCondition = null,
HasJsonInclude = false,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "TargetId",
JsonPropertyName = null,
AttributeProviderFactory = static () => typeof(global::Microsoft.NET.ProjectData.ProjectDataBuildEventContextRecord).GetProperty("TargetId", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null),
};
properties[3] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<int>(options, info3);
var info4 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<int>
{
IsProperty = true,
IsPublic = true,
IsVirtual = false,
DeclaringType = typeof(global::Microsoft.NET.ProjectData.ProjectDataBuildEventContextRecord),
Converter = null,
Getter = static obj => ((global::Microsoft.NET.ProjectData.ProjectDataBuildEventContextRecord)obj).TaskId,
Setter = static (obj, value) => ((global::Microsoft.NET.ProjectData.ProjectDataBuildEventContextRecord)obj).TaskId = value!,
IgnoreCondition = null,
HasJsonInclude = false,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "TaskId",
JsonPropertyName = null,
AttributeProviderFactory = static () => typeof(global::Microsoft.NET.ProjectData.ProjectDataBuildEventContextRecord).GetProperty("TaskId", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null),
};
properties[4] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<int>(options, info4);
var info5 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<int>
{
IsProperty = true,
IsPublic = true,
IsVirtual = false,
DeclaringType = typeof(global::Microsoft.NET.ProjectData.ProjectDataBuildEventContextRecord),
Converter = null,
Getter = static obj => ((global::Microsoft.NET.ProjectData.ProjectDataBuildEventContextRecord)obj).SubmissionId,
Setter = static (obj, value) => ((global::Microsoft.NET.ProjectData.ProjectDataBuildEventContextRecord)obj).SubmissionId = value!,
IgnoreCondition = null,
HasJsonInclude = false,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "SubmissionId",
JsonPropertyName = null,
AttributeProviderFactory = static () => typeof(global::Microsoft.NET.ProjectData.ProjectDataBuildEventContextRecord).GetProperty("SubmissionId", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null),
};
properties[5] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<int>(options, info5);
var info6 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<int>
{
IsProperty = true,
IsPublic = true,
IsVirtual = false,
DeclaringType = typeof(global::Microsoft.NET.ProjectData.ProjectDataBuildEventContextRecord),
Converter = null,
Getter = static obj => ((global::Microsoft.NET.ProjectData.ProjectDataBuildEventContextRecord)obj).EvaluationId,
Setter = static (obj, value) => ((global::Microsoft.NET.ProjectData.ProjectDataBuildEventContextRecord)obj).EvaluationId = value!,
IgnoreCondition = null,
HasJsonInclude = false,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "EvaluationId",
JsonPropertyName = null,
AttributeProviderFactory = static () => typeof(global::Microsoft.NET.ProjectData.ProjectDataBuildEventContextRecord).GetProperty("EvaluationId", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null),
};
properties[6] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<int>(options, info6);
var info7 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<long>
{
IsProperty = true,
IsPublic = true,
IsVirtual = false,
DeclaringType = typeof(global::Microsoft.NET.ProjectData.ProjectDataBuildEventContextRecord),
Converter = null,
Getter = static obj => ((global::Microsoft.NET.ProjectData.ProjectDataBuildEventContextRecord)obj).BuildRequestId,
Setter = static (obj, value) => ((global::Microsoft.NET.ProjectData.ProjectDataBuildEventContextRecord)obj).BuildRequestId = value!,
IgnoreCondition = null,
HasJsonInclude = false,
IsExtensionData = false,
NumberHandling = null,
PropertyName = "BuildRequestId",
JsonPropertyName = null,
AttributeProviderFactory = static () => typeof(global::Microsoft.NET.ProjectData.ProjectDataBuildEventContextRecord).GetProperty("BuildRequestId", InstanceMemberBindingFlags, null, typeof(long), global::System.Array.Empty<global::System.Type>(), null),
};
properties[7] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<long>(options, info7);
return properties;
}
// Intentionally not a static method because we create a delegate to it. Invoking delegates to instance
// methods is almost as fast as virtual calls. Static methods need to go through a shuffle thunk.
private void ProjectDataBuildEventContextRecordSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::Microsoft.NET.ProjectData.ProjectDataBuildEventContextRecord? value)
{
if (value is null)
{
writer.WriteNullValue();
return;
}
writer.WriteStartObject();
writer.WriteNumber(PropName_nodeId, ((global::Microsoft.NET.ProjectData.ProjectDataBuildEventContextRecord)value).NodeId);
writer.WriteNumber(PropName_projectContextId, ((global::Microsoft.NET.ProjectData.ProjectDataBuildEventContextRecord)value).ProjectContextId);
writer.WriteNumber(PropName_projectInstanceId, ((global::Microsoft.NET.ProjectData.ProjectDataBuildEventContextRecord)value).ProjectInstanceId);
writer.WriteNumber(PropName_targetId, ((global::Microsoft.NET.ProjectData.ProjectDataBuildEventContextRecord)value).TargetId);
writer.WriteNumber(PropName_taskId, ((global::Microsoft.NET.ProjectData.ProjectDataBuildEventContextRecord)value).TaskId);
writer.WriteNumber(PropName_submissionId, ((global::Microsoft.NET.ProjectData.ProjectDataBuildEventContextRecord)value).SubmissionId);
writer.WriteNumber(PropName_evaluationId, ((global::Microsoft.NET.ProjectData.ProjectDataBuildEventContextRecord)value).EvaluationId);
writer.WriteNumber(PropName_buildRequestId, ((global::Microsoft.NET.ProjectData.ProjectDataBuildEventContextRecord)value).BuildRequestId);
writer.WriteEndObject();
}
}
}