3.0.0 (latest) 2.8.0 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.9.0 1.8.0 1.7.0 1.6.0 1.5.0 1.4.0 1.3.0

    public sealed class GetSecretRequest : IMessage<GetSecretRequest>, IEquatable<GetSecretRequest>, IDeepCloneable<GetSecretRequest>, IBufferMessage, IMessage

Reference documentation and code samples for the Secret Manager v1 API class GetSecretRequest.

Request message for
\[SecretManagerService.GetSecret\]\[google.cloud.secretmanager.v1.SecretManagerService.GetSecret\].

## Inheritance

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

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[GetSecretRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecretManager.V1/latest/Google.Cloud.SecretManager.V1.GetSecretRequest.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[GetSecretRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecretManager.V1/latest/Google.Cloud.SecretManager.V1.GetSecretRequest.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[GetSecretRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecretManager.V1/latest/Google.Cloud.SecretManager.V1.GetSecretRequest.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.SecretManager.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecretManager.V1/latest/Google.Cloud.SecretManager.V1.md.txt)

## Assembly

Google.Cloud.SecretManager.V1.dll

## Constructors

### GetSecretRequest()

    public GetSecretRequest()

### GetSecretRequest(GetSecretRequest)

    public GetSecretRequest(GetSecretRequest other)

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

## Properties

### Name

    public string Name { get; set; }

Required. The resource name of the
\[Secret\]\[google.cloud.secretmanager.v1.Secret\], in the format
`projects/*/secrets/*` or `projects/*/locations/*/secrets/*`.

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

### SecretName

    public SecretName SecretName { get; set; }

[SecretName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecretManager.V1/latest/Google.Cloud.SecretManager.V1.SecretName.md.txt)-typed view over the [Name](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecretManager.V1/latest/Google.Cloud.SecretManager.V1.GetSecretRequest.md.txt#Google_Cloud_SecretManager_V1_GetSecretRequest_Name) resource name property.

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