Required. The ID of the workflow to be created. It has to fulfill the following requirements: * * Must contain only letters, numbers, underscores and hyphens. * * Must start with a letter. * * Must be between 1-64 characters. * * Must end with a number or a letter. * * Must be unique within the customer project and location.
getParent
Required. Project and location in which the workflow should be created.
Format: projects/{project}/locations/{location}
Returns
Type
Description
string
setParent
Required. Project and location in which the workflow should be created.
Required. The ID of the workflow to be created. It has to fulfill the
following requirements:
Must contain only letters, numbers, underscores and hyphens.
Must start with a letter.
Must be between 1-64 characters.
Must end with a number or a letter.
Must be unique within the customer project and location.
Returns
Type
Description
string
setWorkflowId
Required. The ID of the workflow to be created. It has to fulfill the
following requirements:
Must contain only letters, numbers, underscores and hyphens.
Must start with a letter.
Must be between 1-64 characters.
Must end with a number or a letter.
Must be unique within the customer project and location.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
static::build
Parameters
Name
Description
parent
string
Required. Project and location in which the workflow should be created.
Format: projects/{project}/locations/{location}
Please seeWorkflowsClient::locationName()for help formatting this field.
[[["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,["# Google Cloud Workflows V1 Client - Class CreateWorkflowRequest (1.1.1)\n\nVersion latestkeyboard_arrow_down\n\n- [1.1.1 (latest)](/php/docs/reference/cloud-workflows/latest/V1.CreateWorkflowRequest)\n- [1.1.0](/php/docs/reference/cloud-workflows/1.1.0/V1.CreateWorkflowRequest)\n- [1.0.3](/php/docs/reference/cloud-workflows/1.0.3/V1.CreateWorkflowRequest)\n- [0.5.5](/php/docs/reference/cloud-workflows/0.5.5/V1.CreateWorkflowRequest)\n- [0.4.2](/php/docs/reference/cloud-workflows/0.4.2/V1.CreateWorkflowRequest)\n- [0.3.0](/php/docs/reference/cloud-workflows/0.3.0/V1.CreateWorkflowRequest)\n- [0.2.17](/php/docs/reference/cloud-workflows/0.2.17/V1.CreateWorkflowRequest) \nReference documentation and code samples for the Google Cloud Workflows V1 Client class CreateWorkflowRequest.\n\nRequest for the\n[CreateWorkflow](/php/docs/reference/cloud-workflows/latest/V1.Client.WorkflowsClient#_Google_Cloud_Workflows_V1_Client_WorkflowsClient__createWorkflow__)\nmethod.\n\nGenerated from protobuf message `google.cloud.workflows.v1.CreateWorkflowRequest`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Workflows \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getParent\n\nRequired. Project and location in which the workflow should be created.\n\nFormat: projects/{project}/locations/{location}\n\n### setParent\n\nRequired. Project and location in which the workflow should be created.\n\nFormat: projects/{project}/locations/{location}\n\n### getWorkflow\n\nRequired. Workflow to be created.\n\n### hasWorkflow\n\n### clearWorkflow\n\n### setWorkflow\n\nRequired. Workflow to be created.\n\n### getWorkflowId\n\nRequired. The ID of the workflow to be created. It has to fulfill the\nfollowing requirements:\n\n- Must contain only letters, numbers, underscores and hyphens.\n\n- Must start with a letter.\n\n- Must be between 1-64 characters.\n- Must end with a number or a letter.\n- Must be unique within the customer project and location.\n\n### setWorkflowId\n\nRequired. The ID of the workflow to be created. It has to fulfill the\nfollowing requirements:\n\n- Must contain only letters, numbers, underscores and hyphens.\n\n- Must start with a letter.\n\n- Must be between 1-64 characters.\n- Must end with a number or a letter.\n- Must be unique within the customer project and location.\n\n### static::build"]]