public sealed class GetFunctionRequest : IMessage<GetFunctionRequest>, IEquatable<GetFunctionRequest>, IDeepCloneable<GetFunctionRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud Functions v1 API class GetFunctionRequest.
Optional. The optional version of the 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. Each deployment creates a config
version of the underlying function. GCF may keep historical configs for old
versions. This field can be specified to fetch the historical configs.
Leave it blank or set to 0 to get the latest version of the 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\u003eThis document provides reference documentation for the \u003ccode\u003eGetFunctionRequest\u003c/code\u003e class within the Google Cloud Functions v1 API, specifically for .NET developers.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eGetFunctionRequest\u003c/code\u003e is a class used to request details of a Google Cloud Function, implementing interfaces like \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of this API is 2.7.0, and historical versions dating back to 1.1.0 are also available for reference in the documentation.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eGetFunctionRequest\u003c/code\u003e class includes properties such as \u003ccode\u003eCloudFunctionName\u003c/code\u003e, \u003ccode\u003eName\u003c/code\u003e, and \u003ccode\u003eVersionId\u003c/code\u003e, which are used to specify the target function and its optional historical version.\u003c/p\u003e\n"],["\u003cp\u003eThe class features two constructors: a default \u003ccode\u003eGetFunctionRequest()\u003c/code\u003e constructor and another one that takes a \u003ccode\u003eGetFunctionRequest\u003c/code\u003e object as a parameter, enabling object duplication.\u003c/p\u003e\n"]]],[],null,["# Cloud Functions v1 API - Class GetFunctionRequest (2.7.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.7.0 (latest)](/dotnet/docs/reference/Google.Cloud.Functions.V1/latest/Google.Cloud.Functions.V1.GetFunctionRequest)\n- [2.6.0](/dotnet/docs/reference/Google.Cloud.Functions.V1/2.6.0/Google.Cloud.Functions.V1.GetFunctionRequest)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.Functions.V1/2.5.0/Google.Cloud.Functions.V1.GetFunctionRequest)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.Functions.V1/2.4.0/Google.Cloud.Functions.V1.GetFunctionRequest)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.Functions.V1/2.3.0/Google.Cloud.Functions.V1.GetFunctionRequest)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.Functions.V1/2.2.0/Google.Cloud.Functions.V1.GetFunctionRequest)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.Functions.V1/2.1.0/Google.Cloud.Functions.V1.GetFunctionRequest)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.Functions.V1/2.0.0/Google.Cloud.Functions.V1.GetFunctionRequest)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.Functions.V1/1.3.0/Google.Cloud.Functions.V1.GetFunctionRequest)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.Functions.V1/1.2.0/Google.Cloud.Functions.V1.GetFunctionRequest)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.Functions.V1/1.1.0/Google.Cloud.Functions.V1.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 v1 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.V1/latest/Google.Cloud.Functions.V1.GetFunctionRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[GetFunctionRequest](/dotnet/docs/reference/Google.Cloud.Functions.V1/latest/Google.Cloud.Functions.V1.GetFunctionRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[GetFunctionRequest](/dotnet/docs/reference/Google.Cloud.Functions.V1/latest/Google.Cloud.Functions.V1.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.V1](/dotnet/docs/reference/Google.Cloud.Functions.V1/latest/Google.Cloud.Functions.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.Functions.V1.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### CloudFunctionName\n\n public CloudFunctionName CloudFunctionName { get; set; }\n\n[CloudFunctionName](/dotnet/docs/reference/Google.Cloud.Functions.V1/latest/Google.Cloud.Functions.V1.CloudFunctionName)-typed view over the [Name](/dotnet/docs/reference/Google.Cloud.Functions.V1/latest/Google.Cloud.Functions.V1.GetFunctionRequest#Google_Cloud_Functions_V1_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### VersionId\n\n public long VersionId { get; set; }\n\nOptional. The optional version of the function whose details should be\nobtained. The version of a 1st Gen function is an integer that starts from\n1 and gets incremented on redeployments. Each deployment creates a config\nversion of the underlying function. GCF may keep historical configs for old\nversions. This field can be specified to fetch the historical configs.\nLeave it blank or set to 0 to get the latest version of the function."]]