// Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. namespace WixToolset.Data { using WixToolset.Data.Tuples; public static partial class TupleDefinitions { public static readonly IntermediateTupleDefinition WixBundlePayload = new IntermediateTupleDefinition( TupleDefinitionType.WixBundlePayload, new[] { new IntermediateFieldDefinition(nameof(WixBundlePayloadTupleFields.Name), IntermediateFieldType.String), new IntermediateFieldDefinition(nameof(WixBundlePayloadTupleFields.SourceFile), IntermediateFieldType.Path), new IntermediateFieldDefinition(nameof(WixBundlePayloadTupleFields.DownloadUrl), IntermediateFieldType.String), new IntermediateFieldDefinition(nameof(WixBundlePayloadTupleFields.Compressed), IntermediateFieldType.String), new IntermediateFieldDefinition(nameof(WixBundlePayloadTupleFields.UnresolvedSourceFile), IntermediateFieldType.String), new IntermediateFieldDefinition(nameof(WixBundlePayloadTupleFields.DisplayName), IntermediateFieldType.String), new IntermediateFieldDefinition(nameof(WixBundlePayloadTupleFields.Description), IntermediateFieldType.String), new IntermediateFieldDefinition(nameof(WixBundlePayloadTupleFields.EnableSignatureValidation), IntermediateFieldType.Bool), new IntermediateFieldDefinition(nameof(WixBundlePayloadTupleFields.FileSize), IntermediateFieldType.Number), new IntermediateFieldDefinition(nameof(WixBundlePayloadTupleFields.Version), IntermediateFieldType.String), new IntermediateFieldDefinition(nameof(WixBundlePayloadTupleFields.Hash), IntermediateFieldType.String), new IntermediateFieldDefinition(nameof(WixBundlePayloadTupleFields.PublicKey), IntermediateFieldType.String), new IntermediateFieldDefinition(nameof(WixBundlePayloadTupleFields.Thumbprint), IntermediateFieldType.String), new IntermediateFieldDefinition(nameof(WixBundlePayloadTupleFields.CatalogRef), IntermediateFieldType.String), new IntermediateFieldDefinition(nameof(WixBundlePayloadTupleFields.ContainerRef), IntermediateFieldType.String), new IntermediateFieldDefinition(nameof(WixBundlePayloadTupleFields.PackageRef), IntermediateFieldType.String), new IntermediateFieldDefinition(nameof(WixBundlePayloadTupleFields.ContentFile), IntermediateFieldType.Bool), new IntermediateFieldDefinition(nameof(WixBundlePayloadTupleFields.EmbeddedId), IntermediateFieldType.String), new IntermediateFieldDefinition(nameof(WixBundlePayloadTupleFields.LayoutOnly), IntermediateFieldType.Bool), new IntermediateFieldDefinition(nameof(WixBundlePayloadTupleFields.Packaging), IntermediateFieldType.Number), new IntermediateFieldDefinition(nameof(WixBundlePayloadTupleFields.ParentPackagePayloadRef), IntermediateFieldType.String), }, typeof(WixBundlePayloadTuple)); } } namespace WixToolset.Data.Tuples { using System; public enum WixBundlePayloadTupleFields { Name, SourceFile, DownloadUrl, Compressed, UnresolvedSourceFile, DisplayName, Description, EnableSignatureValidation, FileSize, Version, Hash, PublicKey, Thumbprint, CatalogRef, ContainerRef, PackageRef, ContentFile, EmbeddedId, LayoutOnly, Packaging, ParentPackagePayloadRef, } public class WixBundlePayloadTuple : IntermediateTuple { public WixBundlePayloadTuple() : base(TupleDefinitions.WixBundlePayload, null, null) { } public WixBundlePayloadTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(TupleDefinitions.WixBundlePayload, sourceLineNumber, id) { } public IntermediateField this[WixBundlePayloadTupleFields index] => this.Fields[(int)index]; public string Name { get => (string)this.Fields[(int)WixBundlePayloadTupleFields.Name]; set => this.Set((int)WixBundlePayloadTupleFields.Name, value); } public IntermediateFieldPathValue SourceFile { get => this.Fields[(int)WixBundlePayloadTupleFields.SourceFile].AsPath(); set => this.Set((int)WixBundlePayloadTupleFields.SourceFile, value); } public string DownloadUrl { get => (string)this.Fields[(int)WixBundlePayloadTupleFields.DownloadUrl]; set => this.Set((int)WixBundlePayloadTupleFields.DownloadUrl, value); } public bool? Compressed { get => (bool?)this.Fields[(int)WixBundlePayloadTupleFields.Compressed]; set => this.Set((int)WixBundlePayloadTupleFields.Compressed, value); } public string UnresolvedSourceFile { get => (string)this.Fields[(int)WixBundlePayloadTupleFields.UnresolvedSourceFile]; set => this.Set((int)WixBundlePayloadTupleFields.UnresolvedSourceFile, value); } public string DisplayName { get => (string)this.Fields[(int)WixBundlePayloadTupleFields.DisplayName]; set => this.Set((int)WixBundlePayloadTupleFields.DisplayName, value); } public string Description { get => (string)this.Fields[(int)WixBundlePayloadTupleFields.Description]; set => this.Set((int)WixBundlePayloadTupleFields.Description, value); } public bool EnableSignatureValidation { get => (bool)this.Fields[(int)WixBundlePayloadTupleFields.EnableSignatureValidation]; set => this.Set((int)WixBundlePayloadTupleFields.EnableSignatureValidation, value); } public int FileSize { get => (int)this.Fields[(int)WixBundlePayloadTupleFields.FileSize]; set => this.Set((int)WixBundlePayloadTupleFields.FileSize, value); } public string Version { get => (string)this.Fields[(int)WixBundlePayloadTupleFields.Version]; set => this.Set((int)WixBundlePayloadTupleFields.Version, value); } public string Hash { get => (string)this.Fields[(int)WixBundlePayloadTupleFields.Hash]; set => this.Set((int)WixBundlePayloadTupleFields.Hash, value); } public string PublicKey { get => (string)this.Fields[(int)WixBundlePayloadTupleFields.PublicKey]; set => this.Set((int)WixBundlePayloadTupleFields.PublicKey, value); } public string Thumbprint { get => (string)this.Fields[(int)WixBundlePayloadTupleFields.Thumbprint]; set => this.Set((int)WixBundlePayloadTupleFields.Thumbprint, value); } public string CatalogRef { get => (string)this.Fields[(int)WixBundlePayloadTupleFields.CatalogRef]; set => this.Set((int)WixBundlePayloadTupleFields.CatalogRef, value); } public string ContainerRef { get => (string)this.Fields[(int)WixBundlePayloadTupleFields.ContainerRef]; set => this.Set((int)WixBundlePayloadTupleFields.ContainerRef, value); } public string PackageRef { get => (string)this.Fields[(int)WixBundlePayloadTupleFields.PackageRef]; set => this.Set((int)WixBundlePayloadTupleFields.PackageRef, value); } public bool ContentFile { get => (bool)this.Fields[(int)WixBundlePayloadTupleFields.ContentFile]; set => this.Set((int)WixBundlePayloadTupleFields.ContentFile, value); } public string EmbeddedId { get => (string)this.Fields[(int)WixBundlePayloadTupleFields.EmbeddedId]; set => this.Set((int)WixBundlePayloadTupleFields.EmbeddedId, value); } public bool LayoutOnly { get => (bool)this.Fields[(int)WixBundlePayloadTupleFields.LayoutOnly]; set => this.Set((int)WixBundlePayloadTupleFields.LayoutOnly, value); } public PackagingType Packaging { get => (PackagingType)this.Fields[(int)WixBundlePayloadTupleFields.Packaging].AsNumber(); set => this.Set((int)WixBundlePayloadTupleFields.Packaging, (int)value); } public string ParentPackagePayloadRef { get => (string)this.Fields[(int)WixBundlePayloadTupleFields.ParentPackagePayloadRef]; set => this.Set((int)WixBundlePayloadTupleFields.ParentPackagePayloadRef, value); } } }