Reference documentation and code samples for the Google Cloud AlloyDB for PostgreSQL V1 Client 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.
Generated from protobuf message google.cloud.alloydb.v1.SupportedDatabaseFlag
Namespace
Google \ Cloud \ AlloyDb \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ string_restrictions
↳ integer_restrictions
↳ recommended_string_value
string
The recommended value for a STRING flag.
↳ recommended_integer_value
↳ name
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.
↳ flag_name
string
The name of the database flag, e.g. "max_allowed_packets". The is a possibly key for the Instance.database_flags map field.
↳ value_type
int
↳ accepts_multiple_values
bool
Whether the database flag accepts multiple values. If true, a comma-separated list of stringified values may be specified.
↳ supported_db_versions
array
Major database engine versions for which this flag is supported.
↳ requires_db_restart
bool
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
int
The scope of the flag.
getStringRestrictions
Restriction on STRING type value.
hasStringRestrictions
setStringRestrictions
Restriction on STRING type value.
$this
getIntegerRestrictions
Restriction on INTEGER type value.
hasIntegerRestrictions
setIntegerRestrictions
Restriction on INTEGER type value.
$this
getRecommendedStringValue
The recommended value for a STRING flag.
string
hasRecommendedStringValue
setRecommendedStringValue
The recommended value for a STRING flag.
var
string
$this
getRecommendedIntegerValue
The recommended value for an INTEGER flag.
hasRecommendedIntegerValue
getRecommendedIntegerValueUnwrapped
Returns the unboxed value from getRecommendedIntegerValue()
The recommended value for an INTEGER flag.
int|string|null
setRecommendedIntegerValue
The recommended value for an INTEGER flag.
$this
setRecommendedIntegerValueUnwrapped
Sets the field by wrapping a primitive type in a Google\Protobuf\Int64Value object.
The recommended value for an INTEGER flag.
var
int|string|null
$this
getName
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.
string
setName
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.
var
string
$this
getFlagName
The name of the database flag, e.g. "max_allowed_packets".
The is a possibly key for the Instance.database_flags map field.
string
setFlagName
The name of the database flag, e.g. "max_allowed_packets".
The is a possibly key for the Instance.database_flags map field.
var
string
$this
getValueType
Generated from protobuf field .google.cloud.alloydb.v1.SupportedDatabaseFlag.ValueType value_type = 3;
int
setValueType
Generated from protobuf field .google.cloud.alloydb.v1.SupportedDatabaseFlag.ValueType value_type = 3;
var
int
$this
getAcceptsMultipleValues
Whether the database flag accepts multiple values. If true, a comma-separated list of stringified values may be specified.
bool
setAcceptsMultipleValues
Whether the database flag accepts multiple values. If true, a comma-separated list of stringified values may be specified.
var
bool
$this
getSupportedDbVersions
Major database engine versions for which this flag is supported.
setSupportedDbVersions
Major database engine versions for which this flag is supported.
var
int[]
$this
getRequiresDbRestart
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).
bool
setRequiresDbRestart
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).
var
bool
$this
getScope
The scope of the flag.
int
setScope
The scope of the flag.
var
int
$this
getRestrictions
string
getRecommendedValue
string