[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe \u003ccode\u003ePackage\u003c/code\u003e class in the Security Command Center v2 API provides a generic definition for a software package and is part of the \u003ccode\u003eGoogle.Cloud.SecurityCenter.V2\u003c/code\u003e namespace.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ePackage\u003c/code\u003e class implements several interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable<Package>\u003c/code\u003e, \u003ccode\u003eIDeepCloneable<Package>\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, allowing for functionalities such as deep cloning and buffer message handling.\u003c/p\u003e\n"],["\u003cp\u003eIt has two constructors, one for creating a new empty \u003ccode\u003ePackage\u003c/code\u003e instance and another for creating a copy of an existing \u003ccode\u003ePackage\u003c/code\u003e instance, named \u003ccode\u003ePackage(Package other)\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of the \u003ccode\u003ePackage\u003c/code\u003e class include \u003ccode\u003eCpeUri\u003c/code\u003e, \u003ccode\u003ePackageName\u003c/code\u003e, \u003ccode\u003ePackageType\u003c/code\u003e, and \u003ccode\u003ePackageVersion\u003c/code\u003e, all of which are of type \u003ccode\u003estring\u003c/code\u003e and provide information about the package's location, name, type, and version, respectively.\u003c/p\u003e\n"]]],[],null,["# Security Command Center v2 API - Class Package (1.2.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.2.0 (latest)](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.Package)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/1.1.0/Google.Cloud.SecurityCenter.V2.Package)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/1.0.0/Google.Cloud.SecurityCenter.V2.Package) \n\n public sealed class Package : IMessage\u003cPackage\u003e, IEquatable\u003cPackage\u003e, IDeepCloneable\u003cPackage\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Security Command Center v2 API class Package.\n\nPackage is a generic definition of a package. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e Package \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[Package](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.Package), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[Package](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.Package), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[Package](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.Package), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.SecurityCenter.V2](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2)\n\nAssembly\n--------\n\nGoogle.Cloud.SecurityCenter.V2.dll\n\nConstructors\n------------\n\n### Package()\n\n public Package()\n\n### Package(Package)\n\n public Package(Package other)\n\nProperties\n----------\n\n### CpeUri\n\n public string CpeUri { get; set; }\n\nThe CPE URI where the vulnerability was detected.\n\n### PackageName\n\n public string PackageName { get; set; }\n\nThe name of the package where the vulnerability was detected.\n\n### PackageType\n\n public string PackageType { get; set; }\n\nType of package, for example, os, maven, or go.\n\n### PackageVersion\n\n public string PackageVersion { get; set; }\n\nThe version of the package."]]