public sealed class SupportedDatabaseFlag : IMessage<SupportedDatabaseFlag>, IEquatable<SupportedDatabaseFlag>, IDeepCloneable<SupportedDatabaseFlag>, IBufferMessage, IMessage
Reference documentation and code samples for the AlloyDB v1 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 details for the \u003ccode\u003eSupportedDatabaseFlag\u003c/code\u003e class within the Google Cloud AlloyDB v1 API, including its properties, inheritance, and implementation details.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSupportedDatabaseFlag\u003c/code\u003e class gives details regarding a database flag, such as its type and possible values, defined server-side and not modifiable by callers, but can be set on a specific \u003ccode\u003eInstance.database_flags\u003c/code\u003e field.\u003c/p\u003e\n"],["\u003cp\u003eThe class offers methods like \u003ccode\u003eSupportedDatabaseFlag()\u003c/code\u003e and \u003ccode\u003eSupportedDatabaseFlag(SupportedDatabaseFlag other)\u003c/code\u003e to construct \u003ccode\u003eSupportedDatabaseFlag\u003c/code\u003e objects.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of \u003ccode\u003eSupportedDatabaseFlag\u003c/code\u003e include whether it \u003ccode\u003eAcceptsMultipleValues\u003c/code\u003e, its \u003ccode\u003eFlagName\u003c/code\u003e, \u003ccode\u003eValueType\u003c/code\u003e, \u003ccode\u003eName\u003c/code\u003e, \u003ccode\u003eRequiresDbRestart\u003c/code\u003e, supported \u003ccode\u003eDatabaseVersion\u003c/code\u003e and \u003ccode\u003eRestrictions\u003c/code\u003e depending on if its a String or Integer.\u003c/p\u003e\n"],["\u003cp\u003eThe API has version history listed from 1.0.0 to 1.9.0, with 1.9.0 being the latest, and each version containing the \u003ccode\u003eSupportedDatabaseFlag\u003c/code\u003e reference.\u003c/p\u003e\n"]]],[],null,["# AlloyDB v1 API - Class SupportedDatabaseFlag (1.11.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.11.0 (latest)](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/latest/Google.Cloud.AlloyDb.V1.SupportedDatabaseFlag)\n- [1.10.0](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/1.10.0/Google.Cloud.AlloyDb.V1.SupportedDatabaseFlag)\n- [1.9.0](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/1.9.0/Google.Cloud.AlloyDb.V1.SupportedDatabaseFlag)\n- [1.8.0](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/1.8.0/Google.Cloud.AlloyDb.V1.SupportedDatabaseFlag)\n- [1.7.0](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/1.7.0/Google.Cloud.AlloyDb.V1.SupportedDatabaseFlag)\n- [1.6.0](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/1.6.0/Google.Cloud.AlloyDb.V1.SupportedDatabaseFlag)\n- [1.5.0](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/1.5.0/Google.Cloud.AlloyDb.V1.SupportedDatabaseFlag)\n- [1.4.0](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/1.4.0/Google.Cloud.AlloyDb.V1.SupportedDatabaseFlag)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/1.3.0/Google.Cloud.AlloyDb.V1.SupportedDatabaseFlag)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/1.2.0/Google.Cloud.AlloyDb.V1.SupportedDatabaseFlag)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/1.1.0/Google.Cloud.AlloyDb.V1.SupportedDatabaseFlag)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/1.0.0/Google.Cloud.AlloyDb.V1.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 v1 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.V1/latest/Google.Cloud.AlloyDb.V1.SupportedDatabaseFlag), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[SupportedDatabaseFlag](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/latest/Google.Cloud.AlloyDb.V1.SupportedDatabaseFlag), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[SupportedDatabaseFlag](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/latest/Google.Cloud.AlloyDb.V1.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.V1](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/latest/Google.Cloud.AlloyDb.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.AlloyDb.V1.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.V1/latest/Google.Cloud.AlloyDb.V1.SupportedDatabaseFlagName)-typed view over the [Name](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/latest/Google.Cloud.AlloyDb.V1.SupportedDatabaseFlag#Google_Cloud_AlloyDb_V1_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; }"]]