[[["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\u003eSecret\u003c/code\u003e class in the \u003ccode\u003eGoogle.Cloud.Metastore.V1Alpha\u003c/code\u003e namespace represents a securely stored value within the Dataproc Metastore v1alpha API.\u003c/p\u003e\n"],["\u003cp\u003eThis class implements multiple interfaces such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, providing various functionalities for working with the secret data.\u003c/p\u003e\n"],["\u003cp\u003eIt has properties for managing a Cloud Secret, including \u003ccode\u003eCloudSecret\u003c/code\u003e which holds the resource name of a Secret Manager secret version, \u003ccode\u003eHasCloudSecret\u003c/code\u003e to check if this field is set and \u003ccode\u003eValueCase\u003c/code\u003e to represent the type of the value stored.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSecret\u003c/code\u003e class supports two constructors: a default constructor and another that accepts another \u003ccode\u003eSecret\u003c/code\u003e object for initialization.\u003c/p\u003e\n"],["\u003cp\u003eThere are multiple versions of this class available, with the latest being \u003ccode\u003e2.0.0-alpha11\u003c/code\u003e, and older versions \u003ccode\u003e2.0.0-alpha10\u003c/code\u003e and \u003ccode\u003e1.0.0-alpha04\u003c/code\u003e also available.\u003c/p\u003e\n"]]],[],null,["# Dataproc Metastore v1alpha API - Class Secret (2.0.0-alpha11)\n\nVersion latestkeyboard_arrow_down\n\n- [2.0.0-alpha11 (latest)](/dotnet/docs/reference/Google.Cloud.Metastore.V1Alpha/latest/Google.Cloud.Metastore.V1Alpha.Secret)\n- [2.0.0-alpha10](/dotnet/docs/reference/Google.Cloud.Metastore.V1Alpha/2.0.0-alpha10/Google.Cloud.Metastore.V1Alpha.Secret)\n- [1.0.0-alpha04](/dotnet/docs/reference/Google.Cloud.Metastore.V1Alpha/1.0.0-alpha04/Google.Cloud.Metastore.V1Alpha.Secret) \n\n public sealed class Secret : IMessage\u003cSecret\u003e, IEquatable\u003cSecret\u003e, IDeepCloneable\u003cSecret\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Dataproc Metastore v1alpha API class Secret.\n\nA securely stored value. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e Secret \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[Secret](/dotnet/docs/reference/Google.Cloud.Metastore.V1Alpha/latest/Google.Cloud.Metastore.V1Alpha.Secret), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[Secret](/dotnet/docs/reference/Google.Cloud.Metastore.V1Alpha/latest/Google.Cloud.Metastore.V1Alpha.Secret), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[Secret](/dotnet/docs/reference/Google.Cloud.Metastore.V1Alpha/latest/Google.Cloud.Metastore.V1Alpha.Secret), [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.Metastore.V1Alpha](/dotnet/docs/reference/Google.Cloud.Metastore.V1Alpha/latest/Google.Cloud.Metastore.V1Alpha)\n\nAssembly\n--------\n\nGoogle.Cloud.Metastore.V1Alpha.dll\n\nConstructors\n------------\n\n### Secret()\n\n public Secret()\n\n### Secret(Secret)\n\n public Secret(Secret other)\n\nProperties\n----------\n\n### CloudSecret\n\n public string CloudSecret { get; set; }\n\nThe relative resource name of a Secret Manager secret version, in the\nfollowing form:\n\n`projects/{project_number}/secrets/{secret_id}/versions/{version_id}`.\n\n### HasCloudSecret\n\n public bool HasCloudSecret { get; }\n\nGets whether the \"cloud_secret\" field is set\n\n### ValueCase\n\n public Secret.ValueOneofCase ValueCase { get; }"]]