2.8.0 (latest) 2.7.0 2.6.0 2.5.0 2.4.0 2.3.0 2.2.0 2.1.0 2.0.0 1.3.0 1.2.0 1.1.0

    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.

Request for the `GetFunction` method.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> GetFunctionRequest

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[GetFunctionRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Functions.V1/latest/Google.Cloud.Functions.V1.GetFunctionRequest.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[GetFunctionRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Functions.V1/latest/Google.Cloud.Functions.V1.GetFunctionRequest.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[GetFunctionRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Functions.V1/latest/Google.Cloud.Functions.V1.GetFunctionRequest.md.txt), [IBufferMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.md.txt), [IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.md.txt)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.Functions.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Functions.V1/latest/Google.Cloud.Functions.V1.md.txt)

## Assembly

Google.Cloud.Functions.V1.dll

## Constructors

### GetFunctionRequest()

    public GetFunctionRequest()

### GetFunctionRequest(GetFunctionRequest)

    public GetFunctionRequest(GetFunctionRequest other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `GetFunctionRequest` |

## Properties

### CloudFunctionName

    public CloudFunctionName CloudFunctionName { get; set; }

[CloudFunctionName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Functions.V1/latest/Google.Cloud.Functions.V1.CloudFunctionName.md.txt)-typed view over the [Name](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Functions.V1/latest/Google.Cloud.Functions.V1.GetFunctionRequest.md.txt#Google_Cloud_Functions_V1_GetFunctionRequest_Name) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `CloudFunctionName` |   |

### Name

    public string Name { get; set; }

Required. The name of the function which details should be obtained.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### VersionId

    public long VersionId { get; set; }

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.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `long` |   |