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].
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eGetSecretRequest\u003c/code\u003e class is used to request a secret from the Secret Manager v1 API in the Google Cloud platform.\u003c/p\u003e\n"],["\u003cp\u003eThis class is part of the \u003ccode\u003eGoogle.Cloud.SecretManager.V1\u003c/code\u003e namespace and is implemented in the \u003ccode\u003eGoogle.Cloud.SecretManager.V1.dll\u003c/code\u003e assembly, and is available in version 2.2.0 of the library, but has multiple versions, with 2.5.0 being the most recent.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eGetSecretRequest\u003c/code\u003e implements several interfaces including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable<GetSecretRequest>\u003c/code\u003e, \u003ccode\u003eIDeepCloneable<GetSecretRequest>\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eIt has two constructors, one default and another that takes another \u003ccode\u003eGetSecretRequest\u003c/code\u003e object as parameter, allowing for the cloning of requests.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eGetSecretRequest\u003c/code\u003e class includes two key properties: \u003ccode\u003eName\u003c/code\u003e which is a string representing the secret's resource name, and \u003ccode\u003eSecretName\u003c/code\u003e, which is a typed view of the \u003ccode\u003eName\u003c/code\u003e property.\u003c/p\u003e\n"]]],[],null,[]]