public sealed class GetFunctionRequest : IMessage<GetFunctionRequest>, IEquatable<GetFunctionRequest>, IDeepCloneable<GetFunctionRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud Functions v2 API class GetFunctionRequest.
Optional. The 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.
[[["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."],[[["\u003cp\u003eThe latest version of the \u003ccode\u003eGetFunctionRequest\u003c/code\u003e class is 1.7.0, within the \u003ccode\u003eGoogle.Cloud.Functions.V2\u003c/code\u003e API.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eGetFunctionRequest\u003c/code\u003e is a request class used to retrieve details of a specific function in the Cloud Functions v2 API.\u003c/p\u003e\n"],["\u003cp\u003eThe class provides methods for retrieving function details, including the function's name via \u003ccode\u003eName\u003c/code\u003e property and optionally the \u003ccode\u003eRevision\u003c/code\u003e of a 1st generation function.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eGetFunctionRequest\u003c/code\u003e implements several interfaces including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, allowing for flexible object handling.\u003c/p\u003e\n"],["\u003cp\u003ePrevious versions of \u003ccode\u003eGetFunctionRequest\u003c/code\u003e from 1.0.0 to 1.6.0 are also documented and accessible, providing a version history.\u003c/p\u003e\n"]]],[],null,["# Cloud Functions v2 API - Class GetFunctionRequest (1.7.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.7.0 (latest)](/dotnet/docs/reference/Google.Cloud.Functions.V2/latest/Google.Cloud.Functions.V2.GetFunctionRequest)\n- [1.6.0](/dotnet/docs/reference/Google.Cloud.Functions.V2/1.6.0/Google.Cloud.Functions.V2.GetFunctionRequest)\n- [1.5.0](/dotnet/docs/reference/Google.Cloud.Functions.V2/1.5.0/Google.Cloud.Functions.V2.GetFunctionRequest)\n- [1.4.0](/dotnet/docs/reference/Google.Cloud.Functions.V2/1.4.0/Google.Cloud.Functions.V2.GetFunctionRequest)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.Functions.V2/1.3.0/Google.Cloud.Functions.V2.GetFunctionRequest)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.Functions.V2/1.2.0/Google.Cloud.Functions.V2.GetFunctionRequest)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.Functions.V2/1.1.0/Google.Cloud.Functions.V2.GetFunctionRequest)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.Functions.V2/1.0.0/Google.Cloud.Functions.V2.GetFunctionRequest) \n\n public sealed class GetFunctionRequest : IMessage\u003cGetFunctionRequest\u003e, IEquatable\u003cGetFunctionRequest\u003e, IDeepCloneable\u003cGetFunctionRequest\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Cloud Functions v2 API class GetFunctionRequest.\n\nRequest for the `GetFunction` method. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e GetFunctionRequest \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[GetFunctionRequest](/dotnet/docs/reference/Google.Cloud.Functions.V2/latest/Google.Cloud.Functions.V2.GetFunctionRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[GetFunctionRequest](/dotnet/docs/reference/Google.Cloud.Functions.V2/latest/Google.Cloud.Functions.V2.GetFunctionRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[GetFunctionRequest](/dotnet/docs/reference/Google.Cloud.Functions.V2/latest/Google.Cloud.Functions.V2.GetFunctionRequest), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.Functions.V2](/dotnet/docs/reference/Google.Cloud.Functions.V2/latest/Google.Cloud.Functions.V2)\n\nAssembly\n--------\n\nGoogle.Cloud.Functions.V2.dll\n\nConstructors\n------------\n\n### GetFunctionRequest()\n\n public GetFunctionRequest()\n\n### GetFunctionRequest(GetFunctionRequest)\n\n public GetFunctionRequest(GetFunctionRequest other)\n\nProperties\n----------\n\n### FunctionName\n\n public FunctionName FunctionName { get; set; }\n\n[FunctionName](/dotnet/docs/reference/Google.Cloud.Functions.V2/latest/Google.Cloud.Functions.V2.FunctionName)-typed view over the [Name](/dotnet/docs/reference/Google.Cloud.Functions.V2/latest/Google.Cloud.Functions.V2.GetFunctionRequest#Google_Cloud_Functions_V2_GetFunctionRequest_Name) resource name property.\n\n### Name\n\n public string Name { get; set; }\n\nRequired. The name of the function which details should be obtained.\n\n### Revision\n\n public string Revision { get; set; }\n\nOptional. The 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."]]