Reference documentation and code samples for the Google Cloud Storage Transfer V1 Client class GcsData.
In a GcsData resource, an object's name is the Cloud Storage object's
name and its "last modification time" refers to the object's updated
property of Cloud Storage objects, which changes when the content or the
metadata of the object is updated.
Generated from protobuf message google.storagetransfer.v1.GcsData
Root path to transfer objects. Must be an empty string or full path name that ends with a '/'. This field is treated as an object prefix. As such, it should generally not begin with a '/'. The root path value must meet Object Name Requirements.
↳ managed_folder_transfer_enabled
bool
Preview. Enables the transfer of managed folders between Cloud Storage buckets. Set this option on the gcs_data_source. If set to true: - Managed folders in the source bucket are transferred to the destination bucket. - Managed folders in the destination bucket are overwritten. Other OVERWRITE options are not supported. See Transfer Cloud Storage managed folders.
Must be an empty string or full path name that ends with a '/'. This field
is treated as an object prefix. As such, it should generally not begin with
a '/'.
The root path value must meet
Object Name Requirements.
Returns
Type
Description
string
setPath
Root path to transfer objects.
Must be an empty string or full path name that ends with a '/'. This field
is treated as an object prefix. As such, it should generally not begin with
a '/'.
The root path value must meet
Object Name Requirements.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getManagedFolderTransferEnabled
Preview. Enables the transfer of managed folders between Cloud Storage
buckets. Set this option on the gcs_data_source.
If set to true:
Managed folders in the source bucket are transferred to the
destination bucket.
[[["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-09-09 UTC."],[],[],null,["# Google Cloud Storage Transfer V1 Client - Class GcsData (2.2.1)\n\nVersion latestkeyboard_arrow_down\n\n- [2.2.1 (latest)](/php/docs/reference/cloud-storage-transfer/latest/V1.GcsData)\n- [2.2.0](/php/docs/reference/cloud-storage-transfer/2.2.0/V1.GcsData)\n- [2.1.1](/php/docs/reference/cloud-storage-transfer/2.1.1/V1.GcsData)\n- [2.0.2](/php/docs/reference/cloud-storage-transfer/2.0.2/V1.GcsData)\n- [1.5.0](/php/docs/reference/cloud-storage-transfer/1.5.0/V1.GcsData)\n- [1.4.5](/php/docs/reference/cloud-storage-transfer/1.4.5/V1.GcsData)\n- [1.3.1](/php/docs/reference/cloud-storage-transfer/1.3.1/V1.GcsData)\n- [1.2.0](/php/docs/reference/cloud-storage-transfer/1.2.0/V1.GcsData)\n- [1.1.1](/php/docs/reference/cloud-storage-transfer/1.1.1/V1.GcsData)\n- [1.0.6](/php/docs/reference/cloud-storage-transfer/1.0.6/V1.GcsData) \nReference documentation and code samples for the Google Cloud Storage Transfer V1 Client class GcsData.\n\nIn a GcsData resource, an object's name is the Cloud Storage object's\nname and its \"last modification time\" refers to the object's `updated`\nproperty of Cloud Storage objects, which changes when the content or the\nmetadata of the object is updated.\n\nGenerated from protobuf message `google.storagetransfer.v1.GcsData`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ StorageTransfer \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getBucketName\n\nRequired. Cloud Storage bucket name. Must meet\n[Bucket Name Requirements](/storage/docs/naming#requirements).\n\n### setBucketName\n\nRequired. Cloud Storage bucket name. Must meet\n[Bucket Name Requirements](/storage/docs/naming#requirements).\n\n### getPath\n\nRoot path to transfer objects.\n\nMust be an empty string or full path name that ends with a '/'. This field\nis treated as an object prefix. As such, it should generally not begin with\na '/'.\nThe root path value must meet\n[Object Name Requirements](/storage/docs/naming#objectnames).\n\n### setPath\n\nRoot path to transfer objects.\n\nMust be an empty string or full path name that ends with a '/'. This field\nis treated as an object prefix. As such, it should generally not begin with\na '/'.\nThe root path value must meet\n[Object Name Requirements](/storage/docs/naming#objectnames).\n\n### getManagedFolderTransferEnabled\n\nPreview. Enables the transfer of managed folders between Cloud Storage\nbuckets. Set this option on the gcs_data_source.\n\nIf set to true:\n\n- Managed folders in the source bucket are transferred to the destination bucket.\n- Managed folders in the destination bucket are overwritten. Other OVERWRITE options are not supported. See [Transfer Cloud Storage managed\n folders](/storage-transfer/docs/managed-folders).\n\n### setManagedFolderTransferEnabled\n\nPreview. Enables the transfer of managed folders between Cloud Storage\nbuckets. Set this option on the gcs_data_source.\n\nIf set to true:\n\n- Managed folders in the source bucket are transferred to the destination bucket.\n- Managed folders in the destination bucket are overwritten. Other OVERWRITE options are not supported. See [Transfer Cloud Storage managed\n folders](/storage-transfer/docs/managed-folders)."]]