Required. The job to update. transferJob is expected to specify one or more of five fields: description, transfer_spec, notification_config, logging_config, and status. An UpdateTransferJobRequest that specifies other fields are rejected with the error INVALID_ARGUMENT. Updating a job status to DELETED requires storagetransfer.jobs.delete permission.
The field mask of the fields in transferJob that are to be updated in this request. Fields in transferJob that can be updated are: description, transfer_spec, notification_config, logging_config, and status. To update the transfer_spec of the job, a complete transfer specification must be provided. An incomplete specification missing any required fields is rejected with the error INVALID_ARGUMENT.
getJobName
Required. The name of job to update.
Returns
Type
Description
string
setJobName
Required. The name of job to update.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getProjectId
Required. The ID of the Google Cloud project that owns the
job.
Returns
Type
Description
string
setProjectId
Required. The ID of the Google Cloud project that owns the
job.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getTransferJob
Required. The job to update. transferJob is expected to specify one or
more of five fields:
description,
transfer_spec,
notification_config,
logging_config, and
status. An
UpdateTransferJobRequest that specifies other fields are rejected with
the error INVALID_ARGUMENT. Updating a
job status to
DELETED requires
storagetransfer.jobs.delete permission.
Required. The job to update. transferJob is expected to specify one or
more of five fields:
description,
transfer_spec,
notification_config,
logging_config, and
status. An
UpdateTransferJobRequest that specifies other fields are rejected with
the error INVALID_ARGUMENT. Updating a
job status to
DELETED requires
storagetransfer.jobs.delete permission.
The field mask of the fields in transferJob that are to be updated in
this request. Fields in transferJob that can be updated are:
description,
transfer_spec,
notification_config,
logging_config, and
status. To update the
transfer_spec of the job, a complete transfer specification must be
provided. An incomplete specification missing any required fields is
rejected with the error
INVALID_ARGUMENT.
The field mask of the fields in transferJob that are to be updated in
this request. Fields in transferJob that can be updated are:
description,
transfer_spec,
notification_config,
logging_config, and
status. To update the
transfer_spec of the job, a complete transfer specification must be
provided. An incomplete specification missing any required fields is
rejected with the error
INVALID_ARGUMENT.
[[["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 UpdateTransferJobRequest (2.2.1)\n\nVersion latestkeyboard_arrow_down\n\n- [2.2.1 (latest)](/php/docs/reference/cloud-storage-transfer/latest/V1.UpdateTransferJobRequest)\n- [2.2.0](/php/docs/reference/cloud-storage-transfer/2.2.0/V1.UpdateTransferJobRequest)\n- [2.1.1](/php/docs/reference/cloud-storage-transfer/2.1.1/V1.UpdateTransferJobRequest)\n- [2.0.2](/php/docs/reference/cloud-storage-transfer/2.0.2/V1.UpdateTransferJobRequest)\n- [1.5.0](/php/docs/reference/cloud-storage-transfer/1.5.0/V1.UpdateTransferJobRequest)\n- [1.4.5](/php/docs/reference/cloud-storage-transfer/1.4.5/V1.UpdateTransferJobRequest)\n- [1.3.1](/php/docs/reference/cloud-storage-transfer/1.3.1/V1.UpdateTransferJobRequest)\n- [1.2.0](/php/docs/reference/cloud-storage-transfer/1.2.0/V1.UpdateTransferJobRequest)\n- [1.1.1](/php/docs/reference/cloud-storage-transfer/1.1.1/V1.UpdateTransferJobRequest)\n- [1.0.6](/php/docs/reference/cloud-storage-transfer/1.0.6/V1.UpdateTransferJobRequest) \nReference documentation and code samples for the Google Cloud Storage Transfer V1 Client class UpdateTransferJobRequest.\n\nRequest passed to UpdateTransferJob.\n\nGenerated from protobuf message `google.storagetransfer.v1.UpdateTransferJobRequest`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ StorageTransfer \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getJobName\n\nRequired. The name of job to update.\n\n### setJobName\n\nRequired. The name of job to update.\n\n### getProjectId\n\nRequired. The ID of the Google Cloud project that owns the\njob.\n\n### setProjectId\n\nRequired. The ID of the Google Cloud project that owns the\njob.\n\n### getTransferJob\n\nRequired. The job to update. `transferJob` is expected to specify one or\nmore of five fields:\n[description](/php/docs/reference/cloud-storage-transfer/latest/V1.TransferJob#_Google_Cloud_StorageTransfer_V1_TransferJob__getDescription__),\n[transfer_spec](/php/docs/reference/cloud-storage-transfer/latest/V1.TransferJob#_Google_Cloud_StorageTransfer_V1_TransferJob__getTransferSpec__),\n[notification_config](/php/docs/reference/cloud-storage-transfer/latest/V1.TransferJob#_Google_Cloud_StorageTransfer_V1_TransferJob__getNotificationConfig__),\n[logging_config](/php/docs/reference/cloud-storage-transfer/latest/V1.TransferJob#_Google_Cloud_StorageTransfer_V1_TransferJob__getLoggingConfig__), and\n[status](/php/docs/reference/cloud-storage-transfer/latest/V1.TransferJob#_Google_Cloud_StorageTransfer_V1_TransferJob__getStatus__). An\n`UpdateTransferJobRequest` that specifies other fields are rejected with\nthe error [INVALID_ARGUMENT](https://cloud.google.com/php/docs/reference/common-protos/latest/Rpc.Code.html#_Google_Rpc_Code__INVALID_ARGUMENT). Updating a\njob status to\n[DELETED](/php/docs/reference/cloud-storage-transfer/latest/V1.TransferJob.Status#_Google_Cloud_StorageTransfer_V1_TransferJob_Status__DELETED) requires\n`storagetransfer.jobs.delete` permission.\n\n### hasTransferJob\n\n### clearTransferJob\n\n### setTransferJob\n\nRequired. The job to update. `transferJob` is expected to specify one or\nmore of five fields:\n[description](/php/docs/reference/cloud-storage-transfer/latest/V1.TransferJob#_Google_Cloud_StorageTransfer_V1_TransferJob__getDescription__),\n[transfer_spec](/php/docs/reference/cloud-storage-transfer/latest/V1.TransferJob#_Google_Cloud_StorageTransfer_V1_TransferJob__getTransferSpec__),\n[notification_config](/php/docs/reference/cloud-storage-transfer/latest/V1.TransferJob#_Google_Cloud_StorageTransfer_V1_TransferJob__getNotificationConfig__),\n[logging_config](/php/docs/reference/cloud-storage-transfer/latest/V1.TransferJob#_Google_Cloud_StorageTransfer_V1_TransferJob__getLoggingConfig__), and\n[status](/php/docs/reference/cloud-storage-transfer/latest/V1.TransferJob#_Google_Cloud_StorageTransfer_V1_TransferJob__getStatus__). An\n`UpdateTransferJobRequest` that specifies other fields are rejected with\nthe error [INVALID_ARGUMENT](https://cloud.google.com/php/docs/reference/common-protos/latest/Rpc.Code.html#_Google_Rpc_Code__INVALID_ARGUMENT). Updating a\njob status to\n[DELETED](/php/docs/reference/cloud-storage-transfer/latest/V1.TransferJob.Status#_Google_Cloud_StorageTransfer_V1_TransferJob_Status__DELETED) requires\n`storagetransfer.jobs.delete` permission.\n\n### getUpdateTransferJobFieldMask\n\nThe field mask of the fields in `transferJob` that are to be updated in\nthis request. Fields in `transferJob` that can be updated are:\n[description](/php/docs/reference/cloud-storage-transfer/latest/V1.TransferJob#_Google_Cloud_StorageTransfer_V1_TransferJob__getDescription__),\n[transfer_spec](/php/docs/reference/cloud-storage-transfer/latest/V1.TransferJob#_Google_Cloud_StorageTransfer_V1_TransferJob__getTransferSpec__),\n[notification_config](/php/docs/reference/cloud-storage-transfer/latest/V1.TransferJob#_Google_Cloud_StorageTransfer_V1_TransferJob__getNotificationConfig__),\n[logging_config](/php/docs/reference/cloud-storage-transfer/latest/V1.TransferJob#_Google_Cloud_StorageTransfer_V1_TransferJob__getLoggingConfig__), and\n[status](/php/docs/reference/cloud-storage-transfer/latest/V1.TransferJob#_Google_Cloud_StorageTransfer_V1_TransferJob__getStatus__). To update the\n`transfer_spec` of the job, a complete transfer specification must be\nprovided. An incomplete specification missing any required fields is\nrejected with the error\n[INVALID_ARGUMENT](https://cloud.google.com/php/docs/reference/common-protos/latest/Rpc.Code.html#_Google_Rpc_Code__INVALID_ARGUMENT).\n\n### hasUpdateTransferJobFieldMask\n\n### clearUpdateTransferJobFieldMask\n\n### setUpdateTransferJobFieldMask\n\nThe field mask of the fields in `transferJob` that are to be updated in\nthis request. Fields in `transferJob` that can be updated are:\n[description](/php/docs/reference/cloud-storage-transfer/latest/V1.TransferJob#_Google_Cloud_StorageTransfer_V1_TransferJob__getDescription__),\n[transfer_spec](/php/docs/reference/cloud-storage-transfer/latest/V1.TransferJob#_Google_Cloud_StorageTransfer_V1_TransferJob__getTransferSpec__),\n[notification_config](/php/docs/reference/cloud-storage-transfer/latest/V1.TransferJob#_Google_Cloud_StorageTransfer_V1_TransferJob__getNotificationConfig__),\n[logging_config](/php/docs/reference/cloud-storage-transfer/latest/V1.TransferJob#_Google_Cloud_StorageTransfer_V1_TransferJob__getLoggingConfig__), and\n[status](/php/docs/reference/cloud-storage-transfer/latest/V1.TransferJob#_Google_Cloud_StorageTransfer_V1_TransferJob__getStatus__). To update the\n`transfer_spec` of the job, a complete transfer specification must be\nprovided. An incomplete specification missing any required fields is\nrejected with the error\n[INVALID_ARGUMENT](https://cloud.google.com/php/docs/reference/common-protos/latest/Rpc.Code.html#_Google_Rpc_Code__INVALID_ARGUMENT)."]]