File: _generated\1\CliSchemaJsonSerializerContext.ArgumentDetails.g.cs
Web Access
Project: src\src\sdk\src\Cli\dotnet\dotnet.csproj (dotnet)
// <auto-generated/>

#nullable enable annotations
#nullable disable warnings

// Suppress warnings about [Obsolete] member usage in generated code.
#pragma warning disable CS0612, CS0618

namespace Microsoft.DotNet.Cli
{
    internal partial class CliSchemaJsonSerializerContext
    {
        private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.DotNet.Cli.CliSchema.ArgumentDetails>? _ArgumentDetails;
        
        /// <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.DotNet.Cli.CliSchema.ArgumentDetails> ArgumentDetails
        #nullable enable annotations
        {
            get => _ArgumentDetails ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.DotNet.Cli.CliSchema.ArgumentDetails>)Options.GetTypeInfo(typeof(global::Microsoft.DotNet.Cli.CliSchema.ArgumentDetails));
        }
        
        private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.DotNet.Cli.CliSchema.ArgumentDetails> Create_ArgumentDetails(global::System.Text.Json.JsonSerializerOptions options)
        {
            if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.DotNet.Cli.CliSchema.ArgumentDetails>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.DotNet.Cli.CliSchema.ArgumentDetails> jsonTypeInfo))
            {
                var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.DotNet.Cli.CliSchema.ArgumentDetails>
                {
                    ObjectCreator = null,
                    ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.DotNet.Cli.CliSchema.ArgumentDetails((string)args[0], (int)args[1], (bool)args[2], (string)args[3], (string)args[4], (bool)args[5], (object)args[6], (global::Microsoft.DotNet.Cli.CliSchema.ArityDetails)args[7]),
                    PropertyMetadataInitializer = _ => ArgumentDetailsPropInit(options),
                    ConstructorParameterMetadataInitializer = ArgumentDetailsCtorParamInit,
                    ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.CliSchema.ArgumentDetails).GetConstructor(InstanceMemberBindingFlags, binder: null, new[] {typeof(string), typeof(int), typeof(bool), typeof(string), typeof(string), typeof(bool), typeof(object), typeof(global::Microsoft.DotNet.Cli.CliSchema.ArityDetails)}, modifiers: null),
                    SerializeHandler = null,
                };
                
                jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Microsoft.DotNet.Cli.CliSchema.ArgumentDetails>(options, objectInfo);
                jsonTypeInfo.NumberHandling = null;
            }
        
            jsonTypeInfo.OriginatingResolver = this;
            return jsonTypeInfo;
        }

        private static global::System.Text.Json.Serialization.Metadata.JsonPropertyInfo[] ArgumentDetailsPropInit(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<string>
            {
                IsProperty = true,
                IsPublic = true,
                IsVirtual = false,
                DeclaringType = typeof(global::Microsoft.DotNet.Cli.CliSchema.ArgumentDetails),
                Converter = null,
                Getter = static obj => ((global::Microsoft.DotNet.Cli.CliSchema.ArgumentDetails)obj).description,
                Setter = static (obj, value) => __set_ArgumentDetails_description((global::Microsoft.DotNet.Cli.CliSchema.ArgumentDetails)obj, value!),
                IgnoreCondition = null,
                HasJsonInclude = false,
                IsExtensionData = false,
                NumberHandling = null,
                PropertyName = "description",
                JsonPropertyName = null,
                AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.CliSchema.ArgumentDetails).GetProperty("description", 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);

            var info1 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<int>
            {
                IsProperty = true,
                IsPublic = true,
                IsVirtual = false,
                DeclaringType = typeof(global::Microsoft.DotNet.Cli.CliSchema.ArgumentDetails),
                Converter = null,
                Getter = static obj => ((global::Microsoft.DotNet.Cli.CliSchema.ArgumentDetails)obj).order,
                Setter = static (obj, value) => __set_ArgumentDetails_order((global::Microsoft.DotNet.Cli.CliSchema.ArgumentDetails)obj, value!),
                IgnoreCondition = null,
                HasJsonInclude = false,
                IsExtensionData = false,
                NumberHandling = null,
                PropertyName = "order",
                JsonPropertyName = null,
                AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.CliSchema.ArgumentDetails).GetProperty("order", 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<bool>
            {
                IsProperty = true,
                IsPublic = true,
                IsVirtual = false,
                DeclaringType = typeof(global::Microsoft.DotNet.Cli.CliSchema.ArgumentDetails),
                Converter = null,
                Getter = static obj => ((global::Microsoft.DotNet.Cli.CliSchema.ArgumentDetails)obj).hidden,
                Setter = static (obj, value) => __set_ArgumentDetails_hidden((global::Microsoft.DotNet.Cli.CliSchema.ArgumentDetails)obj, value!),
                IgnoreCondition = null,
                HasJsonInclude = false,
                IsExtensionData = false,
                NumberHandling = null,
                PropertyName = "hidden",
                JsonPropertyName = null,
                AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.CliSchema.ArgumentDetails).GetProperty("hidden", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null),
            };
            
            properties[2] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<bool>(options, info2);

            var info3 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<string>
            {
                IsProperty = true,
                IsPublic = true,
                IsVirtual = false,
                DeclaringType = typeof(global::Microsoft.DotNet.Cli.CliSchema.ArgumentDetails),
                Converter = null,
                Getter = static obj => ((global::Microsoft.DotNet.Cli.CliSchema.ArgumentDetails)obj).helpName,
                Setter = static (obj, value) => __set_ArgumentDetails_helpName((global::Microsoft.DotNet.Cli.CliSchema.ArgumentDetails)obj, value!),
                IgnoreCondition = null,
                HasJsonInclude = false,
                IsExtensionData = false,
                NumberHandling = null,
                PropertyName = "helpName",
                JsonPropertyName = null,
                AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.CliSchema.ArgumentDetails).GetProperty("helpName", 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::Microsoft.DotNet.Cli.CliSchema.ArgumentDetails),
                Converter = null,
                Getter = static obj => ((global::Microsoft.DotNet.Cli.CliSchema.ArgumentDetails)obj).valueType,
                Setter = static (obj, value) => __set_ArgumentDetails_valueType((global::Microsoft.DotNet.Cli.CliSchema.ArgumentDetails)obj, value!),
                IgnoreCondition = null,
                HasJsonInclude = false,
                IsExtensionData = false,
                NumberHandling = null,
                PropertyName = "valueType",
                JsonPropertyName = null,
                AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.CliSchema.ArgumentDetails).GetProperty("valueType", 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);
            properties[4].IsGetNullable = false;
            properties[4].IsSetNullable = false;

            var info5 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<bool>
            {
                IsProperty = true,
                IsPublic = true,
                IsVirtual = false,
                DeclaringType = typeof(global::Microsoft.DotNet.Cli.CliSchema.ArgumentDetails),
                Converter = null,
                Getter = static obj => ((global::Microsoft.DotNet.Cli.CliSchema.ArgumentDetails)obj).hasDefaultValue,
                Setter = static (obj, value) => __set_ArgumentDetails_hasDefaultValue((global::Microsoft.DotNet.Cli.CliSchema.ArgumentDetails)obj, value!),
                IgnoreCondition = null,
                HasJsonInclude = false,
                IsExtensionData = false,
                NumberHandling = null,
                PropertyName = "hasDefaultValue",
                JsonPropertyName = null,
                AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.CliSchema.ArgumentDetails).GetProperty("hasDefaultValue", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null),
            };
            
            properties[5] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<bool>(options, info5);

            var info6 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<object>
            {
                IsProperty = true,
                IsPublic = true,
                IsVirtual = false,
                DeclaringType = typeof(global::Microsoft.DotNet.Cli.CliSchema.ArgumentDetails),
                Converter = null,
                Getter = static obj => ((global::Microsoft.DotNet.Cli.CliSchema.ArgumentDetails)obj).defaultValue,
                Setter = static (obj, value) => __set_ArgumentDetails_defaultValue((global::Microsoft.DotNet.Cli.CliSchema.ArgumentDetails)obj, value!),
                IgnoreCondition = null,
                HasJsonInclude = false,
                IsExtensionData = false,
                NumberHandling = null,
                PropertyName = "defaultValue",
                JsonPropertyName = null,
                AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.CliSchema.ArgumentDetails).GetProperty("defaultValue", InstanceMemberBindingFlags, null, typeof(object), global::System.Array.Empty<global::System.Type>(), null),
            };
            
            properties[6] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<object>(options, info6);

            var info7 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::Microsoft.DotNet.Cli.CliSchema.ArityDetails>
            {
                IsProperty = true,
                IsPublic = true,
                IsVirtual = false,
                DeclaringType = typeof(global::Microsoft.DotNet.Cli.CliSchema.ArgumentDetails),
                Converter = null,
                Getter = static obj => ((global::Microsoft.DotNet.Cli.CliSchema.ArgumentDetails)obj).arity,
                Setter = static (obj, value) => __set_ArgumentDetails_arity((global::Microsoft.DotNet.Cli.CliSchema.ArgumentDetails)obj, value!),
                IgnoreCondition = null,
                HasJsonInclude = false,
                IsExtensionData = false,
                NumberHandling = null,
                PropertyName = "arity",
                JsonPropertyName = null,
                AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.CliSchema.ArgumentDetails).GetProperty("arity", InstanceMemberBindingFlags, null, typeof(global::Microsoft.DotNet.Cli.CliSchema.ArityDetails), global::System.Array.Empty<global::System.Type>(), null),
            };
            
            properties[7] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::Microsoft.DotNet.Cli.CliSchema.ArityDetails>(options, info7);
            properties[7].IsGetNullable = false;
            properties[7].IsSetNullable = false;

            return properties;
        }

        private static global::System.Text.Json.Serialization.Metadata.JsonParameterInfoValues[] ArgumentDetailsCtorParamInit() => new global::System.Text.Json.Serialization.Metadata.JsonParameterInfoValues[]
        {
            new()
            {
                Name = "description",
                ParameterType = typeof(string),
                Position = 0,
                HasDefaultValue = false,
                DefaultValue = null,
                IsNullable = true,
            },

            new()
            {
                Name = "order",
                ParameterType = typeof(int),
                Position = 1,
                HasDefaultValue = false,
                DefaultValue = null,
                IsNullable = false,
            },

            new()
            {
                Name = "hidden",
                ParameterType = typeof(bool),
                Position = 2,
                HasDefaultValue = false,
                DefaultValue = null,
                IsNullable = false,
            },

            new()
            {
                Name = "helpName",
                ParameterType = typeof(string),
                Position = 3,
                HasDefaultValue = false,
                DefaultValue = null,
                IsNullable = true,
            },

            new()
            {
                Name = "valueType",
                ParameterType = typeof(string),
                Position = 4,
                HasDefaultValue = false,
                DefaultValue = null,
                IsNullable = false,
            },

            new()
            {
                Name = "hasDefaultValue",
                ParameterType = typeof(bool),
                Position = 5,
                HasDefaultValue = false,
                DefaultValue = null,
                IsNullable = false,
            },

            new()
            {
                Name = "defaultValue",
                ParameterType = typeof(object),
                Position = 6,
                HasDefaultValue = false,
                DefaultValue = null,
                IsNullable = true,
            },

            new()
            {
                Name = "arity",
                ParameterType = typeof(global::Microsoft.DotNet.Cli.CliSchema.ArityDetails),
                Position = 7,
                HasDefaultValue = false,
                DefaultValue = null,
                IsNullable = false,
            },
        };

        [global::System.Runtime.CompilerServices.UnsafeAccessorAttribute(global::System.Runtime.CompilerServices.UnsafeAccessorKind.Method, Name = "set_description")]
        private static extern void __set_ArgumentDetails_description(global::Microsoft.DotNet.Cli.CliSchema.ArgumentDetails obj, string value);
        [global::System.Runtime.CompilerServices.UnsafeAccessorAttribute(global::System.Runtime.CompilerServices.UnsafeAccessorKind.Method, Name = "set_order")]
        private static extern void __set_ArgumentDetails_order(global::Microsoft.DotNet.Cli.CliSchema.ArgumentDetails obj, int value);
        [global::System.Runtime.CompilerServices.UnsafeAccessorAttribute(global::System.Runtime.CompilerServices.UnsafeAccessorKind.Method, Name = "set_hidden")]
        private static extern void __set_ArgumentDetails_hidden(global::Microsoft.DotNet.Cli.CliSchema.ArgumentDetails obj, bool value);
        [global::System.Runtime.CompilerServices.UnsafeAccessorAttribute(global::System.Runtime.CompilerServices.UnsafeAccessorKind.Method, Name = "set_helpName")]
        private static extern void __set_ArgumentDetails_helpName(global::Microsoft.DotNet.Cli.CliSchema.ArgumentDetails obj, string value);
        [global::System.Runtime.CompilerServices.UnsafeAccessorAttribute(global::System.Runtime.CompilerServices.UnsafeAccessorKind.Method, Name = "set_valueType")]
        private static extern void __set_ArgumentDetails_valueType(global::Microsoft.DotNet.Cli.CliSchema.ArgumentDetails obj, string value);
        [global::System.Runtime.CompilerServices.UnsafeAccessorAttribute(global::System.Runtime.CompilerServices.UnsafeAccessorKind.Method, Name = "set_hasDefaultValue")]
        private static extern void __set_ArgumentDetails_hasDefaultValue(global::Microsoft.DotNet.Cli.CliSchema.ArgumentDetails obj, bool value);
        [global::System.Runtime.CompilerServices.UnsafeAccessorAttribute(global::System.Runtime.CompilerServices.UnsafeAccessorKind.Method, Name = "set_defaultValue")]
        private static extern void __set_ArgumentDetails_defaultValue(global::Microsoft.DotNet.Cli.CliSchema.ArgumentDetails obj, object value);
        [global::System.Runtime.CompilerServices.UnsafeAccessorAttribute(global::System.Runtime.CompilerServices.UnsafeAccessorKind.Method, Name = "set_arity")]
        private static extern void __set_ArgumentDetails_arity(global::Microsoft.DotNet.Cli.CliSchema.ArgumentDetails obj, global::Microsoft.DotNet.Cli.CliSchema.ArityDetails value);
    }
}