Reference documentation and code samples for the Google Cloud Functions V2 Client class GetFunctionRequest.
Request for theGetFunctionmethod.
Generated from protobuf messagegoogle.cloud.functions.v2.GetFunctionRequest
Namespace
Google \ Cloud \ Functions \ V2
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ name
string
Required. The name of the function which details should be obtained.
↳ revision
string
Optional. The optional version of the 1st gen function whose details should be obtained. The version of a 1st gen function is an integer that starts from 1 and gets incremented on redeployments. GCF may keep historical configs for old versions of 1st gen function. This field can be specified to fetch the historical configs. This field is valid only for GCF 1st gen function.
getName
Required. The name of the function which details should be obtained.
Returns
Type
Description
string
setName
Required. The name of the function which details should be obtained.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getRevision
Optional. The optional version of the 1st gen function whose details should
be obtained. The version of a 1st gen function is an integer that starts
from 1 and gets incremented on redeployments. GCF may keep historical
configs for old versions of 1st gen function. This field can be specified
to fetch the historical configs. This field is valid only for GCF 1st gen
function.
Returns
Type
Description
string
setRevision
Optional. The optional version of the 1st gen function whose details should
be obtained. The version of a 1st gen function is an integer that starts
from 1 and gets incremented on redeployments. GCF may keep historical
configs for old versions of 1st gen function. This field can be specified
to fetch the historical configs. This field is valid only for GCF 1st gen
function.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
static::build
Parameter
Name
Description
name
string
Required. The name of the function which details should be obtained. Please seeFunctionServiceClient::functionName()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 GetFunctionRequest (2.0.6)\n\nVersion latestkeyboard_arrow_down\n\n- [2.0.6 (latest)](/php/docs/reference/cloud-functions/latest/V2.GetFunctionRequest)\n- [2.0.5](/php/docs/reference/cloud-functions/2.0.5/V2.GetFunctionRequest)\n- [1.7.0](/php/docs/reference/cloud-functions/1.7.0/V2.GetFunctionRequest)\n- [1.6.5](/php/docs/reference/cloud-functions/1.6.5/V2.GetFunctionRequest)\n- [1.5.0](/php/docs/reference/cloud-functions/1.5.0/V2.GetFunctionRequest)\n- [1.4.2](/php/docs/reference/cloud-functions/1.4.2/V2.GetFunctionRequest)\n- [1.3.1](/php/docs/reference/cloud-functions/1.3.1/V2.GetFunctionRequest)\n- [1.2.0](/php/docs/reference/cloud-functions/1.2.0/V2.GetFunctionRequest)\n- [1.1.2](/php/docs/reference/cloud-functions/1.1.2/V2.GetFunctionRequest)\n- [1.0.3](/php/docs/reference/cloud-functions/1.0.3/V2.GetFunctionRequest) \nReference documentation and code samples for the Google Cloud Functions V2 Client class GetFunctionRequest.\n\nRequest for the `GetFunction` method.\n\nGenerated from protobuf message `google.cloud.functions.v2.GetFunctionRequest`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Functions \\\\ V2\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getName\n\nRequired. The name of the function which details should be obtained.\n\n### setName\n\nRequired. The name of the function which details should be obtained.\n\n### getRevision\n\nOptional. The optional version of the 1st gen function whose details should\nbe obtained. The version of a 1st gen function is an integer that starts\nfrom 1 and gets incremented on redeployments. GCF may keep historical\nconfigs for old versions of 1st gen function. This field can be specified\nto fetch the historical configs. This field is valid only for GCF 1st gen\nfunction.\n\n### setRevision\n\nOptional. The optional version of the 1st gen function whose details should\nbe obtained. The version of a 1st gen function is an integer that starts\nfrom 1 and gets incremented on redeployments. GCF may keep historical\nconfigs for old versions of 1st gen function. This field can be specified\nto fetch the historical configs. This field is valid only for GCF 1st gen\nfunction.\n\n### static::build"]]