Google Cloud Sql Admin V1 Client - Class Flag (0.3.1)
Stay organized with collections
Save and categorize content based on your preferences.
Reference documentation and code samples for the Google Cloud Sql Admin V1 Client class Flag.
A flag resource.
Generated from protobuf message google.cloud.sql.v1.Flag
Namespace
Google \ Cloud \ Sql \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ name |
string
This is the name of the flag. Flag names always use underscores, not hyphens, for example: max_allowed_packet |
↳ type |
int
The type of the flag. Flags are typed to being BOOLEAN, STRING, INTEGER or NONE. NONE is used for flags which do not take a value, such as skip_grant_tables. |
↳ applies_to |
array
The database version this flag applies to. Can be MYSQL_8_0, MYSQL_5_6, or MYSQL_5_7. |
↳ allowed_string_values |
array
For STRING flags, a list of strings that the value can be set to. |
↳ min_value |
Google\Protobuf\Int64Value
For INTEGER flags, the minimum allowed value. |
↳ max_value |
Google\Protobuf\Int64Value
For INTEGER flags, the maximum allowed value. |
↳ requires_restart |
Google\Protobuf\BoolValue
Indicates whether changing this flag will trigger a database restart. Only applicable to Second Generation instances. |
↳ kind |
string
This is always sql#flag. |
↳ in_beta |
Google\Protobuf\BoolValue
Whether or not the flag is considered in beta. |
↳ allowed_int_values |
array
Use this field if only certain integers are accepted. Can be combined with min_value and max_value to add additional values. |
getName
This is the name of the flag. Flag names always use underscores, not hyphens, for example: max_allowed_packet
| Returns | |
|---|---|
| Type | Description |
string |
|
setName
This is the name of the flag. Flag names always use underscores, not hyphens, for example: max_allowed_packet
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getType
The type of the flag. Flags are typed to being BOOLEAN, STRING, INTEGER or NONE. NONE is used for flags which do not take a value, such as skip_grant_tables.
| Returns | |
|---|---|
| Type | Description |
int |
|
setType
The type of the flag. Flags are typed to being BOOLEAN, STRING, INTEGER or NONE. NONE is used for flags which do not take a value, such as skip_grant_tables.
| Parameter | |
|---|---|
| Name | Description |
var |
int
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getAppliesTo
The database version this flag applies to. Can be MYSQL_8_0, MYSQL_5_6, or MYSQL_5_7.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Internal\RepeatedField |
|
setAppliesTo
The database version this flag applies to. Can be MYSQL_8_0, MYSQL_5_6, or MYSQL_5_7.
| Parameter | |
|---|---|
| Name | Description |
var |
int[]
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getAllowedStringValues
For STRING flags, a list of strings that the value can be set to.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Internal\RepeatedField |
|
setAllowedStringValues
For STRING flags, a list of strings that the value can be set to.
| Parameter | |
|---|---|
| Name | Description |
var |
string[]
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getMinValue
For INTEGER flags, the minimum allowed value.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Int64Value|null |
|
hasMinValue
clearMinValue
getMinValueValue
Returns the unboxed value from getMinValue()
For INTEGER flags, the minimum allowed value.
| Returns | |
|---|---|
| Type | Description |
int|string|null |
|
setMinValue
For INTEGER flags, the minimum allowed value.
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Protobuf\Int64Value
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
setMinValueValue
Sets the field by wrapping a primitive type in a Google\Protobuf\Int64Value object.
For INTEGER flags, the minimum allowed value.
| Parameter | |
|---|---|
| Name | Description |
var |
int|string|null
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getMaxValue
For INTEGER flags, the maximum allowed value.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Int64Value|null |
|
hasMaxValue
clearMaxValue
getMaxValueValue
Returns the unboxed value from getMaxValue()
For INTEGER flags, the maximum allowed value.
| Returns | |
|---|---|
| Type | Description |
int|string|null |
|
setMaxValue
For INTEGER flags, the maximum allowed value.
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Protobuf\Int64Value
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
setMaxValueValue
Sets the field by wrapping a primitive type in a Google\Protobuf\Int64Value object.
For INTEGER flags, the maximum allowed value.
| Parameter | |
|---|---|
| Name | Description |
var |
int|string|null
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getRequiresRestart
Indicates whether changing this flag will trigger a database restart. Only applicable to Second Generation instances.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\BoolValue|null |
|
hasRequiresRestart
clearRequiresRestart
getRequiresRestartValue
Returns the unboxed value from getRequiresRestart()
Indicates whether changing this flag will trigger a database restart. Only applicable to Second Generation instances.
| Returns | |
|---|---|
| Type | Description |
bool|null |
|
setRequiresRestart
Indicates whether changing this flag will trigger a database restart. Only applicable to Second Generation instances.
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Protobuf\BoolValue
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
setRequiresRestartValue
Sets the field by wrapping a primitive type in a Google\Protobuf\BoolValue object.
Indicates whether changing this flag will trigger a database restart. Only applicable to Second Generation instances.
| Parameter | |
|---|---|
| Name | Description |
var |
bool|null
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getKind
This is always sql#flag.
| Returns | |
|---|---|
| Type | Description |
string |
|
setKind
This is always sql#flag.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getInBeta
Whether or not the flag is considered in beta.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\BoolValue|null |
|
hasInBeta
clearInBeta
getInBetaValue
Returns the unboxed value from getInBeta()
Whether or not the flag is considered in beta.
| Returns | |
|---|---|
| Type | Description |
bool|null |
|
setInBeta
Whether or not the flag is considered in beta.
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Protobuf\BoolValue
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
setInBetaValue
Sets the field by wrapping a primitive type in a Google\Protobuf\BoolValue object.
Whether or not the flag is considered in beta.
| Parameter | |
|---|---|
| Name | Description |
var |
bool|null
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getAllowedIntValues
Use this field if only certain integers are accepted. Can be combined with min_value and max_value to add additional values.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Internal\RepeatedField |
|
setAllowedIntValues
Use this field if only certain integers are accepted. Can be combined with min_value and max_value to add additional values.
| Parameter | |
|---|---|
| Name | Description |
var |
int[]|string[]|Google\Protobuf\Internal\RepeatedField
|
| Returns | |
|---|---|
| Type | Description |
$this |
|