File: BackchannelJsonSerializerContext.ResourceSnapshot.g.cs
Project: src\src\Aspire.Cli\Aspire.Cli.Tool.csproj (aspire)
// <auto-generated/>
 
#nullable enable annotations
#nullable disable warnings
 
// Suppress warnings about [Obsolete] member usage in generated code.
#pragma warning disable CS0612, CS0618
 
namespace Aspire.Cli.Backchannel
{
    internal partial class BackchannelJsonSerializerContext
    {
        private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.Backchannel.ResourceSnapshot>? _ResourceSnapshot;
        
        /// <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.Cli.Backchannel.ResourceSnapshot> ResourceSnapshot
        #nullable enable annotations
        {
            get => _ResourceSnapshot ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.Backchannel.ResourceSnapshot>)Options.GetTypeInfo(typeof(global::Aspire.Cli.Backchannel.ResourceSnapshot));
        }
        
        private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.Backchannel.ResourceSnapshot> Create_ResourceSnapshot(global::System.Text.Json.JsonSerializerOptions options)
        {
            if (!TryGetTypeInfoForRuntimeCustomConverter<global::Aspire.Cli.Backchannel.ResourceSnapshot>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.Backchannel.ResourceSnapshot> jsonTypeInfo))
            {
                var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Aspire.Cli.Backchannel.ResourceSnapshot>
                {
                    ObjectCreator = null,
                    ObjectWithParameterizedConstructorCreator = static args => new global::Aspire.Cli.Backchannel.ResourceSnapshot(){ Name = (string)args[0], DisplayName = (string)args[1], ResourceType = (string)args[2], Type = (string)args[3], State = (string)args[4], StateStyle = (string)args[5], HealthStatus = (string)args[6], ExitCode = (int?)args[7], CreatedAt = (global::System.DateTimeOffset?)args[8], StartedAt = (global::System.DateTimeOffset?)args[9], StoppedAt = (global::System.DateTimeOffset?)args[10], Urls = (global::Aspire.Cli.Backchannel.ResourceSnapshotUrl[])args[11], Relationships = (global::Aspire.Cli.Backchannel.ResourceSnapshotRelationship[])args[12], HealthReports = (global::Aspire.Cli.Backchannel.ResourceSnapshotHealthReport[])args[13], Volumes = (global::Aspire.Cli.Backchannel.ResourceSnapshotVolume[])args[14], EnvironmentVariables = (global::Aspire.Cli.Backchannel.ResourceSnapshotEnvironmentVariable[])args[15], Properties = (global::System.Collections.Generic.Dictionary<string, string>)args[16], McpServer = (global::Aspire.Cli.Backchannel.ResourceSnapshotMcpServer)args[17], Commands = (global::Aspire.Cli.Backchannel.ResourceSnapshotCommand[])args[18] },
                    PropertyMetadataInitializer = _ => ResourceSnapshotPropInit(options),
                    ConstructorParameterMetadataInitializer = ResourceSnapshotCtorParamInit,
                    ConstructorAttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.ResourceSnapshot).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null),
                    SerializeHandler = ResourceSnapshotSerializeHandler,
                };
                
                jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Aspire.Cli.Backchannel.ResourceSnapshot>(options, objectInfo);
                jsonTypeInfo.NumberHandling = null;
            }
        
            jsonTypeInfo.OriginatingResolver = this;
            return jsonTypeInfo;
        }
 
        private static global::System.Text.Json.Serialization.Metadata.JsonPropertyInfo[] ResourceSnapshotPropInit(global::System.Text.Json.JsonSerializerOptions options)
        {
            var properties = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfo[19];
 
            var info0 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<string>
            {
                IsProperty = true,
                IsPublic = true,
                IsVirtual = false,
                DeclaringType = typeof(global::Aspire.Cli.Backchannel.ResourceSnapshot),
                Converter = null,
                Getter = static obj => ((global::Aspire.Cli.Backchannel.ResourceSnapshot)obj).Name,
                Setter = static (obj, value) => throw new global::System.InvalidOperationException("Setting init-only properties is not supported in source generation mode."),
                IgnoreCondition = null,
                HasJsonInclude = false,
                IsExtensionData = false,
                NumberHandling = null,
                PropertyName = "Name",
                JsonPropertyName = null,
                AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.ResourceSnapshot).GetProperty("Name", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
            };
            
            properties[0] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<string>(options, info0);
            properties[0].IsRequired = true;
            properties[0].IsGetNullable = false;
            properties[0].IsSetNullable = false;
 
            var info1 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<string>
            {
                IsProperty = true,
                IsPublic = true,
                IsVirtual = false,
                DeclaringType = typeof(global::Aspire.Cli.Backchannel.ResourceSnapshot),
                Converter = null,
                Getter = static obj => ((global::Aspire.Cli.Backchannel.ResourceSnapshot)obj).DisplayName,
                Setter = static (obj, value) => throw new global::System.InvalidOperationException("Setting init-only properties is not supported in source generation mode."),
                IgnoreCondition = null,
                HasJsonInclude = false,
                IsExtensionData = false,
                NumberHandling = null,
                PropertyName = "DisplayName",
                JsonPropertyName = null,
                AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.ResourceSnapshot).GetProperty("DisplayName", 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);
 
            var info2 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<string>
            {
                IsProperty = true,
                IsPublic = true,
                IsVirtual = false,
                DeclaringType = typeof(global::Aspire.Cli.Backchannel.ResourceSnapshot),
                Converter = null,
                Getter = static obj => ((global::Aspire.Cli.Backchannel.ResourceSnapshot)obj).ResourceType,
                Setter = static (obj, value) => throw new global::System.InvalidOperationException("Setting init-only properties is not supported in source generation mode."),
                IgnoreCondition = null,
                HasJsonInclude = false,
                IsExtensionData = false,
                NumberHandling = null,
                PropertyName = "ResourceType",
                JsonPropertyName = null,
                AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.ResourceSnapshot).GetProperty("ResourceType", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
            };
            
            properties[2] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<string>(options, info2);
 
            var info3 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<string>
            {
                IsProperty = true,
                IsPublic = true,
                IsVirtual = false,
                DeclaringType = typeof(global::Aspire.Cli.Backchannel.ResourceSnapshot),
                Converter = null,
                Getter = static obj => ((global::Aspire.Cli.Backchannel.ResourceSnapshot)obj).Type,
                Setter = static (obj, value) => throw new global::System.InvalidOperationException("Setting init-only properties is not supported in source generation mode."),
                IgnoreCondition = null,
                HasJsonInclude = false,
                IsExtensionData = false,
                NumberHandling = null,
                PropertyName = "Type",
                JsonPropertyName = null,
                AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.ResourceSnapshot).GetProperty("Type", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
            };
            
            properties[3] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<string>(options, info3);
 
            var info4 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<string>
            {
                IsProperty = true,
                IsPublic = true,
                IsVirtual = false,
                DeclaringType = typeof(global::Aspire.Cli.Backchannel.ResourceSnapshot),
                Converter = null,
                Getter = static obj => ((global::Aspire.Cli.Backchannel.ResourceSnapshot)obj).State,
                Setter = static (obj, value) => throw new global::System.InvalidOperationException("Setting init-only properties is not supported in source generation mode."),
                IgnoreCondition = null,
                HasJsonInclude = false,
                IsExtensionData = false,
                NumberHandling = null,
                PropertyName = "State",
                JsonPropertyName = null,
                AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.ResourceSnapshot).GetProperty("State", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
            };
            
            properties[4] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<string>(options, info4);
 
            var info5 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<string>
            {
                IsProperty = true,
                IsPublic = true,
                IsVirtual = false,
                DeclaringType = typeof(global::Aspire.Cli.Backchannel.ResourceSnapshot),
                Converter = null,
                Getter = static obj => ((global::Aspire.Cli.Backchannel.ResourceSnapshot)obj).StateStyle,
                Setter = static (obj, value) => throw new global::System.InvalidOperationException("Setting init-only properties is not supported in source generation mode."),
                IgnoreCondition = null,
                HasJsonInclude = false,
                IsExtensionData = false,
                NumberHandling = null,
                PropertyName = "StateStyle",
                JsonPropertyName = null,
                AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.ResourceSnapshot).GetProperty("StateStyle", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
            };
            
            properties[5] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<string>(options, info5);
 
            var info6 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<string>
            {
                IsProperty = true,
                IsPublic = true,
                IsVirtual = false,
                DeclaringType = typeof(global::Aspire.Cli.Backchannel.ResourceSnapshot),
                Converter = null,
                Getter = static obj => ((global::Aspire.Cli.Backchannel.ResourceSnapshot)obj).HealthStatus,
                Setter = static (obj, value) => throw new global::System.InvalidOperationException("Setting init-only properties is not supported in source generation mode."),
                IgnoreCondition = null,
                HasJsonInclude = false,
                IsExtensionData = false,
                NumberHandling = null,
                PropertyName = "HealthStatus",
                JsonPropertyName = null,
                AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.ResourceSnapshot).GetProperty("HealthStatus", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
            };
            
            properties[6] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<string>(options, info6);
 
            var info7 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<int?>
            {
                IsProperty = true,
                IsPublic = true,
                IsVirtual = false,
                DeclaringType = typeof(global::Aspire.Cli.Backchannel.ResourceSnapshot),
                Converter = null,
                Getter = static obj => ((global::Aspire.Cli.Backchannel.ResourceSnapshot)obj).ExitCode,
                Setter = static (obj, value) => throw new global::System.InvalidOperationException("Setting init-only properties is not supported in source generation mode."),
                IgnoreCondition = null,
                HasJsonInclude = false,
                IsExtensionData = false,
                NumberHandling = null,
                PropertyName = "ExitCode",
                JsonPropertyName = null,
                AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.ResourceSnapshot).GetProperty("ExitCode", InstanceMemberBindingFlags, null, typeof(int?), global::System.Array.Empty<global::System.Type>(), null),
            };
            
            properties[7] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<int?>(options, info7);
 
            var info8 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.DateTimeOffset?>
            {
                IsProperty = true,
                IsPublic = true,
                IsVirtual = false,
                DeclaringType = typeof(global::Aspire.Cli.Backchannel.ResourceSnapshot),
                Converter = null,
                Getter = static obj => ((global::Aspire.Cli.Backchannel.ResourceSnapshot)obj).CreatedAt,
                Setter = static (obj, value) => throw new global::System.InvalidOperationException("Setting init-only properties is not supported in source generation mode."),
                IgnoreCondition = null,
                HasJsonInclude = false,
                IsExtensionData = false,
                NumberHandling = null,
                PropertyName = "CreatedAt",
                JsonPropertyName = null,
                AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.ResourceSnapshot).GetProperty("CreatedAt", InstanceMemberBindingFlags, null, typeof(global::System.DateTimeOffset?), global::System.Array.Empty<global::System.Type>(), null),
            };
            
            properties[8] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.DateTimeOffset?>(options, info8);
 
            var info9 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.DateTimeOffset?>
            {
                IsProperty = true,
                IsPublic = true,
                IsVirtual = false,
                DeclaringType = typeof(global::Aspire.Cli.Backchannel.ResourceSnapshot),
                Converter = null,
                Getter = static obj => ((global::Aspire.Cli.Backchannel.ResourceSnapshot)obj).StartedAt,
                Setter = static (obj, value) => throw new global::System.InvalidOperationException("Setting init-only properties is not supported in source generation mode."),
                IgnoreCondition = null,
                HasJsonInclude = false,
                IsExtensionData = false,
                NumberHandling = null,
                PropertyName = "StartedAt",
                JsonPropertyName = null,
                AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.ResourceSnapshot).GetProperty("StartedAt", InstanceMemberBindingFlags, null, typeof(global::System.DateTimeOffset?), global::System.Array.Empty<global::System.Type>(), null),
            };
            
            properties[9] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.DateTimeOffset?>(options, info9);
 
            var info10 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.DateTimeOffset?>
            {
                IsProperty = true,
                IsPublic = true,
                IsVirtual = false,
                DeclaringType = typeof(global::Aspire.Cli.Backchannel.ResourceSnapshot),
                Converter = null,
                Getter = static obj => ((global::Aspire.Cli.Backchannel.ResourceSnapshot)obj).StoppedAt,
                Setter = static (obj, value) => throw new global::System.InvalidOperationException("Setting init-only properties is not supported in source generation mode."),
                IgnoreCondition = null,
                HasJsonInclude = false,
                IsExtensionData = false,
                NumberHandling = null,
                PropertyName = "StoppedAt",
                JsonPropertyName = null,
                AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.ResourceSnapshot).GetProperty("StoppedAt", InstanceMemberBindingFlags, null, typeof(global::System.DateTimeOffset?), global::System.Array.Empty<global::System.Type>(), null),
            };
            
            properties[10] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.DateTimeOffset?>(options, info10);
 
            var info11 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::Aspire.Cli.Backchannel.ResourceSnapshotUrl[]>
            {
                IsProperty = true,
                IsPublic = true,
                IsVirtual = false,
                DeclaringType = typeof(global::Aspire.Cli.Backchannel.ResourceSnapshot),
                Converter = null,
                Getter = static obj => ((global::Aspire.Cli.Backchannel.ResourceSnapshot)obj).Urls,
                Setter = static (obj, value) => throw new global::System.InvalidOperationException("Setting init-only properties is not supported in source generation mode."),
                IgnoreCondition = null,
                HasJsonInclude = false,
                IsExtensionData = false,
                NumberHandling = null,
                PropertyName = "Urls",
                JsonPropertyName = null,
                AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.ResourceSnapshot).GetProperty("Urls", InstanceMemberBindingFlags, null, typeof(global::Aspire.Cli.Backchannel.ResourceSnapshotUrl[]), global::System.Array.Empty<global::System.Type>(), null),
            };
            
            properties[11] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::Aspire.Cli.Backchannel.ResourceSnapshotUrl[]>(options, info11);
            properties[11].IsGetNullable = false;
            properties[11].IsSetNullable = false;
 
            var info12 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::Aspire.Cli.Backchannel.ResourceSnapshotRelationship[]>
            {
                IsProperty = true,
                IsPublic = true,
                IsVirtual = false,
                DeclaringType = typeof(global::Aspire.Cli.Backchannel.ResourceSnapshot),
                Converter = null,
                Getter = static obj => ((global::Aspire.Cli.Backchannel.ResourceSnapshot)obj).Relationships,
                Setter = static (obj, value) => throw new global::System.InvalidOperationException("Setting init-only properties is not supported in source generation mode."),
                IgnoreCondition = null,
                HasJsonInclude = false,
                IsExtensionData = false,
                NumberHandling = null,
                PropertyName = "Relationships",
                JsonPropertyName = null,
                AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.ResourceSnapshot).GetProperty("Relationships", InstanceMemberBindingFlags, null, typeof(global::Aspire.Cli.Backchannel.ResourceSnapshotRelationship[]), global::System.Array.Empty<global::System.Type>(), null),
            };
            
            properties[12] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::Aspire.Cli.Backchannel.ResourceSnapshotRelationship[]>(options, info12);
            properties[12].IsGetNullable = false;
            properties[12].IsSetNullable = false;
 
            var info13 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::Aspire.Cli.Backchannel.ResourceSnapshotHealthReport[]>
            {
                IsProperty = true,
                IsPublic = true,
                IsVirtual = false,
                DeclaringType = typeof(global::Aspire.Cli.Backchannel.ResourceSnapshot),
                Converter = null,
                Getter = static obj => ((global::Aspire.Cli.Backchannel.ResourceSnapshot)obj).HealthReports,
                Setter = static (obj, value) => throw new global::System.InvalidOperationException("Setting init-only properties is not supported in source generation mode."),
                IgnoreCondition = null,
                HasJsonInclude = false,
                IsExtensionData = false,
                NumberHandling = null,
                PropertyName = "HealthReports",
                JsonPropertyName = null,
                AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.ResourceSnapshot).GetProperty("HealthReports", InstanceMemberBindingFlags, null, typeof(global::Aspire.Cli.Backchannel.ResourceSnapshotHealthReport[]), global::System.Array.Empty<global::System.Type>(), null),
            };
            
            properties[13] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::Aspire.Cli.Backchannel.ResourceSnapshotHealthReport[]>(options, info13);
            properties[13].IsGetNullable = false;
            properties[13].IsSetNullable = false;
 
            var info14 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::Aspire.Cli.Backchannel.ResourceSnapshotVolume[]>
            {
                IsProperty = true,
                IsPublic = true,
                IsVirtual = false,
                DeclaringType = typeof(global::Aspire.Cli.Backchannel.ResourceSnapshot),
                Converter = null,
                Getter = static obj => ((global::Aspire.Cli.Backchannel.ResourceSnapshot)obj).Volumes,
                Setter = static (obj, value) => throw new global::System.InvalidOperationException("Setting init-only properties is not supported in source generation mode."),
                IgnoreCondition = null,
                HasJsonInclude = false,
                IsExtensionData = false,
                NumberHandling = null,
                PropertyName = "Volumes",
                JsonPropertyName = null,
                AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.ResourceSnapshot).GetProperty("Volumes", InstanceMemberBindingFlags, null, typeof(global::Aspire.Cli.Backchannel.ResourceSnapshotVolume[]), global::System.Array.Empty<global::System.Type>(), null),
            };
            
            properties[14] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::Aspire.Cli.Backchannel.ResourceSnapshotVolume[]>(options, info14);
            properties[14].IsGetNullable = false;
            properties[14].IsSetNullable = false;
 
            var info15 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::Aspire.Cli.Backchannel.ResourceSnapshotEnvironmentVariable[]>
            {
                IsProperty = true,
                IsPublic = true,
                IsVirtual = false,
                DeclaringType = typeof(global::Aspire.Cli.Backchannel.ResourceSnapshot),
                Converter = null,
                Getter = static obj => ((global::Aspire.Cli.Backchannel.ResourceSnapshot)obj).EnvironmentVariables,
                Setter = static (obj, value) => throw new global::System.InvalidOperationException("Setting init-only properties is not supported in source generation mode."),
                IgnoreCondition = null,
                HasJsonInclude = false,
                IsExtensionData = false,
                NumberHandling = null,
                PropertyName = "EnvironmentVariables",
                JsonPropertyName = null,
                AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.ResourceSnapshot).GetProperty("EnvironmentVariables", InstanceMemberBindingFlags, null, typeof(global::Aspire.Cli.Backchannel.ResourceSnapshotEnvironmentVariable[]), global::System.Array.Empty<global::System.Type>(), null),
            };
            
            properties[15] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::Aspire.Cli.Backchannel.ResourceSnapshotEnvironmentVariable[]>(options, info15);
            properties[15].IsGetNullable = false;
            properties[15].IsSetNullable = false;
 
            var info16 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.Dictionary<string, string>>
            {
                IsProperty = true,
                IsPublic = true,
                IsVirtual = false,
                DeclaringType = typeof(global::Aspire.Cli.Backchannel.ResourceSnapshot),
                Converter = null,
                Getter = static obj => ((global::Aspire.Cli.Backchannel.ResourceSnapshot)obj).Properties,
                Setter = static (obj, value) => throw new global::System.InvalidOperationException("Setting init-only properties is not supported in source generation mode."),
                IgnoreCondition = null,
                HasJsonInclude = false,
                IsExtensionData = false,
                NumberHandling = null,
                PropertyName = "Properties",
                JsonPropertyName = null,
                AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.ResourceSnapshot).GetProperty("Properties", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.Dictionary<string, string>), global::System.Array.Empty<global::System.Type>(), null),
            };
            
            properties[16] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.Dictionary<string, string>>(options, info16);
            properties[16].IsGetNullable = false;
            properties[16].IsSetNullable = false;
 
            var info17 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::Aspire.Cli.Backchannel.ResourceSnapshotMcpServer>
            {
                IsProperty = true,
                IsPublic = true,
                IsVirtual = false,
                DeclaringType = typeof(global::Aspire.Cli.Backchannel.ResourceSnapshot),
                Converter = null,
                Getter = static obj => ((global::Aspire.Cli.Backchannel.ResourceSnapshot)obj).McpServer,
                Setter = static (obj, value) => throw new global::System.InvalidOperationException("Setting init-only properties is not supported in source generation mode."),
                IgnoreCondition = null,
                HasJsonInclude = false,
                IsExtensionData = false,
                NumberHandling = null,
                PropertyName = "McpServer",
                JsonPropertyName = null,
                AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.ResourceSnapshot).GetProperty("McpServer", InstanceMemberBindingFlags, null, typeof(global::Aspire.Cli.Backchannel.ResourceSnapshotMcpServer), global::System.Array.Empty<global::System.Type>(), null),
            };
            
            properties[17] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::Aspire.Cli.Backchannel.ResourceSnapshotMcpServer>(options, info17);
 
            var info18 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::Aspire.Cli.Backchannel.ResourceSnapshotCommand[]>
            {
                IsProperty = true,
                IsPublic = true,
                IsVirtual = false,
                DeclaringType = typeof(global::Aspire.Cli.Backchannel.ResourceSnapshot),
                Converter = null,
                Getter = static obj => ((global::Aspire.Cli.Backchannel.ResourceSnapshot)obj).Commands,
                Setter = static (obj, value) => throw new global::System.InvalidOperationException("Setting init-only properties is not supported in source generation mode."),
                IgnoreCondition = null,
                HasJsonInclude = false,
                IsExtensionData = false,
                NumberHandling = null,
                PropertyName = "Commands",
                JsonPropertyName = null,
                AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.ResourceSnapshot).GetProperty("Commands", InstanceMemberBindingFlags, null, typeof(global::Aspire.Cli.Backchannel.ResourceSnapshotCommand[]), global::System.Array.Empty<global::System.Type>(), null),
            };
            
            properties[18] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::Aspire.Cli.Backchannel.ResourceSnapshotCommand[]>(options, info18);
            properties[18].IsGetNullable = false;
            properties[18].IsSetNullable = false;
 
            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 ResourceSnapshotSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::Aspire.Cli.Backchannel.ResourceSnapshot? value)
        {
            if (value is null)
            {
                writer.WriteNullValue();
                return;
            }
            
            writer.WriteStartObject();
 
            writer.WriteString(PropName_Name, ((global::Aspire.Cli.Backchannel.ResourceSnapshot)value).Name);
            writer.WriteString(PropName_DisplayName, ((global::Aspire.Cli.Backchannel.ResourceSnapshot)value).DisplayName);
            writer.WriteString(PropName_ResourceType, ((global::Aspire.Cli.Backchannel.ResourceSnapshot)value).ResourceType);
            writer.WriteString(PropName_Type, ((global::Aspire.Cli.Backchannel.ResourceSnapshot)value).Type);
            writer.WriteString(PropName_State, ((global::Aspire.Cli.Backchannel.ResourceSnapshot)value).State);
            writer.WriteString(PropName_StateStyle, ((global::Aspire.Cli.Backchannel.ResourceSnapshot)value).StateStyle);
            writer.WriteString(PropName_HealthStatus, ((global::Aspire.Cli.Backchannel.ResourceSnapshot)value).HealthStatus);
            writer.WritePropertyName(PropName_ExitCode);
            global::System.Text.Json.JsonSerializer.Serialize(writer, ((global::Aspire.Cli.Backchannel.ResourceSnapshot)value).ExitCode, NullableInt32);
            writer.WritePropertyName(PropName_CreatedAt);
            global::System.Text.Json.JsonSerializer.Serialize(writer, ((global::Aspire.Cli.Backchannel.ResourceSnapshot)value).CreatedAt, NullableDateTimeOffset);
            writer.WritePropertyName(PropName_StartedAt);
            global::System.Text.Json.JsonSerializer.Serialize(writer, ((global::Aspire.Cli.Backchannel.ResourceSnapshot)value).StartedAt, NullableDateTimeOffset);
            writer.WritePropertyName(PropName_StoppedAt);
            global::System.Text.Json.JsonSerializer.Serialize(writer, ((global::Aspire.Cli.Backchannel.ResourceSnapshot)value).StoppedAt, NullableDateTimeOffset);
            writer.WritePropertyName(PropName_Urls);
            ResourceSnapshotUrlArraySerializeHandler(writer, ((global::Aspire.Cli.Backchannel.ResourceSnapshot)value).Urls);
            writer.WritePropertyName(PropName_Relationships);
            ResourceSnapshotRelationshipArraySerializeHandler(writer, ((global::Aspire.Cli.Backchannel.ResourceSnapshot)value).Relationships);
            writer.WritePropertyName(PropName_HealthReports);
            ResourceSnapshotHealthReportArraySerializeHandler(writer, ((global::Aspire.Cli.Backchannel.ResourceSnapshot)value).HealthReports);
            writer.WritePropertyName(PropName_Volumes);
            ResourceSnapshotVolumeArraySerializeHandler(writer, ((global::Aspire.Cli.Backchannel.ResourceSnapshot)value).Volumes);
            writer.WritePropertyName(PropName_EnvironmentVariables);
            ResourceSnapshotEnvironmentVariableArraySerializeHandler(writer, ((global::Aspire.Cli.Backchannel.ResourceSnapshot)value).EnvironmentVariables);
            writer.WritePropertyName(PropName_Properties);
            DictionaryStringStringSerializeHandler(writer, ((global::Aspire.Cli.Backchannel.ResourceSnapshot)value).Properties);
            writer.WritePropertyName(PropName_McpServer);
            ResourceSnapshotMcpServerSerializeHandler(writer, ((global::Aspire.Cli.Backchannel.ResourceSnapshot)value).McpServer);
            writer.WritePropertyName(PropName_Commands);
            ResourceSnapshotCommandArraySerializeHandler(writer, ((global::Aspire.Cli.Backchannel.ResourceSnapshot)value).Commands);
 
            writer.WriteEndObject();
        }
 
        private static global::System.Text.Json.Serialization.Metadata.JsonParameterInfoValues[] ResourceSnapshotCtorParamInit() => new global::System.Text.Json.Serialization.Metadata.JsonParameterInfoValues[]
        {
            new()
            {
                Name = "Name",
                ParameterType = typeof(string),
                Position = 0,
                IsNullable = false,
                IsMemberInitializer = true,
            },
 
            new()
            {
                Name = "DisplayName",
                ParameterType = typeof(string),
                Position = 1,
                IsNullable = true,
                IsMemberInitializer = true,
            },
 
            new()
            {
                Name = "ResourceType",
                ParameterType = typeof(string),
                Position = 2,
                IsNullable = true,
                IsMemberInitializer = true,
            },
 
            new()
            {
                Name = "Type",
                ParameterType = typeof(string),
                Position = 3,
                IsNullable = true,
                IsMemberInitializer = true,
            },
 
            new()
            {
                Name = "State",
                ParameterType = typeof(string),
                Position = 4,
                IsNullable = true,
                IsMemberInitializer = true,
            },
 
            new()
            {
                Name = "StateStyle",
                ParameterType = typeof(string),
                Position = 5,
                IsNullable = true,
                IsMemberInitializer = true,
            },
 
            new()
            {
                Name = "HealthStatus",
                ParameterType = typeof(string),
                Position = 6,
                IsNullable = true,
                IsMemberInitializer = true,
            },
 
            new()
            {
                Name = "ExitCode",
                ParameterType = typeof(int?),
                Position = 7,
                IsNullable = true,
                IsMemberInitializer = true,
            },
 
            new()
            {
                Name = "CreatedAt",
                ParameterType = typeof(global::System.DateTimeOffset?),
                Position = 8,
                IsNullable = true,
                IsMemberInitializer = true,
            },
 
            new()
            {
                Name = "StartedAt",
                ParameterType = typeof(global::System.DateTimeOffset?),
                Position = 9,
                IsNullable = true,
                IsMemberInitializer = true,
            },
 
            new()
            {
                Name = "StoppedAt",
                ParameterType = typeof(global::System.DateTimeOffset?),
                Position = 10,
                IsNullable = true,
                IsMemberInitializer = true,
            },
 
            new()
            {
                Name = "Urls",
                ParameterType = typeof(global::Aspire.Cli.Backchannel.ResourceSnapshotUrl[]),
                Position = 11,
                IsNullable = false,
                IsMemberInitializer = true,
            },
 
            new()
            {
                Name = "Relationships",
                ParameterType = typeof(global::Aspire.Cli.Backchannel.ResourceSnapshotRelationship[]),
                Position = 12,
                IsNullable = false,
                IsMemberInitializer = true,
            },
 
            new()
            {
                Name = "HealthReports",
                ParameterType = typeof(global::Aspire.Cli.Backchannel.ResourceSnapshotHealthReport[]),
                Position = 13,
                IsNullable = false,
                IsMemberInitializer = true,
            },
 
            new()
            {
                Name = "Volumes",
                ParameterType = typeof(global::Aspire.Cli.Backchannel.ResourceSnapshotVolume[]),
                Position = 14,
                IsNullable = false,
                IsMemberInitializer = true,
            },
 
            new()
            {
                Name = "EnvironmentVariables",
                ParameterType = typeof(global::Aspire.Cli.Backchannel.ResourceSnapshotEnvironmentVariable[]),
                Position = 15,
                IsNullable = false,
                IsMemberInitializer = true,
            },
 
            new()
            {
                Name = "Properties",
                ParameterType = typeof(global::System.Collections.Generic.Dictionary<string, string>),
                Position = 16,
                IsNullable = false,
                IsMemberInitializer = true,
            },
 
            new()
            {
                Name = "McpServer",
                ParameterType = typeof(global::Aspire.Cli.Backchannel.ResourceSnapshotMcpServer),
                Position = 17,
                IsNullable = true,
                IsMemberInitializer = true,
            },
 
            new()
            {
                Name = "Commands",
                ParameterType = typeof(global::Aspire.Cli.Backchannel.ResourceSnapshotCommand[]),
                Position = 18,
                IsNullable = false,
                IsMemberInitializer = true,
            },
        };
    }
}