1.16.0 (latest) 1.15.0 1.14.0 1.13.0 1.12.0 1.11.0 1.10.0 1.9.0 1.8.0 1.7.0 1.6.0 1.5.0 1.4.0 1.3.0 1.2.0 1.1.0 1.0.0

    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.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> SupportedDatabaseFlag

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[SupportedDatabaseFlag](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/latest/Google.Cloud.AlloyDb.V1.SupportedDatabaseFlag.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[SupportedDatabaseFlag](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/latest/Google.Cloud.AlloyDb.V1.SupportedDatabaseFlag.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[SupportedDatabaseFlag](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/latest/Google.Cloud.AlloyDb.V1.SupportedDatabaseFlag.md.txt), [IBufferMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.md.txt), [IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.md.txt)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.AlloyDb.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/latest/Google.Cloud.AlloyDb.V1.md.txt)

## Assembly

Google.Cloud.AlloyDb.V1.dll

## Constructors

### SupportedDatabaseFlag()

    public SupportedDatabaseFlag()

### SupportedDatabaseFlag(SupportedDatabaseFlag)

    public SupportedDatabaseFlag(SupportedDatabaseFlag other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `SupportedDatabaseFlag` |

## Properties

### AcceptsMultipleValues

    public bool AcceptsMultipleValues { get; set; }

Whether the database flag accepts multiple values. If true,
a comma-separated list of stringified values may be specified.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### FlagName

    public string FlagName { get; set; }

The name of the database flag, e.g. "max_allowed_packets".
The is a possibly key for the Instance.database_flags map field.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### HasRecommendedStringValue

    public bool HasRecommendedStringValue { get; }

Gets whether the "recommended_string_value" field is set

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### IntegerRestrictions

    public SupportedDatabaseFlag.Types.IntegerRestrictions IntegerRestrictions { get; set; }

Restriction on INTEGER type value.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `SupportedDatabaseFlagTypesIntegerRestrictions` |   |

### Name

    public string Name { get; set; }

The name of the flag resource, following Google Cloud conventions, e.g.:

- projects/{project}/locations/{location}/flags/{flag} This field currently has no semantic meaning.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### RecommendedIntegerValue

    public long? RecommendedIntegerValue { get; set; }

The recommended value for an INTEGER flag.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `long` |   |

### RecommendedStringValue

    public string RecommendedStringValue { get; set; }

The recommended value for a STRING flag.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### RecommendedValueCase

    public SupportedDatabaseFlag.RecommendedValueOneofCase RecommendedValueCase { get; }

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `SupportedDatabaseFlagRecommendedValueOneofCase` |   |

### RequiresDbRestart

    public bool RequiresDbRestart { get; set; }

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).

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### RestrictionsCase

    public SupportedDatabaseFlag.RestrictionsOneofCase RestrictionsCase { get; }

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `SupportedDatabaseFlagRestrictionsOneofCase` |   |

### Scope

    public SupportedDatabaseFlag.Types.Scope Scope { get; set; }

The scope of the flag.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `SupportedDatabaseFlagTypesScope` |   |

### StringRestrictions

    public SupportedDatabaseFlag.Types.StringRestrictions StringRestrictions { get; set; }

Restriction on STRING type value.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `SupportedDatabaseFlagTypesStringRestrictions` |   |

### SupportedDatabaseFlagName

    public SupportedDatabaseFlagName SupportedDatabaseFlagName { get; set; }

[SupportedDatabaseFlagName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/latest/Google.Cloud.AlloyDb.V1.SupportedDatabaseFlagName.md.txt)-typed view over the [Name](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/latest/Google.Cloud.AlloyDb.V1.SupportedDatabaseFlag.md.txt#Google_Cloud_AlloyDb_V1_SupportedDatabaseFlag_Name) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `SupportedDatabaseFlagName` |   |

### SupportedDbVersions

    public RepeatedField<DatabaseVersion> SupportedDbVersions { get; }

Major database engine versions for which this flag is supported.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `RepeatedFieldDatabaseVersion` |   |

### ValueType

    public SupportedDatabaseFlag.Types.ValueType ValueType { get; set; }

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `SupportedDatabaseFlagTypesValueType` |   |