Service Client: Google::Cloud::Sql::V1::CloudSqlFlags::SqlFlagsServiceClient
Client stub representing the remote SqlFlagsService gRPC service. Delegates call dispatching to Google::gRPC::Client.
target
The endpoint target address. Defaults to sql.googleapis.com:443.
credentials
The authentication credentials provider. Defaults to application default credentials via Google::Auth.
NAME
Google::Cloud::Sql::V1::CloudSqlFlags - Compiled Protocol Buffers messages for google/cloud/sql/v1/cloud_sql_flags.proto
SYNOPSIS
use Google::Cloud::Sql::V1::CloudSqlFlags;
my $msg = Google::Cloud::Sql::V1::CloudSqlFlags::SqlFlagsListRequest->new({
database_version => $database_version,
flag_scope => $flag_scope,
});
# Read or update a field
my $val = $msg->database_version();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Sql::V1::CloudSqlFlags::SqlFlagsListRequest->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/sql/v1/cloud_sql_flags.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().
MESSAGES
Google::Cloud::Sql::V1::CloudSqlFlags::SqlFlagsListRequest
Flags list request.
Inherits from Protobuf::Message.
Accessors
$msg->database_version()/$msg->database_version($value)Type:
StringDatabase type and version you want to retrieve flags for. By default, this method returns flags for all database types and versions.
$msg->flag_scope()/$msg->flag_scope($value)Type:
Enum(Google::Cloud::Sql::V1::SqlFlagScope)Optional. Specify the scope of flags to be returned by SqlFlagsListService. Return list of database flags if unspecified.
Google::Cloud::Sql::V1::CloudSqlFlags::FlagsListResponse
Flags list response.
Inherits from Protobuf::Message.
Accessors
$msg->kind()/$msg->kind($value)Type:
StringThis is always `sql#flagsList`.
$msg->items()/$msg->items($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlFlags::Flag)List of flags.
Google::Cloud::Sql::V1::CloudSqlFlags::Flag
A flag resource.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringThis is the name of the flag. Flag names always use underscores, not hyphens, for example: `max_allowed_packet`
$msg->type()/$msg->type($value)Type:
Enum(Google::Cloud::Sql::V1::SqlFlagType)The type of the flag. Flags are typed to being `BOOLEAN`, `STRING`, `INTEGER` or `NONE`. `NONE` is used for flags that do not take a value, such as `skip_grant_tables`.
$msg->applies_to()/$msg->applies_to($value)Type:
Enum(Google::Cloud::Sql::V1::SqlDatabaseVersion)The database version this flag applies to. Can be MySQL instances: `MYSQL_8_0`, `MYSQL_8_0_18`, `MYSQL_8_0_26`, `MYSQL_5_7`, or `MYSQL_5_6`. PostgreSQL instances: `POSTGRES_9_6`, `POSTGRES_10`, `POSTGRES_11` or `POSTGRES_12`. SQL Server instances: `SQLSERVER_2017_STANDARD`, `SQLSERVER_2017_ENTERPRISE`, `SQLSERVER_2017_EXPRESS`, `SQLSERVER_2017_WEB`, `SQLSERVER_2019_STANDARD`, `SQLSERVER_2019_ENTERPRISE`, `SQLSERVER_2019_EXPRESS`, or `SQLSERVER_2019_WEB`. See [the complete list](/sql/docs/mysql/admin-api/rest/v1/SqlDatabaseVersion).
$msg->allowed_string_values()/$msg->allowed_string_values($value)Type:
StringFor `STRING` flags, a list of strings that the value can be set to.
$msg->min_value()/$msg->min_value($value)Type:
Message(Google::Protobuf::Wrappers::Int64Value)For `INTEGER` flags, the minimum allowed value.
$msg->max_value()/$msg->max_value($value)Type:
Message(Google::Protobuf::Wrappers::Int64Value)For `INTEGER` flags, the maximum allowed value.
$msg->requires_restart()/$msg->requires_restart($value)Type:
Message(Google::Protobuf::Wrappers::BoolValue)Indicates whether changing this flag will trigger a database restart. Only applicable to Second Generation instances.
$msg->kind()/$msg->kind($value)Type:
StringThis is always `sql#flag`.
$msg->in_beta()/$msg->in_beta($value)Type:
Message(Google::Protobuf::Wrappers::BoolValue)Whether or not the flag is considered in beta.
$msg->allowed_int_values()/$msg->allowed_int_values($value)Type:
Int64Use this field if only certain integers are accepted. Can be combined with min_value and max_value to add additional values.
$msg->flag_scope()/$msg->flag_scope($value)Type:
Enum(Google::Cloud::Sql::V1::SqlFlagScope)Scope of flag.
$msg->recommended_string_value()/$msg->recommended_string_value($value)Type:
StringRecommended string value in string format for UI display.
$msg->recommended_int_value()/$msg->recommended_int_value($value)Type:
Message(Google::Protobuf::Wrappers::Int64Value)Recommended int value in integer format for UI display.
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Sql::V1::CloudSqlFlags::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.