Required. The job to add. The user can optionally specify a name for the job inname.namecannot be the same as an existing job. If a name is not specified then the system will generate a random unique name that will be returned (name) in the response.
getParent
Required. The location name. For example:projects/PROJECT_ID/locations/LOCATION_ID.
Returns
Type
Description
string
setParent
Required. The location name. For example:projects/PROJECT_ID/locations/LOCATION_ID.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getJob
Required. The job to add. The user can optionally specify a name for the
job inname.
namecannot be the same as an
existing job. If a name is not specified then the system will
generate a random unique name that will be returned
(name) in the response.
Required. The job to add. The user can optionally specify a name for the
job inname.
namecannot be the same as an
existing job. If a name is not specified then the system will
generate a random unique name that will be returned
(name) in the response.
Required. The location name. For example:projects/PROJECT_ID/locations/LOCATION_ID. Please seeCloudSchedulerClient::locationName()for help formatting this field.
Required. The job to add. The user can optionally specify a name for the
job inname.namecannot be the same as an
existing job. If a name is not specified then the system will
generate a random unique name that will be returned
(name) in the response.
[[["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-04 UTC."],[],[],null,["# Cloud Scheduler V1 Client - Class CreateJobRequest (2.0.5)\n\nVersion latestkeyboard_arrow_down\n\n- [2.0.5 (latest)](/php/docs/reference/cloud-scheduler/latest/V1.CreateJobRequest)\n- [2.0.4](/php/docs/reference/cloud-scheduler/2.0.4/V1.CreateJobRequest)\n- [1.10.5](/php/docs/reference/cloud-scheduler/1.10.5/V1.CreateJobRequest)\n- [1.9.4](/php/docs/reference/cloud-scheduler/1.9.4/V1.CreateJobRequest)\n- [1.8.3](/php/docs/reference/cloud-scheduler/1.8.3/V1.CreateJobRequest)\n- [1.7.1](/php/docs/reference/cloud-scheduler/1.7.1/V1.CreateJobRequest)\n- [1.6.8](/php/docs/reference/cloud-scheduler/1.6.8/V1.CreateJobRequest) \nReference documentation and code samples for the Cloud Scheduler V1 Client class CreateJobRequest.\n\nRequest message for\n[CreateJob](/php/docs/reference/cloud-scheduler/latest/V1.Client.CloudSchedulerClient#_Google_Cloud_Scheduler_V1_Client_CloudSchedulerClient__createJob__).\n\nGenerated from protobuf message `google.cloud.scheduler.v1.CreateJobRequest`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Scheduler \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getParent\n\nRequired. The location name. For example:\n`projects/PROJECT_ID/locations/LOCATION_ID`.\n\n### setParent\n\nRequired. The location name. For example:\n`projects/PROJECT_ID/locations/LOCATION_ID`.\n\n### getJob\n\nRequired. The job to add. The user can optionally specify a name for the\njob in [name](/php/docs/reference/cloud-scheduler/latest/V1.Job#_Google_Cloud_Scheduler_V1_Job__getName__).\n\n[name](/php/docs/reference/cloud-scheduler/latest/V1.Job#_Google_Cloud_Scheduler_V1_Job__getName__) cannot be the same as an\nexisting job. If a name is not specified then the system will\ngenerate a random unique name that will be returned\n([name](/php/docs/reference/cloud-scheduler/latest/V1.Job#_Google_Cloud_Scheduler_V1_Job__getName__)) in the response.\n\n### hasJob\n\n### clearJob\n\n### setJob\n\nRequired. The job to add. The user can optionally specify a name for the\njob in [name](/php/docs/reference/cloud-scheduler/latest/V1.Job#_Google_Cloud_Scheduler_V1_Job__getName__).\n\n[name](/php/docs/reference/cloud-scheduler/latest/V1.Job#_Google_Cloud_Scheduler_V1_Job__getName__) cannot be the same as an\nexisting job. If a name is not specified then the system will\ngenerate a random unique name that will be returned\n([name](/php/docs/reference/cloud-scheduler/latest/V1.Job#_Google_Cloud_Scheduler_V1_Job__getName__)) in the response.\n\n### static::build"]]