public sealed class Package : IMessage<Package>, IEquatable<Package>, IDeepCloneable<Package>, IBufferMessage, IMessage
Reference documentation and code samples for the Dataflow v1beta3 API class Package.
The packages that must be installed in order for a worker to run the
steps of the Cloud Dataflow job that will be assigned to its worker
pool.
This is the mechanism by which the Cloud Dataflow SDK causes code to
be loaded onto the workers. For example, the Cloud Dataflow Java SDK
might use this to install jars containing the user's code and all of the
various dependencies (libraries, data files, etc.) required in order
for that code to run.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe \u003ccode\u003ePackage\u003c/code\u003e class in the Dataflow v1beta3 API represents the necessary packages for a worker to execute Cloud Dataflow job steps.\u003c/p\u003e\n"],["\u003cp\u003eThis class serves as the method for the Cloud Dataflow SDK to install code onto the workers, including user code and dependencies.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ePackage\u003c/code\u003e class implements interfaces like \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, and inherits from the \u003ccode\u003eobject\u003c/code\u003e class.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ePackage\u003c/code\u003e class has two constructors, one default and another that copies an existing \u003ccode\u003ePackage\u003c/code\u003e object.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ePackage\u003c/code\u003e class has two properties, \u003ccode\u003eLocation\u003c/code\u003e and \u003ccode\u003eName\u003c/code\u003e, which specify the storage location and the name of the package, respectively.\u003c/p\u003e\n"]]],[],null,["# Dataflow v1beta3 API - Class Package (2.0.0-beta07)\n\nVersion latestkeyboard_arrow_down\n\n- [2.0.0-beta07 (latest)](/dotnet/docs/reference/Google.Cloud.Dataflow.V1Beta3/latest/Google.Cloud.Dataflow.V1Beta3.Package)\n- [2.0.0-beta06](/dotnet/docs/reference/Google.Cloud.Dataflow.V1Beta3/2.0.0-beta06/Google.Cloud.Dataflow.V1Beta3.Package)\n- [1.0.0-beta03](/dotnet/docs/reference/Google.Cloud.Dataflow.V1Beta3/1.0.0-beta03/Google.Cloud.Dataflow.V1Beta3.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 Dataflow v1beta3 API class Package.\n\nThe packages that must be installed in order for a worker to run the\nsteps of the Cloud Dataflow job that will be assigned to its worker\npool.\n\nThis is the mechanism by which the Cloud Dataflow SDK causes code to\nbe loaded onto the workers. For example, the Cloud Dataflow Java SDK\nmight use this to install jars containing the user's code and all of the\nvarious dependencies (libraries, data files, etc.) required in order\nfor that code to run. \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.Dataflow.V1Beta3/latest/Google.Cloud.Dataflow.V1Beta3.Package), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[Package](/dotnet/docs/reference/Google.Cloud.Dataflow.V1Beta3/latest/Google.Cloud.Dataflow.V1Beta3.Package), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[Package](/dotnet/docs/reference/Google.Cloud.Dataflow.V1Beta3/latest/Google.Cloud.Dataflow.V1Beta3.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.Dataflow.V1Beta3](/dotnet/docs/reference/Google.Cloud.Dataflow.V1Beta3/latest/Google.Cloud.Dataflow.V1Beta3)\n\nAssembly\n--------\n\nGoogle.Cloud.Dataflow.V1Beta3.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### Location\n\n public string Location { get; set; }\n\nThe resource to read the package from. The supported resource type is:\n\nGoogle Cloud Storage:\n\nstorage.googleapis.com/{bucket}\nbucket.storage.googleapis.com/\n\n### Name\n\n public string Name { get; set; }\n\nThe name of the package."]]