File: _generated\30\RepositorySignatureJsonContext.RepositoryCertificateInfo.g.cs
Web Access
Project: src\src\nuget-client\src\NuGet.Core\NuGet.Protocol\NuGet.Protocol.csproj (NuGet.Protocol)
// <auto-generated/>

#nullable enable annotations
#nullable disable warnings

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

namespace NuGet.Protocol.Utility
{
    internal partial class RepositorySignatureJsonContext
    {
        private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::NuGet.Protocol.RepositoryCertificateInfo>? _RepositoryCertificateInfo;
        
        /// <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::NuGet.Protocol.RepositoryCertificateInfo> RepositoryCertificateInfo
        #nullable enable annotations
        {
            get => _RepositoryCertificateInfo ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::NuGet.Protocol.RepositoryCertificateInfo>)Options.GetTypeInfo(typeof(global::NuGet.Protocol.RepositoryCertificateInfo));
        }
        
        private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::NuGet.Protocol.RepositoryCertificateInfo> Create_RepositoryCertificateInfo(global::System.Text.Json.JsonSerializerOptions options)
        {
            if (!TryGetTypeInfoForRuntimeCustomConverter<global::NuGet.Protocol.RepositoryCertificateInfo>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::NuGet.Protocol.RepositoryCertificateInfo> jsonTypeInfo))
            {
                var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::NuGet.Protocol.RepositoryCertificateInfo>
                {
                    ObjectCreator = null,
                    ObjectWithParameterizedConstructorCreator = static args => new global::NuGet.Protocol.RepositoryCertificateInfo((global::NuGet.Packaging.Core.Fingerprints)args[0], (string)args[1], (string)args[2], (global::System.DateTimeOffset)args[3], (global::System.DateTimeOffset)args[4], (string)args[5]),
                    PropertyMetadataInitializer = _ => RepositoryCertificateInfoPropInit(options),
                    ConstructorParameterMetadataInitializer = RepositoryCertificateInfoCtorParamInit,
                    ConstructorAttributeProviderFactory = static () => typeof(global::NuGet.Protocol.RepositoryCertificateInfo).GetConstructor(InstanceMemberBindingFlags, binder: null, new[] {typeof(global::NuGet.Packaging.Core.Fingerprints), typeof(string), typeof(string), typeof(global::System.DateTimeOffset), typeof(global::System.DateTimeOffset), typeof(string)}, modifiers: null),
                    SerializeHandler = null,
                };
                
                jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::NuGet.Protocol.RepositoryCertificateInfo>(options, objectInfo);
                jsonTypeInfo.NumberHandling = null;
            }
        
            jsonTypeInfo.OriginatingResolver = this;
            return jsonTypeInfo;
        }

        private static global::System.Text.Json.Serialization.Metadata.JsonPropertyInfo[] RepositoryCertificateInfoPropInit(global::System.Text.Json.JsonSerializerOptions options)
        {
            var properties = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfo[6];

            var info0 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::NuGet.Packaging.Core.Fingerprints>
            {
                IsProperty = true,
                IsPublic = true,
                IsVirtual = false,
                DeclaringType = typeof(global::NuGet.Protocol.RepositoryCertificateInfo),
                Converter = null,
                Getter = static obj => ((global::NuGet.Protocol.RepositoryCertificateInfo)obj).Fingerprints,
                Setter = null,
                IgnoreCondition = null,
                HasJsonInclude = false,
                IsExtensionData = false,
                NumberHandling = null,
                PropertyName = "Fingerprints",
                JsonPropertyName = "fingerprints",
                AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.RepositoryCertificateInfo).GetProperty("Fingerprints", InstanceMemberBindingFlags, null, typeof(global::NuGet.Packaging.Core.Fingerprints), global::System.Array.Empty<global::System.Type>(), null),
            };
            
            properties[0] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::NuGet.Packaging.Core.Fingerprints>(options, info0);
            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::NuGet.Protocol.RepositoryCertificateInfo),
                Converter = null,
                Getter = static obj => ((global::NuGet.Protocol.RepositoryCertificateInfo)obj).Subject,
                Setter = null,
                IgnoreCondition = null,
                HasJsonInclude = false,
                IsExtensionData = false,
                NumberHandling = null,
                PropertyName = "Subject",
                JsonPropertyName = "subject",
                AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.RepositoryCertificateInfo).GetProperty("Subject", 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);
            properties[1].IsGetNullable = false;
            properties[1].IsSetNullable = false;

            var info2 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<string>
            {
                IsProperty = true,
                IsPublic = true,
                IsVirtual = false,
                DeclaringType = typeof(global::NuGet.Protocol.RepositoryCertificateInfo),
                Converter = null,
                Getter = static obj => ((global::NuGet.Protocol.RepositoryCertificateInfo)obj).Issuer,
                Setter = null,
                IgnoreCondition = null,
                HasJsonInclude = false,
                IsExtensionData = false,
                NumberHandling = null,
                PropertyName = "Issuer",
                JsonPropertyName = "issuer",
                AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.RepositoryCertificateInfo).GetProperty("Issuer", 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);
            properties[2].IsGetNullable = false;
            properties[2].IsSetNullable = false;

            var info3 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.DateTimeOffset>
            {
                IsProperty = true,
                IsPublic = true,
                IsVirtual = false,
                DeclaringType = typeof(global::NuGet.Protocol.RepositoryCertificateInfo),
                Converter = null,
                Getter = static obj => ((global::NuGet.Protocol.RepositoryCertificateInfo)obj).NotBefore,
                Setter = static (obj, value) => __set_RepositoryCertificateInfo_NotBefore((global::NuGet.Protocol.RepositoryCertificateInfo)obj, value!),
                IgnoreCondition = null,
                HasJsonInclude = false,
                IsExtensionData = false,
                NumberHandling = null,
                PropertyName = "NotBefore",
                JsonPropertyName = "notBefore",
                AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.RepositoryCertificateInfo).GetProperty("NotBefore", InstanceMemberBindingFlags, null, typeof(global::System.DateTimeOffset), global::System.Array.Empty<global::System.Type>(), null),
            };
            
            properties[3] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.DateTimeOffset>(options, info3);
            properties[3].IsRequired = true;

            var info4 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.DateTimeOffset>
            {
                IsProperty = true,
                IsPublic = true,
                IsVirtual = false,
                DeclaringType = typeof(global::NuGet.Protocol.RepositoryCertificateInfo),
                Converter = null,
                Getter = static obj => ((global::NuGet.Protocol.RepositoryCertificateInfo)obj).NotAfter,
                Setter = static (obj, value) => __set_RepositoryCertificateInfo_NotAfter((global::NuGet.Protocol.RepositoryCertificateInfo)obj, value!),
                IgnoreCondition = null,
                HasJsonInclude = false,
                IsExtensionData = false,
                NumberHandling = null,
                PropertyName = "NotAfter",
                JsonPropertyName = "notAfter",
                AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.RepositoryCertificateInfo).GetProperty("NotAfter", InstanceMemberBindingFlags, null, typeof(global::System.DateTimeOffset), global::System.Array.Empty<global::System.Type>(), null),
            };
            
            properties[4] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.DateTimeOffset>(options, info4);
            properties[4].IsRequired = true;

            var info5 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<string>
            {
                IsProperty = true,
                IsPublic = true,
                IsVirtual = false,
                DeclaringType = typeof(global::NuGet.Protocol.RepositoryCertificateInfo),
                Converter = null,
                Getter = static obj => ((global::NuGet.Protocol.RepositoryCertificateInfo)obj).ContentUrl,
                Setter = null,
                IgnoreCondition = null,
                HasJsonInclude = false,
                IsExtensionData = false,
                NumberHandling = null,
                PropertyName = "ContentUrl",
                JsonPropertyName = "contentUrl",
                AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.RepositoryCertificateInfo).GetProperty("ContentUrl", 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);
            properties[5].IsGetNullable = false;
            properties[5].IsSetNullable = false;

            return properties;
        }

        private static global::System.Text.Json.Serialization.Metadata.JsonParameterInfoValues[] RepositoryCertificateInfoCtorParamInit() => new global::System.Text.Json.Serialization.Metadata.JsonParameterInfoValues[]
        {
            new()
            {
                Name = "fingerprints",
                ParameterType = typeof(global::NuGet.Packaging.Core.Fingerprints),
                Position = 0,
                HasDefaultValue = false,
                DefaultValue = null,
                IsNullable = false,
            },

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

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

            new()
            {
                Name = "notBefore",
                ParameterType = typeof(global::System.DateTimeOffset),
                Position = 3,
                HasDefaultValue = false,
                DefaultValue = null,
                IsNullable = false,
            },

            new()
            {
                Name = "notAfter",
                ParameterType = typeof(global::System.DateTimeOffset),
                Position = 4,
                HasDefaultValue = false,
                DefaultValue = null,
                IsNullable = false,
            },

            new()
            {
                Name = "contentUrl",
                ParameterType = typeof(string),
                Position = 5,
                HasDefaultValue = false,
                DefaultValue = null,
                IsNullable = false,
            },
        };

        [global::System.Runtime.CompilerServices.UnsafeAccessorAttribute(global::System.Runtime.CompilerServices.UnsafeAccessorKind.Method, Name = "set_NotBefore")]
        private static extern void __set_RepositoryCertificateInfo_NotBefore(global::NuGet.Protocol.RepositoryCertificateInfo obj, global::System.DateTimeOffset value);
        [global::System.Runtime.CompilerServices.UnsafeAccessorAttribute(global::System.Runtime.CompilerServices.UnsafeAccessorKind.Method, Name = "set_NotAfter")]
        private static extern void __set_RepositoryCertificateInfo_NotAfter(global::NuGet.Protocol.RepositoryCertificateInfo obj, global::System.DateTimeOffset value);
    }
}