The ID to use for the function, which will become the final component of the function's resource name. This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/.
getParent
Required. The project and location in which the function should be created,
specified in the formatprojects/*/locations/*
Returns
Type
Description
string
setParent
Required. The project and location in which the function should be created,
specified in the formatprojects/*/locations/*
The ID to use for the function, which will become the final component of
the function's resource name.
This value should be 4-63 characters, and valid characters
are /[a-z][0-9]-/.
Returns
Type
Description
string
setFunctionId
The ID to use for the function, which will become the final component of
the function's resource name.
This value should be 4-63 characters, and valid characters
are /[a-z][0-9]-/.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
static::build
Parameters
Name
Description
parent
string
Required. The project and location in which the function should be created,
specified in the formatprojects/*/locations/*Please seeFunctionServiceClient::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 Functions V2 Client - Class CreateFunctionRequest (2.0.6)\n\nVersion latestkeyboard_arrow_down\n\n- [2.0.6 (latest)](/php/docs/reference/cloud-functions/latest/V2.CreateFunctionRequest)\n- [2.0.5](/php/docs/reference/cloud-functions/2.0.5/V2.CreateFunctionRequest)\n- [1.7.0](/php/docs/reference/cloud-functions/1.7.0/V2.CreateFunctionRequest)\n- [1.6.5](/php/docs/reference/cloud-functions/1.6.5/V2.CreateFunctionRequest)\n- [1.5.0](/php/docs/reference/cloud-functions/1.5.0/V2.CreateFunctionRequest)\n- [1.4.2](/php/docs/reference/cloud-functions/1.4.2/V2.CreateFunctionRequest)\n- [1.3.1](/php/docs/reference/cloud-functions/1.3.1/V2.CreateFunctionRequest)\n- [1.2.0](/php/docs/reference/cloud-functions/1.2.0/V2.CreateFunctionRequest)\n- [1.1.2](/php/docs/reference/cloud-functions/1.1.2/V2.CreateFunctionRequest)\n- [1.0.3](/php/docs/reference/cloud-functions/1.0.3/V2.CreateFunctionRequest) \nReference documentation and code samples for the Google Cloud Functions V2 Client class CreateFunctionRequest.\n\nRequest for the `CreateFunction` method.\n\nGenerated from protobuf message `google.cloud.functions.v2.CreateFunctionRequest`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Functions \\\\ V2\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getParent\n\nRequired. The project and location in which the function should be created,\nspecified in the format `projects/*/locations/*`\n\n### setParent\n\nRequired. The project and location in which the function should be created,\nspecified in the format `projects/*/locations/*`\n\n### getFunction\n\nRequired. Function to be created.\n\n### hasFunction\n\n### clearFunction\n\n### setFunction\n\nRequired. Function to be created.\n\n### getFunctionId\n\nThe ID to use for the function, which will become the final component of\nthe function's resource name.\n\nThis value should be 4-63 characters, and valid characters\nare /\\[a-z\\]\\[0-9\\]-/.\n\n### setFunctionId\n\nThe ID to use for the function, which will become the final component of\nthe function's resource name.\n\nThis value should be 4-63 characters, and valid characters\nare /\\[a-z\\]\\[0-9\\]-/.\n\n### static::build"]]