Reference documentation and code samples for the Google Cloud Dataflow V1beta3 Client 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.
Generated from protobuf message google.dataflow.v1beta3.Package
Namespace
Google \ Cloud \ Dataflow \ V1beta3
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ name
string
The name of the package.
↳ location
string
The resource to read the package from. The supported resource type is: Google Cloud Storage: storage.googleapis.com/{bucket} bucket.storage.googleapis.com/
getName
The name of the package.
Returns
Type
Description
string
setName
The name of the package.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getLocation
The resource to read the package from. The supported resource type is:
Google Cloud Storage:
storage.googleapis.com/{bucket}
bucket.storage.googleapis.com/
Returns
Type
Description
string
setLocation
The resource to read the package from. The supported resource type is:
Google Cloud Storage:
storage.googleapis.com/{bucket}
bucket.storage.googleapis.com/
[[["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-28 UTC."],[],[],null,["# Google Cloud Dataflow V1beta3 Client - Class Package (0.8.2)\n\nVersion latestkeyboard_arrow_down\n\n- [0.8.2 (latest)](/php/docs/reference/cloud-dataflow/latest/V1beta3.Package)\n- [0.8.1](/php/docs/reference/cloud-dataflow/0.8.1/V1beta3.Package)\n- [0.7.1](/php/docs/reference/cloud-dataflow/0.7.1/V1beta3.Package)\n- [0.6.6](/php/docs/reference/cloud-dataflow/0.6.6/V1beta3.Package)\n- [0.5.1](/php/docs/reference/cloud-dataflow/0.5.1/V1beta3.Package)\n- [0.4.1](/php/docs/reference/cloud-dataflow/0.4.1/V1beta3.Package)\n- [0.3.10](/php/docs/reference/cloud-dataflow/0.3.10/V1beta3.Package) \n| **Beta**\n|\n|\n| This library is covered by the [Pre-GA Offerings Terms](/terms/service-terms#1)\n| of the Terms of Service. Pre-GA libraries might have limited support,\n| and changes to pre-GA libraries might not be compatible with other pre-GA versions.\n| For more information, see the\n[launch stage descriptions](/products#product-launch-stages). \nReference documentation and code samples for the Google Cloud Dataflow V1beta3 Client 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\nGenerated from protobuf message `google.dataflow.v1beta3.Package`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Dataflow \\\\ V1beta3\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getName\n\nThe name of the package.\n\n### setName\n\nThe name of the package.\n\n### getLocation\n\nThe resource to read the package from. The supported resource type is:\nGoogle Cloud Storage:\nstorage.googleapis.com/{bucket}\nbucket.storage.googleapis.com/\n\n### setLocation\n\nThe resource to read the package from. The supported resource type is:\nGoogle Cloud Storage:\nstorage.googleapis.com/{bucket}\nbucket.storage.googleapis.com/"]]