public sealed class GetFunctionRequest : IMessage<GetFunctionRequest>, IEquatable<GetFunctionRequest>, IDeepCloneable<GetFunctionRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud Functions v2beta API class GetFunctionRequest.
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.
[[["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 \u003ccode\u003eGetFunctionRequest\u003c/code\u003e class is part of the Cloud Functions v2beta API, used to request details about a specific function.\u003c/p\u003e\n"],["\u003cp\u003eThis class 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, for comprehensive functionality.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eGetFunctionRequest\u003c/code\u003e class contains properties such as \u003ccode\u003eFunctionName\u003c/code\u003e, \u003ccode\u003eName\u003c/code\u003e, and \u003ccode\u003eRevision\u003c/code\u003e, which are used to identify and specify the details of the requested function.\u003c/p\u003e\n"],["\u003cp\u003eThere are two constructors for \u003ccode\u003eGetFunctionRequest\u003c/code\u003e, a default and another that accepts a \u003ccode\u003eGetFunctionRequest\u003c/code\u003e instance as a parameter for copying values.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eName\u003c/code\u003e property, which is a required string, holds the name of the function, while the optional \u003ccode\u003eRevision\u003c/code\u003e property is only valid for 1st gen functions.\u003c/p\u003e\n"]]],[],null,["# Cloud Functions v2beta API - Class GetFunctionRequest (1.0.0-beta07)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.0-beta07 (latest)](/dotnet/docs/reference/Google.Cloud.Functions.V2Beta/latest/Google.Cloud.Functions.V2Beta.GetFunctionRequest)\n- [1.0.0-beta06](/dotnet/docs/reference/Google.Cloud.Functions.V2Beta/1.0.0-beta06/Google.Cloud.Functions.V2Beta.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 v2beta 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.V2Beta/latest/Google.Cloud.Functions.V2Beta.GetFunctionRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[GetFunctionRequest](/dotnet/docs/reference/Google.Cloud.Functions.V2Beta/latest/Google.Cloud.Functions.V2Beta.GetFunctionRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[GetFunctionRequest](/dotnet/docs/reference/Google.Cloud.Functions.V2Beta/latest/Google.Cloud.Functions.V2Beta.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.V2Beta](/dotnet/docs/reference/Google.Cloud.Functions.V2Beta/latest/Google.Cloud.Functions.V2Beta)\n\nAssembly\n--------\n\nGoogle.Cloud.Functions.V2Beta.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.V2Beta/latest/Google.Cloud.Functions.V2Beta.FunctionName)-typed view over the [Name](/dotnet/docs/reference/Google.Cloud.Functions.V2Beta/latest/Google.Cloud.Functions.V2Beta.GetFunctionRequest#Google_Cloud_Functions_V2Beta_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 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."]]