public sealed class SupportedDatabaseFlag : IMessage<SupportedDatabaseFlag>, IEquatable<SupportedDatabaseFlag>, IDeepCloneable<SupportedDatabaseFlag>, IBufferMessage, IMessage
Reference documentation and code samples for the AlloyDB v1alpha API class SupportedDatabaseFlag.
SupportedDatabaseFlag gives general information about a database flag,
like type and allowed values. This is a static value that is defined
on the server side, and it cannot be modified by callers.
To set the Database flags on a particular Instance, a caller should modify
the Instance.database_flags field.
Whether setting or updating this flag on an Instance requires a database
restart. If a flag that requires database restart is set, the backend
will automatically restart the database (making sure to satisfy any
availability SLO's).
[[["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\u003eThis document provides reference information for the \u003ccode\u003eSupportedDatabaseFlag\u003c/code\u003e class within the AlloyDB v1alpha API.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eSupportedDatabaseFlag\u003c/code\u003e offers static details about a database flag, including its type and acceptable values, but cannot be altered directly by users.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSupportedDatabaseFlag\u003c/code\u003e class includes properties such as \u003ccode\u003eAcceptsMultipleValues\u003c/code\u003e, \u003ccode\u003eFlagName\u003c/code\u003e, \u003ccode\u003eIntegerRestrictions\u003c/code\u003e, \u003ccode\u003eStringRestrictions\u003c/code\u003e, \u003ccode\u003eRequiresDbRestart\u003c/code\u003e, \u003ccode\u003eSupportedDbVersions\u003c/code\u003e and more, defining various attributes and constraints of database flags.\u003c/p\u003e\n"],["\u003cp\u003eModifying the database flags on a specific Instance should be done through the \u003ccode\u003eInstance.database_flags\u003c/code\u003e field, and some changes may necessitate a database restart.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSupportedDatabaseFlag\u003c/code\u003e class can be constructed with two different constructors, one without arguments and another that takes a \u003ccode\u003eSupportedDatabaseFlag\u003c/code\u003e object as an argument.\u003c/p\u003e\n"]]],[],null,["# AlloyDB v1alpha API - Class SupportedDatabaseFlag (1.0.0-alpha12)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.0-alpha12 (latest)](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Alpha/latest/Google.Cloud.AlloyDb.V1Alpha.SupportedDatabaseFlag)\n- [1.0.0-alpha11](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Alpha/1.0.0-alpha11/Google.Cloud.AlloyDb.V1Alpha.SupportedDatabaseFlag) \n\n public sealed class SupportedDatabaseFlag : IMessage\u003cSupportedDatabaseFlag\u003e, IEquatable\u003cSupportedDatabaseFlag\u003e, IDeepCloneable\u003cSupportedDatabaseFlag\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the AlloyDB v1alpha API class SupportedDatabaseFlag.\n\nSupportedDatabaseFlag gives general information about a database flag,\nlike type and allowed values. This is a static value that is defined\non the server side, and it cannot be modified by callers.\nTo set the Database flags on a particular Instance, a caller should modify\nthe Instance.database_flags field. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e SupportedDatabaseFlag \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[SupportedDatabaseFlag](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Alpha/latest/Google.Cloud.AlloyDb.V1Alpha.SupportedDatabaseFlag), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[SupportedDatabaseFlag](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Alpha/latest/Google.Cloud.AlloyDb.V1Alpha.SupportedDatabaseFlag), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[SupportedDatabaseFlag](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Alpha/latest/Google.Cloud.AlloyDb.V1Alpha.SupportedDatabaseFlag), [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.AlloyDb.V1Alpha](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Alpha/latest/Google.Cloud.AlloyDb.V1Alpha)\n\nAssembly\n--------\n\nGoogle.Cloud.AlloyDb.V1Alpha.dll\n\nConstructors\n------------\n\n### SupportedDatabaseFlag()\n\n public SupportedDatabaseFlag()\n\n### SupportedDatabaseFlag(SupportedDatabaseFlag)\n\n public SupportedDatabaseFlag(SupportedDatabaseFlag other)\n\nProperties\n----------\n\n### AcceptsMultipleValues\n\n public bool AcceptsMultipleValues { get; set; }\n\nWhether the database flag accepts multiple values. If true,\na comma-separated list of stringified values may be specified.\n\n### FlagName\n\n public string FlagName { get; set; }\n\nThe name of the database flag, e.g. \"max_allowed_packets\".\nThe is a possibly key for the Instance.database_flags map field.\n\n### HasRecommendedStringValue\n\n public bool HasRecommendedStringValue { get; }\n\nGets whether the \"recommended_string_value\" field is set\n\n### IntegerRestrictions\n\n public SupportedDatabaseFlag.Types.IntegerRestrictions IntegerRestrictions { get; set; }\n\nRestriction on INTEGER type value.\n\n### Name\n\n public string Name { get; set; }\n\nThe name of the flag resource, following Google Cloud conventions, e.g.:\n\n- projects/{project}/locations/{location}/flags/{flag} This field currently has no semantic meaning.\n\n### RecommendedIntegerValue\n\n public long? RecommendedIntegerValue { get; set; }\n\nThe recommended value for an INTEGER flag.\n\n### RecommendedStringValue\n\n public string RecommendedStringValue { get; set; }\n\nThe recommended value for a STRING flag.\n\n### RecommendedValueCase\n\n public SupportedDatabaseFlag.RecommendedValueOneofCase RecommendedValueCase { get; }\n\n### RequiresDbRestart\n\n public bool RequiresDbRestart { get; set; }\n\nWhether setting or updating this flag on an Instance requires a database\nrestart. If a flag that requires database restart is set, the backend\nwill automatically restart the database (making sure to satisfy any\navailability SLO's).\n\n### RestrictionsCase\n\n public SupportedDatabaseFlag.RestrictionsOneofCase RestrictionsCase { get; }\n\n### Scope\n\n public SupportedDatabaseFlag.Types.Scope Scope { get; set; }\n\nThe scope of the flag.\n\n### StringRestrictions\n\n public SupportedDatabaseFlag.Types.StringRestrictions StringRestrictions { get; set; }\n\nRestriction on STRING type value.\n\n### SupportedDatabaseFlagName\n\n public SupportedDatabaseFlagName SupportedDatabaseFlagName { get; set; }\n\n[SupportedDatabaseFlagName](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Alpha/latest/Google.Cloud.AlloyDb.V1Alpha.SupportedDatabaseFlagName)-typed view over the [Name](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Alpha/latest/Google.Cloud.AlloyDb.V1Alpha.SupportedDatabaseFlag#Google_Cloud_AlloyDb_V1Alpha_SupportedDatabaseFlag_Name) resource name property.\n\n### SupportedDbVersions\n\n public RepeatedField\u003cDatabaseVersion\u003e SupportedDbVersions { get; }\n\nMajor database engine versions for which this flag is supported.\n\n### ValueType\n\n public SupportedDatabaseFlag.Types.ValueType ValueType { get; set; }"]]