public sealed class OAuthCredentials.Types.SecretBased : IMessage<OAuthCredentials.Types.SecretBased>, IEquatable<OAuthCredentials.Types.SecretBased>, IDeepCloneable<OAuthCredentials.Types.SecretBased>, IBufferMessage, IMessage
Reference documentation and code samples for the Data Analytics API with Gemini v1beta API class OAuthCredentials.Types.SecretBased.
The name of the secret containing the access token.
Represents secret-based OAuth credentials.
[[["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-04 UTC."],[],[],null,["# Data Analytics API with Gemini v1beta API - Class OAuthCredentials.Types.SecretBased (1.0.0-beta01)\n\n public sealed class OAuthCredentials.Types.SecretBased : IMessage\u003cOAuthCredentials.Types.SecretBased\u003e, IEquatable\u003cOAuthCredentials.Types.SecretBased\u003e, IDeepCloneable\u003cOAuthCredentials.Types.SecretBased\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Data Analytics API with Gemini v1beta API class OAuthCredentials.Types.SecretBased.\n\nThe name of the secret containing the access token.\nRepresents secret-based OAuth credentials. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e OAuthCredentials.Types.SecretBased \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[OAuthCredentials](/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1Beta/latest/Google.Cloud.GeminiDataAnalytics.V1Beta.OAuthCredentials)[Types](/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1Beta/latest/Google.Cloud.GeminiDataAnalytics.V1Beta.OAuthCredentials.Types)[SecretBased](/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1Beta/latest/Google.Cloud.GeminiDataAnalytics.V1Beta.OAuthCredentials.Types.SecretBased), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[OAuthCredentials](/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1Beta/latest/Google.Cloud.GeminiDataAnalytics.V1Beta.OAuthCredentials)[Types](/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1Beta/latest/Google.Cloud.GeminiDataAnalytics.V1Beta.OAuthCredentials.Types)[SecretBased](/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1Beta/latest/Google.Cloud.GeminiDataAnalytics.V1Beta.OAuthCredentials.Types.SecretBased), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[OAuthCredentials](/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1Beta/latest/Google.Cloud.GeminiDataAnalytics.V1Beta.OAuthCredentials)[Types](/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1Beta/latest/Google.Cloud.GeminiDataAnalytics.V1Beta.OAuthCredentials.Types)[SecretBased](/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1Beta/latest/Google.Cloud.GeminiDataAnalytics.V1Beta.OAuthCredentials.Types.SecretBased), [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.GeminiDataAnalytics.V1Beta](/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1Beta/latest/Google.Cloud.GeminiDataAnalytics.V1Beta)\n\nAssembly\n--------\n\nGoogle.Cloud.GeminiDataAnalytics.V1Beta.dll\n\nConstructors\n------------\n\n### SecretBased()\n\n public SecretBased()\n\n### SecretBased(SecretBased)\n\n public SecretBased(OAuthCredentials.Types.SecretBased other)\n\nProperties\n----------\n\n### ClientId\n\n public string ClientId { get; set; }\n\nRequired. An OAuth client ID.\n\n### ClientSecret\n\n public string ClientSecret { get; set; }\n\nRequired. An OAuth client secret."]]