# AlloyDB V1BETA API - Class Google::Cloud::AlloyDB::V1beta::SupportedDatabaseFlag (v0.23.0)

0.23.0 (latest) 0.22.0 0.21.0 0.20.1 0.19.0 0.18.0 0.17.1 0.16.0 0.15.0 0.14.1 0.13.0 0.12.0 0.11.0 0.10.0 0.9.0 0.8.1 0.7.0 0.6.2 0.5.0 0.4.0 0.3.0 0.2.0 0.1.0 Reference documentation and code samples for the AlloyDB V1BETA API class Google::Cloud::AlloyDB::V1beta::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.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #accepts_multiple_values

    def accepts_multiple_values() -> ::Boolean

**Returns**

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

### #accepts_multiple_values=

    def accepts_multiple_values=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- Whether the database flag accepts multiple values. If true, a comma-separated list of stringified values may be specified.
**Returns**

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

### #flag_name

    def flag_name() -> ::String

**Returns**

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

### #flag_name=

    def flag_name=(value) -> ::String

**Parameter**

- **value** (::String) --- The name of the database flag, e.g. "max_allowed_packets". The is a possibly key for the Instance.database_flags map field.
**Returns**

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

### #integer_restrictions

    def integer_restrictions() -> ::Google::Cloud::AlloyDB::V1beta::SupportedDatabaseFlag::IntegerRestrictions

**Returns**

- ([::Google::Cloud::AlloyDB::V1beta::SupportedDatabaseFlag::IntegerRestrictions](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-alloy_db-v1beta/latest/Google-Cloud-AlloyDB-V1beta-SupportedDatabaseFlag-IntegerRestrictions)) --- Restriction on INTEGER type value.


  Note: The following fields are mutually exclusive: `integer_restrictions`, `string_restrictions`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #integer_restrictions=

    def integer_restrictions=(value) -> ::Google::Cloud::AlloyDB::V1beta::SupportedDatabaseFlag::IntegerRestrictions

**Parameter**

- **value** ([::Google::Cloud::AlloyDB::V1beta::SupportedDatabaseFlag::IntegerRestrictions](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-alloy_db-v1beta/latest/Google-Cloud-AlloyDB-V1beta-SupportedDatabaseFlag-IntegerRestrictions)) --- Restriction on INTEGER type value.


  Note: The following fields are mutually exclusive: `integer_restrictions`, `string_restrictions`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::AlloyDB::V1beta::SupportedDatabaseFlag::IntegerRestrictions](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-alloy_db-v1beta/latest/Google-Cloud-AlloyDB-V1beta-SupportedDatabaseFlag-IntegerRestrictions)) --- Restriction on INTEGER type value.


  Note: The following fields are mutually exclusive: `integer_restrictions`, `string_restrictions`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #name

    def name() -> ::String

**Returns**

- (::String) --- 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.

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::String) ---

  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.
**Returns**

- (::String) --- 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.

### #recommended_integer_value

    def recommended_integer_value() -> ::Google::Protobuf::Int64Value

**Returns**

- ([::Google::Protobuf::Int64Value](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-alloy_db-v1beta/latest/Google-Protobuf-Int64Value)) --- The recommended value for an INTEGER flag.


  Note: The following fields are mutually exclusive: `recommended_integer_value`, `recommended_string_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #recommended_integer_value=

    def recommended_integer_value=(value) -> ::Google::Protobuf::Int64Value

**Parameter**

- **value** ([::Google::Protobuf::Int64Value](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-alloy_db-v1beta/latest/Google-Protobuf-Int64Value)) --- The recommended value for an INTEGER flag.


  Note: The following fields are mutually exclusive: `recommended_integer_value`, `recommended_string_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Protobuf::Int64Value](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-alloy_db-v1beta/latest/Google-Protobuf-Int64Value)) --- The recommended value for an INTEGER flag.


  Note: The following fields are mutually exclusive: `recommended_integer_value`, `recommended_string_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #recommended_string_value

    def recommended_string_value() -> ::String

**Returns**

- (::String) --- The recommended value for a STRING flag.

  Note: The following fields are mutually exclusive: `recommended_string_value`, `recommended_integer_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #recommended_string_value=

    def recommended_string_value=(value) -> ::String

**Parameter**

- **value** (::String) --- The recommended value for a STRING flag.


  Note: The following fields are mutually exclusive: `recommended_string_value`, `recommended_integer_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- (::String) --- The recommended value for a STRING flag.

  Note: The following fields are mutually exclusive: `recommended_string_value`, `recommended_integer_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #requires_db_restart

    def requires_db_restart() -> ::Boolean

**Returns**

- (::Boolean) --- 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).

### #requires_db_restart=

    def requires_db_restart=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- 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).
**Returns**

- (::Boolean) --- 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).

### #scope

    def scope() -> ::Google::Cloud::AlloyDB::V1beta::SupportedDatabaseFlag::Scope

**Returns**

- ([::Google::Cloud::AlloyDB::V1beta::SupportedDatabaseFlag::Scope](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-alloy_db-v1beta/latest/Google-Cloud-AlloyDB-V1beta-SupportedDatabaseFlag-Scope)) --- The scope of the flag.

### #scope=

    def scope=(value) -> ::Google::Cloud::AlloyDB::V1beta::SupportedDatabaseFlag::Scope

**Parameter**

- **value** ([::Google::Cloud::AlloyDB::V1beta::SupportedDatabaseFlag::Scope](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-alloy_db-v1beta/latest/Google-Cloud-AlloyDB-V1beta-SupportedDatabaseFlag-Scope)) --- The scope of the flag.
**Returns**

- ([::Google::Cloud::AlloyDB::V1beta::SupportedDatabaseFlag::Scope](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-alloy_db-v1beta/latest/Google-Cloud-AlloyDB-V1beta-SupportedDatabaseFlag-Scope)) --- The scope of the flag.

### #string_restrictions

    def string_restrictions() -> ::Google::Cloud::AlloyDB::V1beta::SupportedDatabaseFlag::StringRestrictions

**Returns**

- ([::Google::Cloud::AlloyDB::V1beta::SupportedDatabaseFlag::StringRestrictions](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-alloy_db-v1beta/latest/Google-Cloud-AlloyDB-V1beta-SupportedDatabaseFlag-StringRestrictions)) --- Restriction on STRING type value.


  Note: The following fields are mutually exclusive: `string_restrictions`, `integer_restrictions`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #string_restrictions=

    def string_restrictions=(value) -> ::Google::Cloud::AlloyDB::V1beta::SupportedDatabaseFlag::StringRestrictions

**Parameter**

- **value** ([::Google::Cloud::AlloyDB::V1beta::SupportedDatabaseFlag::StringRestrictions](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-alloy_db-v1beta/latest/Google-Cloud-AlloyDB-V1beta-SupportedDatabaseFlag-StringRestrictions)) --- Restriction on STRING type value.


  Note: The following fields are mutually exclusive: `string_restrictions`, `integer_restrictions`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::AlloyDB::V1beta::SupportedDatabaseFlag::StringRestrictions](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-alloy_db-v1beta/latest/Google-Cloud-AlloyDB-V1beta-SupportedDatabaseFlag-StringRestrictions)) --- Restriction on STRING type value.


  Note: The following fields are mutually exclusive: `string_restrictions`, `integer_restrictions`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #supported_db_versions

    def supported_db_versions() -> ::Array<::Google::Cloud::AlloyDB::V1beta::DatabaseVersion>

**Returns**

- (::Array\<[::Google::Cloud::AlloyDB::V1beta::DatabaseVersion](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-alloy_db-v1beta/latest/Google-Cloud-AlloyDB-V1beta-DatabaseVersion)\>) --- Major database engine versions for which this flag is supported.

### #supported_db_versions=

    def supported_db_versions=(value) -> ::Array<::Google::Cloud::AlloyDB::V1beta::DatabaseVersion>

**Parameter**

- **value** (::Array\<[::Google::Cloud::AlloyDB::V1beta::DatabaseVersion](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-alloy_db-v1beta/latest/Google-Cloud-AlloyDB-V1beta-DatabaseVersion)\>) --- Major database engine versions for which this flag is supported.
**Returns**

- (::Array\<[::Google::Cloud::AlloyDB::V1beta::DatabaseVersion](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-alloy_db-v1beta/latest/Google-Cloud-AlloyDB-V1beta-DatabaseVersion)\>) --- Major database engine versions for which this flag is supported.

### #value_type

    def value_type() -> ::Google::Cloud::AlloyDB::V1beta::SupportedDatabaseFlag::ValueType

**Returns**

- ([::Google::Cloud::AlloyDB::V1beta::SupportedDatabaseFlag::ValueType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-alloy_db-v1beta/latest/Google-Cloud-AlloyDB-V1beta-SupportedDatabaseFlag-ValueType))

### #value_type=

    def value_type=(value) -> ::Google::Cloud::AlloyDB::V1beta::SupportedDatabaseFlag::ValueType

**Parameter**

- **value** ([::Google::Cloud::AlloyDB::V1beta::SupportedDatabaseFlag::ValueType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-alloy_db-v1beta/latest/Google-Cloud-AlloyDB-V1beta-SupportedDatabaseFlag-ValueType))
**Returns**

- ([::Google::Cloud::AlloyDB::V1beta::SupportedDatabaseFlag::ValueType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-alloy_db-v1beta/latest/Google-Cloud-AlloyDB-V1beta-SupportedDatabaseFlag-ValueType))